/*! For license information please see dz.js.LICENSE.txt */ (()=>{var t,e,r={"o+Xq"(t,e,r){var n={"./ar-EG":["7l11",7,[2639]],"./ar-EG.js":["7l11",7,[2639]],"./bg-BG":["NtN9",7,[6430]],"./bg-BG.js":["NtN9",7,[6430]],"./cs-CZ":["dgFL",7,[4617]],"./cs-CZ.js":["dgFL",7,[4617]],"./da-DK":["qQ/l",7,[8372]],"./da-DK.js":["qQ/l",7,[8372]],"./de-DE":["kRj5",7,[6222]],"./de-DE.js":["kRj5",7,[6222]],"./en-GB":["dZvM",7,[2308]],"./en-GB.js":["dZvM",7,[2308]],"./en-US":["OTNr",7,[2443]],"./en-US.js":["OTNr",7,[2443]],"./es-ES":["NORb",7,[9448]],"./es-ES.js":["NORb",7,[9448]],"./es-MX":["qqpM",7,[2387]],"./es-MX.js":["qqpM",7,[2387]],"./fi-FI":["8F/y",7,[1818]],"./fi-FI.js":["8F/y",7,[1818]],"./fr-FR":["SLhx",7,[84]],"./fr-FR.js":["SLhx",7,[84]],"./he-IL":["U/0q",7,[2292]],"./he-IL.js":["U/0q",7,[2292]],"./hr-HR":["hqkm",7,[9544]],"./hr-HR.js":["hqkm",7,[9544]],"./hu-HU":["b3Ex",7,[6878]],"./hu-HU.js":["b3Ex",7,[6878]],"./id-ID":["1cQq",7,[3374]],"./id-ID.js":["1cQq",7,[3374]],"./it-IT":["plFM",7,[7870]],"./it-IT.js":["plFM",7,[7870]],"./ja-JP":["6c9a",7,[6059]],"./ja-JP.js":["6c9a",7,[6059]],"./ko-KR":["Bd6v",7,[1533]],"./ko-KR.js":["Bd6v",7,[1533]],"./metas":["vOvo",3,[6563]],"./metas.json":["vOvo",3,[6563]],"./mk-MK":["ROwi",7,[3368]],"./mk-MK.js":["ROwi",7,[3368]],"./ms-MY":["QHPW",7,[5298]],"./ms-MY.js":["QHPW",7,[5298]],"./nb-NO":["MBpd",7,[8673]],"./nb-NO.js":["MBpd",7,[8673]],"./nl-NL":["wtD0",7,[5372]],"./nl-NL.js":["wtD0",7,[5372]],"./pl-PL":["Evm0",7,[9496]],"./pl-PL.js":["Evm0",7,[9496]],"./pt-BR":["c8u7",7,[8032]],"./pt-BR.js":["c8u7",7,[8032]],"./pt-PT":["kUuF",7,[4808]],"./pt-PT.js":["kUuF",7,[4808]],"./ro-RO":["GQt0",7,[1038]],"./ro-RO.js":["GQt0",7,[1038]],"./ru-RU":["Gutp",7,[8330]],"./ru-RU.js":["Gutp",7,[8330]],"./sk-SK":["Nb4h",7,[9592]],"./sk-SK.js":["Nb4h",7,[9592]],"./sl-SI":["F4AI",7,[979]],"./sl-SI.js":["F4AI",7,[979]],"./sq-AL":["FhSz",7,[6867]],"./sq-AL.js":["FhSz",7,[6867]],"./sr-RS":["LOwO",7,[1068]],"./sr-RS.js":["LOwO",7,[1068]],"./sv-SE":["O1GL",7,[9213]],"./sv-SE.js":["O1GL",7,[9213]],"./th-TH":["u1j9",7,[5800]],"./th-TH.js":["u1j9",7,[5800]],"./tr-TR":["q4St",7,[2040]],"./tr-TR.js":["q4St",7,[2040]],"./uk-UA":["6ZeV",7,[9586]],"./uk-UA.js":["6ZeV",7,[9586]],"./zh-CN":["TM5q",7,[9113]],"./zh-CN.js":["TM5q",7,[9113]]};function i(t){try{if(!r.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}catch(t){return Promise.reject(t)}var e=n[t],i=e[0];return r.e(e[2][0]).then((()=>r.t(i,16|e[1])))}i.keys=()=>Object.keys(n),i.id="o+Xq",t.exports=i},pWtv(t,e,r){"use strict";r.d(e,{A:()=>n});class n{constructor(t){if(this.config=void 0,this.config=t,"object"!=typeof t||Array.isArray(t)||0===Object.getOwnPropertyNames(t).length)throw new Error("Config must be instantiated with a non empty configuration object")}get(t){if("string"==typeof t){if(void 0!==this.config[t])return this.config[t];throw new Error(`Missing config ${t}`)}if(Array.isArray(t)){const e=t.reduce(((t,e)=>null===t?void 0:t[e]),this.config);if(void 0!==e)return e;throw new Error(`Missing config ${t.join(".")}`)}throw new Error("Path to config value must be a string or array of string")}}},odqK(t,e,r){"use strict";r.d(e,{A:()=>n});const n={get:t=>{if(document.cookie.length>0){let e=document.cookie.indexOf(t+"=");if(-1!==e){e=e+t.length+1;let r=document.cookie.indexOf(";",e);return-1===r&&(r=document.cookie.length),unescape(document.cookie.substring(e,r))}}return""},set:(t,e,r,n=90)=>{const i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);const o=`domain=${r};path=/;expires=${i.toUTCString()};secure`;document.cookie=`${t}=${e};${o}`}}},"B/8Z"(t,e,r){"use strict";r.d(e,{_C:()=>o});const n={"en-us":"us","es-es":"es",es:"mx","pt-br":"br",sv:"se",zh:"cn"},i=Object.keys(n).reduce(((t,e)=>(t[n[e]]=e,t)),{}),o=t=>i[t]||t},uFqM(t,e,r){"use strict";r.d(e,{_C:()=>n._C});var n=r("B/8Z")},"/21C"(t,e,r){"use strict";r.d(e,{A:()=>i});var n=r("jmBU");class i extends n.A{constructor(...[t,e]){super(t),this.detail=void 0,this.detail=(null==e?void 0:e.detail)||null}}},jmBU(t,e,r){"use strict";r.d(e,{A:()=>c});var n=r("MVPB"),i=r("4OMY"),o=(0,i.A)("canPropagate"),s=(0,i.A)("target"),a=(0,i.A)("type");class c{constructor(t){Object.defineProperty(this,o,{writable:!0,value:!0}),Object.defineProperty(this,s,{writable:!0,value:null}),Object.defineProperty(this,a,{writable:!0,value:void 0}),(0,n.A)(this,a)[a]=t}get canPropagate(){return(0,n.A)(this,o)[o]}stopImmediatePropagation(){(0,n.A)(this,o)[o]=!1}get target(){return(0,n.A)(this,s)[s]}set target(t){null===(0,n.A)(this,s)[s]&&((0,n.A)(this,s)[s]=t)}get type(){return(0,n.A)(this,a)[a]}}},"A+Y6"(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("+9dH");const i=Symbol("[[Listeners]]");class o{constructor(){this[i]={}}addEventListener(t,e,r){let o;this[i]||(this[i]={}),null!=r&&r.signal&&(o=()=>this.removeEventListener(t,e),r.signal.addEventListener("abort",o));const s=this[i][t]||[];this[i][t]=[...s,[e,(0,n.A)({},r,{signalListener:o})]]}dispatchEvent(t){if(this[i]||(this[i]={}),Object.defineProperty(t,"target",{value:this}),!("canPropagate"in t)){const e=t.stopImmediatePropagation||(()=>{});let r=!0;Object.defineProperty(t,"stopImmediatePropagation",{value(){r=!1,e.call(t)}}),Object.defineProperty(t,"canPropagate",{get:()=>r})}const e=t.type,r=this[i][e]||[];for(const[n,i]of r)if(null!=i&&i.once&&this.removeEventListener(e,n),n.call(this,t),!t.canPropagate)break;return!1}removeEventListener(t,e){if(this[i]||(this[i]={}),!this[i][t])return;const r=this[i][t];this[i][t]=r.filter((([t,r])=>{if(e===t){var n;if(r.signalListener)null==(n=r.signal)||n.removeEventListener("abort",r.signalListener);return!1}return!0}))}}},PCl9(t,e,r){"use strict";r.d(e,{Ay:()=>o.A,Jh:()=>i.A,up:()=>n.A});var n=r("/21C"),i=r("jmBU"),o=r("A+Y6")},"DL/y"(t,e,r){"use strict";r.d(e,{T:()=>G});const n={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class i{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||n,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),r=0;r{this.observers[t]=this.observers[t]||[],this.observers[t].push(e)})),this}off(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((t=>t!==e)):delete this.observers[t])}emit(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n{t(...r)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((e=>{e.apply(e,[t,...r])}))}}}function a(){let t,e;const r=new Promise(((r,n)=>{t=r,e=n}));return r.resolve=t,r.reject=e,r}function c(t){return null==t?"":""+t}function u(t,e,r){function n(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}const o="string"!=typeof e?[].concat(e):e.split(".");for(;o.length>1;){if(i())return{};const e=n(o.shift());!t[e]&&r&&(t[e]=new r),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{}}return i()?{}:{obj:t,k:n(o.shift())}}function l(t,e,r){const{obj:n,k:i}=u(t,e,Object);n[i]=r}function d(t,e){const{obj:r,k:n}=u(t,e);if(r)return r[n]}function f(t,e,r){for(const n in e)"__proto__"!==n&&"constructor"!==n&&(n in t?"string"==typeof t[n]||t[n]instanceof String||"string"==typeof e[n]||e[n]instanceof String?r&&(t[n]=e[n]):f(t[n],e[n],r):t[n]=e[n]);return t}function p(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function g(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(t=>h[t])):t}const y=[" ",",","?","!",";"];function v(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let i=t;for(let t=0;tt+o;)o++,s=n.slice(t,t+o).join(r),a=i[s];if(void 0===a)return;if(null===a)return null;if(e.endsWith(s)){if("string"==typeof a)return a;if(s&&"string"==typeof a[s])return a[s]}const c=n.slice(t+o).join(r);return c?v(a,c,r):void 0}i=i[n[t]]}return i}function m(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class A extends s{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,e];r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."));const a=d(this.data,s);return a||!o||"string"!=typeof r?a:v(this.data&&this.data[t]&&this.data[t][e],r,i)}addResource(t,e,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[t,e];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),n=e,e=s[1]),this.addNamespaces(e),l(this.data,s,n),i.silent||this.emit("added",t,e,r,n)}addResources(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in r)"string"!=typeof r[n]&&"[object Array]"!==Object.prototype.toString.apply(r[n])||this.addResource(t,e,n,r[n],{silent:!0});n.silent||this.emit("added",t,e,r)}addResourceBundle(t,e,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,e];t.indexOf(".")>-1&&(s=t.split("."),n=r,r=e,e=s[1]),this.addNamespaces(e);let a=d(this.data,s)||{};n?f(a,r,i):a={...a,...r},l(this.data,s,a),o.silent||this.emit("added",t,e,r)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var _={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,i){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,r,n,i))})),e}};const b={};class E extends s{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(t,e,r){t.forEach((t=>{e[t]&&(r[t]=e[t])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const r=this.resolve(t,e);return r&&void 0!==r.res}extractFromKey(t,e){let r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let i=e.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,r){e=e||"",r=r||"";const n=y.filter((t=>e.indexOf(t)<0&&r.indexOf(t)<0));if(0===n.length)return!0;const i=new RegExp(`(${n.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!i.test(t);if(!o){const e=t.indexOf(r);e>0&&!i.test(t.substring(0,e))&&(o=!0)}return o}(t,r,n));if(o&&!s){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:i};const o=t.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),t=o.join(n)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}translate(t,e,r){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const n=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],e),a=s[s.length-1],c=e.lng||this.language,u=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const t=e.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${t}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:a}:`${a}${t}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:a}:o}const l=this.resolve(t,e);let d=l&&l.res;const f=l&&l.usedKey||o,p=l&&l.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...e,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(l.res=t,l):t}if(i){const t="[object Array]"===h,r=t?[]:{},n=t?p:f;for(const t in d)if(Object.prototype.hasOwnProperty.call(d,t)){const o=`${n}${i}${t}`;r[t]=this.translate(o,{...e,joinArrays:!1,ns:s}),r[t]===o&&(r[t]=d[t])}d=r}}else if(y&&"string"==typeof g&&"[object Array]"===h)d=d.join(g),d&&(d=this.extendTranslation(d,t,e,r));else{let n=!1,s=!1;const u=void 0!==e.count&&"string"!=typeof e.count,f=E.hasDefaultValue(e),p=u?this.pluralResolver.getSuffix(c,e.count,e):"",h=e.ordinal&&u?this.pluralResolver.getSuffix(c,e.count,{ordinal:!1}):"",g=e[`defaultValue${p}`]||e[`defaultValue${h}`]||e.defaultValue;!this.isValidLookup(d)&&f&&(n=!0,d=g),this.isValidLookup(d)||(s=!0,d=o);const y=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,v=f&&g!==d&&this.options.updateMissing;if(s||n||v){if(this.logger.log(v?"updateKey":"missingKey",c,a,o,v?g:d),i){const t=this.resolve(o,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let e=0;e{const i=f&&n!==d?n:y;this.options.missingKeyHandler?this.options.missingKeyHandler(t,a,r,i,v,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,a,r,i,v,e),this.emit("missingKey",t,a,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?t.forEach((t=>{this.pluralResolver.getSuffixes(t,e).forEach((r=>{n([t],o+r,e[`defaultValue${r}`]||g)}))})):n(t,o,g))}d=this.extendTranslation(d,t,e,l,r),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,n?d:void 0):this.options.parseMissingKeyHandler(d))}return n?(l.res=d,l):d}extendTranslation(t,e,r,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const s="string"==typeof t&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,r.lng||this.language,r),s){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,n=new Array(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,s),c=a.key;r=c;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const l=void 0!==s.count&&"string"!=typeof s.count,d=l&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);u.forEach((t=>{this.isValidLookup(e)||(o=t,!b[`${p[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(b[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((r=>{if(this.isValidLookup(e))return;i=r;const o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,t,s);else{let t;l&&(t=this.pluralResolver.getSuffix(r,s.count,s));const e=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(o.push(c+t),s.ordinal&&0===t.indexOf(n)&&o.push(c+t.replace(n,this.options.pluralSeparator)),d&&o.push(c+e)),f){const r=`${c}${this.options.contextSeparator}${s.context}`;o.push(r),l&&(o.push(r+t),s.ordinal&&0===t.indexOf(n)&&o.push(r+t.replace(n,this.options.pluralSeparator)),d&&o.push(r+e))}}let a;for(;a=o.pop();)this.isValidLookup(e)||(n=a,e=this.getResource(r,t,a,s))})))}))})),{res:e,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,r,n):this.resourceStore.getResource(t,e,r,n)}static hasDefaultValue(t){const e="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e===r.substring(0,12)&&void 0!==t[r])return!0;return!1}}function S(t){return t.charAt(0).toUpperCase()+t.slice(1)}class w{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o.create("languageUtils")}getScriptPartFromCode(t){if(!(t=m(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=m(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if("string"==typeof t&&t.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map((t=>t.toLowerCase())):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=S(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=S(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=S(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const r=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(r)||(e=r)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const r=this.getLanguagePartFromCode(t);if(this.isSupportedCode(r))return e=r;e=this.options.supportedLngs.find((t=>t===r?t:t.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===t.indexOf(r)?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];let r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}toResolveHierarchy(t,e){const r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),n=[],i=t=>{t&&(this.isSupportedCode(t)?n.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return"string"==typeof t&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(t))):"string"==typeof t&&i(this.formatLanguageCode(t)),r.forEach((t=>{n.indexOf(t)<0&&i(this.formatLanguageCode(t))})),n}}let T=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};const O=["v1","v2","v3"],I=["v4"],k={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=o.create("pluralResolver"),this.options.compatibilityJSON&&!I.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const t={};return T.forEach((e=>{e.lngs.forEach((r=>{t[r]={numbers:e.nr,plurals:x[e.fc]}}))})),t}()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(m(t),{type:e.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(t,e);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,r).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(t,e);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(((t,e)=>k[t]-k[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):r.numbers.map((r=>this.getSuffix(t,r,e))):[]}getSuffix(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(e)}`:this.getSuffixRetroCompatible(n,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const r=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let n=t.numbers[r];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}function L(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(t,e,r){const n=d(t,r);return void 0!==n?n:d(e,r)}(t,e,r);return!o&&i&&"string"==typeof r&&(o=v(t,r,n),void 0===o&&(o=v(e,r,n))),o}class R{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const e=t.interpolation;this.escape=void 0!==e.escape?e.escape:g,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?p(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?p(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?p(e.nestingPrefix):e.nestingPrefixEscaped||p("$t("),this.nestingSuffix=e.nestingSuffix?p(e.nestingSuffix):e.nestingSuffixEscaped||p(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const e=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(e,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,e,r,n){let i,o,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}const l=t=>{if(t.indexOf(this.formatSeparator)<0){const i=L(e,a,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...e,interpolationkey:t}):i}const i=t.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(L(e,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...e,interpolationkey:o})};this.resetRegExp();const d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>u(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?u(this.escape(t)):u(t)}].forEach((e=>{for(s=0;i=e.regex.exec(t);){const r=i[1].trim();if(o=l(r),void 0===o)if("function"==typeof d){const e=d(t,i,n);o="string"==typeof e?e:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else{if(f){o=i[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${t}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=c(o));const a=e.safeValue(o);if(t=t.replace(i[0],a),f?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),t}nest(t,e){let r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(t,e){const r=this.nestingOptionsSeparator;if(t.indexOf(r)<0)return t;const n=t.split(new RegExp(`${r}[ ]*{`));let o=`{${n[1]}`;t=n[0],o=this.interpolate(o,i);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),e&&(i={...e,...i})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${r}${o}`}return delete i.defaultValue,t}for(;r=this.nestingRegexp.exec(t);){let a=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const t=r[1].split(this.formatSeparator).map((t=>t.trim()));r[1]=t.shift(),a=t,u=!0}if(n=e(s.call(this,r[1].trim(),i),i),n&&r[0]===t&&"string"!=typeof n)return n;"string"!=typeof n&&(n=c(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),n=""),u&&(n=a.reduce(((t,e)=>this.format(t,e,o.lng,{...o,interpolationkey:r[1].trim()})),n.trim())),t=t.replace(r[0],n),this.regexp.lastIndex=0}return t}}function C(t){const e={};return function(r,n,i){const o=n+JSON.stringify(i);let s=e[o];return s||(s=t(m(n),i),e[o]=s),s(r)}}class N{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("formatter"),this.options=t,this.formats={number:C(((t,e)=>{const r=new Intl.NumberFormat(t,{...e});return t=>r.format(t)})),currency:C(((t,e)=>{const r=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>r.format(t)})),datetime:C(((t,e)=>{const r=new Intl.DateTimeFormat(t,{...e});return t=>r.format(t)})),relativetime:C(((t,e)=>{const r=new Intl.RelativeTimeFormat(t,{...e});return t=>r.format(t,e.range||"day")})),list:C(((t,e)=>{const r=new Intl.ListFormat(t,{...e});return t=>r.format(t)}))},this.init(t)}init(t){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=C(e)}format(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce(((t,e)=>{const{formatName:i,formatOptions:o}=function(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);"currency"===e&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===e&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach((t=>{if(!t)return;const[e,...n]=t.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,"");r[e.trim()]||(r[e.trim()]=i),"false"===i&&(r[e.trim()]=!1),"true"===i&&(r[e.trim()]=!0),isNaN(i)||(r[e.trim()]=parseInt(i,10))}))}return{formatName:e,formatOptions:r}}(e);if(this.formats[i]){let e=t;try{const s=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;e=this.formats[i](t,a,{...o,...n,...s})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${i}`),t}),t)}}class D extends s{constructor(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(t,e,r,n){const i={},o={},s={},a={};return t.forEach((t=>{let n=!0;e.forEach((e=>{const s=`${t}|${e}`;!r.reload&&this.store.hasResourceBundle(t,e)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[e]&&(a[e]=!0)))})),n||(s[t]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(t,e,r){const n=t.split("|"),i=n[0],o=n[1];e&&this.emit("failedLoading",i,o,e),r&&this.store.addResourceBundle(i,o,r),this.state[t]=e?-1:2;const s={};this.queue.forEach((r=>{!function(t,e,r,n){const{obj:i,k:o}=u(t,e,Object);i[o]=i[o]||[],n&&(i[o]=i[o].concat(r)),n||i[o].push(r)}(r.loaded,[i],o),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(r,t),e&&r.errors.push(e),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((t=>{s[t]||(s[t]={});const e=r.loaded[t];e.length&&e.forEach((e=>{void 0===s[t][e]&&(s[t][e]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((t=>!t.done))}read(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}s&&a&&n{this.read.call(this,t,e,r,n+1,2*i,o)}),i):o(s,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(t,e,s);try{const r=a(t,e);r&&"function"==typeof r.then?r.then((t=>s(null,t))).catch(s):s(null,r)}catch(t){s(t)}}prepareLoading(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);const i=this.queueLoad(t,e,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,r){this.prepareLoading(t,e,{},r)}reload(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=t.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,((r,o)=>{r&&this.logger.warn(`${e}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${e}loaded namespace ${i} for language ${n}`,o),this.loaded(t,r,o)}))}saveMissing(t,e,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${r}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=5===c.length?c(t,e,r,n,a):c(t,e,r,n),i&&"function"==typeof i.then?i.then((t=>s(null,t))).catch(s):s(null,i)}catch(t){s(t)}else c(t,e,r,n,s,a)}t&&t[0]&&this.store.addResource(t[0],e,r,n)}}}function M(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if("object"==typeof t[1]&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const r=t[3]||t[2];Object.keys(r).forEach((t=>{e[t]=r[t]}))}return e},interpolation:{escapeValue:!0,format:(t,e,r,n)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function j(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function F(){}class U extends s{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=j(t),this.services={},this.logger=o,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t=>{"function"==typeof r[t]&&(r[t]=r[t].bind(r))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(r=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=M();function i(t){return t?"function"==typeof t?new t:t:null}if(this.options={...n,...this.options,...j(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?o.init(i(this.modules.logger),this.options):o.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=N);const r=new w(this.options);this.store=new A(this.options.resources,this.options);const s=this.services;s.logger=o,s.resourceStore=this.store,s.languageUtils=r,s.pluralResolver=new P(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=i(e),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new R(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new D(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,r||(r=F),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const s=a(),c=()=>{const t=(t,e)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(e),r(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F;const r="string"==typeof t?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return e();const t=[],n=e=>{if(!e)return;this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{t.indexOf(e)<0&&t.push(e)}))};if(r)n(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>n(t)))}this.options.preload&&this.options.preload.forEach((t=>n(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,r){const n=a();return t||(t=this.languages),e||(e=this.options.ns),r||(r=F),this.services.backendConnector.reload(t,e,(t=>{n.resolve(),r(t)})),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&_.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var r=this;this.isLanguageChangingTo=t;const n=a();this.emit("languageChanging",t);const i=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(t,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve((function(){return r.t(...arguments)})),e&&e(t,(function(){return r.t(...arguments)}))},s=e=>{t||e||!this.services.languageDetector||(e=[]);const r="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,(t=>{o(t,r)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),n}getFixedT(t,e,r){var n=this;const i=function(t,e){let o;if("object"!=typeof e){for(var s=arguments.length,a=new Array(s>2?s-2:0),c=2;c`${o.keyPrefix}${u}${t}`)):o.keyPrefix?`${o.keyPrefix}${u}${t}`:t,n.t(l,o)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=e.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const o=(t,e)=>{const r=this.services.backendConnector.state[`${t}|${e}`];return-1===r||2===r};if(e.precheck){const t=e.precheck(this,o);if(void 0!==t)return t}return!!this.hasResourceBundle(r,t)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(r,t)||n&&!o(i,t)))}loadNamespaces(t,e){const r=a();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}loadLanguages(t,e){const r=a();"string"==typeof t&&(t=[t]);const n=this.options.preload||[],i=t.filter((t=>n.indexOf(t)<0));return i.length?(this.options.preload=n.concat(i),this.loadResources((t=>{r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new w(M());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new U(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},i=new U(n);void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t));return["store","services","language"].forEach((t=>{i[t]=this[t]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new A(this.store.data,n),i.services.resourceStore=i.store),i.translator=new E(i.services,n),i.translator.on("*",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n=0),o[8]){case"b":r=r.toString(2);break;case"c":r=String.fromCharCode(r);break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,o[6]?parseInt(o[6]):0);break;case"e":r=o[7]?r.toExponential(o[7]):r.toExponential();break;case"f":r=o[7]?parseFloat(r).toFixed(o[7]):parseFloat(r);break;case"g":r=o[7]?parseFloat(r).toPrecision(o[7]):parseFloat(r);break;case"o":r=r.toString(8);break;case"s":r=(r=String(r))&&o[7]?r.substring(0,o[7]):r;break;case"u":r>>>=0;break;case"x":r=r.toString(16);break;case"X":r=r.toString(16).toUpperCase()}B.json.test(o[8])?p[p.length]=r:(!B.number.test(o[8])||h&&!o[3]?g="":(g=h?"+":"-",r=r.toString().replace(B.sign,"")),a=o[4]?"0"===o[4]?"0":o[4].charAt(1):" ",c=o[6]-(g+r).length,s=o[6]&&c>0?(u=a,Array(c+1).join(u)):"",p[p.length]=o[5]?g+r+s:"0"===a?g+s+r:s+g+r)}return p.join("")},H.cache={},H.parse=function(t){for(var e=t,r=[],n=[],i=0;e;){if(null!==(r=B.text.exec(e)))n[n.length]=r[0];else if(null!==(r=B.modulo.exec(e)))n[n.length]="%";else{if(null===(r=B.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(r[2]){i|=1;var o=[],s=r[2],a=[];if(null===(a=B.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o[o.length]=a[1];""!==(s=s.substring(a[0].length));)if(null!==(a=B.key_access.exec(s)))o[o.length]=a[1];else{if(null===(a=B.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");o[o.length]=a[1]}r[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n[n.length]=r}e=e.substring(r[0].length)}return n};"function"==typeof Symbol&&Symbol.iterator;function G(t,e={}){return V.t(t,e)}},nfZ0(t,e,r){"use strict";r.d(e,{A:()=>s});var n=r("+9dH"),i=r("/0+J"),o=r("DeUc");class s{constructor(t,e){this.strategies=void 0,this.storage=void 0,this.strategies=t,this.storage=e}log(t){var e=this;return(0,i.A)((function*(){yield e.storage.store((0,n.A)({uid:(0,o.A)()},t)),yield Promise.all(e.strategies.map((t=>t.notify())))}))()}}},LlMc(t,e,r){"use strict";r.d(e,{s:()=>p});var n=r("Nlia"),i=r("/0+J"),o=r("+9dH"),s=r("WjcS"),a=r("odqK"),c=r("UFRa"),u=r("HZph");const l=["userId"],d=["gclid","ext_publisher_id","rtid","ttclid","ScCid","irclickid"],f=[...d,"_fbp","_fbc","fb_login_id"];class p{constructor(t,e={filter:!0,minimumEventVersion:1}){this.apiKey=void 0,this.abtestGroups=new Set,this.options={filter:!0,filterFunction:()=>!0,minimumEventVersion:1,name:"",stack:"web"},this.filterFunction=void 0,this.logger=void 0,this.filter=void 0,this.consentStatistics=void 0,this.consentAds=void 0,this.pluginManager=void 0,this.options=(0,o.A)({},this.options,e),this.apiKey=t,this.consentStatistics=!1,this.consentAds=!1,this.filterFunction=this.options.filterFunction||(()=>!0),this.filter=this.options.filter,this.logger=this.options.logger,this.pluginManager=new u.R(this),this.options.plugins&&this.options.plugins.forEach((t=>this.pluginManager.register(t))),"undefined"!=typeof window&&this.filter&&!window.analytics&&(window.analytics=new c.N)}use(t){return this.pluginManager.register(t),this}removePlugin(t){return this.pluginManager.unregister(t),this}getPlugin(t){return this.pluginManager.getPlugin(t)}getPlugins(){return this.pluginManager.getAllPlugins()}getPlatform(){return new s.A({name:this.options.name,version:this.options.minimumEventVersion.toString()})}getPlatformFamily(){const t=this.getPlatform();return"electron"===this.options.stack?"electron":t.app.family}setConsent(t){if(this.consentAds=Boolean(t.targetedAdvertising),this.consentStatistics=Boolean(t.statistics),this.pluginManager.executeHook("onConsent",t),this.isUsable())return this.identify({targetedAds:this.consentAds,statistics:this.consentStatistics})}setAbTestGroups(t){this.abtestGroups=new Set(t)}addAbTestGroup(t){t&&t.trim().length>0&&this.abtestGroups.add(t)}removeAbTestGroup(t){this.abtestGroups.delete(t)}getConsentContext(){return{consent:{categoryPreferences:{targetedAds:this.consentAds,statistics:this.consentStatistics}}}}additionalSegmentData(t){return(0,o.A)({integrations:this.getIntegrations(),context:this.getConsentContext(),device:(0,o.A)({family:this.getPlatformFamily()},this.abtestGroups.size&&{abtest_groups:Array.from(this.abtestGroups)}),os:this.getPlatform().os},t&&{protocols:t})}getIntegrations(){return{All:!1,"Aampe (Actions)":!0,"Braze Cloud Mode (Actions)":!0,"Facebook Conversions API (Actions)":this.consentAds,"Rokt Integration":this.consentAds,Webhooks:this.consentAds,"Actions Google Enhanced Conversions":this.consentAds,"Google Analytics 4 Web":this.consentAds&&this.consentStatistics,"Amplitude (Actions)":this.consentStatistics,"TikTok Conversions":this.consentAds,"Bing Ads":this.consentAds,"Snapchat Conversions API":this.consentAds,"Webhooks (Actions)":this.consentAds,"Google Analytics 4 Cloud":this.consentAds&&this.consentStatistics,"Google Ads Conversions":this.consentAds}}isUsable(){return void 0!==window.analytics&&this.filter}init(){this.isUsable()&&(null==window.analytics.load||window.analytics.load({writeKey:this.apiKey}),null==window.analytics.addSourceMiddleware||window.analytics.addSourceMiddleware((({payload:t,next:e})=>{const r=(0,o.A)({family:this.getPlatformFamily()},this.abtestGroups.size&&{abtest_groups:Array.from(this.abtestGroups)});t.obj.context||(t.obj.context={}),t.obj.context.device=(0,o.A)({},t.obj.context.device||{},r),e(t)})),window.analytics.ready((()=>{this.pluginManager.executeHook("onLoad")})))}logEvent(t){var e=this;return(0,i.A)((function*(){var r;const n=e.pluginManager.executeHookChained("beforeTrack",t),i=a.A.get("dzr_uniq_id"),s=(()=>{const t={};return f.map((e=>{const r=e.replace(/_/,"").toLowerCase(),n=a.A.get(r);n&&(t[r]=n)})),Object.keys(t).length?t:void 0})(),c=null==(r=n.customAttributes)?void 0:r.parameters,u=c?(0,o.A)({},s,c):s,l=Object.keys(null!=u?u:{}).length>0?u:void 0;var d;if(e.isUsable()&&e.filterFunction(n))try{const t={event_version:n.eventVersion||e.options.minimumEventVersion};let r;if((d=n)&&"pageView"===d.eventName||d&&"screen_view"===d.eventName){var p;const s=e.pluginManager.executeHookChained("beforePageView",n);null!=s&&null!=(p=s.customAttributes)&&p.screen_view_name&&(r=yield window.analytics.page(s.customAttributes.screen_view_name,(0,o.A)({},s.customAttributes,i&&{dzr_unique_id:i}),(0,o.A)({},e.additionalSegmentData(t),{context:(0,o.A)({},e.getConsentContext(),{page:(0,o.A)({title:s.customAttributes.screen_view_name},l&&{parameters:l})})}))),e.pluginManager.executeHook("afterPageView",s)}else r=yield window.analytics.track(n.eventName,n.customAttributes,e.additionalSegmentData(t)),e.pluginManager.executeHook("afterTrack",n);return r}catch(d){null==e.logger||e.logger("CDP lib - logEvent",d)}}))()}login(t){return this.identify(t)}identify(t){var e=this;return(0,i.A)((function*(){const r=e.pluginManager.executeHookChained("beforeIdentify",t);if(!e.isUsable())return;r.statistics&&(e.consentStatistics=Boolean(r.statistics)),r.targetedAds&&(e.consentAds=Boolean(r.targetedAds));const i=new URLSearchParams(window.location.search),o="."+location.host.split(".")[1]+".com";try{if(e.consentStatistics)for(const t of d)if(i.has(t)){const e=i.get(t);if(e){let r=t.toLowerCase();"ScCid"===t&&(r="sccid"),a.A.set(r,e,o,365)}}const{userId:t}=r,s=(0,n.A)(r,l);let c;return e.resetSegmentUser(),c=t&&"0"!==t?yield window.analytics.identify(t,s,e.additionalSegmentData()):yield window.analytics.identify(s,e.additionalSegmentData()),e.pluginManager.executeHook("afterIdentify",r),c}catch(t){null==e.logger||e.logger("CDP lib - identify",t)}}))()}logout(){if(this.isUsable())try{window.analytics.reset()}catch(e){var t;null==(t=this.logger)||t.call(this,"CDP lib - logout",e)}}getCurrentAnonymousId(){var t=this;return(0,i.A)((function*(){const e=yield t.getCurrentUser();return(null==e?void 0:e.anonymousId())||""}))()}getCurrentUser(){var t=this;return(0,i.A)((function*(){if(t.isUsable())return yield window.analytics.user()}))()}getCurrentUserTraits(){var t=this;return(0,i.A)((function*(){const e=yield t.getCurrentUser();return null==e?void 0:e.traits()}))()}resetSegmentUser(){var t=this;window.analytics.ready((0,i.A)((function*(){const e=yield t.getCurrentUser();"0"===(null==e?void 0:e.id())?t.logout():null==e||e.traits({})})))}}},aRtE(t,e,r){"use strict";r.d(e,{A:()=>n});class n{constructor(t){this.cdp=void 0,this.cdp=t}updateCDP(t){this.cdp=t}send(t,e){const r=[];t.forEach((t=>{this.cdp.logEvent(t),r.push(t.uid)})),e(r)}}},HZph(t,e,r){"use strict";r.d(e,{R:()=>n});class n{constructor(t,e=!1){this.plugins=new Map,this.cdp=void 0,this.debug=void 0,this.cdp=t,this.debug=e}warn(...t){this.debug&&console.warn(...t)}error(...t){this.debug&&console.error(...t)}register(t){if(this.plugins.has(t.name)&&this.warn(`Plugin ${t.name} is already registered. Overwriting...`),this.plugins.set(t.name,t),t.init)try{t.init(this.cdp)}catch(e){this.error(`Failed to initialize plugin ${t.name}:`,e)}}unregister(t){this.plugins.delete(t)}getPlugin(t){return this.plugins.get(t)}executeHookChained(t,e,...r){let n=e;for(const e of this.plugins.values()){const i=e[t];if("function"==typeof i)try{const t=i.apply(e,[n,...r]);void 0!==t&&(n=t)}catch(r){this.error(`Error executing ${String(t)} hook in plugin ${e.name}:`,r)}}return n}executeHook(t,...e){const r=[];for(const n of this.plugins.values()){const i=n[t];if("function"==typeof i)try{const t=i.apply(n,e);void 0!==t&&r.push(t)}catch(e){this.error(`Error executing ${String(t)} hook in plugin ${n.name}:`,e)}}return r}getAllPlugins(){return Array.from(this.plugins.values())}}},xQo4(t,e,r){"use strict";r.d(e,{A:()=>a});var n=r("Nlia"),i=r("+9dH");const o=["eventName"],s=["eventName"];class a{constructor(t){if(this.name="survicate",this.version="1.0.0",this.config=void 0,this.isLoaded=!1,this.pendingActions=[],this.config=(0,i.A)({loadOnInit:!0,debug:!1},t),!this.config.workspaceKey)throw new Error("Survicate workspace key is required")}init(){this.config.debug&&console.log("Survicate plugin initialized with config:",this.config),this.config.loadOnInit&&this.loadSurvicate()}onLoad(){this.isLoaded||this.loadSurvicate()}afterIdentify(t){const{userId:e}=t;e&&this.setVisitorTraits({userId:e})}afterTrack(t){if(!this.isLoaded)return;if(t.eventName.startsWith("survicate_"))return;const{eventName:e}=t,r=(0,n.A)(t,o);this.invokeEvent(e,r)}afterPageView(t){if(!this.isLoaded)return;const{eventName:e}=t,r=(0,n.A)(t,s);this.invokeEvent(e,null==r?void 0:r.customAttributes)}loadSurvicate(){if(!this.isLoaded&&"undefined"!=typeof window)try{var t;const e=document.createElement("script");e.src=`https://survey.survicate.com/workspaces/${this.config.workspaceKey}/web_surveys.js`,e.async=!0,e.onload=()=>{this.isLoaded=!0,this.executePendingActions(),this.config.debug&&console.log("Survicate script loaded successfully"),this.config.customAttributes&&this.setVisitorTraits(this.config.customAttributes)},e.onerror=()=>{console.error("Failed to load Survicate script")};const r=document.getElementsByTagName("script")[0];null==(t=r.parentNode)||t.insertBefore(e,r),this.config.debug&&console.log("Survicate script injection started")}catch(t){console.error("Error loading Survicate:",t)}}unloadSurvicate(){this.isLoaded&&(this.resetVisitor(),this.config.debug&&console.log("Survicate visitor reset due to consent withdrawal"))}setVisitorTraits(t){if(this.isLoaded)try{var e;null!=(e=window._sva)&&e.setVisitorTraits&&(window._sva.setVisitorTraits(t),this.config.debug&&console.log("Survicate visitor traits set:",t))}catch(t){console.error("Error setting Survicate visitor traits:",t)}else this.pendingActions.push((()=>this.setVisitorTraits(t)))}resetVisitor(){if(this.isLoaded)try{var t;null!=(t=window._sva)&&t.destroyVisitor&&(window._sva.destroyVisitor(),this.config.debug&&console.log("Survicate visitor reset"))}catch(t){console.error("Error resetting Survicate visitor:",t)}}invokeEvent(t,e){if(this.isLoaded)try{var r;null!=(r=window._sva)&&r.invokeEvent&&(window._sva.invokeEvent(t,e),this.config.debug&&console.log("Survicate event invoked:",t,e))}catch(t){console.error("Error invoking Survicate event:",t)}else this.pendingActions.push((()=>this.invokeEvent(t,e)))}executePendingActions(){for(;this.pendingActions.length>0;){const t=this.pendingActions.shift();if(t)try{t()}catch(t){console.error("Error executing pending Survicate action:",t)}}}load(){this.loadSurvicate()}unload(){this.unloadSurvicate()}setTraits(t){this.setVisitorTraits(t)}triggerEvent(t,e){this.invokeEvent(t,e)}isScriptLoaded(){return this.isLoaded}}},"uKd+"(t,e,r){"use strict";r("+9dH"),r("MVPB"),r("4OMY");var n=r("PVCp");r("rnUO");n.A},"3/Kc"(t,e,r){"use strict";r("+9dH"),r("MVPB"),r("4OMY");var n=r("H2NC");n.A},Eg0M(t,e,r){"use strict";r("+9dH");var n=r("H2NC");n.A},zrq2(t,e,r){"use strict";r("+9dH"),r("MVPB"),r("4OMY");var n=r("H2NC");n.A},H2NC(t,e,r){"use strict";r.d(e,{A:()=>c});var n=r("MVPB"),i=r("4OMY"),o=(0,i.A)("callback"),s=(0,i.A)("id"),a=(0,i.A)("tags");class c{constructor({callback:t,id:e,tags:r}){Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),(0,n.A)(this,o)[o]=t,(0,n.A)(this,s)[s]=e,(0,n.A)(this,a)[a]=Object.keys(r||{}).length?r:void 0}get id(){return(0,n.A)(this,s)[s]}send(){var t,e;null==(t=(e=(0,n.A)(this,o))[o])||t.call(e,this.serialize()),this.reset()}serialize(){const t={metric:{id:(0,n.A)(this,s)[s]}};return(0,n.A)(this,a)[a]&&(t.metric.tags=(0,n.A)(this,a)[a]),t}get tags(){return(0,n.A)(this,a)[a]}}},WjcS(t,e,r){"use strict";r.d(e,{A:()=>a});var n=r("+9dH"),i=r("M39V"),o=r.n(i);let s=function(t){return t.DESKTOP="desktop",t.MOBILE="mobile",t.TABLET="tablet",t.TV="tv",t}({});class a{constructor({family:t,id:e,name:r,sdk:n,stack:i="web",userAgent:a=("undefined"!=typeof navigator?navigator.userAgent:""),version:c,device:u}){this.app=void 0,this.device=void 0,this.browser=void 0,this.os=void 0;const l=void 0!==t;if(this.app={family:t||s.DESKTOP,id:e,name:r.toLowerCase(),sdk:n,stack:i,version:c.toLowerCase()},u&&(this.device={name:u.name.toLowerCase()}),a){var d,f;const t=o().getParser(a);if(!l){const e=a.includes("CrKey");this.app.family=e?s.TV:t.is("tablet")?s.TABLET:t.is("mobile")?s.MOBILE:this.app.family}this.browser={name:t.getBrowserName(),version:null!=(d=t.getBrowserVersion())?d:"N/A"},this.os={name:t.getOSName(),version:null!=(f=t.getOSVersion())?f:"N/A"}}}static deserialize({app:t,browser:e,os:r}){return Object.assign(new a(t),{browser:e,os:r})}serialize(){return(0,n.A)({},this)}}},PVCp(t,e,r){"use strict";r.d(e,{A:()=>c});var n=r("+9dH"),i=r("Nlia"),o=r("DeUc");const s=["clientIP","correlationID","offerID","platform","userID"];let a;class c{constructor({clientIP:t,offerID:e,platform:r,ts:n=Math.round(Date.now()/1e3),type:i,userID:s,version:c}){this.clientIP=void 0,this.correlationID=a||(a=(0,o.A)()),this.offerID=void 0,this.platform=void 0,this.ts=void 0,this.type=void 0,this.uid=(0,o.A)(),this.userID=void 0,this.version=void 0,this.clientIP=t,this.offerID=e,this.platform=r,this.ts=n,this.type=i,this.userID=s,this.version=c}serialize(){const{clientIP:t,correlationID:e,offerID:r,platform:o,userID:a}=this,c=(0,i.A)(this,s);return(0,n.A)({"correlation-id":e,client_ip:t,offer_id:r,platform:o.serialize(),user_id:a},c)}}},rnUO(t,e,r){"use strict";r.d(e,{A:()=>c});var n=r("MVPB"),i=r("4OMY"),o=r("WjcS"),s=(0,i.A)("ipProvider"),a=(0,i.A)("timeProvider");class c{constructor(t){this.offerID=void 0,this.platform=void 0,this.userID=void 0,Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0});const{ipProvider:e,offerID:r,timeProvider:i,userID:c}=t;(0,n.A)(this,s)[s]=e,(0,n.A)(this,a)[a]=i,this.offerID=r,this.platform=new o.A(t),this.userID=c}get clientIP(){var t,e;return null==(t=(e=(0,n.A)(this,s))[s])?void 0:t.call(e)}get ts(){var t,e;return(null==(t=(e=(0,n.A)(this,a))[a])?void 0:t.call(e))||Math.round(Date.now()/1e3)}}},qpTi(t,e,r){"use strict";r.d(e,{A:()=>d});var n=r("/0+J"),i=r("MVPB"),o=r("4OMY"),s=function(t){return t.SUCCESS="success",t.ERROR="error",t}(s||{}),a=(0,o.A)("authToken"),c=(0,o.A)("configuration"),u=(0,o.A)("endpointUrl"),l=(0,o.A)("fetch");class d{constructor(t,e,r,{fetch:n=globalThis.fetch}={}){Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),(0,i.A)(this,a)[a]=e,(0,i.A)(this,c)[c]=r,(0,i.A)(this,u)[u]=t,(0,i.A)(this,l)[l]=n}setAuthToken(t){(0,i.A)(this,a)[a]=t}send(t,e){var r=this;return(0,n.A)((function*(t,e,{fetch:n=(0,i.A)(r,l)[l]}={}){try{const o=yield n(`${(0,i.A)(r,u)[u]}${(0,i.A)(r,a)[a]}`,{method:"POST",body:JSON.stringify(t)}),l=yield o.json();if(l.modifiers&&(l.modifiers.batch_max_events&&((0,i.A)(r,c)[c].maxBatchSize=l.modifiers.batch_max_events),l.modifiers.batch_threshold_wait_ms&&((0,i.A)(r,c)[c].autoSendInterval=l.modifiers.batch_threshold_wait_ms)),l.status===s.SUCCESS)e(t.slice(0,l.payload.nb_processed).map((t=>t.uid)));else{if("auth_error"===l.payload.error_type)throw new Error("Wrong authentication token provided to REC");if("input_error"===l.payload.error_type)throw e(t.map((t=>t.uid))),new Error("Non-expected input conforming to REC directives");e([])}}catch(t){e([])}})).apply(this,arguments)}}},"3RCl"(t,e,r){"use strict";r.d(e,{A:()=>n});class n{constructor({prefix:t}={}){this.prefix="deezer:",this.prefix=null!=t?t:this.prefix}store(t){localStorage.setItem(`${this.prefix}${t.uid}`,JSON.stringify(t))}delete(t){localStorage.removeItem(`${this.prefix}${t}`)}getLogs(t){return Object.entries(localStorage).filter((([t])=>t.startsWith(this.prefix))).slice(0,t).map((([,t])=>JSON.parse(t)))}getLogsOfType(t,e){return Object.entries(localStorage).filter((([t])=>t.startsWith(this.prefix))).map((([,t])=>JSON.parse(t))).filter((t=>null===e||e.includes(t.type))).slice(0,t)}getLogsNotOfType(t,e){return Object.entries(localStorage).filter((([t])=>t.startsWith(this.prefix))).map((([,t])=>JSON.parse(t))).filter((t=>null===e||!e.includes(t.type))).slice(0,t)}}},DVwj(t,e,r){"use strict";class n{constructor(){this.storage=void 0,this.storage=new Map}store(t){this.storage.set(t.uid,t),this.storage.size>n.storageMaxSize&&this.storage.delete(this.storage.keys().next().value)}delete(t){this.storage.delete(t)}getLogs(t){return Array.from(this.storage.values()).slice(0,t)}getLogsOfType(t,e){return Array.from(this.storage.values()).filter((t=>null===e||e.includes(t.type))).slice(0,t)}getLogsNotOfType(t,e){return Array.from(this.storage.values()).filter((t=>null===e||!e.includes(t.type))).slice(0,t)}}n.storageMaxSize=75e4},"d+fI"(t,e,r){"use strict";r.d(e,{r:()=>n});function n(t={}){return{minBatchSize:t.minBatchSize||1,maxBatchSize:t.maxBatchSize||100,autoSendInterval:t.autoSendInterval||3e5}}},YRbg(t,e,r){"use strict";r.d(e,{A:()=>h});var n=r("/0+J"),i=r("MVPB"),o=r("4OMY"),s=(0,o.A)("configuration"),a=(0,o.A)("mightWantToSendAgain"),c=(0,o.A)("pendingSend"),u=(0,o.A)("sendInterval"),l=(0,o.A)("startInterval"),d=(0,o.A)("clearInterval"),f=(0,o.A)("getLogsFromStorage"),p=(0,o.A)("send");class h{constructor(t,e,r){Object.defineProperty(this,p,{value:A}),Object.defineProperty(this,f,{value:v}),Object.defineProperty(this,d,{value:y}),Object.defineProperty(this,l,{value:g}),this.sender=void 0,this.storage=void 0,this.handledLogTypes=void 0,this.ignoredLogTypes=void 0,Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:!1}),Object.defineProperty(this,c,{writable:!0,value:!1}),Object.defineProperty(this,u,{writable:!0,value:void 0}),this.sender=t,this.storage=e,(0,i.A)(this,s)[s]=r,this.handledLogTypes=r.handledLogTypes||null,this.ignoredLogTypes=r.ignoredLogTypes||null,(0,i.A)(this,l)[l]()}destruct(){(0,i.A)(this,d)[d]()}notify(){var t=this;return(0,n.A)((function*(){(yield(0,i.A)(t,f)[f]()).length>=(0,i.A)(t,s)[s].maxBatchSize&&((0,i.A)(t,p)[p](),(0,i.A)(t,a)[a]=!0)}))()}acknowledge(t){t.forEach((t=>{this.storage.delete(t)})),(0,i.A)(this,c)[c]=!1,(0,i.A)(this,l)[l](),(0,i.A)(this,a)[a]&&((0,i.A)(this,a)[a]=!1,t.length>0&&this.notify())}flush(){(0,i.A)(this,p)[p]()}}function g(){(0,i.A)(this,u)[u]=setInterval((0,i.A)(this,p)[p].bind(this),(0,i.A)(this,s)[s].autoSendInterval)}function y(){(0,i.A)(this,u)[u]&&clearInterval((0,i.A)(this,u)[u])}function v(){return m.apply(this,arguments)}function m(){return(m=(0,n.A)((function*(){return this.ignoredLogTypes?this.storage.getLogsNotOfType((0,i.A)(this,s)[s].maxBatchSize,this.ignoredLogTypes):this.storage.getLogsOfType((0,i.A)(this,s)[s].maxBatchSize,this.handledLogTypes)}))).apply(this,arguments)}function A(){return _.apply(this,arguments)}function _(){return(_=(0,n.A)((function*(){if((0,i.A)(this,c)[c])return;(0,i.A)(this,c)[c]=!0;const t=yield(0,i.A)(this,f)[f]();t.length<(0,i.A)(this,s)[s].minBatchSize?(0,i.A)(this,c)[c]=!1:((0,i.A)(this,d)[d](),yield this.sender.send(t,this.acknowledge.bind(this)))}))).apply(this,arguments)}},"0OdJ"(t,e,r){"use strict";r.d(e,{A:()=>c});var n=r("/0+J"),i=r("MVPB"),o=r("4OMY"),s=(0,o.A)("pendingLogSent"),a=(0,o.A)("getLogsFromStorage");class c{constructor(t,e,r){Object.defineProperty(this,a,{value:u}),this.sender=void 0,this.storage=void 0,this.handledLogTypes=void 0,this.ignoredLogTypes=void 0,Object.defineProperty(this,s,{writable:!0,value:new Set}),this.sender=t,this.storage=e,this.handledLogTypes=r.handledLogTypes||null,this.ignoredLogTypes=r.ignoredLogTypes||null}notify(){var t=this;return(0,n.A)((function*(){const e=(yield(0,i.A)(t,a)[a]()).filter((e=>!(0,i.A)(t,s)[s].has(e.uid)));0!==e.length&&(e.map((e=>(0,i.A)(t,s)[s].add(e.uid))),yield t.sender.send(e,t.acknowledge.bind(t)))}))()}acknowledge(t){var e=this;t.forEach(function(){var t=(0,n.A)((function*(t){yield e.storage.delete(t),(0,i.A)(e,s)[s].delete(t)}));return function(e){return t.apply(this,arguments)}}())}getPendingLogs(){return(0,i.A)(this,s)[s]}}function u(){return l.apply(this,arguments)}function l(){return(l=(0,n.A)((function*(){return this.ignoredLogTypes?this.storage.getLogsNotOfType(1/0,this.ignoredLogTypes):this.storage.getLogsOfType(1/0,this.handledLogTypes)}))).apply(this,arguments)}},"3d0B"(t,e,r){"use strict";r("/0+J");var n=r("0OdJ");n.A},Ltjx(t,e,r){"use strict";r.d(e,{Ay:()=>d.A,CI:()=>s.A,DT:()=>a.A,J:()=>u.A,KH:()=>c.A,MZ:()=>n.A,r1:()=>l.r,rG:()=>i.A,sG:()=>o.s});var n=r("qpTi"),i=r("aRtE"),o=r("LlMc"),s=r("xQo4"),a=(r("uKd+"),r("3/Kc"),r("Eg0M"),r("zrq2"),r("WjcS"),r("rnUO"),r("3RCl")),c=(r("DVwj"),r("YRbg")),u=r("0OdJ"),l=(r("3d0B"),r("d+fI")),d=r("nfZ0")},"/HWm"(t,e,r){"use strict";r.d(e,{f6:()=>FileError,yw:()=>InsufficientDataError});var n=r("8VJL");class i extends n.A{}class FileError extends i{}class InsufficientDataError extends i{constructor(...t){super(...t),this.needed=void 0}}},cG2a(){},qJB7(t,e,r){"use strict";r.d(e,{Codec:()=>v,Container:()=>m,DEFAULT_PLAYABLE_STATE:()=>h,DecodeError:()=>c,NetworkError:()=>NetworkError,PENDING_PAUSED:()=>g,PENDING_PLAYING:()=>y,RendererError:()=>a,RendererEvent:()=>p,RendererEvents:()=>f});var n=r("MVPB"),i=r("4OMY"),o=r("8VJL"),s=(0,i.A)("cause");class a extends o.A{constructor(t,{cause:e}={}){super(t),Object.defineProperty(this,s,{writable:!0,value:void 0}),(0,n.A)(this,s)[s]=e}get cause(){return(0,n.A)(this,s)[s]}}class c extends a{}class NetworkError extends a{}var u=r("+9dH"),l=r("PCl9"),d=function(t){return t.AUTOPLAY_CHANGED="RendererAutoplayChanged",t.BUFFERED_RANGE_CHANGED="RendererBufferedRangeChanged",t.BUFFERING_COMPLETE_CHANGED="RendererBufferingCompleteChanged",t.CAN_PLAY="RendererCanPlay",t.CAN_PLAY_THROUGH="RendererCanPlayThrough",t.DURATION_CHANGED="RendererDurationChanged",t.ELEMENT_CHANGED="RendererElementChanged",t.ENDED="RendererEnded",t.ENDED_CHANGED="RendererEndedChanged",t.ERROR="RendererError",t.LOADED="RendererLoaded",t.LOADING="RendererLoading",t.METADATA_CHANGED="RendererMetadataChanged",t.MUTED_CHANGED="RendererMutedChanged",t.PAUSED_CHANGED="RendererPausedChanged",t.PLAYBACK_RATE_CHANGED="RendererPlaybackRateChanged",t.SEEKED="RendererSeeked",t.SEEKING="RendererSeeking",t.TIME_CHANGED="RendererTimeChanged",t.VOLUME_CHANGED="RendererVolumeChanged",t}(d||{});const f=(0,u.A)({},d);class p extends l.up{}r("cG2a");const h={buffered:{duration:0,end:0,start:0},bufferingComplete:!1,duration:NaN,loaded:!1,metadata:void 0},g="pending-paused",y="pending-playing";let v=function(t){return t.AAC="AAC",t.FLAC="FLAC",t.MP3="MP3",t.UNKNOWN="Unknown",t}({}),m=function(t){return t.MKV="MKV",t.MP4="MP4",t.NONE="None",t.UNKNOWN="Unknown",t}({})},WzpB(t,e,r){"use strict";r.d(e,{lc:()=>AbortError,JZ:()=>s,r6:()=>i,zf:()=>o});var n=r("8VJL");class AbortError extends n.A{}function i(t){if(!o(t))throw t}function o(t){return t instanceof AbortError||"AbortError"===(null==t?void 0:t.name)}n.A;n.A;const s=(t=500)=>({attempt:e})=>(e-1)*t},F8q0(t,e,r){"use strict";r.d(e,{J:()=>o});var n=r("Istr"),i=r("0ohS");function o(t,e,r,o){return(0,n.sH)(this,void 0,void 0,(function(){var s,a;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return r.emit("dispatch_start",t),s=Date.now(),e.isEmpty()?[4,e.dispatchSingle(t)]:[3,2];case 1:return a=n.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:a=n.sent(),n.label=4;case 4:return(null==o?void 0:o.callback)?[4,(0,i.w_)(a,o.callback,(c=s,u=o.timeout,l=Date.now()-c,Math.max((null!=u?u:300)-l,0)))]:[3,6];case 5:a=n.sent(),n.label=6;case 6:return(null==o?void 0:o.debug)&&a.flush(),[2,a]}var c,u,l}))}))}},"0ohS"(t,e,r){"use strict";function n(t,e){return new Promise((function(r,n){var i=setTimeout((function(){n(Error("Promise timed out"))}),e);t.then((function(t){return clearTimeout(i),r(t)})).catch(n)}))}function i(t,e,r){var i;return(i=r,new Promise((function(t){return setTimeout(t,i)}))).then((function(){return n(function(){try{return Promise.resolve(e(t))}catch(t){return Promise.reject(t)}}(),1e3)})).catch((function(e){null==t||t.log("warn","Callback Error",{error:e}),null==t||t.stats.increment("callback_error")})).then((function(){return t}))}r.d(e,{s2:()=>n,w_:()=>i})},gW5k(t,e,r){"use strict";r.d(e,{d:()=>c,j:()=>u});var n=r("e4Ra"),i=r("hDVZ"),o=r("Istr"),s=function(){function t(){this._logs=[]}return t.prototype.log=function(t,e,r){var n=new Date;this._logs.push({level:t,message:e,time:n,extras:r})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce((function(t,e){var r,n,i,s=(0,o.Cl)((0,o.Cl)({},e),{json:JSON.stringify(e.extras,null," "),extras:e.extras});delete s.time;var a=null!==(i=null===(n=e.time)||void 0===n?void 0:n.toISOString())&&void 0!==i?i:"";return t[a]&&(a="".concat(a,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},t),((r={})[a]=s,r))}),{});console.table?console.table(t):console.log(t)}else this.logs.forEach((function(t){var e=t.level,r=t.message,n=t.extras;"info"===e||"debug"===e?console.log(r,null!=n?n:""):console[e](r,null!=n?n:"")}));this._logs=[]},t}(),a=r("Ohc8"),c=function(t){var e,r,n;this.retry=null===(e=t.retry)||void 0===e||e,this.type=null!==(r=t.type)&&void 0!==r?r:"plugin Error",this.reason=null!==(n=t.reason)&&void 0!==n?n:""},u=function(){function t(t,e,r,i){void 0===e&&(e=(0,n.v4)()),void 0===r&&(r=new a.r),void 0===i&&(i=new s),this.attempts=0,this.event=t,this._id=e,this.logger=i,this.stats=r}return t.system=function(){},t.prototype.isSame=function(t){return t.id===this.id},t.prototype.cancel=function(t){if(t)throw t;throw new c({reason:"Context Cancel"})},t.prototype.log=function(t,e,r){this.logger.log(t,e,r)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(t,e){var r;if("integrations"===t.split(".")[0]){var n=t.split(".")[1];if(!1===(null===(r=this.event.integrations)||void 0===r?void 0:r[n]))return this.event}return(0,i.J)(this.event,t,e),this.event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(t){this._failedDelivery=t},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},t}()},jJDc(t,e,r){"use strict";r.d(e,{i:()=>c});var n=r("Istr"),i=r("hDVZ"),o=r("+Xyy"),s=r("y+yU"),a=function(t){var e,r;this.settings=t,this.createMessageId=t.createMessageId,this.onEventMethodCall=null!==(e=t.onEventMethodCall)&&void 0!==e?e:function(){},this.onFinishedEvent=null!==(r=t.onFinishedEvent)&&void 0!==r?r:function(){}},c=function(){function t(t){this.settings=new a(t)}return t.prototype.track=function(t,e,r,i){return this.settings.onEventMethodCall({type:"track",options:r}),this.normalize((0,n.Cl)((0,n.Cl)({},this.baseEvent()),{event:t,type:"track",properties:null!=e?e:{},options:(0,n.Cl)({},r),integrations:(0,n.Cl)({},i)}))},t.prototype.page=function(t,e,r,i,o){var s;this.settings.onEventMethodCall({type:"page",options:i});var a={type:"page",properties:(0,n.Cl)({},r),options:(0,n.Cl)({},i),integrations:(0,n.Cl)({},o)};return null!==t&&(a.category=t,a.properties=null!==(s=a.properties)&&void 0!==s?s:{},a.properties.category=t),null!==e&&(a.name=e),this.normalize((0,n.Cl)((0,n.Cl)({},this.baseEvent()),a))},t.prototype.screen=function(t,e,r,i,o){this.settings.onEventMethodCall({type:"screen",options:i});var s={type:"screen",properties:(0,n.Cl)({},r),options:(0,n.Cl)({},i),integrations:(0,n.Cl)({},o)};return null!==t&&(s.category=t),null!==e&&(s.name=e),this.normalize((0,n.Cl)((0,n.Cl)({},this.baseEvent()),s))},t.prototype.identify=function(t,e,r,i){return this.settings.onEventMethodCall({type:"identify",options:r}),this.normalize((0,n.Cl)((0,n.Cl)({},this.baseEvent()),{type:"identify",userId:t,traits:null!=e?e:{},options:(0,n.Cl)({},r),integrations:i}))},t.prototype.group=function(t,e,r,i){return this.settings.onEventMethodCall({type:"group",options:r}),this.normalize((0,n.Cl)((0,n.Cl)({},this.baseEvent()),{type:"group",traits:null!=e?e:{},options:(0,n.Cl)({},r),integrations:(0,n.Cl)({},i),groupId:t}))},t.prototype.alias=function(t,e,r,i){this.settings.onEventMethodCall({type:"alias",options:r});var o={userId:t,type:"alias",options:(0,n.Cl)({},r),integrations:(0,n.Cl)({},i)};return null!==e&&(o.previousId=e),void 0===t?this.normalize((0,n.Cl)((0,n.Cl)({},o),this.baseEvent())):this.normalize((0,n.Cl)((0,n.Cl)({},this.baseEvent()),o))},t.prototype.baseEvent=function(){return{integrations:{},options:{}}},t.prototype.context=function(t){var e,r=["userId","anonymousId","timestamp","messageId"];delete t.integrations;var n=Object.keys(t),o=null!==(e=t.context)&&void 0!==e?e:{},s={};return n.forEach((function(e){"context"!==e&&(r.includes(e)?(0,i.J)(s,e,t[e]):(0,i.J)(o,e,t[e]))})),[o,s]},t.prototype.normalize=function(t){var e,r,i=Object.keys(null!==(e=t.integrations)&&void 0!==e?e:{}).reduce((function(e,r){var i,o;return(0,n.Cl)((0,n.Cl)({},e),((i={})[r]=Boolean(null===(o=t.integrations)||void 0===o?void 0:o[r]),i))}),{});t.options=(0,o.f)(t.options||{},(function(t,e){return void 0!==e}));var a=(0,n.Cl)((0,n.Cl)({},i),null===(r=t.options)||void 0===r?void 0:r.integrations),c=t.options?this.context(t.options):[],u=c[0],l=c[1],d=t.options,f=(0,n.Tt)(t,["options"]),p=(0,n.Cl)((0,n.Cl)((0,n.Cl)((0,n.Cl)({timestamp:new Date},f),{context:u,integrations:a}),l),{messageId:d.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),(0,s.$r)(p),p},t}()},am5T(t,e,r){"use strict";r.d(e,{g:()=>o,M:()=>s});var n=r("Istr"),i=r("+BO1");var o="onRemoveFromFuture",s=function(t){function e(e,r,n){var i=t.call(this)||this;return i.future=[],i.maxAttempts=e,i.queue=r,i.seen=null!=n?n:{},i}return(0,n.C6)(e,t),e.prototype.push=function(){for(var t=this,e=[],r=0;rt.maxAttempts||t.includes(e))&&(t.queue.push(e),!0)}));return this.queue=this.queue.sort((function(e,r){return t.getAttempts(e)-t.getAttempts(r)})),n},e.prototype.pushWithBackoff=function(t,e){var r=this;if(void 0===e&&(e=0),0==e&&0===this.getAttempts(t))return this.push(t)[0];var n=this.updateAttempts(t);if(n>this.maxAttempts||this.includes(t))return!1;var i=function(t){var e=Math.random()+1,r=t.minTimeout,n=void 0===r?500:r,i=t.factor,o=void 0===i?2:i,s=t.attempt,a=t.maxTimeout,c=void 0===a?1/0:a;return Math.min(e*n*Math.pow(o,s),c)}({attempt:n-1});return e>0&&io,D:()=>s});var n=r("Istr"),i=r("gW5k");function o(t,e){t.log("debug","plugin",{plugin:e.name});var r=(new Date).getTime(),o=e[t.event.type];return void 0===o?Promise.resolve(t):function(t){return(0,n.sH)(this,void 0,void 0,(function(){var e;return(0,n.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t()];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,Promise.reject(e)];case 3:return[2]}}))}))}((function(){return o.apply(e,[t])})).then((function(t){var n=(new Date).getTime()-r;return t.stats.gauge("plugin_time",n,["plugin:".concat(e.name)]),t})).catch((function(r){if(r instanceof i.d&&"middleware_cancellation"===r.type)throw r;return r instanceof i.d?(t.log("warn",r.type,{plugin:e.name,error:r}),r):(t.log("error","plugin Error",{plugin:e.name,error:r}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)]),r)}))}function s(t,e){return o(t,e).then((function(e){if(e instanceof i.j)return e;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(e)}))}},x5Lp(t,e,r){"use strict";r.d(e,{d:()=>l});var n=r("Istr"),i=r("eVtA"),o=r("am5T"),s=r("gW5k"),a=r("+BO1"),c=r("s+CE"),u=r("gCSU"),l=function(t){function e(e){var r=t.call(this)||this;return r.criticalTasks=(0,c.Z)(),r.plugins=[],r.failedInitializations=[],r.flushing=!1,r.queue=e,r.queue.on(o.g,(function(){r.scheduleFlush(0)})),r}return(0,n.C6)(e,t),e.prototype.register=function(t,e,r){return(0,n.sH)(this,void 0,void 0,(function(){var i,o,s=this;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return this.plugins.push(e),i=function(r){s.failedInitializations.push(e.name),s.emit("initialization_failure",e),console.warn(e.name,r),t.log("warn","Failed to load destination",{plugin:e.name,error:r}),s.plugins=s.plugins.filter((function(t){return t!==e}))},"destination"!==e.type||"Segment.io"===e.name?[3,1]:(e.load(t,r).catch(i),[3,4]);case 1:return n.trys.push([1,3,,4]),[4,e.load(t,r)];case 2:return n.sent(),[3,4];case 3:return o=n.sent(),i(o),[3,4];case 4:return[2]}}))}))},e.prototype.deregister=function(t,e,r){return(0,n.sH)(this,void 0,void 0,(function(){var i;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),e.unload?[4,Promise.resolve(e.unload(t,r))]:[3,2];case 1:n.sent(),n.label=2;case 2:return this.plugins=this.plugins.filter((function(t){return t.name!==e.name})),[3,4];case 3:return i=n.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:i}),[3,4];case 4:return[2]}}))}))},e.prototype.dispatch=function(t){return(0,n.sH)(this,void 0,void 0,(function(){var e;return(0,n.YH)(this,(function(r){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]}))}))},e.prototype.subscribeToDelivery=function(t){return(0,n.sH)(this,void 0,void 0,(function(){var e=this;return(0,n.YH)(this,(function(r){return[2,new Promise((function(r){var n=function(i,o){i.isSame(t)&&(e.off("flush",n),r(i))};e.on("flush",n)}))]}))}))},e.prototype.dispatchSingle=function(t){return(0,n.sH)(this,void 0,void 0,(function(){var e=this;return(0,n.YH)(this,(function(r){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch((function(r){return e.enqueuRetry(r,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:r}),t)}))]}))}))},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout((function(){e.flush().then((function(){setTimeout((function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)}),0)}))}),t))},e.prototype.deliver=function(t){return(0,n.sH)(this,void 0,void 0,(function(){var e,r,i,o;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return[4,this.criticalTasks.done()];case 1:n.sent(),e=Date.now(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=n.sent(),r=Date.now()-e,this.emit("delivery_success",t),t.stats.gauge("delivered",r),t.log("debug","Delivered",t.event),[2,t];case 4:throw i=n.sent(),o=i,t.log("error","Failed to deliver",o),this.emit("delivery_failure",t,o),t.stats.increment("delivery_failed"),i;case 5:return[2]}}))}))},e.prototype.enqueuRetry=function(t,e){return!(t instanceof s.d&&!t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,n.sH)(this,void 0,void 0,(function(){var t,e;return(0,n.YH)(this,(function(r){switch(r.label){case 0:if(0===this.queue.length)return[2,[]];if(!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=r.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=r.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}}))}))},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e=this.plugins.filter((function(e){var r,n,i;if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var o=void 0;return null===(r=e.alternativeNames)||void 0===r||r.forEach((function(e){void 0!==t[e]&&(o=t[e])})),null!==(i=null!==(n=t[e.name])&&void 0!==n?n:o)&&void 0!==i?i:!1!==("Segment.io"===e.name||t.All)})),r=(0,i.$)(e,"type"),n=r.before,o=void 0===n?[]:n,s=r.enrichment,a=void 0===s?[]:s,c=r.destination,u=void 0===c?[]:c,l=r.after;return{before:o,enrichment:a,destinations:u,after:void 0===l?[]:l}},e.prototype.flushOne=function(t){var e,r;return(0,n.sH)(this,void 0,void 0,(function(){var i,o,a,c,l,d,f,p,h,g,y,v,m,A;return(0,n.YH)(this,(function(n){switch(n.label){case 0:if(!this.isReady())throw new Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),i=this.availableExtensions(null!==(e=t.event.integrations)&&void 0!==e?e:{}),o=i.before,a=i.enrichment,c=0,l=o,n.label=1;case 1:return ci,r:()=>o});var n=r("Istr"),i=function(){function t(){this.metrics=[]}return t.prototype.increment=function(t,e,r){void 0===e&&(e=1),this.metrics.push({metric:t,value:e,tags:null!=r?r:[],type:"counter",timestamp:Date.now()})},t.prototype.gauge=function(t,e,r){this.metrics.push({metric:t,value:e,tags:null!=r?r:[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var t=this.metrics.map((function(t){return(0,n.Cl)((0,n.Cl)({},t),{tags:t.tags.join(",")})}));console.table?console.table(t):console.log(t),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map((function(t){return{m:t.metric,v:t.value,t:t.tags,k:(e=t.type,{gauge:"g",counter:"c"}[e]),e:t.timestamp};var e}))},t}(),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.C6)(e,t),e.prototype.gauge=function(){for(var t=[],e=0;ei});var n=r("VI4m"),i=function(){var t,e,r=0;return{done:function(){return t},run:function(i){var o=i();return(0,n.Q)(o)&&(1==++r&&(t=new Promise((function(t){return e=t}))),o.finally((function(){return 0==--r&&e()}))),o}}}},eVtA(t,e,r){"use strict";r.d(e,{$:()=>i});var n=r("Istr");function i(t,e){var r={};return t.forEach((function(t){var i,o=void 0;if("string"==typeof e){var s=t[e];o="string"!=typeof s?JSON.stringify(s):s}else e instanceof Function&&(o=e(t));void 0!==o&&(r[o]=(0,n.fX)((0,n.fX)([],null!==(i=r[o])&&void 0!==i?i:[],!0),[t],!1))})),r}},VI4m(t,e,r){"use strict";r.d(e,{Q:()=>n});var n=function(t){return"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then}},"+Xyy"(t,e,r){"use strict";r.d(e,{f:()=>n});var n=function(t,e){return Object.keys(t).filter((function(r){return e(r,t[r])})).reduce((function(e,r){return e[r]=t[r],e}),{})}},"y+yU"(t,e,r){"use strict";r.d(e,{$r:()=>c});var n=r("Vcmh"),i=r("R0NJ"),o="is not a string",s="is not an object",a="is nil";function c(t){!function(t){if(!(0,i.t2)(t))throw new n.y("Event",a);if("object"!=typeof t)throw new n.y("Event",s)}(t),function(t){if(!(0,i.Kg)(t.type))throw new n.y(".type",o)}(t),function(t){if(!(0,i.Kg)(t.messageId))throw new n.y(".messageId",o)}(t),"track"===t.type&&(function(t){if(!(0,i.Kg)(t.event))throw new n.y(".event",o)}(t),function(t){if(!(0,i.Qd)(t.properties))throw new n.y(".properties",s)}(t)),["group","identify"].includes(t.type)&&function(t){if(!(0,i.Qd)(t.traits))throw new n.y(".traits",s)}(t)}},Vcmh(t,e,r){"use strict";r.d(e,{y:()=>i});var n=r("Istr"),i=function(t){function e(e,r){var n=t.call(this,"".concat(e," ").concat(r))||this;return n.field=e,n}return(0,n.C6)(e,t),e}(Error)},R0NJ(t,e,r){"use strict";function n(t){return"string"==typeof t}function i(t){return"number"==typeof t}function o(t){return"function"==typeof t}function s(t){return null!=t}function a(t){return"object"===Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}r.d(e,{Et:()=>i,Kg:()=>n,Qd:()=>a,Tn:()=>o,t2:()=>s})},DoPR(t,e,r){"use strict";r.d(e,{u:()=>n});var n=function(){var t,e,r=!1,n=new Promise((function(n,i){t=function(){for(var t=[],e=0;en});var n=function(){function t(t){var e;this.callbacks={},this.warned=!1,this.maxListeners=null!==(e=null==t?void 0:t.maxListeners)&&void 0!==e?e:10}return t.prototype.warnIfPossibleMemoryLeak=function(t){this.warned||this.maxListeners&&this.callbacks[t].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(t)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},t.prototype.on=function(t,e){return this.callbacks[t]?(this.callbacks[t].push(e),this.warnIfPossibleMemoryLeak(t)):this.callbacks[t]=[e],this},t.prototype.once=function(t,e){var r=this,n=function(){for(var i=[],o=0;oE});var n=r("Istr"),i=r("EZEX"),o=r("p+Ej"),s=r("uBFa"),a=r("VsvY"),c=r("ll67"),u=r("DoPR"),l=r("WDAp"),d=r("p3pH"),f=r("xYSk"),p=r("+fde"),h=r("xQIk"),g=r("+ncP"),y=r("dSSP"),v=r("V6pm");function m(t,e,r){return(0,n.sH)(this,void 0,void 0,(function(){return(0,n.YH)(this,(function(n){switch(n.label){case 0:return[4,A(t,e)];case 1:return n.sent(),(0,p.o_)(t,r),[2]}}))}))}var A=function(t,e){return(0,n.sH)(void 0,void 0,void 0,(function(){return(0,n.YH)(this,(function(r){switch(r.label){case 0:return e.includes("ajs_")?[4,t.queryString(e).catch(console.error)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))};function _(t,e,o,s,a,u,h){var g,y,v;return void 0===a&&(a=[]),(0,n.sH)(this,void 0,void 0,(function(){var m,A,_,b,E,S,w,T,x,O,I,k,P,L,R=this;return(0,n.YH)(this,(function(C){switch(C.label){case 0:return function(t,e){(0,p.jF)(t,e),(0,p.SQ)(t,e)}(o,h),m=null==a?void 0:a.filter((function(t){return"object"==typeof t})),A=null==a?void 0:a.filter((function(t){return"function"==typeof t&&"string"==typeof t.pluginName})),function(t){var e,r,n;return"test"!==(0,i.P)().NODE_ENV&&(null!==(n=null===(r=null===(e=t.middlewareSettings)||void 0===e?void 0:e.routingRules)||void 0===r?void 0:r.length)&&void 0!==n?n:0)>0}(e)?[4,r.e(9010).then(r.bind(r,"LGES")).then((function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)}))]:[3,2];case 1:return b=C.sent(),[3,3];case 2:b=void 0,C.label=3;case 3:return _=b,N=e,"test"!==(0,i.P)().NODE_ENV&&Object.keys(N.integrations).length>1||u.length>0?[4,r.e(5050).then(r.bind(r,"lUmn")).then((function(r){return r.ajsDestinations(t,e,o.integrations,s,_,u)}))]:[3,5];case 4:return S=C.sent(),[3,6];case 5:S=[],C.label=6;case 6:return E=S,e.legacyVideoPluginsEnabled?[4,r.e(9694).then(r.bind(r,"zx1s")).then((function(t){return t.loadLegacyVideoPlugins(o)}))]:[3,8];case 7:C.sent(),C.label=8;case 8:return(null===(g=s.plan)||void 0===g?void 0:g.track)?[4,r.e(3104).then(r.bind(r,"ntmr")).then((function(t){var r;return t.schemaFilter(null===(r=s.plan)||void 0===r?void 0:r.track,e)}))]:[3,10];case 9:return T=C.sent(),[3,11];case 10:T=void 0,C.label=11;case 11:return w=T,x=(0,c.J)(e,s),[4,(0,d.A)(e,o.integrations,x,s,_,A).catch((function(){return[]}))];case 12:return O=C.sent(),I=(0,n.fX)((0,n.fX)([l.F6],E,!0),O,!0),w&&I.push(w),!1===(null===(y=s.integrations)||void 0===y?void 0:y.All)&&!s.integrations["Segment.io"]||s.integrations&&!1===s.integrations["Segment.io"]?[3,14]:(P=(k=I).push,[4,(0,f.u)(o,x["Segment.io"],e.integrations)]);case 13:P.apply(k,[C.sent()]),C.label=14;case 14:return[4,o.register.apply(o,(0,n.fX)((0,n.fX)([],I,!1),m,!1))];case 15:return L=C.sent(),[4,(0,p.eg)(o,h)];case 16:return C.sent(),Object.entries(null!==(v=e.enabledMiddleware)&&void 0!==v?v:{}).some((function(t){return t[1]}))?[4,r.e(521).then(r.bind(r,"Ls6M")).then((function(t){var r=t.remoteMiddlewares;return(0,n.sH)(R,void 0,void 0,(function(){var t,i;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return[4,r(L,e,s.obfuscate)];case 1:return t=n.sent(),i=t.map((function(t){return o.addSourceMiddleware(t)})),[2,Promise.all(i)]}}))}))}))]:[3,18];case 17:C.sent(),C.label=18;case 18:return[4,(0,p.Dz)(o,h)];case 19:return C.sent(),[2,L]}var N}))}))}function b(t,e,r){var i,c,u,l,d,f,A,b,E;return void 0===e&&(e={}),(0,n.sH)(this,void 0,void 0,(function(){var S,w,T,x,O,I,k,P,L,R;return(0,n.YH)(this,(function(C){switch(C.label){case 0:return!0===e.disable?[2,[new s.cJ,a.o.system()]]:(e.globalAnalyticsKey&&(0,y.rY)(e.globalAnalyticsKey),t.cdnURL&&(0,o.qQ)(t.cdnURL),e.initialPageview&&r.add(new p.l("page",[])),S=function(){var t,e,r=null!==(t=window.location.hash)&&void 0!==t?t:"",n=null!==(e=window.location.search)&&void 0!==e?e:"";return n.length?n:r.replace(/(?=#).*(?=\?)/,"")}(),w=null!==(i=t.cdnURL)&&void 0!==i?i:(0,o.I2)(),null===(c=t.cdnSettings)||void 0===c?[3,1]:(x=c,[3,3]));case 1:return[4,(N=t.writeKey,D=w,(0,v.h)("".concat(D,"/v1/projects/").concat(N,"/settings")).then((function(t){return t.ok?t.json():t.text().then((function(t){throw new Error(t)}))})).catch((function(t){throw console.error(t.message),t})))];case 2:x=C.sent(),C.label=3;case 3:return T=x,e.updateCDNSettings&&(T=e.updateCDNSettings(T)),"function"!=typeof e.disable?[3,5]:[4,e.disable(T)];case 4:if(C.sent())return[2,[new s.cJ,a.o.system()]];C.label=5;case 5:return O=null===(l=null===(u=T.integrations["Segment.io"])||void 0===u?void 0:u.retryQueue)||void 0===l||l,e=(0,n.Cl)({retryQueue:O},e),I=new s.j0((0,n.Cl)((0,n.Cl)({},t),{cdnSettings:T,cdnURL:w}),e),(0,h.B)(I),k=null!==(d=t.plugins)&&void 0!==d?d:[],P=null!==(f=t.classicIntegrations)&&void 0!==f?f:[],L=null===(A=e.integrations)||void 0===A?void 0:A["Segment.io"],g.U.initRemoteMetrics((0,n.Cl)((0,n.Cl)({},T.metrics),{host:null!==(b=null==L?void 0:L.apiHost)&&void 0!==b?b:null===(E=T.metrics)||void 0===E?void 0:E.host,protocol:null==L?void 0:L.protocol})),[4,_(t.writeKey,T,I,e,k,P,r)];case 6:return R=C.sent(),I.initialized=!0,I.emit("initialize",t,e),[4,m(I,S,r)];case 7:return C.sent(),[2,[I,R]]}var N,D}))}))}var E=function(t){function e(){var e=this,r=(0,u.u)(),n=r.promise,i=r.resolve;return e=t.call(this,(function(t){return n.then((function(e){return b(e[0],e[1],t)}))}))||this,e._resolveLoadStart=function(t,e){return i([t,e])},e}return(0,n.C6)(e,t),e.prototype.load=function(t,e){return void 0===e&&(e={}),this._resolveLoadStart(t,e),this},e.load=function(t,r){return void 0===r&&(r={}),(new e).load(t,r)},e.standalone=function(t,r){return e.load({writeKey:t},r).then((function(t){return t[0]}))},e}(p.Sc)},uBFa(t,e,r){"use strict";r.d(e,{cJ:()=>R,j0:()=>L});var n=r("Istr"),i=r("6c0+"),o=r("qINz"),s=r("VsvY"),a=r("F8q0"),c=r("+BO1"),u=r("CYLC"),l=r("jy0+"),d=r("ZnGH"),f=r("+kXZ"),p=r("CyJw"),h=r("BcrC"),g=r("UFhz"),y=r("am5T"),v=r("lDiy"),m=r("WD8g"),A=r("IfOs"),_=r("z7+Q"),b=r("SwRO"),E=r("WXZ+"),S=r("dSSP"),w=r("+fde"),T=r("xYSk"),x="This is being deprecated and will be not be available in future releases of Analytics JS",O=(0,v.m)(),I=null==O?void 0:O.analytics;var k=function(){function t(t,e){var r;this.timeout=300,this._getSegmentPluginMetadata=function(){var t;return null===(t=e.plugins.find(T.n))||void 0===t?void 0:t.metadata},this.writeKey=t.writeKey;this.cdnSettings=null!==(r=t.cdnSettings)&&void 0!==r?r:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=t.cdnURL}return Object.defineProperty(t.prototype,"apiHost",{get:function(){var t,e;return null===(e=null===(t=this._getSegmentPluginMetadata)||void 0===t?void 0:t.call(this))||void 0===e?void 0:e.apiHost},enumerable:!1,configurable:!0}),t}();function P(){console.warn(x)}var L=function(t){function e(e,r,i,o,s){var a,c,l=this;(l=t.call(this)||this)._debug=!1,l.initialized=!1,l.user=function(){return l._user},l.init=l.initialize.bind(l),l.log=P,l.addIntegrationMiddleware=P,l.listeners=P,l.addEventListener=P,l.removeAllListeners=P,l.removeListener=P,l.removeEventListener=P,l.hasListeners=P,l.add=P,l.addIntegration=P;var g=null==r?void 0:r.cookie,v=null!==(a=null==r?void 0:r.disableClientPersistence)&&void 0!==a&&a;l.queue=null!=i?i:function(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var n=e?10:1,i=r?new y.M(n,[]):new h.x(n,t);return new d.C(i)}("".concat(e.writeKey,":event-queue"),null==r?void 0:r.retryQueue,v),l.settings=new k(e,l.queue);var m=null==r?void 0:r.storage;return l._universalStorage=l.createStore(v,m,g),l._user=null!=o?o:new f.K((0,n.Cl)({persist:!v,storage:null==r?void 0:r.storage},null==r?void 0:r.user),g).load(),l._group=null!=s?s:new f.Y((0,n.Cl)({persist:!v,storage:null==r?void 0:r.storage},null==r?void 0:r.group),g).load(),l.eventFactory=new u.r(l._user),l.integrations=null!==(c=null==r?void 0:r.integrations)&&void 0!==c?c:{},l.options=null!=r?r:{},(0,p.A)(l),l}return(0,n.C6)(e,t),e.prototype.createStore=function(t,e,r){return t?new b.l([new _.X]):e&&(0,E.a)(e)?new b.l((0,m.nj)((0,m.Hn)(e.stores,r))):new b.l((0,m.nj)([A.M.LocalStorage,{name:A.M.Cookie,settings:r},A.M.Memory]))},Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var t=[],e=0;ei,ZZ:()=>a,ac:()=>s,oH:()=>o});var n=r("R0NJ");function i(t,e,r,i){var o,s=[t,e,r,i],a=(0,n.Qd)(t)?t.event:t;if(!a||!(0,n.Kg)(a))throw new Error("Event missing");var c=(0,n.Qd)(t)?null!==(o=t.properties)&&void 0!==o?o:{}:(0,n.Qd)(e)?e:{},u={};return(0,n.Tn)(r)||(u=null!=r?r:{}),(0,n.Qd)(t)&&!(0,n.Tn)(e)&&(u=null!=e?e:{}),[a,c,u,s.find(n.Tn)]}function o(t,e,r,i,o){var s,a,c=null,u=null,l=[t,e,r,i,o],d=l.filter(n.Kg);1===d.length?(0,n.Kg)(l[1])?(u=l[1],c=null):(u=d[0],c=null):2===d.length&&("string"==typeof l[0]&&(c=l[0]),"string"==typeof l[1]&&(u=l[1]));var f=l.find(n.Tn),p=l.filter(n.Qd);return 1===p.length?(0,n.Qd)(l[2])?(a={},s=l[2]):(0,n.Qd)(l[3])?(s={},a=l[3]):(s=p[0],a={}):2===p.length&&(s=p[0],a=p[1]),[c,u,null!=s?s:s={},null!=a?a:a={},f]}var s=function(t){return function(){for(var e,r,i,o=[],s=0;sl,SQ:()=>f,Sc:()=>_,ar:()=>g,eg:()=>d,jF:()=>p,l:()=>v,o_:()=>h});var n=r("Istr"),i=r("wq0J"),o=r("UFhz"),s=r("dSSP"),a=r("LFtB"),c=r("1qTL"),u=function(t,e,r){r.getAndRemove(t).forEach((function(t){A(e,t).catch(console.error)}))},l=function(t,e){return(0,n.sH)(void 0,void 0,void 0,(function(){var r,i,o;return(0,n.YH)(this,(function(n){switch(n.label){case 0:r=0,i=e.getAndRemove("addSourceMiddleware"),n.label=1;case 1:return ro,s:()=>i});var n=r("enLX");function i(){return!(0,n.B)()||window.navigator.onLine}function o(){return!i()}},"X+VD"(t,e,r){"use strict";r.d(e,{a:()=>n});var n="api.segment.io/v1"},VsvY(t,e,r){"use strict";r.d(e,{o:()=>s});var n=r("Istr"),i=r("gW5k"),o=r("+ncP"),s=function(t){function e(e,r){return t.call(this,e,r,new o.U)||this}return(0,n.C6)(e,t),e.system=function(){return new this({type:"track",event:"system"})},e}(i.j)},enLX(t,e,r){"use strict";function n(){return"undefined"!=typeof window}function i(){return!n()}r.d(e,{B:()=>n,S:()=>i})},CYLC(t,e,r){"use strict";r.d(e,{r:()=>s});var n=r("Istr"),i=r("e4Ra"),o=r("30oF"),s=function(t){function e(e){var r=t.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,i.v4)())},onEventMethodCall:function(t){var e=t.options;r.maybeUpdateAnonId(e)},onFinishedEvent:function(t){return r.addIdentity(t),t}})||this;return r.user=e,r}return(0,n.C6)(e,t),e.prototype.maybeUpdateAnonId=function(t){(null==t?void 0:t.anonymousId)&&this.user.anonymousId(t.anonymousId)},e.prototype.addIdentity=function(t){this.user.id()&&(t.userId=this.user.id()),this.user.anonymousId()&&(t.anonymousId=this.user.anonymousId())},e.prototype.track=function(e,r,n,i,s){var a=t.prototype.track.call(this,e,r,n,i);return(0,o.m)(a,s),a},e.prototype.page=function(e,r,n,i,s,a){var c=t.prototype.page.call(this,e,r,n,i,s);return(0,o.m)(c,a),c},e.prototype.screen=function(e,r,n,i,s,a){var c=t.prototype.screen.call(this,e,r,n,i,s);return(0,o.m)(c,a),c},e.prototype.identify=function(e,r,n,i,s){var a=t.prototype.identify.call(this,e,r,n,i);return(0,o.m)(a,s),a},e.prototype.group=function(e,r,n,i,s){var a=t.prototype.group.call(this,e,r,n,i);return(0,o.m)(a,s),a},e.prototype.alias=function(e,r,n,i,s){var a=t.prototype.alias.call(this,e,r,n,i);return(0,o.m)(a,s),a},e}(r("jJDc").i)},xQIk(t,e,r){"use strict";r.d(e,{B:()=>s});var n,i,o=null!==(n=(i=(0,r("lDiy").m)()).__SEGMENT_INSPECTOR__)&&void 0!==n?n:i.__SEGMENT_INSPECTOR__={},s=function(t){var e;return null===(e=o.attach)||void 0===e?void 0:e.call(o,t)}},"30oF"(t,e,r){"use strict";r.d(e,{m:()=>s});var n=r("Istr"),i=r("g31q"),o=r("LFtB"),s=function(t,e){void 0===e&&(e=(0,o.eJ)());var r,s=t.context;"page"===t.type&&(r=t.properties&&(0,i.U)(t.properties,Object.keys(e)),t.properties=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},e),t.properties),t.name?{name:t.name}:{})),s.page=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},e),r),s.page)}},"jy0+"(t,e,r){"use strict";r.d(e,{h:()=>n});var n=function(t){return"addMiddleware"in t&&"destination"===t.type}},s51q(t,e,r){"use strict";function n(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}}r.d(e,{p:()=>n})},ZnGH(t,e,r){"use strict";r.d(e,{C:()=>a});var n=r("Istr"),i=r("BcrC"),o=r("x5Lp"),s=r("qINz"),a=function(t){function e(e){return t.call(this,"string"==typeof e?new i.x(4,e):e)||this}return(0,n.C6)(e,t),e.prototype.flush=function(){return(0,n.sH)(this,void 0,void 0,(function(){return(0,n.YH)(this,(function(e){return(0,s.a)()?[2,[]]:[2,t.prototype.flush.call(this)]}))}))},e}(o.d)},"+ncP"(t,e,r){"use strict";r.d(e,{U:()=>f});var n=r("Istr"),i=r("Ohc8"),o=r("V6pm"),s=r("UFhz"),a=r("1qTL"),c=r("X+VD");function u(t){console.error("Error sending segment performance metrics",t)}var l,d=function(){function t(t){var e,r,n,i,o,s=this;if(this.host=null!==(e=null==t?void 0:t.host)&&void 0!==e?e:c.a,this.sampleRate=null!==(r=null==t?void 0:t.sampleRate)&&void 0!==r?r:1,this.flushTimer=null!==(n=null==t?void 0:t.flushTimer)&&void 0!==n?n:3e4,this.maxQueueSize=null!==(i=null==t?void 0:t.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var a=!1,l=function(){a||(a=!0,s.flush().catch(u),a=!1,setTimeout(l,s.flushTimer))};l()}}return t.prototype.increment=function(t,e){if(t.includes("analytics_js.")&&0!==e.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var r=function(t,e,r){var i=e.reduce((function(t,e){var r=e.split(":"),n=r[0],i=r[1];return t[n]=i,t}),{});return{type:"Counter",metric:t,value:1,tags:(0,n.Cl)((0,n.Cl)({},i),{library:"analytics.js",library_version:"web"===r?"next-".concat(s.r):"npm:next-".concat(s.r)})}}(t,e,(0,a.X)());this.queue.push(r),t.includes("error")&&this.flush().catch(u)}},t.prototype.flush=function(){return(0,n.sH)(this,void 0,void 0,(function(){var t=this;return(0,n.YH)(this,(function(e){switch(e.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(e){u(e),t.sampleRate=0}))];case 1:return e.sent(),[2]}}))}))},t.prototype.send=function(){return(0,n.sH)(this,void 0,void 0,(function(){var t,e,r;return(0,n.YH)(this,(function(n){return t={series:this.queue},this.queue=[],e={"Content-Type":"text/plain"},r="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(r,{headers:e,body:JSON.stringify(t),method:"POST"})]}))}))},t}(),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.C6)(e,t),e.initRemoteMetrics=function(t){l=new d(t)},e.prototype.increment=function(e,r,n){t.prototype.increment.call(this,e,r,n),null==l||l.increment(e,null!=n?n:[])},e}(i.p)},oBei(t,e,r){"use strict";function n(t,e){var r=e.methodName,n=e.integrationName,i=e.type,o=e.didError,s=void 0!==o&&o;t.stats.increment("analytics_js.integration.invoke".concat(s?".error":""),1,["method:".concat(r),"integration_name:".concat(n),"type:".concat(i)])}r.d(e,{y:()=>n})},Sdb8(t,e,r){"use strict";r.d(e,{W:()=>s});var n=r("Istr"),i=r("OiXb"),o=r("yDlh"),s=function(){function t(e){void 0===e&&(e=t.defaults),this.options=(0,n.Cl)((0,n.Cl)({},t.defaults),e)}return Object.defineProperty(t,"defaults",{get:function(){return{maxage:365,domain:(0,o.f)(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),t.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},t.prototype.get=function(t){var e;try{var r=i.A.get(t);if(null==r)return null;try{return null!==(e=JSON.parse(r))&&void 0!==e?e:null}catch(t){return null!=r?r:null}}catch(t){return null}},t.prototype.set=function(t,e){"string"==typeof e?i.A.set(t,e,this.opts()):null===e?i.A.remove(t,this.opts()):i.A.set(t,JSON.stringify(e),this.opts())},t.prototype.remove=function(t){return i.A.remove(t,this.opts())},t}()},WD8g(t,e,r){"use strict";r.d(e,{Hn:()=>u,nj:()=>c});var n=r("Sdb8"),i=r("jxmA"),o=r("z7+Q"),s=r("WXZ+"),a=r("IfOs");function c(t){return t.map((function(t){var e,r;switch((0,s.z)(t)?(e=t.name,r=t.settings):e=t,e){case a.M.Cookie:return new n.W(r);case a.M.LocalStorage:return new i.D;case a.M.Memory:return new o.X;default:throw new Error("Unknown Store Type: ".concat(t))}}))}function u(t,e){return t.map((function(t){return e&&t===a.M.Cookie?{name:t,settings:e}:t}))}},jxmA(t,e,r){"use strict";r.d(e,{D:()=>n});var n=function(){function t(){}return t.prototype.localStorageWarning=function(t,e){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(e))},t.prototype.get=function(t){var e;try{var r=localStorage.getItem(t);if(null===r)return null;try{return null!==(e=JSON.parse(r))&&void 0!==e?e:null}catch(t){return null!=r?r:null}}catch(e){return this.localStorageWarning(t,"unavailable"),null}},t.prototype.set=function(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch(e){this.localStorageWarning(t,"full")}},t.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch(e){this.localStorageWarning(t,"unavailable")}},t}()},"z7+Q"(t,e,r){"use strict";r.d(e,{X:()=>n});var n=function(){function t(){this.cache={}}return t.prototype.get=function(t){var e;return null!==(e=this.cache[t])&&void 0!==e?e:null},t.prototype.set=function(t,e){this.cache[t]=e},t.prototype.remove=function(t){delete this.cache[t]},t}()},"WXZ+"(t,e,r){"use strict";r.d(e,{a:()=>i,z:()=>o});var n=r("IfOs");function i(t){return t&&t.stores&&Array.isArray(t.stores)&&t.stores.every((function(t){return Object.values(n.M).includes(t)}))}function o(t){return"object"==typeof t&&void 0!==t.name}},IfOs(t,e,r){"use strict";r.d(e,{M:()=>n});var n={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"}},SwRO(t,e,r){"use strict";r.d(e,{l:()=>i});var n=function(t,e,r,n){console.warn("".concat(t.constructor.name,": Can't ").concat(e,' key "').concat(r,'" | Err: ').concat(n))},i=function(){function t(t){this.stores=t}return t.prototype.get=function(t){for(var e=null,r=0,i=this.stores;rf,Y:()=>h});var n=r("Istr"),i=r("e4Ra"),o=r("CyJw"),s=r("WD8g"),a=r("IfOs"),c=r("z7+Q"),u=r("SwRO"),l=r("WXZ+"),d={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},f=function(){function t(t,e){void 0===t&&(t=d);var r,s,c,u,l=this;this.options={},this.id=function(t){if(l.options.disable)return null;var e=l.identityStore.getAndSync(l.idKey);void 0!==t&&(l.identityStore.set(l.idKey,t),t!==e&&null!==e&&null!==t&&l.anonymousId(null));var r=l.identityStore.getAndSync(l.idKey);if(r)return r;var n=l.legacyUserStore.get(d.cookie.oldKey);return n?"object"==typeof n?n.id:n:null},this.anonymousId=function(t){var e,r;if(l.options.disable)return null;if(void 0===t){var n=null!==(e=l.identityStore.getAndSync(l.anonKey))&&void 0!==e?e:null===(r=l.legacySIO())||void 0===r?void 0:r[0];if(n)return n}return null===t?(l.identityStore.set(l.anonKey,null),l.identityStore.getAndSync(l.anonKey)):(l.identityStore.set(l.anonKey,null!=t?t:(0,i.v4)()),l.identityStore.getAndSync(l.anonKey))},this.traits=function(t){var e;if(!l.options.disable)return null===t&&(t={}),t&&l.traitsStore.set(l.traitsKey,null!=t?t:{}),null!==(e=l.traitsStore.get(l.traitsKey))&&void 0!==e?e:{}},this.options=(0,n.Cl)((0,n.Cl)({},d),t),this.cookieOptions=e,this.idKey=null!==(s=null===(r=t.cookie)||void 0===r?void 0:r.key)&&void 0!==s?s:d.cookie.key,this.traitsKey=null!==(u=null===(c=t.localStorage)||void 0===c?void 0:c.key)&&void 0!==u?u:d.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,e),this.legacyUserStore=this.createStorage(this.options,e,(function(t){return t===a.M.Cookie})),this.traitsStore=this.createStorage(this.options,e,(function(t){return t!==a.M.Cookie}));var f=this.legacyUserStore.get(d.cookie.oldKey);f&&"object"==typeof f&&(f.id&&this.id(f.id),f.traits&&this.traits(f.traits)),(0,o.A)(this)}return t.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var e=t.split("----");return[e[0],e[1]]},t.prototype.identify=function(t,e){if(!this.options.disable){e=null!=e?e:{};var r=this.id();null!==r&&r!==t||(e=(0,n.Cl)((0,n.Cl)({},this.traits()),e)),t&&this.id(t),this.traits(e)}},t.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},t.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},t.prototype.load=function(){return new t(this.options,this.cookieOptions)},t.prototype.save=function(){return!0},t.prototype.createStorage=function(t,e,r){var n=[a.M.LocalStorage,a.M.Cookie,a.M.Memory];return t.disable?new u.l([]):t.persist?(void 0!==t.storage&&null!==t.storage&&(0,l.a)(t.storage)&&(n=t.storage.stores),t.localStorageFallbackDisabled&&(n=n.filter((function(t){return t!==a.M.LocalStorage}))),r&&(n=n.filter(r)),new u.l((0,s.nj)((0,s.Hn)(n,e)))):new u.l([new c.X])},t.defaults=d,t}(),p={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},h=function(t){function e(e,r){void 0===e&&(e=p);var i=t.call(this,(0,n.Cl)((0,n.Cl)({},p),e),r)||this;return i.anonymousId=function(t){},(0,o.A)(i),i}return(0,n.C6)(e,t),e}(f)},yDlh(t,e,r){"use strict";r.d(e,{f:()=>i});var n=r("OiXb");function i(t){var e=function(t){try{return new URL(t)}catch(t){return}}(t);if(e)for(var r=function(t){var e=t.hostname.split("."),r=e[e.length-1],n=[];if(4===e.length&&parseInt(r,10)>0)return n;if(e.length<=1)return n;for(var i=e.length-2;i>=0;--i)n.push(e.slice(i).join("."));return n}(e),i=0;in});var n="1.81.1"},CyJw(t,e,r){"use strict";function n(t){for(var e=t.constructor.prototype,r=0,n=Object.getOwnPropertyNames(e);rn})},lgTd(t,e,r){"use strict";r.d(e,{w:()=>i});var n=r("Istr");function i(t){return(0,n.sH)(this,void 0,void 0,(function(){var e;return(0,n.YH)(this,(function(r){return(e=navigator.userAgentData)?t?[2,e.getHighEntropyValues(t).catch((function(){return e.toJSON()}))]:[2,e.toJSON()]:[2,void 0]}))}))}},V6pm(t,e,r){"use strict";function n(t,e){return e=e||{},new Promise((function(r,n){var i=new XMLHttpRequest,o=[],s=[],a={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return o},entries:function(){return s},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var u in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){o.push(e=e.toLowerCase()),s.push([e,r]),a[e]=a[e]?a[e]+","+r:r})),r(c())},i.onerror=n,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(u,e.headers[u]);i.send(e.body||null)}))}r.d(e,{h:()=>o});var i=r("lDiy"),o=function(){for(var t=[],e=0;en});var n=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:null}},EZEX(t,e,r){"use strict";function n(){return"undefined"!=typeof process&&process.env?process.env:{}}r.d(e,{P:()=>n})},dSSP(t,e,r){"use strict";r.d(e,{Ud:()=>s,kJ:()=>i,rY:()=>o});var n="analytics";function i(){return window[n]}function o(t){n=t}function s(t){window[n]=t}},wq0J(t,e,r){"use strict";r.d(e,{Q:()=>n});var n=function(t){return"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then}},Jv0H(t,e,r){"use strict";function n(t){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(e){return e.src===t}))}function i(t,e){var r=n(t);if(void 0!==r){var i=null==r?void 0:r.getAttribute("status");if("loaded"===i)return Promise.resolve(r);if("loading"===i)return new Promise((function(t,e){r.addEventListener("load",(function(){return t(r)})),r.addEventListener("error",(function(t){return e(t)}))}))}return new Promise((function(r,n){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=t,o.async=!0,o.setAttribute("status","loading");for(var s=0,a=Object.entries(null!=e?e:{});so,k:()=>i})},ll67(t,e,r){"use strict";r.d(e,{J:()=>i});var n=r("Istr");function i(t,e){var r,i=Object.entries(null!==(r=e.integrations)&&void 0!==r?r:{}).reduce((function(t,e){var r,i,o=e[0],s=e[1];return"object"==typeof s?(0,n.Cl)((0,n.Cl)({},t),((r={})[o]=s,r)):(0,n.Cl)((0,n.Cl)({},t),((i={})[o]={},i))}),{});return Object.entries(t.integrations).reduce((function(t,e){var r,o=e[0],s=e[1];return(0,n.Cl)((0,n.Cl)({},t),((r={})[o]=(0,n.Cl)((0,n.Cl)({},s),i[o]),r))}),{})}},lhX1(t,e,r){"use strict";r.d(e,{D:()=>n});var n=function(t){var e=!1;window.addEventListener("pagehide",(function(){e||t(e=!0)})),document.addEventListener("visibilitychange",(function(){if("hidden"==document.visibilityState){if(e)return;e=!0}else e=!1;t(e)}))}},"U+vR"(t,e,r){"use strict";r.d(e,{_:()=>i});var n=r("Istr"),i=function(t,e){return(0,n.sH)(void 0,void 0,void 0,(function(){var r;return(0,n.YH)(this,(function(i){return r=function(i){return(0,n.sH)(void 0,void 0,void 0,(function(){var o;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return t(i)?(o=r,[4,e()]):[3,2];case 1:return[2,o.apply(void 0,[n.sent()])];case 2:return[2]}}))}))},[2,r(void 0)]}))}))}},"p+Ej"(t,e,r){"use strict";r.d(e,{I2:()=>a,YM:()=>c,qQ:()=>s});var n,i=r("dSSP"),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,s=function(t){var e=(0,i.kJ)();e&&(e._cdn=t),n=t},a=function(){var t,e=null!=n?n:null===(t=(0,i.kJ)())||void 0===t?void 0:t._cdn;if(e)return e;var r,s=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach((function(t){var e,n=null!==(e=t.getAttribute("src"))&&void 0!==e?e:"",i=o.exec(n);i&&i[1]&&(r=i[1])})),r);return s||"https://cdn.segment.com"},c=function(){var t=a();return"".concat(t,"/next-integrations")}},g31q(t,e,r){"use strict";r.d(e,{U:()=>i});var n=r("Istr");function i(t,e){return Object.assign.apply(Object,(0,n.fX)([{}],e.map((function(e){var r;if(t&&Object.prototype.hasOwnProperty.call(t,e))return(r={})[e]=t[e],r})),!1))}},BcrC(t,e,r){"use strict";r.d(e,{x:()=>f});var n=r("Istr"),i=r("am5T"),o=r("VsvY"),s=r("enLX"),a={getItem:function(){},setItem:function(){},removeItem:function(){}};try{a=(0,s.B)()&&window.localStorage?window.localStorage:a}catch(t){console.warn("Unable to access localStorage",t)}function c(t){var e=a.getItem(t);return(e?JSON.parse(e):[]).map((function(t){return new o.o(t.event,t.id)}))}function u(t){var e=a.getItem(t);return e?JSON.parse(e):{}}function l(t){a.removeItem(t)}function d(t,e,r){void 0===r&&(r=0);var n="persisted-queue:v1:".concat(t,":lock"),i=a.getItem(n),o=i?JSON.parse(i):null,s=null===o||function(t){return(new Date).getTime()>t}(o);if(s)return a.setItem(n,JSON.stringify((new Date).getTime()+50)),e(),void a.removeItem(n);!s&&r<3?setTimeout((function(){d(t,e,r+1)}),50):console.error("Unable to retrieve lock")}var f=function(t){function e(e,r){var i=t.call(this,e,[])||this,o="persisted-queue:v1:".concat(r,":items"),s="persisted-queue:v1:".concat(r,":seen"),f=[],p={};return d(r,(function(){try{f=c(o),p=u(s),l(o),l(s),i.queue=(0,n.fX)((0,n.fX)([],f,!0),i.queue,!0),i.seen=(0,n.Cl)((0,n.Cl)({},p),i.seen)}catch(t){console.error(t)}})),window.addEventListener("pagehide",(function(){if(i.todo>0){var t=(0,n.fX)((0,n.fX)([],i.queue,!0),i.future,!0);try{d(r,(function(){!function(t,e){var r=c(t),i=(0,n.fX)((0,n.fX)([],e,!0),r,!0).reduce((function(t,e){var r;return(0,n.Cl)((0,n.Cl)({},t),((r={})[e.id]=e,r))}),{});a.setItem(t,JSON.stringify(Object.values(i)))}(o,t),function(t,e){var r=u(t);a.setItem(t,JSON.stringify((0,n.Cl)((0,n.Cl)({},r),e)))}(s,i.seen)}))}catch(t){console.error(t)}}})),i}return(0,n.C6)(e,t),e}(i.M)},ceV8(t,e,r){"use strict";r.d(e,{W:()=>i});var n=r("wuVP");function i(t,e){var r=new n.Facade(t,e);return"track"===t.type&&(r=new n.Track(t,e)),"identify"===t.type&&(r=new n.Identify(t,e)),"page"===t.type&&(r=new n.Page(t,e)),"alias"===t.type&&(r=new n.Alias(t,e)),"group"===t.type&&(r=new n.Group(t,e)),"screen"===t.type&&(r=new n.Screen(t,e)),Object.defineProperty(r,"obj",{value:t,writable:!0}),r}},"1qTL"(t,e,r){"use strict";r.d(e,{X:()=>i});var n="npm";function i(){return n}},WDAp(t,e,r){"use strict";r.d(e,{F6:()=>g});var n,i=r("Istr"),o=r("OiXb"),s=r("UFhz"),a=r("1qTL"),c=r("yDlh"),u=r("s51q"),l=r("Sdb8"),d=r("SwRO"),f=r("lgTd");function p(){if(n)return n;var t=(0,c.f)(window.location.href);return n={expires:31536e6,secure:!1,path:"/"},t&&(n.domain=t),n}var h=function(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(e,r){return(0,i.sH)(t,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(e){switch(e.label){case 0:this.instance=r,e.label=1;case 1:return e.trys.push([1,3,,4]),t=this,[4,(0,f.w)(this.instance.options.highEntropyValuesClientHints)];case 2:return t.userAgentData=e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2,Promise.resolve()]}}))}))},this.enrich=function(e){var r,n,c=e.event.context,f=c.page.search||"",h="object"==typeof f?function(t){try{var e=new URLSearchParams;return Object.entries(t).forEach((function(t){var r=t[0],n=t[1];Array.isArray(n)?n.forEach((function(t){return e.append(r,t)})):e.append(r,n)})),e.toString()}catch(t){return""}}(f):f;c.userAgent=navigator.userAgent,c.userAgentData=t.userAgentData;var g=navigator.userLanguage||navigator.language;void 0===c.locale&&void 0!==g&&(c.locale=g),null!==(r=c.library)&&void 0!==r||(c.library={name:"analytics.js",version:"".concat("web"===(0,a.X)()?"next":"npm:next","-").concat(s.r)}),h&&!c.campaign&&(c.campaign=function(t){return t.startsWith("?")&&(t=t.substring(1)),(t=t.replace(/\?/g,"&")).split("&").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1],o=void 0===i?"":i;if(n.includes("utm_")&&n.length>4){var s=n.slice(4);"campaign"===s&&(s="name"),t[s]=(0,u.p)(o)}return t}),{})}(h));var y=function(){var t=o.A.get("_ga");if(t&&t.startsWith("amp"))return t}();y&&(c.amp={id:y}),function(t,e,r){var n,o=new d.l(r?[]:[new l.W(p())]),s=o.get("s:context.referrer"),a=null!==(n=function(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1));for(var r=0,n=(t=t.replace(/\?/g,"&")).split("&");rs,sourceMiddlewarePlugin:()=>a});var n=r("Istr"),i=r("gW5k"),o=r("ceV8");function s(t,e,r){return(0,n.sH)(this,void 0,void 0,(function(){function i(e,r){return(0,n.sH)(this,void 0,void 0,(function(){var i,s,a;return(0,n.YH)(this,(function(c){switch(c.label){case 0:return i=!1,s=null,[4,r({payload:(0,o.W)(e,{clone:!0,traverse:!1}),integration:t,next:function(t){i=!0,null===t&&(s=null),t&&(s=t.obj)}})];case 1:return c.sent(),i||null===s||(s.integrations=(0,n.Cl)((0,n.Cl)({},e.integrations),((a={})[t]=!1,a))),[2,s]}}))}))}var s,a,c,u,l;return(0,n.YH)(this,(function(t){switch(t.label){case 0:s=(0,o.W)(e,{clone:!0,traverse:!1}).rawEvent(),a=0,c=r,t.label=1;case 1:return ap});var n=r("Istr"),i=r("Jv0H"),o=r("p+Ej"),s=r("mIPM"),a=r("VsvY"),c=r("gW5k"),u=r("oBei"),l=r("DoPR"),d=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,l.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=e,this.name=t,this.type=e.type,this.alternativeNames.push(e.name)}return t.prototype.addMiddleware=function(){for(var t,e=[],r=0;rl});var n=r("Istr"),i=r("V6pm"),o=r("lhX1"),s=r("cIJ9"),a=r("VsvY"),c=r("UxIb");function u(t){return(encodeURI(JSON.stringify(t)).split(/%..|./).length-1)/1024}function l(t,e){var r,l,d,f=[],p=!1,h=null!==(r=null==e?void 0:e.size)&&void 0!==r?r:10,g=null!==(l=null==e?void 0:e.timeout)&&void 0!==l?l:5e3,y=0;function v(r){var o;if(0!==r.length){var a=null===(o=r[0])||void 0===o?void 0:o.writeKey,u=r.map((function(t){var e=t;e.sentAt;return(0,n.Tt)(e,["sentAt"])}));return(0,i.h)("https://".concat(t,"/b"),{credentials:null==e?void 0:e.credentials,keepalive:(null==e?void 0:e.keepalive)||p,headers:(0,c.B)(null==e?void 0:e.headers),method:"post",body:JSON.stringify({writeKey:a,batch:u,sentAt:(new Date).toISOString()}),priority:null==e?void 0:e.priority}).then((function(t){var e;if(t.status>=500)throw new Error("Bad response from server: ".concat(t.status));if(429===t.status){var r=null===(e=t.headers)||void 0===e?void 0:e.get("x-ratelimit-reset"),n="string"==typeof r?1e3*parseInt(r):g;throw new s.O("Rate limit exceeded: ".concat(t.status),n)}}))}}function m(t){var r;return void 0===t&&(t=1),(0,n.sH)(this,void 0,void 0,(function(){var i;return(0,n.YH)(this,(function(o){return f.length?(i=f,f=[],[2,null===(r=v(i))||void 0===r?void 0:r.catch((function(r){var o;a.o.system().log("error","Error sending batch",r),t<=(null!==(o=null==e?void 0:e.maxRetries)&&void 0!==o?o:10)&&("RateLimitError"===r.name&&(y=r.retryTimeout),f.push.apply(f,i),f.map((function(e){if("_metadata"in e){var r=e;r._metadata=(0,n.Cl)((0,n.Cl)({},r._metadata),{retryCount:t})}})),A(t+1))}))]):[2]}))}))}function A(t){void 0===t&&(t=1),d||(d=setTimeout((function(){d=void 0,m(t).catch(console.error)}),y||g),y=0)}return(0,o.D)((function(t){if((p=t)&&f.length){var e=function(t){var e=[],r=0;return t.forEach((function(t){u(e[r])>=64&&r++,e[r]?e[r].push(t):e[r]=[t]})),e}(f).map(v);Promise.all(e).catch(console.error)}})),{dispatch:function(t,r){return(0,n.sH)(this,void 0,void 0,(function(){var t;return(0,n.YH)(this,(function(n){return f.push(r),t=f.length>=h||function(t){return u(t)>=450}(f)||(null==e?void 0:e.keepalive)&&function(t){return u(t)>=54}(f),[2,t||p?m():A()]}))}))}}}},h1uP(t,e,r){"use strict";r.d(e,{A:()=>s});var n=r("V6pm"),i=r("cIJ9"),o=r("UxIb");function s(t){return{dispatch:function(e,r){return(0,n.h)(e,{credentials:null==t?void 0:t.credentials,keepalive:null==t?void 0:t.keepalive,headers:(0,o.B)(null==t?void 0:t.headers),method:"post",body:JSON.stringify(r),priority:null==t?void 0:t.priority}).then((function(t){var e;if(t.status>=500)throw new Error("Bad response from server: ".concat(t.status));if(429===t.status){var r=null===(e=t.headers)||void 0===e?void 0:e.get("x-ratelimit-reset"),n=r?1e3*parseInt(r):5e3;throw new i.O("Rate limit exceeded: ".concat(t.status),n)}}))}}}},xYSk(t,e,r){"use strict";r.d(e,{n:()=>p,u:()=>h});var n=r("Istr"),i=r("qINz"),o=r("am5T"),s=r("BcrC"),a=r("ceV8"),c=r("59MS"),u=r("h1uP"),l=r("x0Bu"),d=r("cIeU"),f=r("X+VD");var p=function(t){return"Segment.io"===t.name};function h(t,e,r){var p,h,g;window.addEventListener("pagehide",(function(){v.push.apply(v,Array.from(m)),m.clear()}));var y=null!==(p=null==e?void 0:e.apiKey)&&void 0!==p?p:"",v=t.options.disableClientPersistence?new o.M(t.queue.queue.maxAttempts,[]):new s.x(t.queue.queue.maxAttempts,"".concat(y,":dest-Segment.io")),m=new Set,A=!1,_=null!==(h=null==e?void 0:e.apiHost)&&void 0!==h?h:f.a,b=null!==(g=null==e?void 0:e.protocol)&&void 0!==g?g:"https",E="".concat(b,"://").concat(_),S=null==e?void 0:e.deliveryStrategy,w=S&&"strategy"in S&&"batching"===S.strategy?(0,c.A)(_,S.config):(0,u.A)(null==S?void 0:S.config);function T(o){return(0,n.sH)(this,void 0,void 0,(function(){var s,c;return(0,n.YH)(this,(function(n){return(0,i.a)()?(v.push(o),(0,d.S)(A,v,x,d.S),[2,o]):(m.add(o),s=o.event.type.charAt(0),c=(0,a.W)(o.event).json(),"track"===o.event.type&&delete c.traits,"alias"===o.event.type&&(c=function(t,e){var r,n,i,o,s=t.user();return e.previousId=null!==(i=null!==(n=null!==(r=e.previousId)&&void 0!==r?r:e.from)&&void 0!==n?n:s.id())&&void 0!==i?i:s.anonymousId(),e.userId=null!==(o=e.userId)&&void 0!==o?o:e.to,delete e.from,delete e.to,e}(t,c)),v.getAttempts(o)>=v.maxAttempts?(m.delete(o),[2,o]):[2,w.dispatch("".concat(E,"/").concat(s),(0,l.S)(t,c,e,r,o)).then((function(){return o})).catch((function(t){if(o.log("error","Error sending event",t),"RateLimitError"===t.name){var e=t.retryTimeout;v.pushWithBackoff(o,e)}else v.pushWithBackoff(o);return(0,d.S)(A,v,x,d.S),o})).finally((function(){m.delete(o)}))])}))}))}var x={metadata:{writeKey:y,apiHost:_,protocol:b},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:T,identify:T,page:T,alias:T,group:T,screen:T};return v.todo&&(0,d.S)(A,v,x,d.S),x}},x0Bu(t,e,r){"use strict";r.d(e,{S:()=>i});var n=r("Istr");function i(t,e,r,i,o){var s,a=t.user();delete e.options,e.writeKey=null==r?void 0:r.apiKey,e.userId=e.userId||a.id(),e.anonymousId=e.anonymousId||a.anonymousId(),e.sentAt=new Date;var c=t.queue.failedInitializations||[];c.length>0&&(e._metadata={failedInitializations:c}),null!=o&&(o.attempts>1&&(e._metadata=(0,n.Cl)((0,n.Cl)({},e._metadata),{retryCount:o.attempts})),o.attempts++);var u=[],l=[];for(var d in i){var f=i[d];"Segment.io"===d&&u.push(d),"bundled"===f.bundlingStatus&&u.push(d),"unbundled"===f.bundlingStatus&&l.push(d)}for(var p=0,h=(null==r?void 0:r.unbundledIntegrations)||[];pi});var n=r("Istr"),i=function(t){function e(e,r){var n=t.call(this,e)||this;return n.retryTimeout=r,n.name="RateLimitError",n}return(0,n.C6)(e,t),e}(Error)},cIeU(t,e,r){"use strict";r.d(e,{S:()=>u});var n=r("Istr"),i=r("qINz"),o=r("VsvY"),s=r("gCSU"),a=r("U+vR");function c(t,e){return(0,n.sH)(this,void 0,void 0,(function(){var r,c=this;return(0,n.YH)(this,(function(u){switch(u.label){case 0:return r=[],(0,i.a)()?[2,e]:[4,(0,a._)((function(){return e.length>0&&!(0,i.a)()}),(function(){return(0,n.sH)(c,void 0,void 0,(function(){var i,a;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return(i=e.pop())?[4,(0,s.C)(i,t)]:[2];case 1:return a=n.sent(),a instanceof o.o||r.push(i),[2]}}))}))}))];case 1:return u.sent(),r.map((function(t){return e.pushWithBackoff(t)})),[2,e]}}))}))}function u(t,e,r,i){var o=this;t||setTimeout((function(){return(0,n.sH)(o,void 0,void 0,(function(){var t,o;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return t=!0,[4,c(r,e)];case 1:return o=n.sent(),t=!1,e.todo>0&&i(t,o,r,i),[2]}}))}))}),5e3*Math.random())}},UxIb(t,e,r){"use strict";r.d(e,{B:()=>i});var n=r("Istr"),i=function(t){return(0,n.Cl)({"Content-Type":"text/plain"},"function"==typeof t?t():t)}},"+nle"(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r("WiAo"));function o(t,e){return function(){var r=this.traits(),n=this.properties?this.properties():{};return i.default(r,"address."+t)||i.default(r,t)||(e?i.default(r,"address."+e):null)||(e?i.default(r,e):null)||i.default(n,"address."+t)||i.default(n,t)||(e?i.default(n,"address."+e):null)||(e?i.default(n,e):null)}}e.default=function(t){t.zip=o("postalCode","zip"),t.country=o("country"),t.street=o("street"),t.state=o("state"),t.city=o("city"),t.region=o("region")}},"bq/L"(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Alias=void 0;var i=n(r("P7XM")),o=r("OuAf");function s(t,e){o.Facade.call(this,t,e)}e.Alias=s,i.default(s,o.Facade),s.prototype.action=function(){return"alias"},s.prototype.type=s.prototype.action,s.prototype.previousId=function(){return this.field("previousId")||this.field("from")},s.prototype.from=s.prototype.previousId,s.prototype.userId=function(){return this.field("userId")||this.field("to")},s.prototype.to=s.prototype.userId},okcd(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clone=void 0,e.clone=function t(e){if("object"!=typeof e)return e;if("[object Object]"===Object.prototype.toString.call(e)){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n]));return r}return Array.isArray(e)?e.map(t):e}},GotO(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=void 0;var i=n(r("P7XM")),o=r("OuAf");function s(t,e){o.Facade.call(this,t,e)}e.Delete=s,i.default(s,o.Facade),s.prototype.type=function(){return"delete"}},OuAf(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Facade=void 0;var i=n(r("+nle")),o=r("okcd"),s=n(r("g1VI")),a=n(r("+za2")),c=n(r("WiAo")),u=n(r("UPt/"));function l(t,e){e=e||{},this.raw=o.clone(t),"clone"in e||(e.clone=!0),e.clone&&(t=o.clone(t)),"traverse"in e||(e.traverse=!0),t.timestamp="timestamp"in t?a.default(t.timestamp):new Date,e.traverse&&u.default(t),this.opts=e,this.obj=t}e.Facade=l;var d=l.prototype;function f(t){return o.clone(t)}d.proxy=function(t){var e=t.split("."),r=this[t=e.shift()]||this.obj[t];return r?("function"==typeof r&&(r=r.call(this)||{}),0===e.length||(r=c.default(r,e.join("."))),this.opts.clone?f(r):r):r},d.field=function(t){var e=this.obj[t];return this.opts.clone?f(e):e},l.proxy=function(t){return function(){return this.proxy(t)}},l.field=function(t){return function(){return this.field(t)}},l.multi=function(t){return function(){var e=this.proxy(t+"s");if(Array.isArray(e))return e;var r=this.proxy(t);return r&&(r=[this.opts.clone?o.clone(r):r]),r||[]}},l.one=function(t){return function(){var e=this.proxy(t);if(e)return e;var r=this.proxy(t+"s");return Array.isArray(r)?r[0]:void 0}},d.json=function(){var t=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(t.type=this.type()),t},d.rawEvent=function(){return this.raw},d.options=function(t){var e=this.obj.options||this.obj.context||{},r=this.opts.clone?o.clone(e):e;if(!t)return r;if(this.enabled(t)){var n=this.integrations(),i=n[t]||c.default(n,t);return"object"!=typeof i&&(i=c.default(this.options(),t)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(t){var e=this.proxy("options.providers.all");"boolean"!=typeof e&&(e=this.proxy("options.all")),"boolean"!=typeof e&&(e=this.proxy("integrations.all")),"boolean"!=typeof e&&(e=!0);var r=e&&s.default(t),n=this.integrations();if(n.providers&&n.providers.hasOwnProperty(t)&&(r=n.providers[t]),n.hasOwnProperty(t)){var i=n[t];r="boolean"!=typeof i||i}return!!r},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var t=this.proxy("options.active");return null==t&&(t=!0),t},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=l.proxy("options.groupId"),d.traits=function(t){var e=this.proxy("options.traits")||{},r=this.userId();for(var n in t=t||{},r&&(e.id=r),t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=null==this[n]?this.proxy("options.traits."+n):this[n]();if(null==i)continue;e[t[n]]=i,delete e[n]}return e},d.library=function(){var t=this.proxy("options.library");return t?"string"==typeof t?{name:t,version:null}:t:{name:"unknown",version:null}},d.device=function(){var t=this.proxy("context.device");"object"==typeof t&&null!==t||(t={});var e=this.library().name;return t.type||(e.indexOf("ios")>-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t},d.userAgent=l.proxy("context.userAgent"),d.timezone=l.proxy("context.timezone"),d.timestamp=l.field("timestamp"),d.channel=l.field("channel"),d.ip=l.proxy("context.ip"),d.userId=l.field("userId"),i.default(d)},"9DCV"(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var i=n(r("P7XM")),o=n(r("3WbO")),s=n(r("+za2")),a=r("OuAf");function c(t,e){a.Facade.call(this,t,e)}e.Group=c,i.default(c,a.Facade);var u=c.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=a.Facade.field("groupId"),u.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return s.default(t)},u.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();return o.default(e)?e:void 0},u.traits=function(t){var e=this.properties(),r=this.groupId();for(var n in t=t||{},r&&(e.id=r),t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=null==this[n]?this.proxy("traits."+n):this[n]();if(null==i)continue;e[t[n]]=i,delete e[n]}return e},u.name=a.Facade.proxy("traits.name"),u.industry=a.Facade.proxy("traits.industry"),u.employees=a.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},ILOg(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Identify=void 0;var i=r("OuAf"),o=n(r("WiAo")),s=n(r("P7XM")),a=n(r("3WbO")),c=n(r("+za2")),u=function(t){return t.trim()};function l(t,e){i.Facade.call(this,t,e)}e.Identify=l,s.default(l,i.Facade);var d=l.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(t){var e=this.field("traits")||{},r=this.userId();for(var n in t=t||{},r&&(e.id=r),t){var i=null==this[n]?this.proxy("traits."+n):this[n]();null!=i&&(e[t[n]]=i,n!==t[n]&&delete e[n])}return e},d.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();return a.default(e)?e:void 0},d.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return c.default(t)},d.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return c.default(t)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var t=this.proxy("traits.name");if("string"==typeof t)return u(t);var e=this.firstName(),r=this.lastName();return e&&r?u(e+" "+r):void 0},d.firstName=function(){var t=this.proxy("traits.firstName");if("string"==typeof t)return u(t);var e=this.proxy("traits.name");return"string"==typeof e?u(e).split(" ")[0]:void 0},d.lastName=function(){var t=this.proxy("traits.lastName");if("string"==typeof t)return u(t);var e=this.proxy("traits.name");if("string"==typeof e){var r=u(e).indexOf(" ");if(-1!==r)return u(e.substr(r+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var t=this.birthday(),e=o.default(this.traits(),"age");return null!=e?e:t instanceof Date?(new Date).getFullYear()-t.getFullYear():void 0},d.avatar=function(){var t=this.traits();return o.default(t,"avatar")||o.default(t,"photoUrl")||o.default(t,"avatarUrl")},d.position=function(){var t=this.traits();return o.default(t,"position")||o.default(t,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},wuVP(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;ra,SP:()=>l,Y7:()=>u,a_:()=>i,fq:()=>c,rv:()=>o,se:()=>s});var n=r("qJB7");const i={codec:n.Codec.UNKNOWN,container:n.Container.UNKNOWN,enum:-1,name:"EXTERNAL"},o={codec:n.Codec.FLAC,container:n.Container.NONE,enum:9,name:"FLAC"},s={codec:n.Codec.MP3,container:n.Container.NONE,bitrate:64,enum:10,name:"MP3_64"},a={codec:n.Codec.MP3,container:n.Container.NONE,bitrate:128,enum:1,name:"MP3_128"},c={codec:n.Codec.MP3,container:n.Container.NONE,bitrate:320,enum:3,name:"MP3_320"},u={codec:n.Codec.MP3,container:n.Container.NONE,enum:0,name:"MP3_MISC"},l=[o,c,a,s,u]},"2TXL"(t,e,r){"use strict";r.d(e,{A:()=>n});class n{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._expire=void 0,this._value=void 0,this._expire=e.expire,this._value=t}get expired(){return!!this._expire&&Date.now()/1e3>this._expire}toString(){return this._value}}},"D+Zh"(t,e,r){"use strict";r.d(e,{Dr:()=>NetworkError,MU:()=>TimeoutError,Xj:()=>NotAvailableError,hQ:()=>l,lc:()=>AbortError,m_:()=>NotFoundError,o3:()=>ResponseError});var n=r("4OMY"),i=r("8VJL"),o=(0,n.A)("AbortError");class AbortError extends i.A{constructor(){super(...arguments),Object.defineProperty(this,o,{writable:!0,value:void 0})}}var s=(0,n.A)("NetworkError");class NetworkError extends i.A{constructor(){super(...arguments),Object.defineProperty(this,s,{writable:!0,value:void 0})}}var a=(0,n.A)("NotAvailableError");class NotAvailableError extends i.A{constructor(){super(...arguments),Object.defineProperty(this,a,{writable:!0,value:void 0})}}var c=(0,n.A)("NotFoundError");class NotFoundError extends i.A{constructor(){super(...arguments),Object.defineProperty(this,c,{writable:!0,value:void 0})}}class ResponseError extends i.A{constructor(){super(...arguments),this.status=void 0}}var u=(0,n.A)("TimeoutError");class TimeoutError extends i.A{constructor(){super(...arguments),Object.defineProperty(this,u,{writable:!0,value:void 0})}}class l extends i.A{}},"H/eQ"(t,e,r){"use strict";r.d(e,{A:()=>a});var n=r("c0bm");class i{constructor(){this.resolved=!1,this.callbacks=[],this.args=null}done(t){this.resolved?t(this.args):this.callbacks.push(t)}resolve(t){this.args=t,this.resolved=!0;for(var e=this.callbacks.length-1;e>=0;e--)this.callbacks.pop()(this.args)}}const o=new n.A;let s={evts:{},deferredObjects:[],ready:(t,e)=>{void 0===s.deferredObjects[t]&&(s.deferredObjects[t]=new i),s.deferredObjects[t].done(e)},resolve:(t,e)=>{void 0===s.deferredObjects[t]&&(s.deferredObjects[t]=new i),s.deferredObjects[t].resolve(e)},unresolve:t=>"string"==typeof t&&(void 0!==s.deferredObjects[t]&&(s.deferredObjects[t]=void 0),!0),subscribe:(t,e,r)=>"string"==typeof r?s.addEvent(r,t,e):(o.removeListener(t,e).on(t,e),!0),addEvent:(t,e,r)=>"string"==typeof t&&"string"==typeof e&&"function"==typeof r&&(void 0===s.evts[t]&&(s.evts[t]=[]),s.evts[t].push({fct:r,evt:e}),s.subscribe(e,r),!0),unsubscribeAll:t=>{if("string"!=typeof t||void 0===s.evts[t])return!1;for(var e=0;eo.removeAllListeners(),subscribeOnce:(t,e,r)=>{"string"!=typeof r&&(r=null);const n=(r,i)=>{"function"==typeof e&&e(r,i),s.unsubscribe(t,n)};s.subscribe(t,n,r)},unsubscribe:(t,e)=>{o.removeListener(t,e)},trigger:function(t){const e=t.indexOf(".");for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;iv});var n=r("Ltjx"),i=r("wE9P"),o=r("H/eQ"),s=r("xUZv"),a=r("3WcA"),c=r("tZCQ");const u=new n.DT,l=(0,n.r1)({maxBatchSize:100,autoSendInterval:3e5,ignoredLogTypes:["cdp"]}),d=new n.MZ(`https://${a.default.get("host_rec")}/1.0/events/`,"",l),f=new n.rG((0,i.u)()),p=new n.J(f,u,{handledLogTypes:["cdp"]}),h=new n.KH(d,u,l),g=new n.Ay([h,p],u),y=new n.CI({workspaceKey:"e69a030efff76782eb8bdad0a7d95357"});o.A.ready(o.A.user.userReady,(()=>{const{user:t}=s.A.getState();f.updateCDP((0,i.u)(!1,!0)),c.A.isAllowed("disable_survicate")||f.cdp.use(y),d.setAuthToken(t.USER_TOKEN)}));const v={log:g.log.bind(g),flush:h.flush.bind(h),setRECAuthToken:d.setAuthToken.bind(d)}},GXXn(t,e,r){"use strict";r.d(e,{L:()=>a});var n=r("dn5u"),i=r.n(n),o=r("QSbz");const s=i()(),a=(t,e,r)=>{const n=(0,o.A)(),i={ts:Math.round(Date.now()/1e3),version:e,type:t,platform:{app:{family:n.family,name:"deezer",stack:n.name,version:n.app_version},os:{name:String(n.os_name).toLowerCase(),version:String(n.os_version).toLowerCase()},browser:{name:String(n.browser_name).toLowerCase(),version:String(n.browser_version).toLowerCase()}}};return{"correlation-id":s,...r,...i}}},Jndf(t,e,r){"use strict";r.d(e,{GK:()=>i,cS:()=>n});const n="X-Ignore-Service-Worker",i="x-deezer-caching-policy"},"5G9X"(t,e,r){"use strict";r.d(e,{Ay:()=>i,vn:()=>o});const n={Generic:"generic",Deeplink:"deeplink",Album:"album",Podcast:"podcast",Artist:"artist",ArtistLineUp:"artistLineUp",App:"app",ExternalLink:"external-link",Playlist:"playlist",Radio:"radio",Show:"show",Episode:"episode",Track:"track",Channel:"channel",Flow:"flow",MultiFlow:"multi_flow",FlowConfig:"flow_config",User:"user",Native:"native",Livestream:"livestream",LiveEvent:"live-event",Lyrics:"lyrics",Video:"video",Genre:"genre",VideoLink:"video-link",TalkShow:"talkShow",TalkEpisodes:"talkEpisodes",RelatedArtist:"related_artist",TopArtistFull:"topArtistFull",PersonalPlaylist:"personalPlaylist",CuratedChartsPlaylist:"curatedChartsPlaylist",ChartsPlaylist:"chartsPlaylist",CuratorPlaylist:"curatorPlaylist",CollaborativePlaylist:"collaborativePlaylist",Smarttracklist:"smarttracklist",BlindtestPlaylist:"blindtest_playlist",MyDeezerStory:"my_deezer_story_content",Song:"song"},i=n;const o={[n.Album]:"ALB_ID",[n.Show]:"SHOW_ID",[n.Playlist]:"PLAYLIST_ID",[n.Artist]:"ART_ID",[n.Radio]:"RADIO_ID",[n.Podcast]:"SHOW_ID",[n.User]:"USER_ID",application:"APP_ID",[n.App]:"APP_ID",[n.Song]:"SNG_ID",[n.Genre]:"GENRE_ID",[n.Channel]:"id",[n.Livestream]:"LIVESTREAM_ID",[n.Episode]:"EPISODE_ID"}},nrKQ(t,e,r){"use strict";r.d(e,{A:()=>I});r("LpSC");var n=r("h1TL"),i=r("JRaq"),o=r("ZL5e"),s=r("yZTN"),a=r("3WcA"),c=r("xUZv"),u=r("xobL"),l=r("r2u9"),d=r("D+Zh"),f=r("YEdj"),p=r("D/zM"),h=r("Jndf"),g=r("TqF5"),y=r("SLMx"),v=r("+pY+"),m=r("yiM3");const A=[];let _={};const b=(t,e,r)=>{const n=new Error(e);return n.name=t,Object.defineProperty(n,"description",{get:()=>(s.A.warn("Error.description is deprectated, use Error.message instead"),n.message)}),n.response=r,n.payload=r&&"string"!=typeof r?r.payload:void 0,n},E=t=>{if(_[t]){for(let{id:e}of _[t]){let t=A.indexOf(e);-1!==t&&A.splice(t,1)}delete _[t]}},S="userTokenRenewed",w="callStarted",T=(t,e,r)=>{for(const n of t){const t=n.params,i=n[r];"function"==typeof i&&i(...e,...void 0!==t?[t]:[])}},x=(t,e,r)=>{let n=!0;const i=[];for(const o of t){const{id:t,callback_parameters:s}=o,a=o[r];-1===e.indexOf(t)&&(n=!1,"function"==typeof a&&i.push({fn:a,params:void 0!==s?[s]:[]}))}return{cancelled:n,fns:i}};class O extends i.A{resetSignatures(){_=[]}call(t){let{method:e,data:r={},success:n,error:i,callback_parameters:a,retry:u=0,http_headers:l={},http_method:h="POST",cachingPolicy:O=null}=t;if(Array.isArray(arguments[0])){s.A.warn("This signature is deprecated, make multiple calls to `api.call()` instead");return arguments[0].map(this.call.bind(this))}arguments.length>1&&"number"!=typeof arguments[1]&&(s.A.error("This signature is deprecated, use api.call({method:'method.name', data:{...}, success: function(results) {...}}) instead"),e=arguments[0]||"",r=arguments[1]||{},n=arguments[2]||function(){},a=arguments[3]||{});const I="deezer.getUserData"!==e,[k,P]=this.getRequest({method:e,data:r,headers:l,http_method:h,cachingPolicy:O},I,!1),L=new URL(k).searchParams.get("cid"),R=e+JSON.stringify(r)+JSON.stringify(l),C={id:L,success:n,error:i,callback_parameters:a};if(_[R]?_[R].push(C):_[R]=[C],_[R].length>1)return L;const N=t=>{var n;const i=null!==(n=_[R])&&void 0!==n?n:[],{cancelled:l,fns:f}=x(i,A,"error");if(!0===l)return void E(R);if("VALID_TOKEN_REQUIRED"===t.name||"NEED_USER_AUTH_REQUIRED"===t.name)return E(R),void(t=>{let{api:e,method:r,data:n={},callback_parameters:i,retry:a=0,pending:u=[]}=t;e.call({method:"deezer.getUserData",retry:++a,success:t=>{if(!t||void 0===t.checkForm)return void s.A.error("Could not retrieve checkform value");const l=new o.A(S,{detail:t});e.dispatchEvent(l),c.A.getState().user.isAuth>0&&0===t.USER.USER_ID?c.A.dispatch((0,g.qf)({name:"NO_SESSION"})):e.call({method:r,data:n,retry:a,callback_parameters:i,success:function(){T(u,arguments,"success")},error:function(){T(u,arguments,"error")}})},error:function(){T(u,arguments,"error")}})})({api:this,method:e,data:r,retry:u,callback_parameters:a,pending:i});"deezer.getUserData"===e&&"REQUEST_ERROR"===t.name&&"missing_info"===t.message&&(0,m.L)("/missinginfo"),t instanceof TypeError&&(t=new d.Dr(t.message));for(let{params:e}of f)e.splice(0,0,t);if(f.length>0)return E(R),f;const p={request:r};t.response&&(p.response=t.response),"RETRY_LIMIT_REACHED"!==t.name&&s.A.error(t.name,t,p),E(R)};if(u>3){for(let{fn:t,params:e}of N(b("RETRY_LIMIT_REACHED","Api error")))t(...e);const t=new p.A({id:v.Ps.API_RETRY_LIMIT_REACHED,tags:{method:e}});return t.increment(),t.send(),L}const D=new o.A(w,{detail:{url:k,data:r}});return this.dispatchEvent(D),(0,f.A6)(k,P).then((function(t){let e=null;if(t&&t.headers&&(e=t.headers.get("x-deezer-client-ip")),e&&y.A.set(e),!t.ok)throw b("SERVER_ERROR","Api error",{error:{SERVER_ERROR:`${t.status} ${t.statusText}`},results:{}});if("opaque"===t.type)throw b("OPAQUE_RESPONSE","Api error",t);return t.text()})).then((function(t){var e;const r=null!==(e=_[R])&&void 0!==e?e:[],{cancelled:n,fns:i}=x(r,A,"success");if(!0===n)return void E(R);let o;try{o=JSON.parse(t)}catch{throw b("BAD_REQUEST","Api error",t)}if(!o||void 0===o.results||void 0===o.error)throw b("REQUEST_EMPTY","Api error",o);for(let t in o.error)if({}.hasOwnProperty.call(o.error,t))throw b(t,o.error[t],o);if(null!==o.results&&"object"==typeof o.results&&0===Object.keys(o.results).length)throw b("REQUEST_EMPTY","Api error",o);for(let{params:t}of i)t.splice(0,0,o.results);return E(R),i})).catch(N).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let{fn:e,params:r}of t)try{e(...r)}catch(t){s.A.error(t)}})),L}callAsync(t){return new Promise(((e,r)=>{this.call({...t,success:e,error:r})}))}batch(t){let{method:e,data:r={},batchSize:i,offsetStart:o=0,onBatchSuccess:s}=t,a=!1;return{cancel:()=>{a=!0},run:async()=>{const t=await this.callAsync({method:e,data:{...r,start:o,nb:i}});if("Not modified"===t)return t;const c=(0,n.A)(t,["total","count","filtered_count","data","checksum"]);o+=i;const u=Math.ceil((t.total-o)/i);for(let t=0;t1&&void 0!==arguments[1])||arguments[1],d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const f="http:"===window.location.protocol?"http":"https",p=window.location.host||a.default.get("host_website_ssl"),g=new URL(`${f}://${p}/ajax/gw-light.php`),y={method:e,input:3,api_version:"1.0",api_token:s?encodeURIComponent(c.A.getState().user.checkForm):"",cid:Math.floor(1e9*Math.random())};try{n={...n,"x-deezer-user":(0,u.F6)(c.A.getState().user)}}catch{}o&&(n[h.GK]=JSON.stringify(o)),l.Ay&&l.Ay.getGeoIpFlag()&&(y.GEOIP=l.Ay.getGeoIpFlag()),"GET"===i&&(y.gateway_input=JSON.stringify(r)),Object.entries(y).forEach((t=>{let[e,r]=t;return g.searchParams.set(e,String(r))}));const v={body:"GET"===i?void 0:JSON.stringify(r),credentials:l.Ay?"include":"same-origin",headers:n,method:i,mode:l.Ay?void 0:"same-origin"};return d?new Request(g.href,v):[g.href,v]}}const I=new O},"3R0U"(t,e,r){"use strict";r.d(e,{u:()=>n});let n=function(t){return t.READ_ONLY="r",t.WRITE_ONLY="w",t.READ_WRITE="rw",t.NONE="none",t}({})},"9yOc"(t,e,r){"use strict";r.d(e,{A:()=>a});var n=r("M39V"),i=r.n(n),o=r("r2u9");let s="";o.Ay?s=o.Ay.getOriginalUserAgent():"undefined"!=typeof window&&(s=window.navigator.userAgent);const a=i().getParser(s)},zeN3(t,e,r){"use strict";r.d(e,{J:()=>n});const n={item_collected:["playlist"],sharing_used:["playlist","artist_top_tracks","artist_favorite_items","favorite_albums","favorite_artists","favorite_downloaded_music","favorite_playlists","favorite_playlists_listening_history","favorite_podcasts","favorite_tab","favorite_tracks","home"],play_clicked:["playlist","artist_top_tracks"],item_clicked:["playlist","artist_top_tracks"]}},wE9P(t,e,r){"use strict";r.d(e,{u:()=>d});r("p8tg");var n=r("tZCQ"),i=r("yZTN"),o=r("3WcA"),s=r("Ltjx"),a=r("zeN3");const c=t=>{var e,r;const i="screen_view"===t.eventName,o=null===(e=t.customAttributes)||void 0===e?void 0:e.screen_view_name,s=i&&o?`cdp_${o}`:`cdp_${t.eventName}`;return(!(void 0!==(null===(r=n.A.getFeatures())||void 0===r?void 0:r[s]))||n.A.isAllowed(s))&&!u(t)},u=t=>{var e;if(null===(e=t.customAttributes)||void 0===e||!e.screen_view_name||!t.eventName)return!1;const r=a.J[t.eventName];if(!r)return!1;return r.includes(t.customAttributes.screen_view_name)};let l;const d=function(){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=null),l||(l=!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&n.A.isInitialized()?new s.sG(o.default.get("segment_api_key"),{filter:n.A.isAllowed("activate_segment"),filterFunction:c,logger:(t,e)=>"object"==typeof e?i.A.error({...e,type:t}):void 0,stack:"web"}):new s.sG(o.default.get("segment_api_key"),{logger:(t,e)=>"object"==typeof e?i.A.error({...e,type:t}):void 0,stack:"web",filterFunction:t=>!u(t)}),l)}},ia7n(t,e,r){"use strict";let n;r.d(e,{A:()=>i}),n=r("KDI6").A;const i=n},KDI6(t,e,r){"use strict";r.d(e,{A:()=>n});const n={smartAds:{smartSite:"deezer",target:"",siteId:15829,formatId:{audio:7073,northBanner:6955,southBanner:27374,interstitial:19632,hpto:37907,audioBanner:64382,sponsoredPlaylist:105480},pageId:{account:{id:115081,display:!1,audio:!0},album:{id:115066,display:!0,audio:!0},app:{id:0,display:!1,audio:!0},artist:{id:115069,display:!0,audio:!0},channels:{id:631827,display:!0,audio:!0},channels_explore:{id:696361,display:!0,audio:!0},charts:{id:274126,display:!0,audio:!0},episode:{id:0,display:!0,audio:!0},episodes:{id:0,display:!0,audio:!0},explore:{id:274132,display:!0,audio:!0},home:{id:114873,display:!0,audio:!0},legacy:{id:0,display:!1,audio:!1},loved:{id:274137,display:!0,audio:!0},lyrics:{id:548730,display:!0,audio:!0},mix:{id:115070,display:!0,audio:!0},mixes:{id:115070,display:!0,audio:!0},moods:{id:614467,display:!0,audio:!0},multiple_feed:{id:114873,display:!0,audio:!0},offline:{id:0,display:!0,audio:!0},page:{id:0,display:!0,audio:!0},playlist:{id:115067,display:!0,audio:!0},profile:{id:115081,display:!1,audio:!0},search:{id:115072,display:!0,audio:!0},show:{id:555137,display:!0,audio:!0},shows:{id:555138,display:!0,audio:!0},smarttracklist:{id:115067,display:!0,audio:!0},track:{id:487686,display:!0,audio:!0}}}}},"5KGg"(t,e,r){"use strict";r.d(e,{A:()=>n});const n={host_api:"api.deezer.com",host_authent:"auth.deezer.com",host_assets_ssl:"cdn-assets.dzcdn.net",host_common_assets_ssl:"cdn-assets.dzcdn.net/common",host_connect:"connect.deezer.com",host_content_ssl:"cdn-content.dzcdn.net",host_cookie:".deezer.com",host_developers:"developers.deezer.com",host_games:"games.deezer.com",host_genplaylist:"genplaylist.deezer.com",host_account:"account.deezer.com",host_handshake:"handshake.deezer.com",host_img_url_ssl:"cdn-images.dzcdn.net/images",host_live_ssl:"live.deezer.com",host_live:"live.deezer.com",host_messaging:"messaging.deezer.com",total_tracks:"120",total_tracks_flac:"120",host_pipe:"pipe.deezer.com",host_rec:"rec.deezer.com",host_slash_static_ssl:"cdn-files.dzcdn.net",host_static_ssl:"cdn-files.dzcdn.net",host_upload:"upload.deezer.com",host_website_ssl:"www.deezer.com",host_mydeezerstory:"mydeezerstory.deezer.com",inappstory_api_key:"BQMAAAAAAAAAAAAAABUaIThgHB0BP1FQNAZCQgVBAn8yIRYdqo44nYK3J8CcjfqdREH0bDg2wTJ-SQmBjOOBfhAH9w",segment_api_key:"VyJDmr2wHu0SDrieAdHE8tIX2Gi2WgUL",recaptcha_enterprise_key:"6Ld3MwwbAAAAAKrvn3uSoG60t1A0owdX3ByEstx8",recaptcha_invisible_key:"6Lf4g34UAAAAAF2O2sScZKutelN7GM1FYVBmMom4",template_host_stream_cdn_url_ssl:"cdn-proxy-{0}.dzcdn.net/mobile/1/",template_host_stream_cdn_url:"cdn-proxy-{0}.dzcdn.net/mobile/1/",env:"production",release:"1.0.0+20260318.150727",releaseNumeric:"10020260318150727",bot_crawler:"(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon)",links_service:"https://link.deezer.com",third_party_sdk_config:{apple:{scopes:"name email",clientId:"com.deezer.Deezer.client",domain:"www"},google:{scopes:"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email",clientId:"630457285321-d5nmkpnjktjoeh426nvdu40rch1b1qe0.apps.googleusercontent.com"},facebook:{appId:"241284008322",version:"v21.0",scopes:"email,user_birthday"}}}},"I/P5"(t,e,r){"use strict";let n;r.d(e,{A:()=>i}),n=r("5KGg").A;const i=n},"3WcA"(t,e,r){"use strict";r.d(e,{default:()=>u});var n=r("v8Co"),i=r("pWtv"),o=r("I/P5"),s=r("jGAI"),a=r("ia7n");const c=(0,n.A)(o.A,s.A,a.A),u=new i.A(c)},"P2/T"(t,e,r){"use strict";r.d(e,{A:()=>n});const n={log_contexts:{track_page:"track",album_page:"album",show_page:"show",playlist_page:"playlist",downloads_page:"downloads",personalsong_page:"personal_song",radio_page:"radio",smartradio_page:"artist",search_page:"search",history_page:"history",purchase_page:"purchase",inapp_page:"inapp",moods_page:"playlist",livestream_page:"livestream",livestreams_page:"livestream",show_latestepisodes_page:"episode",show_ongoingepisodes_page:"episode",collection_track:"track",collection_playlist:"playlist",collection_album:"album",collection_radio:"radio",car_user_radio:"flow",profile_tracks:"track",profile_playlists:"playlist",profile_suggest_playlists:"playlist",profile_albums:"album",profile_artists:"artist",profile_shows:"show",profile_top_tracks:"track",profile_top_playlists:"playlist",profile_top_artists:"artist",profile_suggest_artists:"artist",profile_suggest_tracks:"track",profile_top_albums:"album",profile_suggest_albums:"album",profile_top_shows:"show",profile_suggest_shows:"show",profile_top_radios:"radio",profile_radios:"radio",profile_suggest_radios:"radio",profile_top:"profile",profile_user_radio:"flow",profile_limited_offline_tracklist:"tracklist",profile_limited_offline_playlists:"playlist",artist_top:"track",artist_collected_tracks_page:"track",artist_discography:"album",artist_highlight:"album",artist_highlight_album:"album",artist_highlight_episode:"episode",artist_highlight_playlist:"playlist",artist_highlight_show:"show",artist_smartradio:"artist",artist_similar_artist:"artist",album_discography:"album",track_related_album:"album",tops_album:"album",tops_track:"track",tops_playlist:"playlist",tops_artist:"artist",tops_news:"album",ticker_track:"track",ticker_playlist:"playlist",ticker_album:"album",player_default_playlist:"playlist",facebook_landing:"track",facebook_track:"track",facebook_artist:"track",landingalbum:"album",landingartist:"artist",landingplaylist:"playlist",landingradio:"radio",landingtrack:"track",notification_track:"track",notification_playlist:"playlist",notification_album:"album",notification_artistradio:"artist",notification_genreradio:"radio",exclusions_tracks:"exclusions_tracks",explore_picks_album:"album",explore_releases_album:"album",explore_region_album:"album",explore_picks_show:"show",discovery_radio:"radio",discovery_smartradio:"artist",feature_smartradio:"artist",playlist_radio:"playlist",suggest_track:"track",suggest_album:"album",suggest_playlist:"playlist",suggest_artist:"artist",suggest_radio:"radio",suggest_livestream:"livestream",suggest_show:"show",history_track:"track",history_album:"album",history_playlist:"playlist",history_artist:"artist",history_radio:"radio",history_show:"show",history_song:"track",track_assistant:"track",menu_panel_album:"album",menu_panel_playlist:"playlist",menu_panel_show:"show",menu_panel_queue_list:"track",menu_panel_notification_album:"album",menu_panel_notification_artist:"artist",menu_panel_notification_episode:"episode",menu_panel_notification_playlist:"playlist",menu_panel_notification_radio:"radio",menu_panel_notification_show:"show",menu_panel_notification_track:"track",menu_player:"track",search_trackmix:"track",search_track:"track",search_episode:"episode",search_artist:"artist",search_album:"album",search_show:"show",search_playlist:"playlist",search_radio:"radio",search_livestream:"livestream",search_flow_config:"multi_flow",sidebar_user_radio:"flow",sidebar_flow_config:"multi_flow",sidebar_track:"track",sidebar_livestream:"livestream",search_user_radio:"flow",search_top_track:"track",search_artist_mix:"artist",search_artist_top_tracks:"track",search_top_album:"album",search_top_show:"show",search_top_playlist:"playlist",search_top_radio:"radio",search_top_livestream:"livestream",search_top_episode:"episode",search_top_flow_config:"multi_flow",search_top_user_radio:"flow",search_no_result_artist:"artist",search_no_result_album:"album",search_no_result_track:"track",artist_similar_playlist:"playlist",album_similar_playlist:"playlist",album_similar_artist:"artist",playlist_api:"playlist",track_api:"track",album_api:"album",artist_api:"artist",artist_radio:"artist",user_api:"user",radio_api:"radio",episode_api:"episode",show_api:"show",home_album:"album",home_artist_radio:"artist",home_playlist:"playlist",home_radio:"radio",home_show:"show",home_track:"track",home_user_radio:"flow",dynamic_page_album:"album",dynamic_page_artist_radio:"artist",dynamic_page_episode:"episode",dynamic_page_playlist:"playlist",dynamic_page_radio:"radio",dynamic_page_show:"show",dynamic_page_track:"track",dynamic_page_user_radio:"flow",dynamic_page_livestream:"livestream",dynamic_page_smarttracklist:"smarttracklist",dynamic_page_flow_config:"multi_flow",multi_flow_user_radio:"multi_flow",episode_page:"episode",talk_show_page:"show",talk_suggest_show:"show",talk_search_show:"show",talk_profile_show:"show",talk_explore:"show",up_next_artist:"artist",recently_played_album:"album",recently_played_artist:"artist",recently_played_playlist:"playlist",recently_played_radio:"radio",recently_played_user_radio:"flow",recently_played_show:"show",recently_played_livestream:"livestream",shuffled_collection:"shuffle",shuffled_offline:"shuffle",flow_tab_flow:"flow",flow_tab_smarttracklist:"smarttracklist",flow_offline:"flow",limited_offline_tracklist_page:"tracklist",smarttracklist_page:"smarttracklist",smarttracklist:"smarttracklist",playlist_assistant:"track",track_mix_contextual:"track"},available_languages:["en","us","ar","cs","da","de","es","mx","fr","hr","id","it","hu","ms","mk","nl","no","pl","br","pt","ru","ro","sr","fi","sv","sq","sk","sl","tr","me","th","cn","ko","ja","uk","he","bg"],country_opened:["AE","AF","AG","AI","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BT","BW","BY","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CO","CR","CV","CX","CY","CZ","DE","DJ","DK","DM","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","HN","HR","HU","ID","IE","IL","IO","IQ","IS","IT","JA","JM","JO","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LK","LR","LS","LT","LU","LV","LY","MA","MD","ME","MG","MH","MK","ML","MN","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PG","PH","PK","PL","PN","PT","PW","PY","QA","RO","SR","RU","RW","SA","SB","SC","SV","SG","SI","SJ","SK","SL","SN","SO","ST","SZ","TC","TD","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TV","TZ","UA","UG","UK","US","UY","UZ","VC","VE","VG","VN","VU","WS","YE","ZA","ZM","ZW"]}},R7h3(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("P2/T"),i=r("of4r");const o={...n.A,logger:[{type:"Console",level:i.T.DEBUG,colorize:!0}],smartAds:{target:"dev=retagging"},chromecast:{id:"89CA44D0",betaId:"89CA44D0",namespace:"urn:x-cast:com.dz.player"}}},jGAI(t,e,r){"use strict";let n;r.d(e,{A:()=>i}),n=r("fIAY").A;const i=n},fIAY(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("P2/T"),i=r("of4r");const o={...n.A,logger:[{type:"Sentry",level:i.T.ERROR,dsn:"https://c9035c5ed7ec4487b81f51f12d25828b@sentry.io/1875897",platform:"client"},{type:"Console",level:i.T.ERROR,platform:"client"}],smartAds:{target:"dev=prod"},chromecast:{id:"EF6F58F4",betaId:"EF6F58F4",namespace:"urn:x-cast:com.dz.player"}}},D6wv(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("R7h3"),i=r("of4r");const o={...n.A,logger:[{type:"Console",level:i.T.TRACE,colorize:!0}]}},of4r(t,e,r){"use strict";r.d(e,{T:()=>n});let n=function(t){return t.DEBUG="debug",t.ERROR="error",t.LOG="log",t.WARN="warn",t.TRACE="trace",t}({})},FdMc(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("xUZv"),i=r("xobL");const o=()=>{const t=n.A.getState().user;return(0,i.mI)({SERVER_TIMESTAMP:t.SERVER_TIMESTAMP,clientTimestampDelta:t.clientTimestampDelta})}},eC9Z(t,e,r){"use strict";r.d(e,{WV:()=>s});r("p8tg");var n=r("WBQ7");r("pUfN");const i="deezTools",o=t=>{let{itemType:e,itemName:r}=t;return`${i}_${e}_${r}`},s=t=>{let{itemType:e,itemName:r}=t;return n.default.get(o({itemType:e,itemName:r}),null)}},pUfN(t,e,r){"use strict";r.d(e,{Wi:()=>n,u5:()=>i});let n=function(t){return t.FEATURE="features",t.GATEKEEP="gatekeeps",t.CONFIG="config",t}({});const i="CLEAR_CONTEXT"},AfN5(t,e,r){"use strict";r.d(e,{Cc:()=>o,EV:()=>a,JW:()=>i,Kk:()=>c,S:()=>s,zu:()=>n});let n=function(t){return t.ADS="ads",t.EPISODE="episode",t.SONG="song",t.EXTERNAL="external",t.LIVE_STREAM="live_stream",t}({}),i=function(t){return t.PLAY_LOG_FAILED="play_log_failed",t}({}),o=function(t){return t.ADS="ads",t.TRITON_AD="triton_ads",t.CHROMECAST="chromecast",t.JINGLE="jingle",t.LIVESTREAM="livestream",t.MOD="mod",t.RADIO="radio",t}({}),s=function(t){return t[t.NONE=-1]="NONE",t[t.DEEZER=0]="DEEZER",t[t.USER=1]="USER",t[t.AD=2]="AD",t[t.TALK=3]="TALK",t[t.EXTERNAL=4]="EXTERNAL",t[t.LIVE_STREAM=5]="LIVE_STREAM",t}({}),a=function(t){return t[t.OFF=0]="OFF",t[t.ALL=1]="ALL",t[t.SINGLE=2]="SINGLE",t}({}),c=function(t){return t.PLAYLIST="playlist",t.LIVESTREAM="livestream",t.PERSONAL_LOVED="personalLoved",t.SMARTTRACKLIST="smarttracklist",t.ALBUM="album",t.TRACK="track",t.TRACK_MIX="track_mix",t.RADIO="radio",t.ARTIST="artist",t.USER="user",t.SHOW="show",t.EPISODE="episode",t.HISTORY="history",t.PERSONAL_SONG="personal_song",t.SHUFFLED_COLLECTION="shuffled_collection",t.SEARCH="search",t.SEARCH_TAG="searchTag",t.TOP_ARTIST="topArtistFull",t.MULTI_FLOW="multi_flow",t.SIDEBAR="sidebar",t}({})},r2u9(t,e,r){"use strict";r.d(e,{Ay:()=>i});const n=void 0,i=(n&&n.getCommunicationEvents(),n)},sAMA(t,e,r){"use strict";r.d(e,{Mt:()=>i,Os:()=>n,g:()=>o});const n=1,i="explicit_display",o="explicit_hide"},CyAC(t,e,r){"use strict";r.d(e,{AP:()=>o,Wh:()=>a,cV:()=>s});r("p8tg");var n=r("lXQd"),i=r("sAMA");function o(t){return(0,n.A)(t,"EXPLICIT_TRACK_CONTENT.EXPLICIT_LYRICS_STATUS",0)===i.Os}function s(t){const e=Object.keys(t).includes("EXPLICIT_ALBUM_CONTENT")?"EXPLICIT_ALBUM_CONTENT.EXPLICIT_COVER_STATUS":"EXPLICIT_TRACK_CONTENT.EXPLICIT_COVER_STATUS";return(0,n.A)(t,e,0)===i.Os}function a(t){return Number((0,n.A)(t,"SHOW_IS_EXPLICIT",0))===i.Os}},fJgm(t,e,r){"use strict";r.d(e,{A:()=>h});var n=r("H/eQ"),i=r("vXsw"),o=r("FdMc"),s=r("Wp0Y"),a=r("5G9X"),c=r("fkXJ"),u=r("xUZv"),l=r("34sk"),d=r("OPhi"),f=r("xobL");const p={removeSoftDelay:3e3,removeSoftTimers:{},isFavorite:(t,e)=>(0,d.BA)(u.A.getState().feedbacks,e,t),toggle:t=>!1===(0,f.UJ)(u.A.getState().user)?(i.g.goToConnection(),Promise.resolve()):new Promise(((e,r)=>{n.A.ready(n.A.user.userReady,(()=>{p.isFavorite(t.type,t.id)?p.remove(t).then(e).catch(r):p.add(t).then(e).catch(r)}))})),async add(t){let{id:e,type:r,context:n}=t;if(window.clearTimeout(this.getRemoveSoftTimerId(e,r)),!1===(0,f.UJ)(u.A.getState().user))return void i.g.goToConnection();if(e=String(e),p.isFavorite(r,e))return;const d=this.formatContext(n);try{await u.A.dispatch((0,l.c2)(e,r,(0,o.A)(),d))}catch(t){const e=((t,e)=>{switch(t){case a.Ay.Artist:return(0,s.AP)("Impossible d'ajouter cet artiste à vos favoris. Vous avez atteint le nombre maximum d'artistes favoris.");case a.Ay.Album:return(0,s.AP)("Impossible d'ajouter cet album à votre musique préférée. Vous avez atteint le nombre maximum d'albums ajoutés.");case a.Ay.Song:return"QUOTA_ERROR"===e.name?(0,s.AP)("notification_text_maxnumberoftracksreached_web"):null;case a.Ay.Playlist:return(0,s.AP)("Impossible de créer cette playlist. Vous avez atteint le nombre maximum de playlists dans votre bibliothèque.");case a.Ay.Radio:return"QUOTA_ERROR"===e.name?(0,s.AP)("Impossible d'ajouter ce mix à votre musique préférée. Vous avez atteint le nombre maximum de mix ajoutés."):null;default:return null}})(r,t);e&&(0,c.A)({body:e})}},async remove(t){let{id:e,type:r,context:n}=t;if(!1===(0,f.UJ)(u.A.getState().user))return void i.g.goToConnection();if(!Array.isArray(e)&&!p.isFavorite(r,String(e)))return;const o=this.formatContext(n),s=Array.isArray(e)?(0,l.Oo)(e.map(String),r,o):(0,l.$S)(String(e),r,o);try{await u.A.dispatch(s)}catch{}},removeSoft(t){let{id:e,type:r,context:n}=t;if(!1===(0,f.UJ)(u.A.getState().user))return void i.g.goToConnection();e=String(e);const o=this.formatContext(n);u.A.dispatch((0,l.Ti)(e,r,o)),this.removeSoftTimers[this.getRemoveSoftTimerKey(e,r)]=window.setTimeout((()=>{u.A.dispatch((0,l.$S)(e,r,o,!0))}),this.removeSoftDelay)},restore(t){let{id:e,type:r}=t;e=String(e),window.clearTimeout(this.getRemoveSoftTimerId(e,r)),u.A.dispatch((0,l.ZP)(e,r))},getFavoriteTimestamp:(t,e)=>(t=String(t),(0,d.vN)(u.A.getState().feedbacks,t,e)),getRemoveSoftTimerKey:(t,e)=>`${t}_${e}`,getRemoveSoftTimerId(t,e){const r=this.getRemoveSoftTimerKey(t,e);return this.removeSoftTimers[r]},formatContext:t=>"object"==typeof t&&Object.keys(t).length>=2?{id:t.ID,t:t.TYPE,c:t.CONTEXT_ID}:{}},h=p},tZCQ(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("eC9Z"),i=r("pUfN");const o={features:null,setFeatures(t){this.features={...this.features,...t}},getFeatures(){return this.features},isAllowed(t){if(!this.features)return!1;const e=(0,n.WV)({itemType:i.Wi.GATEKEEP,itemName:t});return null!==e?Boolean(e):Boolean(this.features[t])},isInitialized(){return null!==this.features},isGatekeepInitialized(){return this.isInitialized()}}},Wp0Y(t,e,r){"use strict";r.d(e,{AP:()=>i,WI:()=>o});var n=r("DL/y");function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("gettext called with an empty key");return(0,n.T)(t,e)}function o(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!arguments.length||arguments.length<3)throw new Error(`ngettext() called with incorrect number of arguments ${[t,e,r].join(",")}`);if(void 0===r.count)throw new Error(`ngettext() called with no "count" attribute ${[t,e,r].join(",")}`);const i=Number(r.count);return(0,n.T)(t,{...r,count:i})}},yZTN(t,e,r){"use strict";r.d(e,{A:()=>d});var n=r("FHOA"),i=r("qHvS"),o=r("fch4");const s=["trace","debug","info","warn","error","fatal"],a={Console:n.A,Sentry:i.A};let c=[];function u(t,e,r,n){const i="string"==typeof e&&("string"==typeof r||r instanceof Error),o=i?r:e,a=i?e:void 0;n=(a?n:r)||{},a&&(n.namespace=a),c.forEach((e=>s.indexOf(e.level)<=s.indexOf(t)&&e.log(t,o,n)))}const l={install:t=>{const{loggers:e,env:r}=(0,o.l)(t);c=e.filter((t=>{let{platform:e}=t;return!e||"client"===e})).map((t=>{let{type:e,level:n,dsn:i}=t;return new a[e]({level:n,dsn:i,env:r})}))}};for(const t of s)l[t]=u.bind(l,t);const d=l},fch4(t,e,r){"use strict";r.d(e,{l:()=>o});var n=r("3WcA"),i=r("xobL");function o(t){return{loggers:n.default.get("logger"),env:{user:{id:t.id.toString(),isEmployee:(0,i.FE)(t),country:t.COUNTRY,offerId:t.OFFER_ID.toString()},env:n.default.get("env"),release:n.default.get("release")}}}},FHOA(t,e,r){"use strict";r.d(e,{A:()=>n});class n{constructor(t){let{level:e}=t;this.levels=new Map([["trace","trace"],["debug","debug"],["info","info"],["warn","warn"],["error","error"],["fatal","error"]]),this.level=e}log(t,e,r){const{namespace:n,...i}=r||{},o=[];n&&o.push(`[${n}]`),o.push(e),Object.keys(i).length&&o.push(i);Function.prototype.bind.call(console[this.levels.get(t)],console).apply(console,o)}}},qHvS(t,e,r){"use strict";r.d(e,{A:()=>u});r("p8tg");var n=r("BEX+"),i=r("/XBK"),o=r("V87Z"),s=r("oKND"),a=r("tZCQ"),c=r("r2u9");null===c.Ay||void 0===c.Ay||c.Ay.getAppPath();class u{constructor(t){let{level:e,dsn:r,env:c}=t;this.levels=new Map([["trace","debug"],["debug","debug"],["info","info"],["warn","warning"],["error","error"],["fatal","fatal"]]),this.level=e;const u={id:c.user.id,isEmployeeUser:c.user.isEmployee};let l={country:c.user.country,offerId:c.user.offerId,environment:c.env};n.Ts({dsn:r,release:c.release,whitelistUrls:[/deezer\.com|dzcdn\.net/],ignoreErrors:['Permission denied to access property "href"',"restrict.changeBarColor is not a function","naboo is not defined","naboo.removeAds is not a function","expected expression, got '<'",/GetDeviceRemovedReason/,/freed script|script libéré|freigegebenen Skripts|script liberado|script liberato/,"AbortError","Writable side aborted"],integrations:[i.F({console:!0})],beforeSend:t=>!a.A.isAllowed("sentry")||/HeadlessChrome/.test(window.navigator.userAgent)?null:t}),o.gV(u),s.o5().setTags(l)}log(t,e,r){e=e instanceof Error?e:new Error(e);const{namespace:n,...i}=r||{},a=n?{namespace:n}:{};s.v4((r=>{r.setLevel(this.levels.get(t)),r.setExtras(i),r.setTags(a),o.Cp(e)}))}}},YaJs(t,e,r){"use strict";r.d(e,{Ts:()=>u,n7:()=>d,qB:()=>l,yl:()=>o});var n=r("LOQS"),i=r("GXXn");const o=600,s=new Map,a="undefined"!=typeof PerformanceObserver;let c;const u=()=>{a&&(c&&"disconnect"in c&&c.disconnect(),c=new PerformanceObserver((t=>{t.getEntries().forEach((t=>{if((t=>"resource"===t.entryType)(t)){const e=new URL(t.name);if(37!==e.hash.length)return;const r=e.hash.replace("#",""),o=s.get(r);o&&(((t,e,r)=>{const o=t.secureConnectionStart>0?t.connectEnd-t.secureConnectionStart:0,s=new URL(t.name),a={scheme:"http:"===s.protocol?"http":"https",host:s.host,uri:s.pathname,response_code:e,dns_resolution_ms:Math.round(t.domainLookupEnd-t.domainLookupStart),tcp_connect_ms:Math.round(t.connectEnd-t.connectStart-o),ssl_handshake_ms:Math.round(o),wait_ms:Math.round(t.responseStart-t.requestStart),answer_download_ms:Math.round(t.responseEnd-t.responseStart),answer_headers_bytes:t.transferSize-t.encodedBodySize,answer_body_bytes:t.encodedBodySize};r&&(a.client_ip=r),n.A.log((0,i.L)("network.cdn_metrics","3.0.0",a))})(t,o.response_code,o.client_ip),s.delete(r))}}))})),c.observe({entryTypes:["resource"]}))},l=(t,e,r,n)=>{if(!a)return;const i={uri:e,response_code:r};n&&(i.client_ip=n),s.set(t,i)},d=t=>{a&&s.delete(t)}},"OFa/"(t,e,r){"use strict";r.d(e,{A:()=>g});r("WpbS");var n=r("LOQS"),i=r("tZCQ"),o=r("bmsN"),FileError=r("UWRA"),s=r("dgCO"),a=r("D+Zh"),c=r("UfUf"),u=r("KBFD");r("p8tg"),r("kA3j"),r("hB5o"),r("LvTk");class l{static async testPlayerFraud(){const t=[];let e=0;const[r,n,i]=await Promise.all([this.testAudioPipelineDecryption(),this.testMediaSourceBuffering(),this.testAudioContextSilentFailures()]);return t.push(...r.indicators),e+=r.score,t.push(...n.indicators),e+=n.score,t.push(...i.indicators),e+=i.score,this.buildResult(e,t)}static async testAudioPipelineDecryption(){const t=[];let e=0;try{const r=window.crypto;if(!r||!r.getRandomValues)return t.push("crypto_api_missing"),this.buildResult(50,t);const n=new ArrayBuffer(2*6144),i=new Uint8Array(n);r.getRandomValues(i);const o="test_track_id_123".repeat(100),s=(new TextEncoder).encode(o),a=performance.now();await r.subtle.digest("SHA-256",s);performance.now()-a<.05&&(t.push("crypto_too_fast"),e+=15)}catch{t.push("audio_pipeline_decryption_failed"),e+=40}return this.buildResult(e,t)}static async testMediaSourceBuffering(){const t=[];let e=0;try{if(!window.MediaSource)return t.push("media_source_missing"),this.buildResult(60,t);['audio/mp4; codecs="mp3"',"audio/flac",'audio/mp4; codecs="flac"','audio/mp4; codecs="fLaC"',"audio/mpeg"].every((t=>!MediaSource.isTypeSupported(t)))&&(t.push("no_audio_codecs"),e+=30);const r=new MediaSource;let n=!1,i=!1,o=!1;const s=new Promise((s=>{const a=setTimeout((()=>{n||(t.push("source_open_timeout"),e+=40),s()}),1e3);r.addEventListener("sourceopen",(async()=>{n=!0;try{const t=r.addSourceBuffer('audio/mp4; codecs="mp4a.40.2"');i=!0;const e=new Uint8Array([0,0,0,32,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,97,118,99,49,109,112,52,49]);t.appendBuffer(e),o=!0,t.addEventListener("updateend",(()=>{clearTimeout(a),s()}))}catch{t.push("source_buffer_failed"),e+=35,clearTimeout(a),s()}}));const c=new Audio,u=URL.createObjectURL(r);c.src=u,setTimeout((()=>{URL.revokeObjectURL(u)}),500)}));await s,n||(t.push("source_open_never_fired"),e+=40),i||(t.push("source_buffer_creation_failed"),e+=35),!o&&i&&(t.push("append_buffer_failed"),e+=25)}catch{t.push("media_source_test_failed"),e+=50}return this.buildResult(e,t)}static async testAudioContextSilentFailures(){const t=[];let e=0;try{const r=window.AudioContext||window.webkitAudioContext;if(!r)return t.push("audio_context_missing"),this.buildResult(60,t);const n=new Promise((n=>{const i=setTimeout((()=>{t.push("audio_context_operations_timeout"),e+=35,n()}),2e3);(async()=>{try{const o=new r;44100!==o.sampleRate&&48e3!==o.sampleRate&&(t.push("unusual_sample_rate"),e+=20);const s=new Audio;try{o.createMediaElementSource(s).connect(o.destination)}catch{t.push("media_element_source_failed"),e+=30}try{o.createGain().gain.value=.5}catch{t.push("gain_node_creation_failed"),e+=15}if("suspended"===o.state)try{const t=o.resume(),e=new Promise(((t,e)=>setTimeout((()=>e(new Error("resume timeout"))),1e3)));await Promise.race([t,e])}catch(r){((null==r?void 0:r.message)||(null==r?void 0:r.toString())||"").includes("resume timeout")?(t.push("audio_context_requires_gesture"),e+=10):(t.push("audio_context_resume_failed"),e+=20)}await o.close(),clearTimeout(i),n()}catch{t.push("audio_context_test_failed"),e+=45,clearTimeout(i),n()}})()}));await n}catch{t.push("audio_context_test_failed"),e+=45}return this.buildResult(e,t)}static buildResult(t,e){let r;return r=(t=Math.min(t,100))>=this.THRESHOLDS.VERY_HIGH?"very_high":t>=this.THRESHOLDS.HIGH?"high":t>=this.THRESHOLDS.MEDIUM?"medium":"low",{level:r,score:t,indicators:e}}}l.THRESHOLDS={LOW:20,MEDIUM:40,HIGH:60,VERY_HIGH:80};var d=r("lWgj"),f=r("SLMx"),p=r("GXXn"),h=r("ZQ26");const g=new class{constructor(t,e,r){this._gatekeeper=void 0,this._logCenter=void 0,this._userContext=void 0,this._logCenter=t,this._gatekeeper=e,this._userContext=r}async log(t,e){if(!this._gatekeeper.isAllowed("metric.playback_errors"))return;const r=Object.entries(await this._getPayload(t,e)).filter((t=>{let[,e]=t;return void 0!==e})).reduce(((t,e)=>{let[r,n]=e;return Object.assign(t,{[r]:n})}),{}),n=(0,h.M)(r);this._logCenter.log((0,p.L)("playback.playback_errors","1.0.2",n))}async _getPayload(t,e){var r,n;const i=f.A.get(),{offer_id:o,user_id:p}=this._userContext.get(),h={type:u.T.LAN};if(void 0===e)return{error:{type:c.By.OTHER_ERROR,subtype:c.fP.OTHER,message:t.message||"Player is empty"},client_ip:i,offer_id:o,user_id:p,network:h,media:{id:"undefined",type:c.zu.SONG}};const g={id:String(e.id),type:String(null!==(r=e.type)&&void 0!==r?r:c.zu.SONG),format:(null===(n=e.format)||void 0===n?void 0:n.name)===d.a_.name?"MP3_MISC":e.format.name,version:String(e.version),container_type:e.containerType,container_id:e.containerId};if(e.url&&(g.url=e.url),e.sources&&(g.sources=e.sources),e.idOrigin&&(g.id=String(e.idOrigin),g.fallback_id=String(e.id)),t instanceof s.LV){return{error:{type:c.By.STREAM_BLANK_ERROR,message:y(t)},client_ip:i,offer_id:o,user_id:p,network:h,media:g}}if((0,FileError.l)(t)){return{error:{type:c.By.DECRYPTION_ERROR,message:y(t)},client_ip:i,offer_id:o,user_id:p,network:h,media:g}}if(t instanceof a.Dr){return{error:{type:c.By.NETWORK_ERROR,message:y(t)},client_ip:i,offer_id:o,user_id:p,network:h,media:g}}if(/(AUDIO_RENDERER_ERROR|PIPELINE_ERROR_READ|ffmpeg)/i.test(t.message)){const e=await l.testPlayerFraud();return{error:{type:c.By.AUDIO_RENDERER_ERROR,message:y(t)},client_ip:i,offer_id:o,user_id:p,network:h,media:g,fraud_detection:e}}return{error:{type:c.By.OTHER_ERROR,subtype:c.fP.OTHER,message:y(t)},client_ip:i,offer_id:o,user_id:p,network:h,media:g}}}(n.A,i.A,o.It);function y(t){var e,r;const n=null!==(e=null!==(r=t.message)&&void 0!==r?r:t.name)&&void 0!==e?e:"Unknown error",i=t.code?` code: ${t.code}`:"";let o="";return t.cause&&(o=function(t){return t instanceof Error||"object"==typeof t&&null!==t&&("message"in t||"name"in t)}(t.cause)?` Caused by: ${y(t.cause)}`:` Caused by: ${t.cause}`),`${n}${i}${o}`}},pGqU(t,e,r){"use strict";r.d(e,{A:()=>c});var n=r("MVPB"),i=r("4OMY"),o=r("D/zM"),s=r("+pY+"),a=(0,i.A)("counter");const c=class{constructor(t){Object.defineProperty(this,a,{writable:!0,value:void 0}),(0,n.A)(this,a)[a]=new o.A({id:s.Ps.TIME_TO_PLAY_ERROR,tags:t})}log(){(0,n.A)(this,a)[a].increment(),(0,n.A)(this,a)[a].send()}}},UfUf(t,e,r){"use strict";r.d(e,{By:()=>n,fP:()=>i,zu:()=>o});let n=function(t){return t.DECRYPTION_ERROR="DecryptionError",t.STREAM_BLANK_ERROR="StreamBlankError",t.NETWORK_ERROR="NetworkError",t.AUDIO_RENDERER_ERROR="AudioRendererError",t.OTHER_ERROR="OtherError",t}({}),i=function(t){return t.NO_NETWORK="NoNetwork",t.TIMEOUT="Timeout",t.OTHER="Other",t}({}),o=function(t){return t.EPISODE="episode",t.EXTERNAL="external",t.LIVE="live",t.SONG="song",t}({})},Vynx(t,e,r){"use strict";r.d(e,{Z:()=>y,A:()=>S});r("p8tg");var n=r("tZCQ"),i=r("lWgj"),o=r("LOQS"),s=r("GXXn"),a=r("SLMx"),c=r("RxH4"),u=r("D/zM"),l=r("+pY+");const d=class{constructor(t){this._counter=void 0,this._counter=new u.A({id:l.Ps.PLAYBACK_ATTEMPTS,tags:t})}log(){n.A.isAllowed("metric.playback_attempts")&&(this._counter.increment(),this._counter.send())}};var f=r("pGqU"),p=r("bmsN"),h=r("5G9X"),g=r("ZQ26");let y=function(t){return t.ANY_PLAYBACK_ACTION="anyPlaybackAction",t.GET_URL="getUrl",t.START_TRACK_FETCHING="startTrackFetching",t.START_RENEW_URL="startRenewUrl",t.END_RENEW_URL="endRenewUrl",t.START_BUFFERING="startBuffering",t.END_OF_PLAYBLACK_ACTION="endOfPlayblackAction",t}({});const v=["external","live",h.Ay.Livestream,h.Ay.Song,h.Ay.Episode,"undefined"],m=[],A=[y.ANY_PLAYBACK_ACTION,y.GET_URL,y.START_TRACK_FETCHING,y.START_RENEW_URL,y.END_RENEW_URL,y.START_BUFFERING,y.END_OF_PLAYBLACK_ACTION];function _(){const t={};for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{};const r=function(t){let e=m.length;for(;e--;)if(m[e].name===t)return m[e];return null}(t),{offer_id:u,user_id:l}=p.It.get();if(!r)return;if(!0===r.fulfilled||void 0===r.fulfilled)return;E.markTimeToPlayAction(y.END_OF_PLAYBLACK_ACTION);const d=c.FO.now()-r.time;r.context={container:e.container||e.name||e.TYPE||"unknown",format:"EXTERNAL"===e.format?"MP3_MISC":e.format||"unknown",id:e.id||e.ID||0,type:(e.type||"unknown").replace("_","")};const h={context:r.context,duration:d,name:`${r.name}:end`,time:c.FO.now()};m.push(h);const A={action:"next"===b||"previous"===b?`skip${b}`:b,elapsed:_(),media:{container:String(r.context.container),format:String(r.context.format),id:String(r.context.id),type:String(r.context.type)},source:"online",drm_version:"0",offer_id:u,user_id:l},S=a.A.get();S&&(A.client_ip=S),A.media.format!==i.a_.name&&n.A.isAllowed("use_media_service")&&(A.drm_version="1");const w=A.elapsed.total>6e4;if(!w&&n.A.isAllowed("metric.timetoplay")&&v.includes(A.media.type)){const t=(0,g.M)(A);o.A.log((0,s.L)("playback.time_to_play","3.0.0",t))}else if(w){new f.A({action:A.action,media_type:A.media.type,media_id:A.media.id,media_container:A.media.container,media_format:A.media.format,player_init:String(A.elapsed.player_init),drm_call:String(A.elapsed.drm_call),track_fetch:String(A.elapsed.track_fetch),buffer:String(A.elapsed.buffer),total:String(A.elapsed.total),offer_id:A.offer_id,user_id:A.user_id}).log()}r.fulfilled=!0},abort:function(){A.forEach(c.FO.clearMarks.bind(c.FO)),m.length=0}},S=E},YEdj(t,e,r){"use strict";r.d(e,{A6:()=>v});var n=r("dn5u"),i=r.n(n),o=r("LOQS"),s=r("GXXn"),a=r("RxH4");var c=r("3WcA"),u=r("tZCQ"),l=r("SLMx");const d=c.default.get("host_pipe"),f=c.default.get("host_authent"),p="/ajax/gw-light.php",h=new Map,g=t=>{let{entry:e,baseRequestInfo:r}=t;const n=((t,e,r)=>{if(!(0,a.Z5)()||!(0,a.tB)(t))return null;const n=new URL(t.name);if(37!==n.hash.length)return null;const i=t.secureConnectionStart>0?t.connectEnd-t.secureConnectionStart:0,o={scheme:"http:"===n.protocol?"http":"https",host:n.host,uri:n.pathname,response_code:e,dns_resolution_ms:Math.round(t.domainLookupEnd-t.domainLookupStart),tcp_connect_ms:Math.round(t.connectEnd-t.connectStart-i),ssl_handshake_ms:Math.round(i),wait_ms:Math.round(t.responseStart-t.requestStart),answer_download_ms:Math.round(t.responseEnd-t.responseStart),answer_headers_bytes:t.transferSize-t.encodedBodySize,answer_body_bytes:t.encodedBodySize};return r&&(o.client_ip=r),o})(e,r.response_code,r.client_ip);if(!n)return;const i={...n,method_name:r.method_name};o.A.log((0,s.L)("network.api_metrics","2.0.0",i))},y=t=>{t.getEntries().forEach((t=>{if(!(0,a.tB)(t))return;const e=new URL(t.name);if(e.host!==d&&e.host!==f&&e.pathname!==p||37!==e.hash.length)return;const r=e.hash.replace("#",""),n=h.get(r);n&&(g({entry:t,baseRequestInfo:n}),h.delete(r))}))},v=(t,e)=>{let r=null;const n=new URL(t.toString());if(r=n.host===d?JSON.parse(String(null==e?void 0:e.body)).operationName:n.host===f?n.pathname:n.pathname===p?n.searchParams.get("method"):null,!(0,a.Z5)()||"deezer.getUserData"===r||!u.A.isAllowed("metric.api"))return fetch(t,e);(new a.rj).init(y);const o=i()(),s=fetch(`${t}#${o}`,e);return s.then((t=>(((t,e,r)=>{if(!(0,a.Z5)())return;const n={response_code:e.status,method_name:r.method_name};let i=null;e.headers&&(i=e.headers.get("x-deezer-client-ip")),i&&(l.A.set(i),n.client_ip=i),h.set(t,n)})(o,t,{method_name:r}),t))),s}},"D/zM"(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("LOQS"),i=r("GXXn");const o=class{get value(){return this._value}get id(){return this._id}constructor(t){let{id:e,value:r=0,tags:n}=t;this._log=void 0,this._value=void 0,this._id=void 0,this._id=e,this._value=r,this._log={metric:{id:this._id},counter:this._value},n&&Object.keys(n).length&&(this._log.metric.tags=n)}increment(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(t<=0)throw new Error("Counter value can only increase");this._value+=t}_reset(){this._value=0}send(){this._log={...this._log,counter:this._value},n.A.log((0,i.L)("metrics.counter","1.0.0",this._log)),this._reset()}}},"+pY+"(t,e,r){"use strict";r.d(e,{Ps:()=>n});let n=function(t){return t.API_RETRY_LIMIT_REACHED="api_retry_limit_reached",t.PLAYBACK_ATTEMPTS="playback_attempts",t.DEEZTOOLS="deeztools",t.REMOTE_COMMAND_TYPE="wongyeog.command_type",t.REMOTE_COMMAND_STATUS="wongyeog.command_status",t.DEBUG_LOG_LISTEN="debug.log_listen",t.LAUNCH_MUSICQUIZ_FROM_PLAYLIST_PAGE="musicquizz.launch_musicquiz_from_playlist_page",t.TIME_TO_PLAY_ERROR="time_to_play_error",t.TMM_ERROR="tmm_error",t}({})},Uat9(t,e,r){"use strict";r.d(e,{Ay:()=>d,ts:()=>u});var n=r("tZCQ"),i=r("LOQS"),o=r("RxH4"),s=r("GXXn"),a=r("KBFD");var c=function(t){return t[t.NETWORK_ERROR=600]="NETWORK_ERROR",t[t.FORMAT_ERROR=603]="FORMAT_ERROR",t[t.RESET_BY_PEER=604]="RESET_BY_PEER",t[t.CONNECTION_TIMED_OUT=610]="CONNECTION_TIMED_OUT",t[t.CONNECTION_REFUSED=611]="CONNECTION_REFUSED",t[t.HOST_IS_DOWN=612]="HOST_IS_DOWN",t[t.BAD_RESPONSE=674]="BAD_RESPONSE",t[t.UNKNOWN_ERROR=666]="UNKNOWN_ERROR",t}(c||{});let u=function(t){return t.FETCH_REQUEST="podcast_fetch_request",t.FETCH_RESPONSE="podcast_fetch_response",t}({});function l(t){switch(t.code){case MediaError.MEDIA_ERR_ABORTED:return c.RESET_BY_PEER;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:return c.CONNECTION_REFUSED;case MediaError.MEDIA_ERR_DECODE:return c.BAD_RESPONSE;case MediaError.MEDIA_ERR_NETWORK:default:return c.NETWORK_ERROR}}const d=new class{constructor(t,e){this.logCenter=void 0,this.gatekeeper=void 0,this.logCenter=t,this.gatekeeper=e}log(t){if(!this.gatekeeper.isAllowed("metric.podcastdownload"))return;const e=(0,o.pm)(u.FETCH_REQUEST,u.FETCH_RESPONSE);if(!(e&&t.podcastId&&t.episodeId&&t.response))return;const r=new URL(t.url);this.logCenter.log((0,s.L)("network.podcast_download_metrics","2.0.0",{host:r.host,network:{type:a.T.LAN},podcast_episode_id:t.episodeId,podcast_id:t.podcastId,request_ms:Math.round(e),response_code:t.response instanceof MediaError?l(t.response):t.response,scheme:"http:"===r.protocol?"http":"https",uri:r.pathname}))}mark(t){this.gatekeeper.isAllowed("metric.podcastdownload")&&o.FO.mark(t)}}(i.A,n.A)},KBFD(t,e,r){"use strict";r.d(e,{T:()=>n});let n=function(t){return t.LAN="LAN",t.Mobile="mobile",t.Plane="plane",t.OfflineForced="offline_forced",t}({})},ZQ26(t,e,r){"use strict";r.d(e,{M:()=>s});var n=r("UfUf"),i=r("5G9X");const o={[n.zu.EPISODE]:"talk",[n.zu.EXTERNAL]:n.zu.EXTERNAL,[n.zu.LIVE]:n.zu.LIVE,[n.zu.SONG]:n.zu.SONG,[i.Ay.Track]:i.Ay.Album,[i.Ay.Livestream]:i.Ay.Album};function s(t){return t.media.type?{...t,media:{...t.media,type:(e=t.media.type,o[e]||e)}}:t;var e}},"o+h5"(t,e,r){"use strict";r.d(e,{Ay:()=>h,H9:()=>d,QE:()=>f,Tg:()=>l,qy:()=>u,t6:()=>c,yz:()=>s});r("p8tg");var n=r("3WcA"),i=r("CyAC");const o={name:"small",width:250,height:250},s={name:"medium",width:500,height:500},a=[{name:"xxx-small",width:40,height:40},{name:"xx-small",width:56,height:56},{name:"x-small",width:60,height:60},o,s,{name:"large",width:1e3,height:1e3}],c="album",u="playlist",l="show",d="virtual",f=[c,u,l,d],p={covers(t){const e=t.EPISODE_IMAGE_MD5||t.SHOW_ART_MD5?"talk":"cover",r=t.ALB_PICTURE||t.EPISODE_IMAGE_MD5||t.LIVESTREAM_IMAGE_MD5||t.PLAYLIST_PICTURE||t.SHOW_ART_MD5||"d41d8cd98f00b204e9800998ecf8427e";return a.map((t=>{let{name:i,width:o,height:s}=t;return{name:i,width:o,height:s,url:`https://${n.default.get("host_img_url_ssl")}/${e}/${r}/${s}x${o}-000000-80-0-0.jpg`}}))},hasExplicitCover:t=>(0,i.cV)(t),id:t=>String(t.ALB_ID||t.LIVE_ID||t.LIVESTREAM_ID||t.PLAYLIST_ID||t.SHOW_ID||""),name:t=>t.ALB_TITLE||t.LIVESTREAM_TITLE||t.SHOW_NAME||t.TITLE||"",path(t){const e=p.id(t);switch(p.type(t)){case c:return`/album/${e}`;case u:return`/playlist/${e}`;case l:return`/show/${e}`;default:return null}},type:t=>t.ALB_ID?c:t.PLAYLIST_ID?u:t.SHOW_ID?l:null};class h{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(p);const r=Object.keys(p);(Array.isArray(e)?e:r).filter((t=>r.includes(t))).forEach((e=>Object.defineProperty(this,e,{enumerable:!0,value:p[e](t)}))),Object.freeze(this)}cover(){const t=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:o)||{}).name;return this.covers.find((e=>e.name===t))}}h.parser=p},iwso(t,e,r){"use strict";r.d(e,{QE:()=>g,xh:()=>d,R$:()=>h,Ay:()=>v});r("p8tg"),r("WpbS");var n=r("lXQd"),i=r("lWgj"),o=r("CxZw"),s=r("CyAC");const a={id:t=>t.ART_ID,name:t=>t.ART_NAME,path(t){const e=a.id(t);return"0"===String(e)?null:`/artist/${t.ART_ID}`}};class c{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(a);const r=Object.keys(a);(Array.isArray(e)?e:r).filter((t=>r.includes(t))).forEach((e=>Object.defineProperty(this,e,{enumerable:!0,value:a[e](t)}))),Object.freeze(this)}}c.parser=a;var u=r("o+h5"),l=r("Vzbh");const d="episode",f="external",p="live",h="song",g=[d,f,p,h],y={artist:t=>y.type(t)===h?new c(t):null,artists:t=>(t.ARTISTS||[t]).map((t=>new c(t))).filter(((t,e,r)=>r.findIndex((e=>e.id===t.id))===e)),covers(t){if(y.type(t)===d)return t.EPISODE_PICTURE_MD5;return y.parent(t).covers},date:t=>Number(t.DATE_FAVORITE||t.DATE_UPDATE||t.DATE_ADD||t.EPISODE_PUBLISHED_TS||t.TS||0),description:t=>t.EPISODE_DESCRIPTION||t.SHOW_DESCRIPTION||void 0,disk:t=>Number(t.DISK_NUMBER)||null,duration(t){if(y.type(t)===p)return 1/0;return Number(t.DURATION||t.duration)||y.sources(t).filter((t=>t.size&&t.format.bitrate)).map((t=>Math.round(8*t.size/(1e3*t.format.bitrate)))).reduce(((t,e,r,n)=>{let{length:i}=n;return t+e/i}),0)},fallback:t=>t.FALLBACK&&!t.SNG_ID_ORIGIN?new v(t.FALLBACK):null,featuring(t){const e=(0,n.A)(t,"MULTI_ARTIST",[]);return 0===e.length?e:e.map((t=>{if(t.ROLE_ID&&(0===Number(t.ROLE_ID)||5===Number(t.ROLE_ID)))return new c(t)}))},gain:t=>Number(t.GAIN),hasExplicitLyrics:t=>y.type(t)===d?(0,s.Wh)(t):(0,s.AP)(t),id(t){if(t.SNG_ID_ORIGIN)return t.SNG_ID_ORIGIN;switch(y.type(t)){case d:return String(t.EPISODE_ID||"");case f:return String(t.EXTERNAL_ID||"");case p:return String(t.LIVE_ID||t.LIVESTREAM_ID||"");default:return String(t.SNG_ID||"")}},lyricsId:t=>t.LYRICS_ID?String(t.LYRICS_ID):null,md5:t=>t.MD5_ORIGIN||"",number:t=>Number(t.TRACK_NUMBER)||null,parent:t=>new u.Ay(t),playableId(t){var e;return(null===(e=this.fallback(t))||void 0===e?void 0:e.id)||this.id(t)},popularity:t=>t.RANK_SNG?Math.round(Number(t.RANK_SNG)/1e5):0,preview(t){const e=(t.MEDIA||[]).filter((t=>"preview"===t.TYPE)).map((t=>Array.isArray(t.HREF)?t.HREF[0]:t.HREF)).shift();return e?{format:i.Fy,url:e,usePipeline:!1}:null},right:t=>o.A.checkSongAvailable(t.FALLBACK||t),sources(t){if(t.EPISODE_DIRECT_STREAM_URL&&Boolean(Number(t.SHOW_IS_DIRECT_STREAM)))return[{format:i.a_,url:t.EPISODE_DIRECT_STREAM_URL,usePipeline:!1}];if(t.LIVESTREAM_URLS){const e=["aac","mp3"];return Object.keys(t.LIVESTREAM_URLS.data).sort(((t,e)=>Number(e)-Number(t))).map((r=>Object.entries(t.LIVESTREAM_URLS.data[r]).filter((t=>{let[r]=t;return e.includes(String(r).toLowerCase())})).map((t=>{let[,e]=t;return{format:i.a_,url:e,usePipeline:!1}})))).flat()}if(t.EXTERNAL||t.LIVE_STREAM)return[{format:i.a_,url:y.md5(t),usePipeline:!1}];return i.SP.map((e=>({format:e,size:Number(t[`FILESIZE_${e.name}`])}))).filter((t=>t.size))},title:t=>(t[{[d]:"EPISODE_TITLE",[p]:"LIVESTREAM_TITLE"}[y.type(t)]]||t.SNG_TITLE)+(t.VERSION?` ${t.VERSION}`:""),token:t=>t.TRACK_TOKEN||"",type:t=>t.EPISODE_ID?d:t.LIVE_ID||t.LIVESTREAM_ID?p:t.EXTERNAL?f:h,variation:t=>Number(t.VARIATION)||0,version:t=>Number(t.MEDIA_VERSION)||0};class v{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(y);this.legacy=t;const r=Object.keys(y),n=void 0===t?{}:t;(Array.isArray(e)?e:r).filter((t=>r.includes(t))).forEach((t=>this[t]=y[t](n)))}cover(t){return this.parent.cover(t)}source(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.en.STANDARD,{previous:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Math.max(this.sources.indexOf(e)+1,0);if(1===this.sources.length&&this.sources[0].format===i.a_)return this.sources.slice(r).shift();let n=i.SP;return t===l.en.HIGH?n=[i.Y7,...i.SP.slice(i.SP.indexOf(i.fq))]:t===l.en.STANDARD&&(n=[i.Y7,...i.SP.slice(i.SP.indexOf(i.Fy))]),n.map((t=>this.sources.find((e=>e.format===t)))).filter(Boolean).slice(r).shift()}}v.parser=y},Wwhz(t,e,r){"use strict";r.d(e,{A:()=>o});const n=class{constructor(t){this.set(t)}set(t){for(let e in t)({}).hasOwnProperty.call(t,e)&&(this[e]=t[e]);return this}};class i extends n{getFallback(){if(this.hasFallback())return new i(this.FALLBACK).set({ORIGIN_ID:Number(this.SNG_ID||this.EPISODE_ID),UNSEEN:this.UNSEEN,DATE_ADD:this.DATE_ADD})}hasFallback(){return this.FALLBACK}isUnseen(t){return t&&this.DATE_ADD?this.DATE_ADD>t:null}static hydrate(t){var e=[];for(let r=0,n=t.length;rs});var n=r("LurU"),i=r("WafQ"),o=r("Qyje");const s=(0,i.A)(window.history&&window.history.pushState?(0,n.zR)():(0,n.TM)(),o.stringify,o.parse)},"7K3M"(t,e,r){"use strict";r.d(e,{A:()=>n});const n=window.location},Vsul(t,e,r){"use strict";r.d(e,{A:()=>n});const n="undefined"!=typeof window?window.open:()=>{throw new Error("window.open can only be called on client-side.")}},LjZa(t,e,r){"use strict";function n(){}r.d(e,{A:()=>n})},RxH4(t,e,r){"use strict";r.d(e,{FO:()=>n,Z5:()=>o,pm:()=>i,rj:()=>a,tB:()=>s});const n=window.performance||{mark:window.performance.mark||(()=>{}),measure:window.performance.measure||(()=>{}),clearMeasures:window.performance.clearMeasures||(()=>{}),clearMarks:window.performance.clearMarks||(()=>{}),now:window.performance.now||(()=>Date.now()),getEntriesByName:window.performance.getEntriesByName||(()=>[])};function i(t,e){let r=null;const i=Math.random().toString(36).substring(7);try{n.measure(i,t,e),r=(o=n.getEntriesByName(i))[o.length-1].duration}catch{}var o;return n.clearMeasures(i),r}const o=()=>"undefined"!=typeof PerformanceObserver,s=t=>"resource"===t.entryType;class a{init(t){if(!o())return;new PerformanceObserver(t).observe({entryTypes:["resource"]})}}},UWRA(t,e,r){"use strict";r.d(e,{f:()=>FileError,l:()=>a});var n=r("4OMY"),i=r("/HWm"),o=r("8VJL"),s=(0,n.A)("FileError");class FileError extends o.A{constructor(){super(...arguments),Object.defineProperty(this,s,{writable:!0,value:void 0})}}function a(t){return t instanceof FileError||t instanceof i.f6}},dgCO(t,e,r){"use strict";r.d(e,{Au:()=>s,Ji:()=>o,LV:()=>c,SY:()=>FormatMismatchError,yw:()=>InsufficientDataError});var n=r("4OMY"),i=r("8VJL");class FormatMismatchError extends i.A{constructor(t){let{expected:e,received:r,media:n}=t;super(),this.expected=e,this.received=r,this.media=n}}class InsufficientDataError extends i.A{}class o extends i.A{constructor(t){let{buffer:e}=t;super(),this.buffer=e}}class s extends i.A{constructor(){let{media:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.media=t}}var a=(0,n.A)("StreamBlankError");class c extends i.A{constructor(){super(...arguments),Object.defineProperty(this,a,{writable:!0,value:void 0})}}},"IjN+"(t,e,r){"use strict";r.d(e,{Nc:()=>c,Rq:()=>u,Ug:()=>l,f$:()=>s,f6:()=>a,hR:()=>o});r("p8tg");var n=r("Vzbh"),i=r("lWgj");const o={[n.en.LOSSLESS]:[i.rv],[n.en.HIGH]:[i.fq],[n.en.STANDARD]:[i.Fy],[n.en.LOW]:[i.se],[n.en.UNKNOWN]:[i.Y7,i.a_]},s=t=>Object.values(o).flat().find((e=>e.enum===t)),a=t=>Object.values(o).flat().find((e=>e.name===t)),c=t=>o[n.en.LOSSLESS].includes(t)?n.en.LOSSLESS:o[n.en.HIGH].includes(t)?n.en.HIGH:o[n.en.STANDARD].includes(t)?n.en.STANDARD:o[n.en.LOW].includes(t)?n.en.LOW:n.en.UNKNOWN,u=t=>t===n.en.UNKNOWN?i.Y7:o[t].length?o[t][0]:i.Fy,l=(n.kM.NONE,n.kM.ALL,n.kM.ONE,30)},Z64h(t,e,r){"use strict";r.d(e,{$:()=>o});var n=r("9yOc"),i=r("Vzbh");const o={HTML5Renderer:self.MediaSource&&self.MediaSource.isTypeSupported&&new self.MediaSource&&(self.MediaSource.isTypeSupported(i.bH.MP3)||self.MediaSource.isTypeSupported(i.bH.MP3_IN_MP4))&&n.A.satisfies({chrome:">=55",chromium:">=55",safari:">=10",firefox:">=54",edge:">=16",opera:">=42",vivaldi:"1.6"})&&!(n.A.is("linux")&&/arm/.test(navigator.platform)&&"ontouchstart"in window)};Object.keys(o)},Vzbh(t,e,r){"use strict";r.d(e,{bH:()=>n,en:()=>i,kM:()=>o});let n=function(t){return t.FLAC="audio/flac",t.FLAC_IN_MP4='audio/mp4; codecs="flac"',t.FLAC_IN_MP4_CASE='audio/mp4; codecs="fLaC"',t.MP3="audio/mpeg",t.MP3_IN_MP4='audio/mp4; codecs="mp3"',t}({}),i=function(t){return t.HIGH="high",t.LOSSLESS="lossless",t.LOW="low",t.STANDARD="standard",t.UNKNOWN="unknown",t}({}),o=function(t){return t.ALL="all",t.NONE="none",t.ONE="one",t}({})},"4cGQ"(t,e,r){"use strict";r.d(e,{K$:()=>s,bU:()=>c,r6:()=>a,rm:()=>o});var n=r("lWgj"),i=r("WzpB");async function o(t,e,r){if(null==t)throw new TypeError("asyncSome called on `null` or `undefined`");if("function"!=typeof e)throw new TypeError;const n=Object(t),i=t.length>>>0;for(let o=0;oi});class n{constructor(t,e){this.bubbles=!1,this.cancelable=!1,this.composed=!1,this.type=void 0,this.type=t,e&&(this.bubbles=Boolean(e.bubbles),this.cancelable=Boolean(e.cancelable),this.composed=Boolean(e.composed))}}class i extends n{constructor(){for(var t=arguments.length,e=new Array(t),r=0;ri});var n=r("c0bm");class i{constructor(){this._ee=new n.A}addEventListener(t,e){this._ee.on(t,e)}dispatchEvent(t){return this._ee.emit(t.type,t)}removeEventListener(t,e){this._ee.off(t,e)}}},ktCt(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("fvjX"),i=r("SVmU");class o{constructor(){this.store=null,this.asyncReducers={},this.persistor=null,this.dispatch=t=>{if(!this.store)throw new Error("Redux store is not initialized yet. The store is initialized asynchronously and cannot be accessed in module top level.");return this.store.dispatch(t)},this.init=this.init.bind(this),this.getPersistor=this.getPersistor.bind(this),this.addReducers=this.addReducers.bind(this),this.dispatch=this.dispatch.bind(this),this.getState=this.getState.bind(this),this.replaceReducer=this.replaceReducer.bind(this),this.subscribe=this.subscribe.bind(this)}init(t,e,r){this.asyncReducers={...this.asyncReducers,...t},this.store=(0,n.createStore)((0,n.combineReducers)(this.asyncReducers),e,r),this.persistor=(0,i.GM)(this)}getPersistor(){return this.persistor}addReducers(t){let e=!1;for(const r in t)this.asyncReducers[r]||(this.asyncReducers[r]=t[r],e=!0);e&&this.store&&this.store.replaceReducer((0,n.combineReducers)(this.asyncReducers))}getState(){if(!this.store)throw new Error("Redux store is not initialized yet. The store is initialized asynchronously and cannot be accessed in module top level.");return this.store.getState()}replaceReducer(t){if(!this.store)throw new Error("Redux store is not initialized yet. The store is initialized asynchronously and cannot be accessed in module top level.");return this.store.replaceReducer(t)}subscribe(t){if(!this.store)throw new Error("Redux store is not initialized yet. The store is initialized asynchronously and cannot be accessed in module top level.");return this.store.subscribe(t)}}},HGOC(t,e,r){"use strict";r.d(e,{A:()=>n});const n=new(r("XiPH").wQ.Entity)("SONGS",{},{idAttribute:"SNG_ID"})},xUZv(t,e,r){"use strict";r.d(e,{A:()=>n});const n=new(r("ktCt").A)},zCrf(t,e,r){"use strict";r.d(e,{bm:()=>y});r("WpbS");var n=r("XiPH"),i=r("v8Co"),o=r("3R0U"),s=r("qlH3"),a=r("nrKQ"),c=r("tZCQ"),u=r("5G9X"),l=r("HGOC"),d=r("OPhi"),f=r("ISNy");const p=[];function h(t){return{...t.DATA,...t}}const g=(t,e,r,o)=>s=>new Promise(((u,d)=>{if(c.A.isAllowed("unlimited_favorite_tracks_parallel_fetch")){let s=[];for(;t.length>0;){const r=t.splice(0,e);s.push(a.A.callAsync({method:"song.getListData",data:{sng_ids:r},cachingPolicy:o}).catch((t=>{d(t)})))}return void Promise.all(s).then((t=>{const e=t.reduce(((t,e)=>(0,i.A)(t,...((null==e?void 0:e.data)||[]).map((t=>r?{...t,DATE_ADD:r}:{...t})).map((t=>(0,n.S8)(h(t),l.A))))),{});u(e)}))}const f=t.splice(0,e);0===f.length&&u();const y=a.A.call({method:"song.getListData",data:{sng_ids:f},cachingPolicy:o,error:t=>{d(t)},success:a=>{const c=(0,i.A)({},...a.data.map((t=>r?{...t,DATE_ADD:r}:{...t})).map((t=>(0,n.S8)(h(t),l.A))));t.length>0?s(g(t,e,r,o)).then((t=>{u((0,i.A)({},c,t))})).catch((t=>d(t))):u(c)}});p.push(y)})),y=function(t){let{start:e,nb:r}=t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{cacheUsage:o.u.READ_ONLY};return async(t,i)=>{const o=(0,d.ZL)(i().feedbacks,u.Ay.Song).slice(e,e+r);return await t(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(r,n)=>new Promise(((i,o)=>{const a=n().entities,c=null!==e?t.ids:t.ids.map((t=>(!(0,f.UE)(a,{id:t})||!(0,f.UE)(a,{id:t}).ALB_ID)&&t)).filter(Boolean).filter(((t,e,r)=>r.indexOf(t)===e));return c.length?(r({id:c,type:s.z.FETCH_TRACKS}),r(g(c.slice(),500,t.DATE_ADD||null,e)).then((t=>{r({type:s.z.FETCH_TRACKS_SUCCESS,id:c,data:t}),i()})).catch((t=>{r({type:s.z.FETCH_TRACKS_FAILURE,id:c,error:t}),o(t)}))):i()}))}({ids:o},n)),o}}},qlH3(t,e,r){"use strict";r.d(e,{z:()=>n});let n=function(t){return t.FETCH_TRACKS="entities/songs/FETCH_TRACKS",t.FETCH_TRACKS_FAILURE="entities/songs/FETCH_TRACKS_FAILURE",t.FETCH_TRACKS_SUCCESS="entities/songs/FETCH_TRACKS_SUCCESS",t.FETCHED_TRACK="entities/songs/FETCHED_TRACK",t.FETCHED_TRACK_FROM_CACHE="entities/songs/FETCHED_TRACK_FROM_CACHE",t.REHYDRATED_TRACK="entities/songs/REHYDRATED_TRACK",t.FETCHED_FAVORITE_TRACKS="entities/songs/FETCHED_FAVORITE_TRACKS",t.UPDATE_PERSONAL_TRACK="entities/songs/UPDATE_PERSONAL_TRACK",t}({})},ISNy(t,e,r){"use strict";r.d(e,{KW:()=>f,UE:()=>d,VL:()=>p});var n=r("G4qV"),i=r("lXQd"),o=r("nLzw"),s=r("CxZw"),a=r("5G9X"),c=r("OPhi"),u=r("s026");const l=(0,n.Ad)(n.UI,o.A),d=(t,e)=>{const r=t.SONGS[String(e.id)];if(r)return{...r,SNG_ID:String(r.SNG_ID)}},f=(t,e)=>e.map((e=>d(t,{id:e}))).filter(Boolean),p=(l([d,(t,e)=>{const r=d(t,e),n={};return r&&r.ARTISTS?r.ARTISTS.filter((t=>!n[t.ART_ID]&&(n[t.ART_ID]=!0,!0))):[]},(t,e)=>{const r=d(t,e);if(r&&r.LYRICS&&r.LYRICS_ID&&0!==r.LYRICS_ID)return{...r.LYRICS,HAS_SYNC_LYRICS:r.LYRICS.LYRICS_SYNC_JSON&&r.LYRICS.LYRICS_SYNC_JSON.length,LYRICS_TEXT:r.LYRICS.LYRICS_TEXT.split(/\r\n|\r|\n/g)}},(t,e)=>{const r=d(t,e);return(0,i.A)(r,"RELATED_ALBUMS.data")?r.RELATED_ALBUMS.data.filter((t=>s.A.checkSongAvailable(t)===s.A.READABLE)):r&&r.RELATED_ALBUMS?s.A.checkSongAvailable(r):void 0}],((t,e,r,n)=>({...t,FORMATTED_DURATION:(0,u.A)(t?t.DURATION:0),ARTISTS:e,LYRICS:r,RELATED_ALBUMS:n}))),l([t=>t.entities,t=>t.feedbacks,t=>(0,c.ZL)(t.feedbacks,a.Ay.Song)],((t,e,r)=>r.map((r=>{const n=d(t,{id:r});return"object"==typeof n&&Object.keys(n).length>1?{...n,DATE_FAVORITE:(0,c.vN)(e,a.Ay.Song,r)}:n})).filter(Boolean))))},"34sk"(t,e,r){"use strict";r.d(e,{$S:()=>f,G5:()=>y,Oo:()=>h,Ti:()=>p,ZP:()=>g,c2:()=>d});var n=r("5G9X"),i=r("xSQY"),o=r("OPhi"),s=r("yJX9"),a=r("uDSo");const c=(t,e,r)=>({type:a.y.ADD_FEEDBACK,feedback:e,feedbackType:t,itemType:r}),u=function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:a.y.REMOVE_FEEDBACK,feedbackType:t,id:e,itemType:r,silent:n}},l=(t,e,r)=>({type:a.y.REMOVE_MULTIPLE_FEEDBACKS,feedbackType:t,ids:e,itemType:r}),d=(t,e,r,a)=>async(l,d)=>{await i.A.saveFavorite(t,e,a);const f={id:t,timestamp:r};e===n.Ay.Playlist&&(f.lastSeen=f.timestamp),l(c(s.Z.favorites,f,e)),(0,o.i8)(d().feedbacks,t,e)&&l(u(s.Z.dislikes,t,e,!0))},f=function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return async o=>{await i.A.removeFavorite(t,e,r),o(u(s.Z.favorites,t,e,n))}},p=(t,e)=>r=>{r(((t,e,r)=>({type:a.y.REMOVE_SOFT_FEEDBACK,feedbackType:t,id:e,itemType:r}))(s.Z.favorites,t,e))},h=(t,e,r)=>async n=>{await i.A.removeMultipleFavorites(t,e,r),n(l(s.Z.favorites,t,e))},g=(t,e)=>r=>{r(((t,e,r)=>({type:a.y.RESTORE_FEEDBACK,feedbackType:t,id:e,itemType:r}))(s.Z.favorites,t,e))},y=t=>async e=>{e(((t,e)=>({type:a.y.REFRESH_FAVORITES,favorites:t,itemType:e}))(await i.A.getFavorites(t),t))}},OPhi(t,e,r){"use strict";r.d(e,{BA:()=>h,ZL:()=>m,i8:()=>g,pp:()=>v,vN:()=>y});var n=r("lXQd"),i=r("XOWT"),o=r("nLzw"),s=r("G4qV"),a=r("yJX9");const c=(0,s.Ad)(s.UI,o.A),u=(t,e,r)=>(0,n.A)(t,`[${e}][${r}].order`,[]),l=c([(t,e,r)=>u(t,e,r),(t,e,r)=>(0,n.A)(t,`[${e}][${r}].feedbacks`,{})],((t,e)=>t.map((t=>e[t])))),d=c(((t,e,r,i)=>(0,n.A)(t,`[${e}][${r}].feedbacks[${i}]`,null)),(t=>t)),f=(t,e,r,n)=>{const i=d(t,e,n,r);return!(!i||!i.isDeleted)&&i.isDeleted},p=(t,e,r,n)=>Boolean((0,i.A)(t,`[${e}][${n}].feedbacks[${r}]`)&&!f(t,e,r,n)),h=(t,e,r)=>p(t,a.Z.favorites,e,r),g=(t,e,r)=>p(t,a.Z.dislikes,e,r),y=(t,e,r)=>((t,e,r,n)=>{const i=d(t,e,r,n);return i?i.timestamp:null})(t,a.Z.favorites,e,r),v=function(t,e){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return((t,e,r,n)=>{const i=l(t,e,r);return n?i.length:i.filter((n=>!f(t,e,n.id,r))).length})(t,a.Z.favorites,e,r)},m=(t,e)=>((t,e,r)=>u(t,e,r))(t,a.Z.favorites,e)},uDSo(t,e,r){"use strict";r.d(e,{y:()=>n});let n=function(t){return t.INIT_FEEDBACKS="feedbacks/INIT_FEEDBACKS",t.PRELOAD_FEEDBACKS="feedbacks/PRELOAD_FEEDBACKS",t.REFRESH_FAVORITES="feedbacks/REFRESH_FAVORITES",t.ADD_FEEDBACK="feedbacks/ADD_FEEDBACK",t.ADD_MULTIPLE_FEEDBACKS="feedbacks/ADD_MULTIPLE_FEEDBACKS",t.REMOVE_FEEDBACK="feedbacks/REMOVE_FEEDBACK",t.REMOVE_MULTIPLE_FEEDBACKS="feedbacks/REMOVE_MULTIPLE_FEEDBACKS",t.REMOVE_SOFT_FEEDBACK="feedbacks/REMOVE_SOFT_FEEDBACK",t.RESTORE_FEEDBACK="feedbacks/RESTORE_FEEDBACK",t.REPLACE_FEEDBACK="feedbacks/REPLACE_FEEDBACK",t.UPDATE_LAST_SEEN_DATE="feedbacks/UPDATE_LAST_SEEN_DATE",t.REORDER_FAVORITES="feedbacks/REORDER_FAVORITES",t.RESTORE_FAVORITES_ORDER="feedbacks/RESTORE_FAVORITES_ORDER",t}({})},TqF5(t,e,r){"use strict";r.d(e,{qf:()=>i});var n=r("jaKc");const i=t=>({type:n.f.SHOW_MODAL,...t})},jaKc(t,e,r){"use strict";r.d(e,{f:()=>n});let n=function(t){return t.SHOW_MODAL="modal/SHOW_MODAL",t.HIDE_MODAL="modal/HIDE_MODAL",t.RESIZE_MODAL="modal/RESIZE_MODAL",t}({})},xobL(t,e,r){"use strict";r.d(e,{Ay:()=>y,F6:()=>a,FE:()=>l,G8:()=>_,Pe:()=>v,UJ:()=>f,Uw:()=>h,Z0:()=>c,ZR:()=>m,jQ:()=>p,ki:()=>d,mI:()=>A,mt:()=>o,nd:()=>u,z2:()=>s,zJ:()=>g});r("p8tg");var n=r("lXQd"),i=r("sAMA");const o=t=>(0,n.A)(t,"USER.SETTING"),s=t=>t.currentAudioQuality,a=t=>(0,n.A)(t,"id"),c=t=>(0,n.A)(t,"SETTING_LANG"),u=t=>Number((0,n.A)(t,"GAIN.TARGET")),l=t=>!0===(0,n.A)(t,"USER.SETTING.global.is_employee"),d=t=>!1===(0,n.A)(t,"USER.OPTIONS.ads_display"),f=t=>0!==(0,n.A)(t,"id",0),p=t=>0!==t.OFFER_ID,h=t=>(0,n.A)(t,"USER.EXPLICIT_CONTENT_LEVEL",i.Mt),g=t=>null==t?void 0:t.URL_MEDIA,y=t=>null==t?void 0:t.PLAYER_TOKEN,v=t=>{var e;return null==t||null===(e=t.USER)||void 0===e||null===(e=e.OPTIONS)||void 0===e?void 0:e.license_token},m=t=>{var e,r;return null===(e=null==t||null===(r=t.USER)||void 0===r||null===(r=r.SETTING)||void 0===r||null===(r=r.site)||void 0===r?void 0:r.player_normalize)||void 0===e||e},A=t=>{let{SERVER_TIMESTAMP:e,clientTimestampDelta:r}=t;return Math.floor(e+performance.now()/1e3-r)},_=t=>(0,n.A)(t,"USER.LOVEDTRACKS_ID","")},CxZw(t,e,r){"use strict";r.d(e,{A:()=>p});var n=r("ucSm"),i=r("Wp0Y"),o=r("CyAC"),s=r("5G9X"),a=r("fJgm"),c=r("xUZv"),u=r("xobL"),l=r("Z9d1"),d=r("sAMA");const f={READABLE:0,NOT_ENCODED:1,LOCALITY:2,MP3_FRIEND:3,PREMIUM_ONLY:4,NOT_RELEASE_FREE:5,NOT_RELEASE_PREMIUM:6,EXPLICIT_LYRICS:7,FAN_ONLY:8,checkEpisodeAvailable:function(t){return(0,u.jQ)(c.A.getState().user)||t.podcast.rights.ads.available||!t.podcast.rights.subs.available?f.READABLE:f.PREMIUM_ONLY},checkGqlSongAvailable:function(t){var e,r,n,i,o;if(null===(e=t.media)||void 0===e||!e.id)return f.NOT_ENCODED;if(t.media.id<0&&!(null!==(i=t.media.rights)&&void 0!==i&&i.ads.available||null!==(o=t.media.rights)&&void 0!==o&&o.subs.available))return 0===t.contributors.edges[0].node.id?f.MP3_FRIEND:f.LOCALITY;return(0,u.Uw)(c.A.getState().user)===d.g&&t.isExplicit?f.EXPLICIT_LYRICS:(0,u.jQ)(c.A.getState().user)||null!==(r=t.media.rights.ads)&&void 0!==r&&r.available||null===(n=t.media.rights.subs)||void 0===n||!n.available?f.READABLE:f.PREMIUM_ONLY},checkSongAvailable:function(t){if("object"!=typeof t)return f.READABLE;if("boolean"==typeof t.AVAILABLE)return t.AVAILABLE?f.READABLE:f.LOCALITY;if(void 0!==t.EXTERNAL)return f.READABLE;const e=t.RIGHTS||{};if(parseInt(t.SNG_ID,10)<0){if(0===(0,n.A)(e)||!e.STREAM_ADS_AVAILABLE&&!e.STREAM_SUB_AVAILABLE)return 0===parseInt(t.ART_ID,10)?f.MP3_FRIEND:f.LOCALITY;if(1===parseInt(t.FAN_ONLY,10)&&!a.A.isFavorite(s.Ay.Artist,t.ART_ID))return f.FAN_ONLY}return(0,u.Uw)(c.A.getState().user)===d.g&&(0,o.AP)(t)?f.EXPLICIT_LYRICS:(0,u.jQ)(c.A.getState().user)||f.isAvailableAds(e)||!f.isAvailableSub(e)?f.isAvailableAds(e)||f.isAvailableSub(e)||{}.hasOwnProperty.call(e,"STREAM_ADS_TIMESTAMP")||{}.hasOwnProperty.call(e,"STREAM_SUB_TIMESTAMP")?!(0,u.jQ)(c.A.getState().user)&&f.getTimestampAds(e)>(0,u.mI)(c.A.getState().user)?f.NOT_RELEASE_FREE:(0,u.jQ)(c.A.getState().user)&&f.getTimestampSub(e)>(0,u.mI)(c.A.getState().user)?f.NOT_RELEASE_PREMIUM:""===t.MD5_ORIGIN||0===parseInt(t.FILESIZE_MP3_128,10)&&!(0,u.jQ)(c.A.getState().user)&&parseInt(t.SNG_ID,10)>0||0===parseInt(t.FILESIZE_MP3_128,10)&&(0,u.jQ)(c.A.getState().user)&&parseInt(t.SNG_ID,10)>0&&!1===c.A.getState().user.hasHqAudioRight||0===parseInt(t.FILESIZE_MP3_128,10)&&0===parseInt(t.FILESIZE_MP3_256,10)&&0===parseInt(t.FILESIZE_MP3_320,10)&&(0,u.jQ)(c.A.getState().user)&&parseInt(t.SNG_ID,10)>0||0===parseInt(t.SNG_ID,10)&&0===parseInt(t.FILESIZE_MP3_MISC,10)?f.NOT_ENCODED:f.READABLE:f.LOCALITY:f.PREMIUM_ONLY},getMessage:function(t){switch(t){case f.NOT_ENCODED:return(0,i.AP)("Ce titre n'est pas encore encodé");case f.LOCALITY:return(0,i.AP)("Ce titre n'est pas disponible dans votre pays.");case f.MP3_FRIEND:return(0,i.AP)("Ce titre est un mp3 perso d'un autre utilisateur");case f.PREMIUM_ONLY:return(0,i.AP)("planrenaming_text_tracklimitedaccestoplanXplanXsbyrightowners_web",{sprintf:["Deezer Web","Deezer Premium"]});case f.NOT_RELEASE_FREE:case f.NOT_RELEASE_PREMIUM:return(0,i.AP)("Ce titre n'est pas encore disponible.");case f.EXPLICIT_LYRICS:return(0,i.AP)("toastmessage_text_toplayexplicitcontentupdatesettings_web");case f.FAN_ONLY:return(0,i.AP)("Ajoutez l'artiste à vos favoris pour écouter ce titre");default:return""}},getTimestampAds:function(t){return{}.hasOwnProperty.call(t,"STREAM_ADS_TIMESTAMP")?t.STREAM_ADS_TIMESTAMP:(0,l.A)(t.STREAM_ADS)},getTimestampSub:function(t){return{}.hasOwnProperty.call(t,"STREAM_SUB_TIMESTAMP")?t.STREAM_SUB_TIMESTAMP:(0,l.A)(t.STREAM_SUB)},isAvailableAds:function(t){return{}.hasOwnProperty.call(t,"STREAM_ADS_AVAILABLE")?t.STREAM_ADS_AVAILABLE:"string"==typeof t.STREAM_ADS},isAvailableSub:function(t){return{}.hasOwnProperty.call(t,"STREAM_SUB_AVAILABLE")?t.STREAM_SUB_AVAILABLE:"string"==typeof t.STREAM_SUB}},p=f},WBQ7(t,e,r){"use strict";r.d(e,{default:()=>l});var n=r("7K3M"),i=r("xUZv"),o=r("uHHB");const s="deezer",a=window.localStorage,c=(()=>{let t=Boolean(a);if(!0===t)try{a.setItem(s,Date.now()),a.removeItem(s)}catch{t=!1}return t})(),u={init:()=>{if(-1!==document.cookie.indexOf(`USER_CHECKSUMS_${i.A.getState().user.id}`)){let t=document.cookie.split("; ");for(let e in t)({}).hasOwnProperty.call(t,e)&&(0,o.A)(t[e],"",-1);n.A.href=""}},get:function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!1===c?e||!1:u.isset(t,r)?JSON.parse(a.getItem(r?t:u.formatKey(t))):void 0!==e&&e},set:function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!1!==c&&(a.setItem(r?t:u.formatKey(t),JSON.stringify(e)),!0)},isset:function(t){return!1!==c&&(t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t:u.formatKey(t),Boolean(void 0!==a[t]&&null!==a[t]))},formatKey:t=>`${t}_${i.A.getState().user.id}`},l=u},"jUB+"(t,e,r){"use strict";r.d(e,{j:()=>n});const n=5e3},oN5d(t,e,r){"use strict";r.d(e,{Ay:()=>c,WW:()=>s});var n=r("ZL5e"),i=r("JRaq");let o=function(t){return t.OPEN="ToastOpenEvent",t}({});class s extends n.A{constructor(t){super(s.type,{detail:t})}}s.type=o.OPEN;class a extends i.A{}const c=new a},fkXJ(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("oN5d"),i=r("jUB+");const o=t=>{let{body:e,isClosable:r=!1,duration:o=i.j,status:s="info",...a}=t;n.Ay.dispatchEvent(new n.WW({body:e,isClosable:r,duration:o,status:s,...a}))}},xSQY(t,e,r){"use strict";r.d(e,{A:()=>W});var n=r("Oqsq"),i=r("yJX9"),o=r("JTKS");r("p8tg");const s=[o.v.ALBUMS,o.v.ARTISTS,o.v.CHANNELS,o.v.PLAYLISTS,o.v.RADIOS,o.v.SHOWS,o.v.SONGS],a=[o.v.ARTISTS,o.v.SONGS];let c=function(t){return t.NotModified="Not modified",t}({});var u=r("g+IT"),l=r("5G9X");const d=t=>"object"==typeof t&&null!==t&&{}.hasOwnProperty.call(t,"__TYPE__")&&{}.hasOwnProperty.call(t,"DATE_FAVORITE")&&{}.hasOwnProperty.call(t,"ART_ID")&&t.__TYPE__===l.Ay.Artist&&(0,u.A)(t.DATE_FAVORITE),f=t=>"object"==typeof t&&null!==t&&{}.hasOwnProperty.call(t,"__TYPE__")&&{}.hasOwnProperty.call(t,"SNG_ID")&&t.__TYPE__===l.Ay.Song;var p=r("WBQ7");function h(t){return"object"==typeof t&&null!==t&&{}.hasOwnProperty.call(t,i.Z.favorites)&&{}.hasOwnProperty.call(t,i.Z.dislikes)}var g=r("xhuf");const y=(t,e)=>0===(0,g.A)(Object.keys(t),e).length&&0===(0,g.A)(e,Object.keys(t)).length,v=(t,e)=>`${t}_${e}`,m=(t,e)=>`${t}_${e}_order`,A=(t,e)=>{const r=p.default.get(v(t,e),null);if(function(t){if("object"!=typeof t||null===t)return!1;const e=t;return Object.keys(e).every((t=>{const r=e[t];return!!function(t){return"object"==typeof t&&null!==t&&{}.hasOwnProperty.call(t,"id")&&{}.hasOwnProperty.call(t,"timestamp")}(r)&&r.id===t}))}(r))return r;throw new Error("No (valid) feedbacks stored in local storage")},_=(t,e)=>{const r=p.default.get(m(t,e),null);if(n=r,Array.isArray(n)&&n.every((t=>"string"==typeof t)))return r;var n;throw new Error("No (valid) feedbacks order stored in local storage")},b=(t,e)=>{try{const r=A(t,e),n=_(t,e);return y(r,n)?{feedbacks:r,order:n}:{feedbacks:{},order:[]}}catch{return{feedbacks:{},order:[]}}},E=(t,e,r,n)=>{if(!1===y(r,n))throw new Error("Could not persist inconsistent feedbacks and order");p.default.set(v(t,e),r),p.default.set(m(t,e),n)},S=(t,e)=>{try{const r=A(t,e),n=_(t,e);return y(r,n)}catch{return!1}},w="feedback_checksums",T=()=>{let t;if(p.default.isset(w)&&(t=p.default.get(w)),!h(t))return null;const e={[i.Z.favorites]:{},[i.Z.dislikes]:{}};for(const r of[i.Z.favorites,i.Z.dislikes])for(const n in t[r])S(r,n)&&(e[r][n]=t[r][n]);return p.default.set(w,e),e},x=T,O=(t,e,r)=>{let n=p.default.get(w);h(n)||(n={[i.Z.favorites]:{},[i.Z.dislikes]:{}}),n[t][e]=r,p.default.set(w,n)},I=(t,e)=>{const r=T();return r&&r[t]&&r[t][e]?r[t][e]:null};var k=r("mKPD");const P=t=>Date.parse(t.replace(" ","T")+".000Z")/1e3,L=t=>{if("object"==typeof(e=t)&&null!==e&&{}.hasOwnProperty.call(e,"__TYPE__")&&{}.hasOwnProperty.call(e,"DATE_FAVORITE")&&{}.hasOwnProperty.call(e,"ALB_ID")&&e.__TYPE__===l.Ay.Album&&(0,u.A)(e.DATE_FAVORITE))return{id:t.ALB_ID,timestamp:P(t.DATE_FAVORITE)};var e;throw new Error("Could not normalize api feedback as an album feedback")},R=t=>{if(d(t)||(t=>d(t))(t))return{id:t.ART_ID,timestamp:P(t.DATE_FAVORITE)};throw new Error("Could not normalize api feedback as an artist feedback")},C=t=>{if("object"==typeof(e=t)&&null!==e&&{}.hasOwnProperty.call(e,"__TYPE__")&&{}.hasOwnProperty.call(e,"DATE_FAVORITE")&&{}.hasOwnProperty.call(e,"ID")&&e.__TYPE__===l.Ay.Channel&&(0,u.A)(e.DATE_FAVORITE))return{id:t.ID,timestamp:P(t.DATE_FAVORITE)};var e;throw new Error("Could not normalize api feedback as a channel feedback")},N=t=>{if("object"==typeof(e=t)&&null!==e&&{}.hasOwnProperty.call(e,"__TYPE__")&&{}.hasOwnProperty.call(e,"DATE_FAVORITE")&&{}.hasOwnProperty.call(e,"PLAYLIST_ID")&&(!1==={}.hasOwnProperty.call(e,"LAST_SEEN")||(0,u.A)(e.LAST_SEEN))&&(0,u.A)(e.DATE_FAVORITE)&&e.__TYPE__===l.Ay.Playlist)return{id:t.PLAYLIST_ID,timestamp:P(t.DATE_FAVORITE),lastSeen:P(t.LAST_SEEN||t.DATE_FAVORITE)};var e;throw new Error("Could not normalize api feedback as a playlist feedback")},D=t=>{if("object"==typeof(e=t)&&null!==e&&{}.hasOwnProperty.call(e,"__TYPE__")&&{}.hasOwnProperty.call(e,"DATE_FAVORITE")&&{}.hasOwnProperty.call(e,"RADIO_ID")&&e.__TYPE__===l.Ay.Radio&&(0,u.A)(e.DATE_FAVORITE))return{id:t.RADIO_ID,timestamp:P(t.DATE_FAVORITE)};var e;throw new Error("Could not normalize api feedback as a radio feedback")},M=t=>{if("object"==typeof(e=t)&&null!==e&&{}.hasOwnProperty.call(e,"__TYPE__")&&{}.hasOwnProperty.call(e,"DATE_FAVORITE")&&{}.hasOwnProperty.call(e,"SHOW_ID")&&e.__TYPE__===l.Ay.Show&&(0,u.A)(e.DATE_FAVORITE))return{id:t.SHOW_ID,timestamp:P(t.DATE_FAVORITE)};var e;throw new Error("Could not normalize api feedback as a show feedback")},j=t=>{if(f(e=t)&&{}.hasOwnProperty.call(e,"DATE_FAVORITE")&&Number.isInteger(e.DATE_FAVORITE))return{id:t.SNG_ID,timestamp:t.DATE_FAVORITE};var e;if((t=>f(t)&&{}.hasOwnProperty.call(t,"DATE_FAVORITE")&&(0,u.A)(t.DATE_FAVORITE))(t))return{id:t.SNG_ID,timestamp:P(t.DATE_FAVORITE)};throw new Error("Could not normalize api feedback as a song feedback")},F={[l.Ay.Album]:t=>L(t),[l.Ay.Artist]:t=>R(t),[l.Ay.Channel]:t=>C(t),[l.Ay.Playlist]:t=>N(t),[l.Ay.Radio]:t=>D(t),[l.Ay.Show]:t=>M(t),[l.Ay.Song]:t=>j(t)},U=(t,e)=>{if(F[e])try{return F[e](t)}catch{return null}return null},V=(t,e)=>{const r={},n=[];for(const i of t){const t=U(i,e);t&&(r[t.id]=t,n.push(t.id))}return{feedbacks:r,order:n}};var B=r("nrKQ");const H=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Promise(((n,i)=>{t!==l.Ay.Song&&i(new Error(`Fetching favorites of type ${t} is not supported`)),B.A.batch({method:"song.getFavoriteIds",data:{checksum:r},batchSize:1e4,offsetStart:e}).run().then((t=>{n(t)}))}))};var z=r("tZCQ");const G=t=>{const e={[o.A.FAVORITES]:{},[o.A.DISLIKES]:{}};for(const[r,n]of Object.entries(t[i.Z.favorites])){const t=(0,k.or)(r);e[o.A.FAVORITES][t]=n}for(const[r,n]of Object.entries(t[i.Z.dislikes])){const t=(0,k.or)(r);e[o.A.DISLIKES][t]=n}return e},q=(t,e)=>{if(!(t=>s.includes(t))(e))return{feedbacks:{},order:[]};const r=(0,k.Yh)(e);if(void 0===r)return{feedbacks:{},order:[]};const n=t[o.A.FAVORITES][e];if(void 0===n)return{feedbacks:{},order:[]};if(n===c.NotModified)return b(i.Z.favorites,r);const a=V(n.data,r);try{E(i.Z.favorites,r,a.feedbacks,a.order)}catch{return{feedbacks:{},order:[]}}return O(i.Z.favorites,r,n.checksum),a},Y=(t,e)=>{if(!(t=>a.includes(t))(e))return{feedbacks:{},order:[]};const r=(0,k.Yh)(e);if(void 0===r)return{feedbacks:{},order:[]};const n=t[o.A.DISLIKES][e];if(void 0===n)return{feedbacks:{},order:[]};if(n===c.NotModified)return b(i.Z.dislikes,r);const s=V(n.data,r);try{E(i.Z.dislikes,r,s.feedbacks,s.order)}catch{return{feedbacks:{},order:[]}}return O(i.Z.dislikes,r,n.checksum),s},W={getUserFeedbacks:()=>new Promise(((t,e)=>{(()=>{const t=x();return new Promise(((e,r)=>{B.A.call({method:"user.getAllFeedbacks",data:{checksums:t?G(t):null},success:t=>{if(z.A.isAllowed("unlimited_favorite_tracks")){const i=t[o.A.FAVORITES][o.v.SONGS];if(!i||i===c.NotModified)return void e(t);const{count:s,filtered_count:a,total:u}=i;s+a{if(r===c.NotModified)return void e(t);const s={count:i.count+r.count,total:i.total,filtered_count:i.filtered_count+r.count,data:i.data.concat(r.data),checksum:i.checksum};(0,n.A)(t,`${o.A.FAVORITES}.${o.v.SONGS}`,s),e(t)})).catch((t=>r(t))):e(t)}else e(t)},error:()=>r(new Error("Failed to retrieve user feedbacks"))})}))})().then((e=>{t((t=>{const e={[i.Z.favorites]:{},[i.Z.dislikes]:{}};for(const r of s){const n=(0,k.Yh)(r);void 0!==n&&(e[i.Z.favorites][n]=q(t,r))}for(const r of a){const n=(0,k.Yh)(r);void 0!==n&&(e[i.Z.dislikes][n]=Y(t,r))}return e})(e))})).catch((t=>e(t)))})),getFavorites:t=>new Promise(((e,r)=>{const n=I(i.Z.favorites,t);H(t,0,n).then((o=>{if(o===c.NotModified){if(null===n)return void r(new Error(`Cannot resolve favorites of type ${t}, list seems not modified, but checksum is null`));const o=b(i.Z.favorites,t);return void e(o)}const s=V(o.data,t);try{E(i.Z.favorites,t,s.feedbacks,s.order)}catch(t){r(t)}O(i.Z.favorites,t,o.checksum),e(s)})).catch((t=>r(t)))})),saveFavorite:(t,e,r)=>new Promise(((n,i)=>{let o;try{o=((t,e,r)=>{switch(e){case l.Ay.Album:return{method:"album.addFavorite",data:{ALB_ID:t,CTXT:r}};case l.Ay.Artist:return{method:"artist.addFavorite",data:{ART_ID:t,CTXT:r}};case l.Ay.Channel:return{method:"favorite_channel.add",data:{CHANNEL_ID:t,CTXT:r}};case l.Ay.Playlist:return{method:"playlist.addFavorite",data:{PARENT_PLAYLIST_ID:t,CTXT:r}};case l.Ay.Radio:return{method:"radio.addFavorite",data:{RADIO_ID:t,CTXT:r}};case l.Ay.Show:return{method:"show.addFavorite",data:{SHOW_ID:t,CTXT:r}};case l.Ay.Song:return z.A.isAllowed("unlimited_favorite_tracks")?{method:"song.addFavorites",data:{IDS:[t],CTXT:r}}:{method:"favorite_song.add",data:{SNG_ID:t,CTXT:r}};case l.Ay.User:return{method:"friend.follow",data:{friend_id:t,ctxt:r}};default:throw new Error(`Not supported favorite type "${e}"`)}})(t,e,r)}catch(t){return void i(t)}B.A.call({...o,success:r=>{!1===r&&i(new Error(`Failed to add ${e} "${t}" to user favorites`)),n()},error:r=>{r.message=`Failed to add ${e} "${t}" to user favorites`,i(r)}})})),saveMultipleFavorites:(t,e,r)=>new Promise(((n,i)=>{let o;try{o=((t,e,r)=>{if(e===l.Ay.Song){if(!z.A.isAllowed("unlimited_favorite_tracks"))throw new Error(`Not supported favorite type "${e}"`);return{method:"song.addFavorites",data:{IDS:t,CTXT:r}}}throw new Error(`Not supported favorite type "${e}"`)})(t,e,r)}catch(t){return void i(t)}B.A.call({...o,success:t=>{!1===t&&i(new Error(`Failed to add multiple ${e} to user favorites`)),n()},error:t=>{t.message=`Failed to add multiple ${e} to user favorites`,i(t)}})})),removeFavorite:(t,e,r)=>new Promise(((n,i)=>{let o;try{o=((t,e,r)=>{switch(e){case l.Ay.Album:return{method:"album.deleteFavorite",data:{ALB_ID:t,CTXT:r}};case l.Ay.Artist:return{method:"artist.deleteFavorite",data:{ART_ID:t,CTXT:r}};case l.Ay.Channel:return{method:"favorite_channel.remove",data:{CHANNEL_ID:t,CTXT:r}};case l.Ay.Playlist:return{method:"playlist.deleteFavorite",data:{PLAYLIST_ID:t,CTXT:r}};case l.Ay.Radio:return{method:"radio.deleteFavorite",data:{RADIO_ID:t,CTXT:r}};case l.Ay.Show:return{method:"show.deleteFavorite",data:{SHOW_ID:t,CTXT:r}};case l.Ay.Song:return z.A.isAllowed("unlimited_favorite_tracks")?{method:"song.removeFavorites",data:{IDS:[t],CTXT:r}}:{method:"favorite_song.remove",data:{SNG_ID:t,CTXT:r}};case l.Ay.User:return{method:"friend.unfollow",data:{friend_id:t,ctxt:r}};default:throw new Error(`Not supported favorite type "${e}"`)}})(t,e,r)}catch(t){return void i(t)}B.A.call({...o,success:r=>{!1===r&&i(new Error(`Failed to remove ${e} "${t}" from user favorites`)),n()},error:()=>i(new Error(`Failed to remove ${e} "${t}" from user favorites`))})})),removeMultipleFavorites:(t,e,r)=>new Promise(((n,i)=>{let o;try{o=((t,e,r)=>{if(e===l.Ay.Song)return z.A.isAllowed("unlimited_favorite_tracks")?{method:"song.removeFavorites",data:{IDS:t,CTXT:r}}:{method:"favorite_song.removeMulti",data:{SNG_IDS:t,CTXT:r}};throw new Error(`Not supported favorite type "${e}"`)})(t,e,r)}catch(t){return void i(t)}B.A.call({...o,success:t=>{!1===t&&i(new Error(`Failed to remove multiple ${e} from user favorites`)),n()},error:()=>i(new Error(`Failed to remove multiple ${e} from user favorites`))})})),replaceFavorite:(t,e,r)=>new Promise(((n,i)=>{let o;try{o=((t,e,r)=>{if(t!==l.Ay.Song)throw new Error(`Cannot replace favorite of type ${t}`);return{method:"favorite_song.recoverSong",data:{old_sng_id:e,new_sng_id:r}}})(t,e,r)}catch(t){return void i(t)}B.A.call({...o,success:o=>{!1===o&&i(new Error(`Failed to replace ${t} "${e}" by ${r} in user's favorites`)),n()},error:()=>i(new Error(`Failed to replace ${t} "${e}" by ${r} in user's favorites`))})})),saveDislike:(t,e,r)=>new Promise(((n,i)=>{let o;try{o=((t,e,r)=>({method:"favorite_dislike.add",data:{ID:t,TYPE:e,CTXT:r}}))(t,e,r)}catch(t){return void i(t)}B.A.call({...o,success:r=>{!1===r&&i(new Error(`Failed to add ${e} "${t}" to user dislikes`)),n()},error:r=>{r.message=`Failed to add ${e} "${t}" to user dislikes`,i(r)}})})),removeDislike:(t,e,r)=>new Promise(((n,i)=>{let o;try{o=((t,e,r)=>({method:"favorite_dislike.remove",data:{ID:t,TYPE:e,CTXT:r}}))(t,e,r)}catch(t){return void i(t)}B.A.call({...o,success:r=>{!1===r&&i(new Error(`Failed to remove ${e} "${t}" from user dislikes`)),n()},error:()=>i(new Error(`Failed to remove ${e} "${t}" from user dislikes`))})})),removeMultipleDislikes:(t,e)=>new Promise(((r,n)=>{let i;try{i=((t,e)=>({method:"favorite_dislike.removeMulti",data:{IDS:t,TYPE:e}}))(t,e)}catch(t){return void n(t)}B.A.call({...i,success:t=>{!1===t&&n(new Error(`Failed to remove multiple ${e} from user dislikes`)),r()},error:()=>n(new Error(`Failed to remove multiple ${e} from user dislikes`))})})),reorderFavorites:(t,e)=>new Promise(((r,n)=>{let i;try{i=((t,e)=>{if(t!==l.Ay.Song)throw new Error(`Cannot reorder favorites of type ${t}`);return{method:"song.reorderFavorites",data:{order:e}}})(t,e)}catch(t){return void n(t)}B.A.call({...i,success:e=>{!1===e&&n(new Error(`Failed to reorder favorites of type ${t}`)),r()},error:()=>n(new Error(`Failed to reorder favorites of type ${t}`))})})),updateFavoriteLastSeenDate:(t,e)=>new Promise(((r,n)=>{let i;try{i=((t,e)=>{if(t!==l.Ay.Playlist)throw new Error(`Cannot replace favorite of type ${t}`);return{method:"playlist.setSeen",data:{playlist_id:e}}})(t,e)}catch(t){return void n(t)}B.A.call({...i,success:i=>{!1===i&&n(new Error(`Failed to update last seen date of ${t} "${e}"`)),r()},error:()=>n(new Error(`Failed to update last seen date of ${t} "${e}"`))})})),normalize:V}},JTKS(t,e,r){"use strict";r.d(e,{A:()=>n,v:()=>i});let n=function(t){return t.FAVORITES="FAVORITES",t.DISLIKES="DISLIKES",t}({}),i=function(t){return t.ALBUMS="ALBUMS",t.ARTISTS="ARTISTS",t.CHANNELS="CHANNELS",t.PLAYLISTS="PLAYLISTS",t.RADIOS="RADIOS",t.SHOWS="SHOWS",t.SONGS="SONGS",t}({})},yJX9(t,e,r){"use strict";r.d(e,{Z:()=>n});let n=function(t){return t.favorites="favorites",t.dislikes="dislikes",t}({})},mKPD(t,e,r){"use strict";r.d(e,{Yh:()=>s,or:()=>a});r("p8tg");var n=r("JTKS"),i=r("5G9X");const o={[n.v.ALBUMS]:i.Ay.Album,[n.v.ARTISTS]:i.Ay.Artist,[n.v.CHANNELS]:i.Ay.Channel,[n.v.PLAYLISTS]:i.Ay.Playlist,[n.v.RADIOS]:i.Ay.Radio,[n.v.SHOWS]:i.Ay.Show,[n.v.SONGS]:i.Ay.Song},s=t=>o[t],a=t=>{for(const[e,r]of Object.entries(o))if(r===t)return e}},yiM3(t,e,r){"use strict";r.d(e,{L:()=>s,t:()=>a});var n=r("uFqM"),i=r("3WcA"),o=r("xUZv");const s=t=>{let e="en";const r=new URL(`https://${i.default.get("host_account")}`);{const i=location.pathname.split("/")[1];return 2===i.length&&(e=(0,n._C)(i)),r.searchParams.append("redirect_uri",location.href),r.pathname=`/${e}${t}`,location.href=r.href}};function a(t){let{route:e,redirect:r,comeback:s=!1,query:a,locale:c}=t,u=c;if(!u||2!==u.length)try{const t=o.A.getState().user.SETTING_LANG;t&&t.length>=2&&(u=t.substring(0,2).toLowerCase())}catch{}if(!u||2!==u.length){const t=location.pathname.split("/")[1];t&&2===t.length&&(u=t)}if(!u||2!==u.length){var l;const t=null===(l=navigator.language)||void 0===l?void 0:l.split("-")[0];u=t&&2===t.length?t:"en"}if(r&&!/https?:\/\//.test(r)){const[t,e]=r.split("?"),n=new URL(location.href);n.pathname=t,new URLSearchParams(e).forEach(((t,e)=>n.searchParams.append(e,t))),r=n.href}const d=new URL(`https://${i.default.get("host_account")}`);a&&Object.entries(a).forEach((t=>{let[e,r]=t;return d.searchParams.set(e,r)})),r&&d.searchParams.set("redirect_uri",r),s&&d.searchParams.set("redirect_uri",location.href);const f=(0,n._C)(u);return d.pathname=`/${f}/${"login"===e?e:"signup"}`,d.href}},vXsw(t,e,r){"use strict";r.d(e,{g:()=>p});r("p8tg");var n=r("EVdn"),i=r.n(n),o=r("yZTN"),s=r("Vsul"),a=r("7K3M"),c=r("WmA5"),u=r("xUZv"),l=r("9yOc"),d=r("bvZM");var f=r("yiM3");const p={drawFormResult:function(t,e,r){try{i()("#"+t).html(r).removeClass().addClass(e).show()}catch(t){o.A.error(t)}},navigate:function(t,e){if("/"!==t.charAt(0)){if(t.includes("http")&&!0===e.externalLink)return void(0,s.A)(t,"_blank");o.A.error("NAVIGATION","path not valid",{description:"loadBox: / is missing in your path "+t}),t="/"+t}"object"!=typeof e&&(e={}),"/login.php"!==t.substr(0,10)&&"/register.php"!==t.substr(0,13)&&"/payment/paypal_unsubscribe.php"!==t&&"/confirm.php"!==t&&"/facebook.php"!==t?(i()("#ads_expand").hide().text(""),i()(".tipsy").remove(),!1!==e.forceFaceboxClose&&(i()("#sharebox").remove(),i()("#facebox_overlay").fadeOut(),void 0!==i().facebox&&i().facebox.close()),c.A.push(t)):function(t){i()("#ads_expand").hide().text(""),i()(".tipsy").remove(),i()("#sharebox").remove(),i()("#facebox_overlay").fadeOut();var e=t.split("?"),r="";void 0!==e[1]&&(r=e[1]);var n="/"+e[0]+"?checkForm="+encodeURIComponent(u.A.getState().user.checkForm)+"&"+r;if(l.A.is("mobile")||l.A.is("tablet"))return i().get(n,(function(t){i()("body").html(t)})),!0;var o=(0,d.A)();i().facebox({ajax:n}),i()("#facebox").data("uniqid",o)}(t)},goToConnection:function(){a.A.href=(0,f.t)({route:"login"})},parseRedirectParams:function(t,e){if(window.location.search.indexOf("redirect_link")>-1&&window.location.search.indexOf("redirect_type")>-1)return window.location.search;let r="";return"object"==typeof t?("string"==typeof t.redirect_type&&(r+=`?redirect_type=${t.redirect_type}`),"string"==typeof t.redirect_link&&(r+=`&redirect_link=${t.redirect_link}`)):"/"===p.getCurrentPath()||/(login|register|signout)/.test(p.getCurrentPath())||(r=`?redirect_type=page&redirect_link=${encodeURIComponent(p.getCurrentPath(e))}`),r},getCurrentPath:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=window.location.pathname;return t&&(e+=window.location.search),e}}},V9V8(t,e,r){"use strict";r.d(e,{A:()=>o});const n="undefined"!=typeof window&&window.performance?window.performance.timeOrigin:Date.now(),i="undefined"!=typeof window&&window.performance?()=>window.performance.now():()=>Math.max(Date.now()-n,0);class o{constructor(){this._offset=0}get debug(){return{hasPerformance:Boolean("undefined"!=typeof window&&window.performance),NOW:i(),now:this.now(),offset:this._offset,ORIGIN:n}}now(){return n+this._offset+i()}update(t){let e;e="string"==typeof t?Date.parse(t):t instanceof Date?t.getTime():t,Number.isFinite(e)&&(this._offset=e-i()-n)}}},OQOy(t,e,r){"use strict";r.d(e,{$G:()=>UnauthorizedLicenseTokenError,Ax:()=>ExpiredLicenseTokenError,DY:()=>ExpiredURLError,Di:()=>NoFormatRequestedError,Dr:()=>NetworkError,FJ:()=>MediaError,Fs:()=>NoURLForMediaServiceError,JD:()=>EmptySourceError,MU:()=>TimeoutError,NJ:()=>URLProviderError,Ot:()=>ShouldFallbackError,Pr:()=>ServerError,Tu:()=>UnauthorizedTrackTokenError,Ug:()=>UnknownCodeError,VS:()=>NoFormatError,ZN:()=>ParsingError,c8:()=>SourceError,cL:()=>ExpiredTrackTokenError,fL:()=>DataError,fy:()=>UnknownMediaError,gP:()=>NoLicenseTokenError,iG:()=>APIDeprecatedError,iZ:()=>NoNetworkError,jl:()=>NoMediaResponseError,m6:()=>NoTrackTokenError,o3:()=>ResponseError,tF:()=>InvalidResponseError,y3:()=>InvalidLicenseTokenError,yP:()=>InvalidTrackTokenError});var n=r("8VJL");class URLProviderError extends n.A{constructor(){for(var t=arguments.length,e=new Array(t),r=0;ro});var n=r("PCl9");const i={offer_id:"",user_id:""};class o extends n.Ay{constructor(){super(...arguments),this._context=i}get(){return this._context}set(t){this._context=t,this.dispatchEvent(new n.up("userContextChanged",{detail:{userContext:this._context}}))}}},bmsN(t,e,r){"use strict";r.d(e,{P6:()=>v,zY:()=>A,It:()=>_});var n=r("nrKQ");var i=r("V9V8"),o=(r("p8tg"),r("WpbS"),r("2TXL"));r("LpSC");var s=r("lWgj");let a=function(t){return t.BLOWFISH="BF_CBC_STRIPE",t.NONE="NONE",t}({}),c=function(t){return t.FULL="FULL",t.PREVIEW="PREVIEW",t}({});var u=r("OQOy");var l=function(t){return t[t.INVALID_TRACK_TOKEN=2e3]="INVALID_TRACK_TOKEN",t[t.EXPIRED_TRACK_TOKEN=2001]="EXPIRED_TRACK_TOKEN",t[t.UNAUTHORIZED_TRACK_TOKEN=2002]="UNAUTHORIZED_TRACK_TOKEN",t}(l||{}),d=function(t){return t[t.INVALID_LICENSE_TOKEN=1e3]="INVALID_LICENSE_TOKEN",t[t.EXPIRED_LICENSE_TOKEN=1001]="EXPIRED_LICENSE_TOKEN",t[t.UNAUTHORIZED_LICENSE_TOKEN=1002]="UNAUTHORIZED_LICENSE_TOKEN",t[t.API_DEPRECATED=1999]="API_DEPRECATED",t}(d||{});class f{constructor(t){this.type=void 0,this.formats=void 0,this.type=c.FULL,this.formats=t}}class p extends f{constructor(){super([{cipher:a.NONE,format:"MP3_128"}]),this.type=c.PREVIEW}}class h{constructor(t,e,r,n){this._endpoint=void 0,this._license=void 0,this._timeService=void 0,this._tokenProvider=void 0,this._endpoint=`${t}/v1/get_url`,this._license=e.toString(),this._timeService=n,this._tokenProvider=r}async getURLs(t,e){if("/v1/get_url"===this._endpoint)throw new u.Fs(void 0,{tracks:t});if(0===(t=[...t]).length)throw new u.m6(void 0,{tracks:t});const r=function(t){if("preview"===t)return[new p];let e=[{cipher:a.BLOWFISH,format:t.name}];return e=s.SP.slice(s.SP.indexOf(t)).map((t=>{let{name:e}=t;return{cipher:a.BLOWFISH,format:e}})),0===e.length?[]:[new f(e)]}(e),n=(await this._tokenProvider.getTokens(t)).filter((t=>null!==t));if(n.length!==t.length)throw new u.fL("Token array does not have the right length",{tracks:t});if(!r.length)throw new u.Di(void 0,{tracks:t});const i={license_token:this._license,media:r,track_tokens:n.map((t=>t.toString()))};if(!i.license_token)throw new u.gP(void 0,{tracks:t});if(!i.track_tokens.length)throw new u.m6(void 0,{tracks:t});const o={method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json"}},c={license_token:i.license_token,media:i.media},h=await fetch(this._endpoint,o).catch((e=>{if(e instanceof TypeError)throw navigator.onLine?new u.MU(e.message,{request:c,tracks:t}):new u.iZ(e.message,{request:c,tracks:t});throw e}));if(!h)throw new u.Pr("Cannot retrieve the response",{request:c,tracks:t});const g=h.headers.get("Date");if(g&&this._timeService.update(g),!h.ok&&h.status>=500)throw Object.assign(new u.Pr(`Got an HTTP code ${h.status}`,{request:c,response:await h.text().catch((t=>t&&t instanceof Error?`${t.name}: ${t.message}`:"Failed to read")),tracks:t}),{code:`MS0${h.status}`});const y=await h.clone().text().catch((t=>t&&t instanceof Error?`${t.name}: ${t.message}`:"Failed to read")),v=await h.clone().json().catch((()=>{throw new u.ZN("Failed to parse the response",{request:c,response:y,tracks:t})})),m={request:c,response:y,tracks:t};if(function(t){return void 0!==t.errors}(v)){const{code:t=0,message:e=""}=v.errors[0]||{};switch(t){case d.API_DEPRECATED:throw new u.iG(e,{...m,code:t});case d.EXPIRED_LICENSE_TOKEN:throw new u.Ax(e,{...m,code:t});case d.INVALID_LICENSE_TOKEN:throw new u.y3(e,{...m,code:t});case d.UNAUTHORIZED_LICENSE_TOKEN:throw new u.$G(e,{...m,code:t});default:throw new u.Ug(void 0,{...m,code:t})}}if(t.length!==v.data.length)throw new u.tF(`Got ${v.data.length} tracks but expected ${t.length}`,m);return new Map(t.map(((t,e)=>{const r=v.data[e];if(function(t){return void 0!==t.errors}(r)){const{errors:e}=r,{code:n}=e[0]||{};switch(n){case l.EXPIRED_TRACK_TOKEN:return[t,new u.cL(void 0,{...m,code:n,track:t})];case l.INVALID_TRACK_TOKEN:return[t,new u.yP(void 0,{...m,code:n,track:t})];case l.UNAUTHORIZED_TRACK_TOKEN:return[t,new u.Tu(void 0,{...m,code:n,track:t})];default:return[t,new u.fy(void 0,{...m,code:n,track:t})]}}const{media:n=[]}=r;return[t,n]})))}}var g=r("fd4+");const y=new class{call(t){return n.A.call(t)}cancel(t){n.A.cancel(t)}getRequest(t){return n.A.getRequest(t)}resetSignatures(){n.A.resetSignatures()}},v=new i.A,m=new class{constructor(t){this.api=void 0,this.api=t}getTokens(t){return new Promise((e=>{const r=t.filter((t=>void 0===t.token||!t.token.toString()||!0===t.token.expired));0!==r.length?Promise.all([this.getTrackTokens(r.filter((t=>Number(t.id)>0))),this.getPersonalTrackTokens(r.filter((t=>Number(t.id)<0)))]).then((r=>{const n=new Map(r.reduce(((t,e)=>t.concat([...e])),[]));e(t.map((t=>{const e=n.get(t.id)||t.token;return e&&!e.expired?e:null})))})):e(t.map((t=>t.token||null)))}))}getTrackTokens(t){return new Promise((e=>{t.length<1?e(new Map):this.api.call({method:"song.getListData",data:{sng_ids:t.map((t=>t.id)),array_default:["SNG_ID","TRACK_TOKEN","TRACK_TOKEN_EXPIRE"]},success:t=>{const r=new Map;if(Array.isArray(t.data))for(const e of t.data)null!==e&&"object"==typeof e&&void 0!==e.SNG_ID&&"string"==typeof e.TRACK_TOKEN&&r.set(String(e.SNG_ID),new o.A(e.TRACK_TOKEN,{expire:Number(e.TRACK_TOKEN_EXPIRE)}));e(r)},error:()=>{e(new Map)}})}))}getPersonalTrackTokens(t){return new Promise((e=>{if(t.length<1)return void e(new Map);const r=t.map((t=>t.id));this.api.call({method:"personal_song.getList",success:t=>{const n=new Map;if(Array.isArray(t.data))for(const e of t.data)null!==e&&"object"==typeof e&&void 0!==e.SNG_ID&&r.includes(String(e.SNG_ID))&&void 0!==e.SNG_ID&&"string"==typeof e.TRACK_TOKEN&&n.set(String(e.SNG_ID),new o.A(e.TRACK_TOKEN,{expire:Number(e.TRACK_TOKEN_EXPIRE)}));e(n)},error:()=>{e(new Map)}})}))}}(y),A=new class{constructor(t,e){this.tokenProvider=void 0,this.timeService=void 0,this.tokenProvider=t,this.timeService=e}create(t,e){return new h(t,e,this.tokenProvider,this.timeService)}}(m,v),_=new g.Ay},Z9d1(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r("xUZv"),i=r("xobL");function o(t){let e,r,o;if(/^\d{4}-\d{1,2}-\d{1,2}$/.exec(t))e=t.split("-"),r=["0","0","0"];else{if(!/^\d{4}-\d{1,2}-\d{1,2} \d{2}:\d{2}:\d{2}$/.exec(t))return(0,i.mI)(n.A.getState().user);o=t.split(" "),r=o[1].split(":"),e=o[0].split("-")}return new Date(Number(e[0]),Number(e[1])-1,Number(e[2]),Number(r[0]),Number(r[1]),Number(r[2])).getTime()/1e3}},s026(t,e,r){"use strict";r.d(e,{A:()=>i});var n=r("QKMO");function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{displayHours:!1,padHours:!1,hideFalsyHour:!1};if(t=Number(t),t<=0||Number.isNaN(t))return"00:00";let r=Math.floor(t/3600);const i=Math.floor(e.displayHours?t%3600/60:t/60),o=Math.floor(t%3600%60);e.padHours&&(r=(0,n.A)(r,2));const s=Boolean("string"==typeof r?parseInt(r):r);return`${e.displayHours?e.hideFalsyHour&&!s?"":`${r}:`:""}${(0,n.A)(i,2)}:${(0,n.A)(o,2)}`}},QSbz(t,e,r){"use strict";r.d(e,{A:()=>s});var n=r("9yOc"),i=(r("r2u9"),r("3WcA")),o=r("h4AR");function s(){var t;let e=o.S.Desktop;n.A.is("tablet")?e=o.S.Tablet:n.A.is("mobile")&&(e=o.S.Mobile);const r=(null===(t=navigator.userAgent.match(/(?:Deezer|DeezerSDK)\/([0-9.]+)/))||void 0===t?void 0:t[1])||i.default.get("release"),s=!1;return{name:o.T.Web,family:e,electron:s,os_version:n.A.getOSVersion(),os_name:n.A.getOSName(),version:1,ua:navigator.userAgent,model:"",app_version:r,lang:"",browser:!0,browser_name:n.A.getBrowserName(),browser_version:n.A.getBrowserVersion()||""}}},SLMx(t,e,r){"use strict";let n;r.d(e,{A:()=>o});const i=new RegExp("((^s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))s*$)|(^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*$))"),o={set(t){t.length&&i.test(t)&&(n=t)},get:()=>n}},QKMO(t,e,r){"use strict";function n(t,e){for(t=String(t);t.lengthn})},uHHB(t,e,r){"use strict";r.d(e,{A:()=>i});var n=r("3WcA");function i(t,e,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=new Date;o.setDate(o.getDate()+r),o.setSeconds(o.getSeconds()+i);const s=`;domain=${n.default.get("host_cookie")}`;document.cookie=t+"="+escape(e)+s+"; path=/"+(r||i?";expires="+o.toUTCString():"")+("https:"===document.location.protocol?";SameSite=None; secure":"")}},h4AR(t,e,r){"use strict";r.d(e,{S:()=>n,T:()=>i});let n=function(t){return t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t}({}),i=function(t){return t.Electron="electron",t.Web="web",t}({})},bvZM(t,e,r){"use strict";r.d(e,{A:()=>i});const n=()=>{let t;const e=function(t,e){return e<(t=parseInt(t,10).toString(16)).length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return n.php_js||(n.php_js={}),n.php_js.uniqidSeed||(n.php_js.uniqidSeed=Math.floor(123456789*Math.random())),n.php_js.uniqidSeed+=3,t=e(String((new Date).getTime()/1e3),10),t+=e(String(n.php_js.uniqidSeed),7),t},i=n},M39V(t){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=90)}({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),i=function(){function t(){}return t.getFirstMatch=function(t,e){var r=e.match(t);return r&&r.length>0&&r[1]||""},t.getSecondMatch=function(t,e){var r=e.match(t);return r&&r.length>1&&r[2]||""},t.matchAndReturnConst=function(t,e,r){if(t.test(e))return r},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));e.push(0);var r=e[0],n=e[1];if(10===r)switch(n){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(r){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,r,n){void 0===n&&(n=!1);var i=t.getVersionPrecision(e),o=t.getVersionPrecision(r),s=Math.max(i,o),a=0,c=t.map([e,r],(function(e){var r=s-t.getVersionPrecision(e),n=e+new Array(r+1).join(".0");return t.map(n.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(n&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]1?i-1:0),s=1;s0){var s=Object.keys(r),c=a.default.find(s,(function(t){return e.isOS(t)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=a.default.find(s,(function(t){return e.isPlatform(t)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),p=a.default.find(f,(function(t){return e.isBrowser(t,!0)}));if(void 0!==p)return this.compareVersion(i[p])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var r=this.getBrowserName().toLowerCase(),n=t.toLowerCase(),i=a.default.getBrowserTypeByAlias(n);return e&&i&&(n=i.toLowerCase()),n===r},e.compareVersion=function(t){var e=[0],r=t,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(r=t.substr(1),"="===t[1]?(n=!0,r=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?r=t.substr(1):"~"===t[0]&&(n=!0,r=t.substr(1)),e.indexOf(a.default.compareVersions(i,r,n))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/gptbot/i],describe:function(t){var e={name:"GPTBot"},r=i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/chatgpt-user/i],describe:function(t){var e={name:"ChatGPT-User"},r=i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/oai-searchbot/i],describe:function(t){var e={name:"OAI-SearchBot"},r=i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var e={name:"ClaudeBot"},r=i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var e={name:"Omgilibot"},r=i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/diffbot/i],describe:function(t){var e={name:"Diffbot"},r=i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/perplexitybot/i],describe:function(t){var e={name:"PerplexityBot"},r=i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/perplexity-user/i],describe:function(t){var e={name:"Perplexity-User"},r=i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/youbot/i],describe:function(t){var e={name:"YouBot"},r=i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/meta-webindexer/i],describe:function(t){var e={name:"Meta-WebIndexer"},r=i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/meta-externalads/i],describe:function(t){var e={name:"Meta-ExternalAds"},r=i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/meta-externalagent/i],describe:function(t){var e={name:"Meta-ExternalAgent"},r=i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/meta-externalfetcher/i],describe:function(t){var e={name:"Meta-ExternalFetcher"},r=i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/amazonbot/i],describe:function(t){var e={name:"AmazonBot"},r=i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/bingbot/i],describe:function(t){var e={name:"BingCrawler"},r=i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/baiduspider/i],describe:function(t){var e={name:"BaiduSpider"},r=i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/duckduckbot/i],describe:function(t){var e={name:"DuckDuckBot"},r=i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/ia_archiver/i],describe:function(t){var e={name:"InternetArchiveCrawler"},r=i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/PaleMoon/i],describe:function(t){var e={name:"Pale Moon"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/librewolf/i],describe:function(t){var e={name:"LibreWolf"},r=i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var e={name:"Sogou Browser"},r=i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),o=i.default.getFirstMatch(/se ([\d.]+)x/i,t),s=r||n||o;return s&&(e.version=s),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e={name:"Android Browser"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(e,t),version:i.default.getSecondMatch(e,t)}}}];e.default=s,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/Roku\/DVP/],describe:function(t){var e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe:function(t){var e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(e),n={name:o.OS_MAP.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:e}}},{test:[/OpenHarmony/i],describe:function(t){var e=i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.HarmonyOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=i.default.getAndroidVersionName(e),n={name:o.OS_MAP.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:o.OS_MAP.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||i.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:e}}}];e.default=s,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/amazonbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/yahoo/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var e=i.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe:function(t){var e=i.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var e=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),r={type:o.PLATFORMS_MAP.mobile,vendor:"Nokia"};return e&&(r.model=e),r}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];e.default=s,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe:function(t){var e={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];e.default=s,t.exports=e.default}})},O2re(t,e,r){"use strict";var n=r("D3zA"),i=r("4W8N"),o=r("km3+"),s=r("az/N");t.exports=s||n.call(o,i)},"4W8N"(t){"use strict";t.exports=Function.prototype.apply},"km3+"(t){"use strict";t.exports=Function.prototype.call},"+a6j"(t,e,r){"use strict";var n=r("D3zA"),i=r("DSU0"),o=r("km3+"),s=r("O2re");t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return s(n,o,t)}},"az/N"(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},"O7/Y"(t,e,r){"use strict";var n=r("AM7I"),i=r("+a6j"),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},"w+BW"(t,e,r){"use strict";var n,i=r("+a6j"),o=r("Kqna");try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!n&&o&&o(Object.prototype,"__proto__"),a=Object,c=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof c&&function(t){return c(null==t?t:a(t))}},cckQ(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},QX98(t){"use strict";t.exports=EvalError},pkW7(t){"use strict";t.exports=Error},"3JnH"(t){"use strict";t.exports=RangeError},FAml(t){"use strict";t.exports=ReferenceError},"Z+6F"(t){"use strict";t.exports=SyntaxError},DSU0(t){"use strict";t.exports=TypeError},Z9lY(t){"use strict";t.exports=URIError},ooQL(t){"use strict";t.exports=Object},"8VJL"(t,e,r){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}r.d(e,{A:()=>o});var i=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return Object.defineProperty(r,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:r.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(r,r.constructor),n(r)):(Object.defineProperty(r,"stack",{configurable:!0,enumerable:!1,value:new Error(t).stack,writable:!0}),r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error));const o=i},uhBA(t){"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new i(n,o||t,s),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=H(t,0,1),r=H(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return B(t,G,(function(t,e,r,i){n[n.length]=r?B(i,q,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",i=Y("%"+n+"%",e),o=i.name,s=i.value,a=!1,c=i.alias;c&&(n=c[0],V(r,U([0,1],c)));for(var d=1,f=!0;d=r.length){var y=b(s,p);s=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:s[p]}else f=F(s,p),s=s[p];f&&!a&&(C[o]=s)}}return s}},F7zN(t,e,r){"use strict";var n=r("ooQL");t.exports=n.getPrototypeOf||null},"8uGy"(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},gzrF(t,e,r){"use strict";var n=r("8uGy"),i=r("F7zN"),o=r("w+BW");t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},bD3j(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},Kqna(t,e,r){"use strict";var n=r("bD3j");if(n)try{n([],"length")}catch(t){n=null}t.exports=n},UVaH(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r("FpZJ");t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},FpZJ(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},lnE3(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r("D3zA");t.exports=o.call(n,i)},LurU(t,e,r){"use strict";r.d(e,{zR:()=>_,TM:()=>x});var n=r("+9dH");function i(t){return"/"===t.charAt(0)}function o(t,e){for(var r=e,n=r+1,i=t.length;n=0;f--){var p=s[f];"."===p?o(s,f):".."===p?(o(s,f),d++):d&&(o(s,f),d--)}if(!u)for(;d--;d)s.unshift("..");!u||""===s[0]||s[0]&&i(s[0])||s.unshift("");var h=s.join("/");return r&&"/"!==h.substr(-1)&&(h+="/"),h};var a=r("9R94");function c(t){return"/"===t.charAt(0)?t:"/"+t}function u(t){return"/"===t.charAt(0)?t.substr(1):t}function l(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function d(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function f(t){var e=t.pathname,r=t.search,n=t.hash,i=e||"/";return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(i+="#"===n.charAt(0)?n:"#"+n),i}function p(t,e,r,i){var o;return"string"==typeof t?(o=function(t){var e=t||"/",r="",n="",i=e.indexOf("#");-1!==i&&(n=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(r=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===r?"":r,hash:"#"===n?"":n}}(t),o.state=e):(void 0===(o=(0,n.A)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e)),r&&(o.key=r),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function h(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,r,n,i){if(null!=t){var o="function"==typeof t?t(e,r):t;"string"==typeof o?"function"==typeof n?n(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var r=!0;function n(){r&&t.apply(void 0,arguments)}return e.push(n),function(){r=!1,e=e.filter((function(t){return t!==n}))}},notifyListeners:function(){for(var t=arguments.length,r=new Array(t),n=0;n0&&e-1 in t)}function O(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:S,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,r){return t.call(e,r,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,r=+t+(t<0?e:0);return this.pushStack(r>=0&&r+~]|"+L+")"+L+"*"),B=new RegExp(L+"|>"),H=new RegExp(j),z=new RegExp("^"+C+"$"),G={ID:new RegExp("^#("+C+")"),CLASS:new RegExp("^\\.("+C+")"),TAG:new RegExp("^("+C+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+x+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,W=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),X=function(t,e){var r="0x"+t.slice(1)-65536;return e||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},J=function(){ct()},Z=ft((function(t){return!0===t.disabled&&O(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(D.childNodes),D.childNodes),o[D.childNodes.length].nodeType}catch(t){g={apply:function(t,e){M.apply(t,a.call(e))},call:function(t){M.apply(t,a.call(arguments,1))}}}function Q(t,e,r,n){var i,o,s,a,u,l,p,h=e&&e.ownerDocument,m=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return r;if(!n&&(ct(e),e=e||c,d)){if(11!==m&&(u=W.exec(t)))if(i=u[1]){if(9===m){if(!(s=e.getElementById(i)))return r;if(s.id===i)return g.call(r,s),r}else if(h&&(s=h.getElementById(i))&&Q.contains(e,s)&&s.id===i)return g.call(r,s),r}else{if(u[2])return g.apply(r,e.getElementsByTagName(t)),r;if((i=u[3])&&e.getElementsByClassName)return g.apply(r,e.getElementsByClassName(i)),r}if(!(S[t+" "]||f&&f.test(t))){if(p=t,h=e,1===m&&(B.test(t)||V.test(t))){for((h=K.test(t)&&at(e.parentNode)||e)==e&&y.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=v)),o=(l=lt(t)).length;o--;)l[o]=(a?"#"+a:":scope")+" "+dt(l[o]);p=l.join(",")}try{return g.apply(r,h.querySelectorAll(p)),r}catch(e){S(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return mt(t.replace(R,"$1"),e,r,n)}function tt(){var t=[];return function r(n,i){return t.push(n+" ")>e.cacheLength&&delete r[t.shift()],r[n+" "]=i}}function et(t){return t[v]=!0,t}function rt(t){var e=c.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function nt(t){return function(e){return O(e,"input")&&e.type===t}}function it(t){return function(e){return(O(e,"input")||O(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Z(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et((function(e){return e=+e,et((function(r,n){for(var i,o=t([],r.length,e),s=o.length;s--;)r[i=o[s]]&&(r[i]=!(n[i]=r[i]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ct(t){var r,n=t?t.ownerDocument||t:D;return n!=c&&9===n.nodeType&&n.documentElement?(u=(c=n).documentElement,d=!T.isXMLDoc(c),h=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&D!=c&&(r=c.defaultView)&&r.top!==r&&r.addEventListener("unload",J),y.getById=rt((function(t){return u.appendChild(t).id=T.expando,!c.getElementsByName||!c.getElementsByName(T.expando).length})),y.disconnectedMatch=rt((function(t){return h.call(t,"*")})),y.scope=rt((function(){return c.querySelectorAll(":scope")})),y.cssHas=rt((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),y.getById?(e.filter.ID=function(t){var e=t.replace($,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var r=e.getElementById(t);return r?[r]:[]}}):(e.filter.ID=function(t){var e=t.replace($,X);return function(t){var r=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return r&&r.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var r,n,i,o=e.getElementById(t);if(o){if((r=o.getAttributeNode("id"))&&r.value===t)return[o];for(i=e.getElementsByName(t),n=0;o=i[n++];)if((r=o.getAttributeNode("id"))&&r.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},f=[],rt((function(t){var e;u.appendChild(t).innerHTML="",t.querySelectorAll("[selected]").length||f.push("\\["+L+"*(?:value|"+x+")"),t.querySelectorAll("[id~="+v+"-]").length||f.push("~="),t.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=c.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=c.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),y.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),w=function(t,e){if(t===e)return s=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!y.sortDetached&&e.compareDocumentPosition(t)===r?t===c||t.ownerDocument==D&&Q.contains(D,t)?-1:e===c||e.ownerDocument==D&&Q.contains(D,e)?1:i?l.call(i,t)-l.call(i,e):0:4&r?-1:1)},c):c}for(t in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(ct(t),d&&!S[e+" "]&&(!f||!f.test(e)))try{var r=h.call(t,e);if(r||y.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){S(e,!0)}return Q(e,c,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=c&&ct(t),T.contains(t,e)},Q.attr=function(t,r){(t.ownerDocument||t)!=c&&ct(t);var n=e.attrHandle[r.toLowerCase()],i=n&&p.call(e.attrHandle,r.toLowerCase())?n(t,r,!d):void 0;return void 0!==i?i:t.getAttribute(r)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,r=[],n=0,o=0;if(s=!y.sortStable,i=!y.sortStable&&a.call(t,0),k.call(t,w),s){for(;e=t[o++];)e===t[o]&&(n=r.push(o));for(;n--;)P.call(t,r[n],1)}return i=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,X),t[3]=(t[3]||t[4]||t[5]||"").replace($,X),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Q.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Q.error(t[0]),t},PSEUDO:function(t){var e,r=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":r&&H.test(r)&&(e=lt(r,!0))&&(e=r.indexOf(")",r.length-e)-r.length)&&(t[0]=t[0].slice(0,e),t[2]=r.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return O(t,e)}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&_(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,r){return function(n){var i=Q.attr(n,t);return null==i?"!="===e:!e||(i+="","="===e?i===r:"!="===e?i!==r:"^="===e?r&&0===i.indexOf(r):"*="===e?r&&i.indexOf(r)>-1:"$="===e?r&&i.slice(-r.length)===r:"~="===e?(" "+i.replace(F," ")+" ").indexOf(r)>-1:"|="===e&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,r,n,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===i?function(t){return!!t.parentNode}:function(e,r,c){var u,l,d,f,p,h=o!==s?"nextSibling":"previousSibling",g=e.parentNode,y=a&&e.nodeName.toLowerCase(),A=!c&&!a,_=!1;if(g){if(o){for(;h;){for(d=e;d=d[h];)if(a?O(d,y):1===d.nodeType)return!1;p=h="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&A){for(_=(f=(u=(l=g[v]||(g[v]={}))[t]||[])[0]===m&&u[1])&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[h]||(_=f=0)||p.pop();)if(1===d.nodeType&&++_&&d===e){l[t]=[m,f,_];break}}else if(A&&(_=f=(u=(l=e[v]||(e[v]={}))[t]||[])[0]===m&&u[1]),!1===_)for(;(d=++f&&d&&d[h]||(_=f=0)||p.pop())&&(!(a?O(d,y):1===d.nodeType)||!++_||(A&&((l=d[v]||(d[v]={}))[t]=[m,_]),d!==e)););return(_-=i)===n||_%n==0&&_/n>=0}}},PSEUDO:function(t,r){var n,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return i[v]?i(r):i.length>1?(n=[t,t,"",r],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var n,o=i(t,r),s=o.length;s--;)t[n=l.call(t,o[s])]=!(e[n]=o[s])})):function(t){return i(t,0,n)}):i}},pseudos:{not:et((function(t){var e=[],r=[],n=vt(t.replace(R,"$1"));return n[v]?et((function(t,e,r,i){for(var o,s=n(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,i,o){return e[0]=t,n(e,null,o,r),e[0]=null,!r.pop()}})),has:et((function(t){return function(e){return Q(t,e).length>0}})),contains:et((function(t){return t=t.replace($,X),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return z.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace($,X).toLowerCase(),function(e){var r;do{if(r=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(r=r.toLowerCase())===t||0===r.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},focus:function(t){return t===function(){try{return c.activeElement}catch(t){}}()&&c.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return O(t,"input")&&!!t.checked||O(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return q.test(t.nodeName)},button:function(t){return O(t,"input")&&"button"===t.type||O(t,"button")},text:function(t){var e;return O(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,r){return[r<0?r+e:r]})),even:st((function(t,e){for(var r=0;re?e:r;--n>=0;)t.push(n);return t})),gt:st((function(t,e,r){for(var n=r<0?r+e:r;++n1?function(e,r,n){for(var i=t.length;i--;)if(!t[i](e,r,n))return!1;return!0}:t[0]}function ht(t,e,r,n,i){for(var o,s=[],a=0,c=t.length,u=null!=e;a-1&&(o[u]=!(s[u]=f))}}else p=ht(p===s?p.splice(v,p.length):p),i?i(null,s,p,c):g.apply(s,p)}))}function yt(t){for(var n,i,o,s=t.length,a=e.relative[t[0].type],c=a||e.relative[" "],u=a?1:0,d=ft((function(t){return t===n}),c,!0),f=ft((function(t){return l.call(n,t)>-1}),c,!0),p=[function(t,e,i){var o=!a&&(i||e!=r)||((n=e).nodeType?d(t,e,i):f(t,e,i));return n=null,o}];u1&&pt(p),u>1&&dt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(R,"$1"),i,u0,o=t.length>0,s=function(s,a,u,l,f){var p,h,y,v=0,A="0",_=s&&[],b=[],E=r,S=s||o&&e.find.TAG("*",f),w=m+=null==E?1:Math.random()||.1,x=S.length;for(f&&(r=a==c||a||f);A!==x&&null!=(p=S[A]);A++){if(o&&p){for(h=0,a||p.ownerDocument==c||(ct(p),u=!d);y=t[h++];)if(y(p,a||c,u)){g.call(l,p);break}f&&(m=w)}i&&((p=!y&&p)&&v--,s&&_.push(p))}if(v+=A,i&&A!==v){for(h=0;y=n[h++];)y(_,b,a,u);if(s){if(v>0)for(;A--;)_[A]||b[A]||(b[A]=I.call(l));b=ht(b)}g.apply(l,b),f&&!s&&b.length>0&&v+n.length>1&&T.uniqueSort(l)}return f&&(m=w,r=E),_};return i?et(s):s}(s,o)),a.selector=t}return a}function mt(t,r,n,i){var o,s,a,c,u,l="function"==typeof t&&t,f=!i&<(t=l.selector||t);if(n=n||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===r.nodeType&&d&&e.relative[s[1].type]){if(!(r=(e.find.ID(a.matches[0].replace($,X),r)||[])[0]))return n;l&&(r=r.parentNode),t=t.slice(s.shift().value.length)}for(o=G.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[c=a.type]);)if((u=e.find[c])&&(i=u(a.matches[0].replace($,X),K.test(s[0].type)&&at(r.parentNode)||r))){if(s.splice(o,1),!(t=i.length&&dt(s)))return g.apply(n,i),n;break}}return(l||vt(t,f))(i,r,!d,n,!r||K.test(t)&&at(r.parentNode)||r),n}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,y.sortStable=v.split("").sort(w).join("")===v,ct(),y.sortDetached=rt((function(t){return 1&t.compareDocumentPosition(c.createElement("fieldset"))})),T.find=Q,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Q.compile=vt,Q.select=mt,Q.setDocument=ct,Q.tokenize=lt,Q.escape=T.escapeSelector,Q.getText=T.text,Q.isXML=T.isXMLDoc,Q.selectors=T.expr,Q.support=T.support,Q.uniqueSort=T.uniqueSort}();var j=function(t,e,r){for(var n=[],i=void 0!==r;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(r))break;n.push(t)}return n},F=function(t,e){for(var r=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&r.push(t);return r},U=T.expr.match.needsContext,V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,r){return v(e)?T.grep(t,(function(t,n){return!!e.call(t,n,t)!==r})):e.nodeType?T.grep(t,(function(t){return t===e!==r})):"string"!=typeof e?T.grep(t,(function(t){return l.call(e,t)>-1!==r})):T.filter(e,t,r)}T.filter=function(t,e,r){var n=e[0];return r&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?T.find.matchesSelector(n,t)?[n]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,r,n=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e1?T.uniqueSort(r):r},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&U.test(t)?T(t):t||[],!1).length}});var H,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,r){var n,i;if(!t)return this;if(r=r||H,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:z.exec(t))||!n[1]&&e)return!e||e.jquery?(e||r).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:A,!0)),V.test(n[1])&&T.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(i=A.getElementById(n[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==r.ready?r.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,H=T(A);var G=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function Y(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),r=e.length;return this.filter((function(){for(var t=0;t-1:1===r.nodeType&&T.find.matchesSelector(r,t))){o.push(r);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?l.call(T(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,"parentNode")},parentsUntil:function(t,e,r){return j(t,"parentNode",r)},next:function(t){return Y(t,"nextSibling")},prev:function(t){return Y(t,"previousSibling")},nextAll:function(t){return j(t,"nextSibling")},prevAll:function(t){return j(t,"previousSibling")},nextUntil:function(t,e,r){return j(t,"nextSibling",r)},prevUntil:function(t,e,r){return j(t,"previousSibling",r)},siblings:function(t){return F((t.parentNode||{}).firstChild,t)},children:function(t){return F(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(O(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(r,n){var i=T.map(this,e,r);return"Until"!==t.slice(-5)&&(n=r),n&&"string"==typeof n&&(i=T.filter(n,i)),this.length>1&&(q[t]||T.uniqueSort(i),G.test(t)&&i.reverse()),this.pushStack(i)}}));var W=/[^\x20\t\r\n\f]+/g;function K(t){return t}function $(t){throw t}function X(t,e,r,n){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(r):t&&v(i=t.then)?i.call(t,e,r):e.apply(void 0,[t].slice(n))}catch(t){r.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(W)||[],(function(t,r){e[r]=!0})),e}(t):T.extend({},t);var e,r,n,i,o=[],s=[],a=-1,c=function(){for(i=i||t.once,n=e=!0;s.length;a=-1)for(r=s.shift();++a-1;)o.splice(r,1),r<=a&&a--})),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=r="",this},disabled:function(){return!o},lock:function(){return i=s=[],r||e||(o=r=""),this},locked:function(){return!!i},fireWith:function(t,r){return i||(r=[t,(r=r||[]).slice?r.slice():r],s.push(r),e||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(r){T.each(e,(function(e,n){var i=v(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[n[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,i){var o=0;function s(t,e,r,i){return function(){var a=this,c=arguments,u=function(){var n,u;if(!(t=o&&(r!==$&&(a=void 0,c=[n]),e.rejectWith(a,c))}};t?l():(T.Deferred.getErrorHook?l.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(l.error=T.Deferred.getStackHook()),n.setTimeout(l))}}return T.Deferred((function(n){e[0][3].add(s(0,n,v(i)?i:K,n.notifyWith)),e[1][3].add(s(0,n,v(t)?t:K)),e[2][3].add(s(0,n,v(r)?r:$))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},o={};return T.each(e,(function(t,n){var s=n[2],a=n[5];i[n[1]]=s.add,a&&s.add((function(){r=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,r=e,n=Array(r),i=a.call(arguments),o=T.Deferred(),s=function(t){return function(r){n[t]=this,i[t]=arguments.length>1?a.call(arguments):r,--e||o.resolveWith(n,i)}};if(e<=1&&(X(t,o.done(s(r)).resolve,o.reject,!e),"pending"===o.state()||v(i[r]&&i[r].then)))return o.then();for(;r--;)X(i[r],s(r),o.reject);return o.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&J.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){n.setTimeout((function(){throw t}))};var Z=T.Deferred();function Q(){A.removeEventListener("DOMContentLoaded",Q),n.removeEventListener("load",Q),T.ready()}T.fn.ready=function(t){return Z.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||Z.resolveWith(A,[T]))}}),T.ready.then=Z.then,"complete"===A.readyState||"loading"!==A.readyState&&!A.documentElement.doScroll?n.setTimeout(T.ready):(A.addEventListener("DOMContentLoaded",Q),n.addEventListener("load",Q));var tt=function(t,e,r,n,i,o,s){var a=0,c=t.length,u=null==r;if("object"===E(r))for(a in i=!0,r)tt(t,e,a,r[a],!0,o,s);else if(void 0!==n&&(i=!0,v(n)||(s=!0),u&&(s?(e.call(t,n),e=null):(u=e,e=function(t,e,r){return u.call(T(t),r)})),e))for(;a1,null,!0)},removeData:function(t){return this.each((function(){ct.remove(this,t)}))}}),T.extend({queue:function(t,e,r){var n;if(t)return e=(e||"fx")+"queue",n=at.get(t,e),r&&(!n||Array.isArray(r)?n=at.access(t,e,T.makeArray(r)):n.push(r)),n||[]},dequeue:function(t,e){e=e||"fx";var r=T.queue(t,e),n=r.length,i=r.shift(),o=T._queueHooks(t,e);"inprogress"===i&&(i=r.shift(),n--),i&&("fx"===e&&r.unshift("inprogress"),delete o.stop,i.call(t,(function(){T.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var r=e+"queueHooks";return at.get(t,r)||at.access(t,r,{empty:T.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",r])}))})}}),T.fn.extend({queue:function(t,e){var r=2;return"string"!=typeof t&&(e=t,t="fx",r--),arguments.length\x20\t\r\n\f]*)/i,Ot=/^$|^module$|\/(?:java|ecma)script/i;St=A.createDocumentFragment().appendChild(A.createElement("div")),(wt=A.createElement("input")).setAttribute("type","radio"),wt.setAttribute("checked","checked"),wt.setAttribute("name","t"),St.appendChild(wt),y.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="",y.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="",y.option=!!St.lastChild;var It={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function kt(t,e){var r;return r=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&O(t,e)?T.merge([t],r):r}function Pt(t,e){for(var r=0,n=t.length;r",""]);var Lt=/<|&#?\w+;/;function Rt(t,e,r,n,i){for(var o,s,a,c,u,l,d=e.createDocumentFragment(),f=[],p=0,h=t.length;p-1)i&&i.push(o);else if(u=yt(o),s=kt(d.appendChild(o),"script"),u&&Pt(s),r)for(l=0;o=s[l++];)Ot.test(o.type||"")&&r.push(o);return d}var Ct=/^([^.]*)(?:\.(.+)|)/;function Nt(){return!0}function Dt(){return!1}function Mt(t,e,r,n,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof r&&(n=n||r,r=void 0),e)Mt(t,a,r,n,e[a],o);return t}if(null==n&&null==i?(i=r,n=r=void 0):null==i&&("string"==typeof r?(i=n,n=void 0):(i=n,n=r,r=void 0)),!1===i)i=Dt;else if(!i)return t;return 1===o&&(s=i,i=function(t){return T().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=T.guid++)),t.each((function(){T.event.add(this,e,i,n,r)}))}function jt(t,e,r){r?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var r,n=at.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=a.call(arguments),at.set(this,e,n),this[e](),r=at.get(this,e),at.set(this,e,!1),n!==r)return t.stopImmediatePropagation(),t.preventDefault(),r}else n&&(at.set(this,e,T.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Nt)}})):void 0===at.get(t,e)&&T.event.add(t,e,Nt)}T.event={global:{},add:function(t,e,r,n,i){var o,s,a,c,u,l,d,f,p,h,g,y=at.get(t);if(ot(t))for(r.handler&&(r=(o=r).handler,i=o.selector),i&&T.find.matchesSelector(gt,i),r.guid||(r.guid=T.guid++),(c=y.events)||(c=y.events=Object.create(null)),(s=y.handle)||(s=y.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(W)||[""]).length;u--;)p=g=(a=Ct.exec(e[u])||[])[1],h=(a[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},l=T.extend({type:p,origType:g,data:n,handler:r,guid:r.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=c[p])||((f=c[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,h,s)||t.addEventListener&&t.addEventListener(p,s)),d.add&&(d.add.call(t,l),l.handler.guid||(l.handler.guid=r.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),T.event.global[p]=!0)},remove:function(t,e,r,n,i){var o,s,a,c,u,l,d,f,p,h,g,y=at.hasData(t)&&at.get(t);if(y&&(c=y.events)){for(u=(e=(e||"").match(W)||[""]).length;u--;)if(p=g=(a=Ct.exec(e[u])||[])[1],h=(a[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=c[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)l=f[o],!i&&g!==l.origType||r&&r.guid!==l.guid||a&&!a.test(l.namespace)||n&&n!==l.selector&&("**"!==n||!l.selector)||(f.splice(o,1),l.selector&&f.delegateCount--,d.remove&&d.remove.call(t,l));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,h,y.handle)||T.removeEvent(t,p,y.handle),delete c[p])}else for(p in c)T.event.remove(t,p+e[u],r,n,!0);T.isEmptyObject(c)&&at.remove(t,"handle events")}},dispatch:function(t){var e,r,n,i,o,s,a=new Array(arguments.length),c=T.event.fix(t),u=(at.get(this,"events")||Object.create(null))[c.type]||[],l=T.event.special[c.type]||{};for(a[0]=c,e=1;e=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],s={},r=0;r-1:T.find(i,this,null,[u]).length),s[i]&&o.push(n);o.length&&a.push({elem:u,handlers:o})}return u=this,c\s*$/g;function Bt(t,e){return O(t,"table")&&O(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function zt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Gt(t,e){var r,n,i,o,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(r=0,n=a[i].length;r1&&"string"==typeof h&&!y.checkClone&&Ut.test(h))return t.each((function(i){var o=t.eq(i);g&&(e[0]=h.call(this,i,o.html())),Yt(o,e,r,n)}));if(f&&(o=(i=Rt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===i.childNodes.length&&(i=o),o||n)){for(a=(s=T.map(kt(i,"script"),Ht)).length;d0&&Pt(s,!c&&kt(t,"script")),a},cleanData:function(t){for(var e,r,n,i=T.event.special,o=0;void 0!==(r=t[o]);o++)if(ot(r)){if(e=r[at.expando]){if(e.events)for(n in e.events)i[n]?T.event.remove(r,n):T.removeEvent(r,n,e.handle);r[at.expando]=void 0}r[ct.expando]&&(r[ct.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Wt(this,t,!0)},remove:function(t){return Wt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Yt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)}))},prepend:function(){return Yt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(kt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},r=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ft.test(t)&&!It[(xt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;r=0&&(c+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-c-a-.5))||0),c+u}function le(t,e,r){var n=Xt(t),i=(!y.boxSizingReliable()||r)&&"border-box"===T.css(t,"boxSizing",!1,n),o=i,s=Qt(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Kt.test(s)){if(!r)return s;s="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&O(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(t,"display",!1,n))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,n),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ue(t,e,r||(i?"border":"content"),o,n,s)+"px"}function de(t,e,r,n,i){return new de.prototype.init(t,e,r,n,i)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var r=Qt(t,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,r,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=it(e),c=$t.test(e),u=t.style;if(c||(e=ie(a)),s=T.cssHooks[e]||T.cssHooks[a],void 0===r)return s&&"get"in s&&void 0!==(i=s.get(t,!1,n))?i:u[e];"string"===(o=typeof r)&&(i=pt.exec(r))&&i[1]&&(r=At(t,e,i),o="number"),null!=r&&r==r&&("number"!==o||c||(r+=i&&i[3]||(T.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==r||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(r=s.set(t,r,n))||(c?u.setProperty(e,r):u[e]=r))}},css:function(t,e,r,n){var i,o,s,a=it(e);return $t.test(e)||(e=ie(a)),(s=T.cssHooks[e]||T.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,r)),void 0===i&&(i=Qt(t,e,n)),"normal"===i&&e in ae&&(i=ae[e]),""===r||r?(o=parseFloat(i),!0===r||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,r,n){if(r)return!oe.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,n):Jt(t,se,(function(){return le(t,e,n)}))},set:function(t,r,n){var i,o=Xt(t),s=!y.scrollboxSize()&&"absolute"===o.position,a=(s||n)&&"border-box"===T.css(t,"boxSizing",!1,o),c=n?ue(t,e,n,a,o):0;return a&&s&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ue(t,e,"border",!1,o)-.5)),c&&(i=pt.exec(r))&&"px"!==(i[3]||"px")&&(t.style[e]=r,r=T.css(t,e)),ce(0,r,c)}}})),T.cssHooks.marginLeft=te(y.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(r){for(var n=0,i={},o="string"==typeof r?r.split(" "):[r];n<4;n++)i[t+ht[n]+e]=o[n]||o[n-2]||o[0];return i}},"margin"!==t&&(T.cssHooks[t+e].set=ce)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,r){var n,i,o={},s=0;if(Array.isArray(e)){for(n=Xt(t),i=e.length;s1)}}),T.Tween=de,de.prototype={constructor:de,init:function(t,e,r,n,i,o){this.elem=t,this.prop=r,this.easing=i||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(T.cssNumber[r]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,r=de.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=de.prototype.init,T.fx.step={};var fe,pe,he=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function ye(){pe&&(!1===A.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ye):n.setTimeout(ye,T.fx.interval),T.fx.tick())}function ve(){return n.setTimeout((function(){fe=void 0})),fe=Date.now()}function me(t,e){var r,n=0,i={height:t};for(e=e?1:0;n<4;n+=2-e)i["margin"+(r=ht[n])]=i["padding"+r]=t;return e&&(i.opacity=i.width=t),i}function Ae(t,e,r){for(var n,i=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),o=0,s=i.length;o1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,r){var n,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,r):(1===o&&T.isXMLDoc(t)||(i=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?be:void 0)),void 0!==r?null===r?void T.removeAttr(t,e):i&&"set"in i&&void 0!==(n=i.set(t,r,e))?n:(t.setAttribute(e,r+""),r):i&&"get"in i&&null!==(n=i.get(t,e))?n:null==(n=T.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&O(t,"input")){var r=t.value;return t.setAttribute("type",e),r&&(t.value=r),e}}}},removeAttr:function(t,e){var r,n=0,i=e&&e.match(W);if(i&&1===t.nodeType)for(;r=i[n++];)t.removeAttribute(r)}}),be={set:function(t,e,r){return!1===e?T.removeAttr(t,r):t.setAttribute(r,r),r}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var r=Ee[e]||T.find.attr;Ee[e]=function(t,e,n){var i,o,s=e.toLowerCase();return n||(o=Ee[s],Ee[s]=i,i=null!=r(t,e,n)?s:null,Ee[s]=o),i}}));var Se=/^(?:input|select|textarea|button)$/i,we=/^(?:a|area)$/i;function Te(t){return(t.match(W)||[]).join(" ")}function xe(t){return t.getAttribute&&t.getAttribute("class")||""}function Oe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(W)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,r){var n,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,i=T.propHooks[e]),void 0!==r?i&&"set"in i&&void 0!==(n=i.set(t,r,e))?n:t[e]=r:i&&"get"in i&&null!==(n=i.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,r,n,i,o,s;return v(t)?this.each((function(e){T(this).addClass(t.call(this,e,xe(this)))})):(e=Oe(t)).length?this.each((function(){if(n=xe(this),r=1===this.nodeType&&" "+Te(n)+" "){for(o=0;o-1;)r=r.replace(" "+i+" "," ");s=Te(r),n!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,e){var r,n,i,o,s=typeof t,a="string"===s||Array.isArray(t);return v(t)?this.each((function(r){T(this).toggleClass(t.call(this,r,xe(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(r=Oe(t),this.each((function(){if(a)for(o=T(this),i=0;i-1)return!0;return!1}});var Ie=/\r/g;T.fn.extend({val:function(t){var e,r,n,i=this[0];return arguments.length?(n=v(t),this.each((function(r){var i;1===this.nodeType&&(null==(i=n?t.call(this,r,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(r=e.get(i,"value"))?r:"string"==typeof(r=i.value)?r.replace(Ie,""):null==r?"":r:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,r,n,i=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],c=s?o+1:i.length;for(n=o<0?c:s?o:0;n-1)&&(r=!0);return r||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},y.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ke=n.location,Pe={guid:Date.now()},Le=/\?/;T.parseXML=function(t){var e,r;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||T.error("Invalid XML: "+(r?T.map(r.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Re=/^(?:focusinfocus|focusoutblur)$/,Ce=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,r,i){var o,s,a,c,u,l,d,f,h=[r||A],g=p.call(t,"type")?t.type:t,y=p.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=r=r||A,3!==r.nodeType&&8!==r.nodeType&&!Re.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(y=g.split("."),g=y.shift(),y.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:T.makeArray(e,[t]),d=T.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(r,e))){if(!i&&!d.noBubble&&!m(r)){for(c=d.delegateType||g,Re.test(c+g)||(s=s.parentNode);s;s=s.parentNode)h.push(s),a=s;a===(r.ownerDocument||A)&&h.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=h[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?c:d.bindType||g,(l=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&l.apply(s,e),(l=u&&s[u])&&l.apply&&ot(s)&&(t.result=l.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),e)||!ot(r)||u&&v(r[g])&&!m(r)&&((a=r[u])&&(r[u]=null),T.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,Ce),r[g](),t.isPropagationStopped()&&f.removeEventListener(g,Ce),T.event.triggered=void 0,a&&(r[u]=a)),t.result}},simulate:function(t,e,r){var n=T.extend(new T.Event,r,{type:t,isSimulated:!0});T.event.trigger(n,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var r=this[0];if(r)return T.event.trigger(t,e,r,!0)}});var Ne=/\[\]$/,De=/\r?\n/g,Me=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,r,n){var i;if(Array.isArray(e))T.each(e,(function(e,i){r||Ne.test(t)?n(t,i):Fe(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,r,n)}));else if(r||"object"!==E(e))n(t,e);else for(i in e)Fe(t+"["+i+"]",e[i],r,n)}T.param=function(t,e){var r,n=[],i=function(t,e){var r=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==r?"":r)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(r in t)Fe(r,t[r],e,i);return n.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&je.test(this.nodeName)&&!Me.test(t)&&(this.checked||!Tt.test(t))})).map((function(t,e){var r=T(this).val();return null==r?null:Array.isArray(r)?T.map(r,(function(t){return{name:e.name,value:t.replace(De,"\r\n")}})):{name:e.name,value:r.replace(De,"\r\n")}})).get()}});var Ue=/%20/g,Ve=/#.*$/,Be=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,ze=/^(?:GET|HEAD)$/,Ge=/^\/\//,qe={},Ye={},We="*/".concat("*"),Ke=A.createElement("a");function $e(t){return function(e,r){"string"!=typeof e&&(r=e,e="*");var n,i=0,o=e.toLowerCase().match(W)||[];if(v(r))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(r)):(t[n]=t[n]||[]).push(r)}}function Xe(t,e,r,n){var i={},o=t===Ye;function s(a){var c;return i[a]=!0,T.each(t[a]||[],(function(t,a){var u=a(e,r,n);return"string"!=typeof u||o||i[u]?o?!(c=u):void 0:(e.dataTypes.unshift(u),s(u),!1)})),c}return s(e.dataTypes[0])||!i["*"]&&s("*")}function Je(t,e){var r,n,i=T.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&T.extend(!0,t,n),t}Ke.href=ke.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":We,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,T.ajaxSettings),e):Je(T.ajaxSettings,t)},ajaxPrefilter:$e(qe),ajaxTransport:$e(Ye),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,a,c,u,l,d,f,p=T.ajaxSetup({},e),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?T(h):T.event,y=T.Deferred(),v=T.Callbacks("once memory"),m=p.statusCode||{},_={},b={},E="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=He.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)S.always(t[S.status]);else for(e in t)m[e]=[m[e],t[e]];return this},abort:function(t){var e=t||E;return r&&r.abort(e),w(0,e),this}};if(y.promise(S),p.url=((t||p.url||ke.href)+"").replace(Ge,ke.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(W)||[""],null==p.crossDomain){c=A.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Ke.protocol+"//"+Ke.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Xe(qe,p,e,S),u)return S;for(d in(l=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ze.test(p.type),i=p.url.replace(Ve,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ue,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Le.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Be,"$1"),f=(Le.test(i)?"&":"?")+"_="+Pe.guid+++f),p.url=i+f),p.ifModified&&(T.lastModified[i]&&S.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&S.setRequestHeader("If-None-Match",T.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+We+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,S,p)||u))return S.abort();if(E="abort",v.add(p.complete),S.done(p.success),S.fail(p.error),r=Xe(Ye,p,e,S)){if(S.readyState=1,l&&g.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(a=n.setTimeout((function(){S.abort("timeout")}),p.timeout));try{u=!1,r.send(_,w)}catch(t){if(u)throw t;w(-1,t)}}else w(-1,"No Transport");function w(t,e,s,c){var d,f,A,_,b,E=e;u||(u=!0,a&&n.clearTimeout(a),r=void 0,o=c||"",S.readyState=t>0?4:0,d=t>=200&&t<300||304===t,s&&(_=function(t,e,r){for(var n,i,o,s,a=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(i in a)if(a[i]&&a[i].test(n)){c.unshift(i);break}if(c[0]in r)o=c[0];else{for(i in r){if(!c[0]||t.converters[i+" "+c[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==c[0]&&c.unshift(o),r[o]}(p,S,s)),!d&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(t,e,r,n){var i,o,s,a,c,u={},l=t.dataTypes.slice();if(l[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=l.shift();o;)if(t.responseFields[o]&&(r[t.responseFields[o]]=e),!c&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=o,o=l.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(s=u[c+" "+o]||u["* "+o]))for(i in u)if((a=i.split(" "))[1]===o&&(s=u[c+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[i]:!0!==u[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:e}}(p,_,S,d),d?(p.ifModified&&((b=S.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=b),(b=S.getResponseHeader("etag"))&&(T.etag[i]=b)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=_.state,f=_.data,d=!(A=_.error))):(A=E,!t&&E||(E="error",t<0&&(t=0))),S.status=t,S.statusText=(e||E)+"",d?y.resolveWith(h,[f,E,S]):y.rejectWith(h,[S,E,A]),S.statusCode(m),m=void 0,l&&g.trigger(d?"ajaxSuccess":"ajaxError",[S,p,d?f:A]),v.fireWith(h,[S,E]),l&&(g.trigger("ajaxComplete",[S,p]),--T.active||T.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,r){return T.get(t,e,r,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,r,n,i){return v(r)&&(i=i||n,n=r,r=void 0),T.ajax(T.extend({url:t,type:e,dataType:i,data:r,success:n},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,r){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,r)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),r=e.contents();r.length?r.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(r){T(this).wrapAll(e?t.call(this,r):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},Qe=T.ajaxSettings.xhr();y.cors=!!Qe&&"withCredentials"in Qe,y.ajax=Qe=!!Qe,T.ajaxTransport((function(t){var e,r;if(y.cors||Qe&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(e=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ze[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),r=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,r;if(t.crossDomain||t.scriptAttrs)return{send:function(n,i){e=T("