PageSourceSearch

https://tartecosmetics.com/cdn/shop/t/516/assets/init-i18n-BZHzXbdw.js

js tartecosmetics.com collected 2026-09-24 17:44:46 UTC 55,356 bytes, 2 lines download raw bytes

1const mt={pricing:{price_amount:"{{amount}}",price_range:"{{low}} - {{high}}",price_label_sale:"Sale",price_label_msrp:"MSRP"},search:{search_button:{label:"Search"},clear_button:{label:"Clear Search"},load_more_button:{label:"Load More"},live_region:{label_load_more_one:"Loaded {{count}} more result",label_load_more_other:"Loaded {{count}} more results",label_results_one:"Showing {{count}} result",label_results_other:"Showing {{count}} results",loading:"Loading more results"},product_tile:{image_alt_text_fallback:"Product image",add_to_cart:"Add to Cart"},no_results:'No results for "{{searchText}}" Please try checking your spelling, changing your search term, or being less specific.',filter:{remove:"Remove {{label}}",refine_by:"Refine by {{facetName}}: {{label}}",range:"{{low}} - {{high}}",range_low_field:"{{name}} range low",range_high_field:"{{name}} range high",facet:{value_icon_image_alt:"Representation of {{facetName}}",expand:"Expand {{name}}",collapse:"Collapse {{name}}"},count:{count_exact_one:"(1 result)",count_exact_other:"({{count}} results)",count_min_one:"(at least 1 result)",count_min_other:"(at least {{count}} results)",count_approximate_one:"About 1 result",count_approximate_other:"About {{count}} results",count_range:"Between {{low}} and {{high}} results",count_exact_accessible_one:"1 result available for {{label}}",count_exact_accessible_other:"{{count}} results available for {{label}}",count_approximate_accessible_one:"About 1 result available for {{label}}",count_approximate_accessible_other:"About {{count}} results available for {{label}}",count_range_accessible:"Between {{low}} and {{high}} results available for {{label}}"}},sorting:{label:"Sort"},filter_reset_button:{label:"Clear All"},swatch:{more_swatches:"+{{count}} More"}},page_summary:{result_total_one:"{{count}} Item",result_total_other:"{{count}} Items",result_total_zero:"No Results",result_total_approximate:"About {{count}} Items",result_total_range:"About {{low}} to {{high}} Items",result_total_range_min:"At Least {{low}} Items",result_total_range_max:"At Most {{high}} Items"},page_navigation:{title:"Viewing page {{currentPageNumber}} of {{totalPages}} (running total of {{runningTotal}}), Showing {{currentlyVisible}} of {{total}}",number_aria_label:"Page {{pageNumber}}",previous_aria_label:"Previous Page",next_aria_label:"Next Page",previous:"Previous",next:"Next",first_aria_label:"First Page",last_aria_label:"Last Page",first:"First",last:"Last",ellipsized:"...",total:{count_exact_one:"{{count}}",count_exact_other:"{{count}}",count_min_one:"at least {{count}}",count_min_other:"at least {{count}}",count_approximate_one:"about {{count}}",count_approximate_other:"about {{count}}",count_range:"between {{low}} and {{high}}",count_range_min:"at least {{low}}"},shown_so_far:{count_exact_one:"{{count}}",count_exact_other:"{{count}}",count_min_one:"at least {{count}}",count_min_other:"at least {{count}}",count_approximate_one:"about {{count}}",count_approximate_other:"about {{count}}",count_range:"between {{low}} and {{high}}",count_range_min:"at least {{low}}"},reported_count:{count_exact_one:"{{count}}",count_exact_other:"{{count}}",count_min_one:"at least {{count}}",count_min_other:"at least {{count}}",count_approximate_one:"about {{count}}",count_approximate_other:"about {{count}}",count_range:"between {{low}} and {{high}}",count_range_min:"at least {{low}}"}},search_facets:{price:{label:"Price",values:"{{start}} - {{end}}"}},rating_summary:{text_before:"({{average}})",text_after:"{{ratingCount}}",stars_aria_label:"Rated {{average}} out of {{total}}"},suggestions:{searchResults:{label:"Search Results",label_trending:"Trending Products",label_suggest:"Recommended For You",label_default:"Recommended For You"},query:{label:"Suggestions",label_trending:"Trending Searches",label_suggest:"Recommended For You",label_default:"Recommended For You"}},recommendations:{title:"Recommended For You",subtitle:""},product_options:{color:{title:"Color",values:{}},size:{title:"Size"},width:{title:"Width"},product_shown_in:"Product shown in {{option}}"}},b=a=>
1typeof a=="string",M=()=>{let a,e;const t=new Promise((s,n)=>{a=s,e=n});return t.resolve=a,t.reject=e,t},re=a=>a==null?"":""+a,bt=(a,e,t)=>{a.forEach(s=>{e[s]&&(t[s]=e[s])})},yt=/###/g,ie=a=>a&&a.indexOf("###")>-1?a.replace(yt,"."):a,ae=a=>!a||b(a),K=(a,e,t)=>{const s=b(e)?e.split("."):e;let n=0;for(;n<s.length-1;){if(ae(a))return{};const r=ie(s[n]);!a[r]&&t&&(a[r]=new t),Object.prototype.hasOwnProperty.call(a,r)?a=a[r]:a={},++n}return ae(a)?{}:{obj:a,k:ie(s[n])}},oe=(a,e,t)=>{const{obj:s,k:n}=K(a,e,Object);if(s!==void 0||e.length===1){s[n]=t;return}let r=e[e.length-1],i=e.slice(0,e.length-1),o=K(a,i,Object);for(;o.obj===void 0&&i.length;)r=`${i[i.length-1]}.${r}`,i=i.slice(0,i.length-1),o=K(a,i,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${r}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${r}`]=t},xt=(a,e,t,s)=>{const{obj:n,k:r}=K(a,e,Object);n[r]=n[r]||[],n[r].push(t)},B=(a,e)=>{const{obj:t,k:s}=K(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},St=(a,e,t)=>{const s=B(a,t);return s!==void 0?s:B(e,t)},gt=(a,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in a?b(a[s])||a[s]instanceof String||b(e[s])||e[s]instanceof String?t&&(a[s]=e[s]):gt(a[s],e[s],t):a[s]=e[s]);return a},I=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const wt=a=>b(a)?a.replace(/[&<>"'\/]/g,e=>_t[e]):a;class Ot{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const vt=[" ",",","?","!",";"],Lt=new Ot(20),Rt=(a,e,t)=>{e=e||"",t=t||"";const s=vt.filter(i=>e.indexOf(i)<0&&t.indexOf(i)<0);if(s.length===0)return!0;const n=Lt.getRegExp(`(${s.map(i=>i==="?"?"\\?":i).join("|")})`);let r=!n.test(a);if(!r){const i=a.indexOf(t);i>0&&!n.test(a.substring(0,i))&&(r=!0)}return r},Z=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const s=e.split(t);let n=a;for(let r=0;r<s.length;){if(!n||typeof n!="object")return;let i,o="";for(let l=r;l<s.length;++l)if(l!==r&&(o+=t),o+=s[l],i=n[o],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<s.length-1)continue;r+=l-r+1;break}n=i}return n},J=a=>a?.replace("_","-"),Pt={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,s;(s=(t=console?.[a])==null?void 0:t.apply)==null||s.call(t,console,e)}};class W{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Pt,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,n){return n&&!this.debug?null:(b(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new W(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new W(this.logger,e)}}var N=new W;class q{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const n=this.observers[s].get(t)||0;this.observers[s].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEac
1h(i=>{let[o,l]=i;for(let u=0;u<l;u++)o(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[o,l]=i;for(let u=0;u<l;u++)o.apply(o,[e,...s])})}}class le extends q{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){var u,f;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],s&&(Array.isArray(s)?o.push(...s):b(s)&&r?o.push(...s.split(r)):o.push(s)));const l=B(this.data,o);return!l&&!t&&!s&&e.indexOf(".")>-1&&(e=o[0],t=o[1],s=o.slice(2).join(".")),l||!i||!b(s)?l:Z((f=(u=this.data)==null?void 0:u[e])==null?void 0:f[t],s,r)}addResource(e,t,s,n){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=[e,t];s&&(o=o.concat(i?s.split(i):s)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),oe(this.data,o,n),r.silent||this.emit("added",e,t,s,n)}addResources(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in s)(b(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,r){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),n=s,s=t,t=o[1]),this.addNamespaces(t);let l=B(this.data,o)||{};i.skipCopy||(s=JSON.parse(JSON.stringify(s))),n?gt(l,s,r):l={...l,...s},oe(this.data,o,l),i.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var dt={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,s,n){return a.forEach(r=>{var i;e=((i=this.processors[r])==null?void 0:i.process(e,t,s,n))??e}),e}};const ue={},ce=a=>!b(a)&&typeof a!="boolean"&&typeof a!="number";class Y extends q{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),bt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=N.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return s?.res!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const i=s&&e.indexOf(s)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Rt(e,s,n);if(i&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:b(r)?[r]:r};const u=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),e=u.join(n)}return{key:e,namespaces:b(r)?[r]:r}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:i,namespaces:o}=this.extractFromKey(e[e.length-1],t),l=o[o.length-1],u=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode"){if(f){const R=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${R}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${R}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:i}const h=this.resolve(e,t);let c=h?.res;const y=h?.usedKey||i,d=h?.exactUsedKey||i,m=["[object Number]","[object Function]","[object RegExp]"],S=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,p=t.count!==void 0&&!b(t.count),x=Y.hasDefaultValue(t),_=p?this.pluralResolver.getSuffix(u,t.count,t):"",w=t.ordinal&&p?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",E=p&&!t.ordinal&&t.count===0,O=E&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${_}`]||t[`defaultValue${w}`]||t.defaultValue;let L=c;g&&!c&&x&&(L=O);const A=ce(L),k=Object.prototype.toString.apply(L);
vendor: 2,044 bytes, line 1
1if(g&&L&&A&&m.indexOf(k)<0&&!(b(S)&&Array.isArray(L))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const R=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,L,{...t,ns:o}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(h.res=R,h.usedParams=this.getUsedParamsDetails(t),h):R}if(r){const R=Array.isArray(L),C=R?[]:{},ee=R?d:y;for(const $ in L)if(Object.prototype.hasOwnProperty.call(L,$)){const j=`${ee}${r}${$}`;x&&!c?C[$]=this.translate(j,{...t,defaultValue:ce(O)?O[$]:void 0,joinArrays:!1,ns:o}):C[$]=this.translate(j,{...t,joinArrays:!1,ns:o}),C[$]===j&&(C[$]=L[$])}c=C}}else if(g&&b(S)&&Array.isArray(c))c=c.join(S),c&&(c=this.extendTranslation(c,e,t,s));else{let R=!1,C=!1;!this.isValidLookup(c)&&x&&(R=!0,c=O),this.isValidLookup(c)||(C=!0,c=i);const $=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:c,j=x&&O!==c&&this.options.updateMissing;if(C||R||j){if(this.logger.log(j?"updateKey":"missingKey",u,l,i,j?O:c),r){const P=this.resolve(i,{...t,keySeparator:!1});P&&P.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 V=[];const H=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&H&&H[0])for(let P=0;P<H.length;P++)V.push(H[P]);else this.options.saveMissingTo==="all"?V=this.languageUtils.toResolveHierarchy(t.lng||this.language):V.push(t.lng||this.language);const te=(P,F,D)=>{var ne;const se=x&&D!==c?D:$;this.options.missingKeyHandler?this.options.missingKeyHandler(P,l,F,se,j,t):(ne=this.backendConnector)!=null&&ne.saveMissing&&this.backendConnector.saveMissing(P,l,F,se,j,t),this.emit("missingKey",P,l,F,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&p?V.forEac
1h(P=>{const F=this.pluralResolver.getSuffixes(P,t);E&&t[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(D=>{te([P],i+D,t[`defaultValue${D}`]||O)})}):te(V,i,O))}c=this.extendTranslation(c,e,t,h,s),C&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${l}:${i}`),(C||R)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,R?c:void 0))}return n?(h.res=c,h.usedParams=this.getUsedParamsDetails(t),h):c}extendTranslation(e,t,s,n,r){var u,f,i=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const h=b(e)&&(((f=s?.interpolation)==null?void 0:f.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(h){const d=e.match(this.interpolator.nestingRegexp);c=d&&d.length}let y=s.replace&&!b(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),e=this.interpolator.interpolate(e,y,s.lng||this.language||n.usedLng,s),h){const d=e.match(this.interpolator.nestingRegexp),m=d&&d.length;c<m&&(s.nest=!1)}!s.lng&&n&&n.res&&(s.lng=this.language||n.usedLng),s.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var d=arguments.length,m=new Array(d),S=0;S<d;S++)m[S]=arguments[S];return r?.[0]===m[0]&&!s.context?(i.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`),null):i.translate(...m,t)},s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,l=b(o)?[o]:o;return e!=null&&l!=null&&l.length&&s.applyPostProcessor!==!1&&(e=dt.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,n,r,i,o;return b(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(l,t),f=u.key;n=f;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=t.count!==void 0&&!b(t.count),y=c&&!t.ordinal&&t.count===0,d=t.context!==void 0&&(b(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(S=>{var g,p;this.isValidLookup(s)||(o=S,!ue[`${m[0]}-${S}`]&&(g=this.utils)!=null&&g.hasLoadedNamespace&&!((p=this.utils)!=null&&p.hasLoadedNamespace(o))&&(ue[`${m[0]}-${S}`]=!0,this.logger.warn(`key "${n}" for languages "${m.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!!!")),m.forEach(x=>{var E;if(this.isValidLookup(s))return;i=x;const _=[f];if((E=this.i18nFormat)!=null&&E.addLookupKeys)this.i18nFormat.addLookupKeys(_,f,x,S,t);else{let O;c&&(O=this.pluralResolver.getSuffix(x,t.count,t));const L=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(_.push(f+O),t.ordinal&&O.indexOf(A)===0&&_.push(f+O.replace(A,this.options.pluralSeparator)),y&&_.push(f+L)),d){const k=`${f}${this.options.contextSeparator}${t.context}`;_.push(k),c&&(_.push(k+O),t.ordinal&&O.indexOf(A)===0&&_.push(k+O.replace(A,this.options.pluralSeparator)),y&&_.push(k+L))}}let w;for(;w=_.pop();)this.isValidLookup(s)||(r=w,s=this.getResource(x,S,w,t))}))})}),{res:s,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var r;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!b(e.replace);let n=s?e.replace:e;if(s&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const r of t)delete n[r]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class fe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=N.create("languageUtils")}getScriptPartFromCode(e){if(e=J(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=J(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(b(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const n=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const n=this.getLanguagePartFromCode(s);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(r=>{if(r===n||!(r.indexOf("-")<0&&n.indexOf("-")<0)&&(r.indexOf("-")>0&&n.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===n||r.indexOf(n)===0&&n.length>1))return r})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),b(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];
1return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],r=i=>{i&&(this.isSupportedCode(i)?n.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return b(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):b(e)&&r(this.formatLanguageCode(e)),s.forEach(i=>{n.indexOf(i)<0&&r(this.formatLanguageCode(i))}),n}}const he={zero:0,one:1,two:2,few:3,many:4,other:5},ge={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ct{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=N.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=J(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:n});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let i;try{i=new Intl.PluralRules(s,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ge;if(!e.match(/-|_/))return ge;const l=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(l,t)}return this.pluralRulesCache[r]=i,i}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((n,r)=>he[n]-he[r]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,s);return n?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const de=function(a,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=St(a,e,t);return!r&&n&&b(t)&&(r=Z(a,t,s),r===void 0&&(r=Z(e,t,s))),r},Q=a=>a.replace(/\$/g,"$$$$");class $t{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=N.create("interpolator"),this.options=e,this.format=((t=e?.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:n,prefix:r,prefixEscaped:i,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:f,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:y,nestingSuffix:d,nestingSuffixEscaped:m,nestingOptionsSeparator:S,maxReplaces:g,alwaysFormat:p}=e.interpolation;this.escape=t!==void 0?t:wt,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=r?I(r):i||"{{",this.suffix=o?I(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?I(c):y||I("$t("),this.nestingSuffix=d?I(d):m||I(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=g||1e3,this.alwaysFormat=p!==void 0?p:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>t?.source===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,n){var y;let r,i,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const p=de(t,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,s,{...n,...t,interpolationkey:d}):p}const m=d.split(this.formatSeparator),S=m.shift().trim(),g=m.join(this.formatSeparator).trim();return this.format(de(t,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),g,s,{...n,...t,interpolationkey:S})};this.resetRegExp();const f=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=((y=n?.interpolation)==null?void 0:y.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>Q(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?Q(this.escape(d)):Q(d)}
1].forEach(d=>{for(o=0;r=d.regex.exec(e);){const m=r[1].trim();if(i=u(m),i===void 0)if(typeof f=="function"){const g=f(e,r,n);i=b(g)?g:""}else if(n&&Object.prototype.hasOwnProperty.call(n,m))i="";else if(h){i=r[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),i="";else!b(i)&&!this.useRawValueToEscape&&(i=re(i));const S=d.safeValue(i);if(e=e.replace(r[0],S),h?(d.regex.lastIndex+=i.length,d.regex.lastIndex-=r[0].length):d.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,r,i;const o=(l,u)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const h=l.split(new RegExp(`${f}[ ]*{`));let c=`{${h[1]}`;l=h[0],c=this.interpolate(c,i);const y=c.match(/'/g),d=c.match(/"/g);((y?.length??0)%2===0&&!d||d.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),u&&(i={...u,...i})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${f}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;n=this.nestingRegexp.exec(e);){let l=[];i={...s},i=i.replace&&!b(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const f=n[1].split(this.formatSeparator).map(h=>h.trim());n[1]=f.shift(),l=f,u=!0}
1if(r=t(o.call(this,n[1].trim(),i),i),r&&n[0]===e&&!b(r))return r;b(r)||(r=re(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),u&&(r=l.reduce((f,h)=>this.format(f,h,s.lng,{...s,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const Nt=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const s=a.split("(");e=s[0].toLowerCase().trim();const n=s[1].substring(0,s[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(i=>{if(i){const[o,...l]=i.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),f=o.trim();t[f]||(t[f]=u),u==="false"&&(t[f]=!1),u==="true"&&(t[f]=!0),isNaN(u)||(t[f]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},T=a=>{const e={};return(t,s,n)=>{let r=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(r={...r,[n.interpolationkey]:void 0});const i=s+JSON.stringify(r);let o=e[i];return o||(o=a(J(s),n),e[i]=o),o(t)}};class jt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=N.create("formatter"),this.options=e,this.formats={number:T((t,s)=>{const n=new Intl.NumberFormat(t,{...s});return r=>n.format(r)}),currency:T((t,s)=>{const n=new Intl.NumberFormat(t,{...s,style:"currency"});return r=>n.format(r)}),datetime:T((t,s)=>{const n=new Intl.DateTimeFormat(t,{...s});return r=>n.format(r)}),relativetime:T((t,s)=>{const n=new Intl.RelativeTimeFormat(t,{...s});return r=>n.format(r,s.range||"day")}),list:T((t,s)=>{const n=new Intl.ListFormat(t,{...s});return r=>n.format(r)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=T(t)}format(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(o=>o.indexOf(")")>-1)){const o=r.findIndex(l=>l.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,o)].join(this.formatSeparator)}return r.reduce((o,l)=>{var h;const{formatName:u,formatOptions:f}=Nt(l);if(this.formats[u]){let c=o;try{const y=((h=n?.formatParams)==null?void 0:h[n.interpolationkey])||{},d=y.locale||y.lng||n.locale||n.lng||s;c=this.formats[u](o,d,{...f,...n,...y})}catch(y){this.logger.warn(y)}return c}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}const Et=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class Ft extends q{constructor(e,t,s){var r,i;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=N.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=[],(i=(r=this.backend)==null?void 0:r.init)==null||i.call(r,s,n.backend,n)}queueLoad(e,t,s,n){const r={},i={},o={},l={};return e.forEach(u=>{let f=!0;t.forEach(h=>{const c=`${u}|${h}`;!s.reload&&this.store.hasResourceBundle(u,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,f=!1,i[c]===void 0&&(i[c]=!0),r[c]===void 0&&(r[c]=!0),l[h]===void 0&&(l[h]=!0)))}),f||(o[u]=!0)}),(Object.keys(r).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(r),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),!t&&s&&this.store.addResourceBundle(r,i,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const o={};this.queue.forEach(l=>{xt(l.loaded,[r],i),Et(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEac
1h(u=>{o[u]||(o[u]={});const f=l.loaded[u];f.length&&f.forEach(h=>{o[u][h]===void 0&&(o[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:r,callback:i});return}this.readingCalls++;const o=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&f&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,s,n+1,r*2,i)},r);return}i(u,f)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(f=>o(null,f)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,t,o)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?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();b(e)&&(e=this.languageUtils.toResolveHierarchy(e)),b(t)&&(t=[t]);const r=this.queueLoad(e,t,s,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach(i=>{this.loadOne(i)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),n=s[0],r=s[1];this.read(n,r,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${t}loading namespace ${r} for language ${n} failed`,i),!i&&o&&this.logger.log(`${t}loaded namespace ${r} for language ${n}`,o),this.loaded(e,i,o)})}saveMissing(e,t,s,n,r){var l,u,f,h,c;let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((h=(f=this.services)==null?void 0:f.utils)!=null&&h.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" as the namespace "${t}" 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!!!");return}if(!(s==null||s==="")){if((c=this.backend)!=null&&c.create){const y={...i,isUpdate:r},d=this.backend.create.bind(this.backend);if(d.length<6)try{let m;d.length===5?m=d(e,t,s,n,y):m=d(e,t,s,n),m&&typeof m.then=="function"?m.then(S=>o(null,S)).catch(o):o(null,m)}catch(m){o(m)}else d(e,t,s,n,o,y)}!e||!e[0]||this.store.addResource(e[0],t,s,n)}}}const pe=()=>({debug:!1,initAsync:!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:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),b(a[1])&&(e.defaultValue=a[1]),b(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),me=a=>{var e,t;return b(a.ns)&&(a.ns=[a.ns]),b(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),b(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},z=()=>{},At=a=>
1{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class U extends q{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=me(e),this.services={},this.logger=N,this.modules={external:[]},At(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),t.defaultNS==null&&t.ns&&(b(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=pe();this.options={...n,...this.options,...me(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const r=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?N.init(r(this.modules.logger),this.options):N.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=jt;const h=new fe(this.options);this.store=new le(this.options.resources,this.options);const c=this.services;c.logger=N,c.resourceStore=this.store,c.languageUtils=h,c.pluralResolver=new Ct(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=r(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new $t(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Ft(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var d=arguments.length,m=new Array(d>1?d-1:0),S=1;S<d;S++)m[S-1]=arguments[S];e.emit(y,...m)}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Y(this.services,this.options),this.translator.on("*",function(y){for(var d=arguments.length,m=new Array(d>1?d-1:0),S=1;S<d;S++)m[S-1]=arguments[S];e.emit(y,...m)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,s||(s=z),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=function(){return e.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return e.store[f](...arguments),e}});const l=M(),u=()=>{const f=(h,c)=>{this.isInitializing=!1,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),l.resolve(c),s(h,c)};if(this.languages&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(e){var r,i;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z;const n=b(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const o=[],l=u=>{!u||u==="cimode"||this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&o.indexOf(h)<0&&o.push(h)})};n?l(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(i=(r=this.options.preload)==null?void 0:r.forEach)==null||i.call(r,u=>l(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const n=M();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=z),this.services.backendConnector.reload(e,t,r=>{n.resolve(),s(r)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&dt.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const n=M();
1this.emit("languageChanging",e);const r=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,u)=>{u?(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,n.resolve(function(){return s.t(...arguments)}),t&&t(l,function(){return s.t(...arguments)})},o=l=>{var f,h;!e&&!l&&this.services.languageDetector&&(l=[]);const u=b(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||r(u),this.translator.language||this.translator.changeLanguage(u),(h=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||h.call(f,u)),this.loadResources(u,c=>{i(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),n}getFixedT(e,t,s){var n=this;const r=function(i,o){let l;if(typeof o!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),h=2;h<u;h++)f[h-2]=arguments[h];l=n.options.overloadTranslationOptionHandler([i,o].concat(f))}else l={...o};l.lng=l.lng||r.lng,l.lngs=l.lngs||r.lngs,l.ns=l.ns||r.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||s||r.keyPrefix);const c=n.options.keySeparator||".";let y;return l.keyPrefix&&Array.isArray(i)?y=i.map(d=>`${l.keyPrefix}${c}${d}`):y=l.keyPrefix?`${l.keyPrefix}${c}${i}`:i,n.t(y,l)};return b(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=s,r}t(){for(var n,e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return(n=this.translator)==null?void 0:n.translate(...t)}exists(){for(var n,e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const i=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const o=t.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(s,e)&&(!n||i(r,e)))}loadNamespaces(e,t){const s=M();return this.options.ns?(b(e)&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{s.resolve(),t&&t(n)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=M();b(e)&&(e=[e]);const n=this.options.preload||[],r=e.filter(i=>n.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return r.length?(this.options.preload=n.concat(r),this.loadResources(i=>{s.resolve(),t&&t(i)}),s):(t&&t(),Promise.resolve())}dir(e){var n,r;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],s=((r=this.services)==null?void 0:r.languageUtils)||new fe(pe());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new U(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},r=new U(n);if((e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(o=>{r[o]=this[o]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s){const o=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},Object.keys(l[u]).reduce((f,h)=>(f[h]={...l[u][h]},f),{})),{});r.store=new le(o,n),r.services.resourceStore=r.store}return r.translator=new Y(r.services,n),r.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),f=1;f<l;f++)u[f-1]=arguments[f];r.emit(o,...u)}),r.init(n,t),r.translator.options=n,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const v=U.createInstance();v.createInstance=U.createInstance,v.createInstance,v.dir,v.init,v.loadResources,v.reloadResources,v.use,v.changeLanguage,v.getFixedT,v.t,v.exists,v.setDefaultNamespace,v.hasLoadedNamespace,v.loadNamespaces,v.loadLanguages;function kt(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var G,be;function It(){if(be)return G;be=1;var a=function(p){return e(p)&&!t(p)};function e(g){return!!g&&typeof g=="object"}function t(g){var p=Object.prototype.toString.call(g);return p==="[object RegExp]"||p==="[object Date]"||r(g)}
1var s=typeof Symbol=="function"&&Symbol.for,n=s?Symbol.for("react.element"):60103;function r(g){return g.$$typeof===n}function i(g){return Array.isArray(g)?[]:{}}function o(g,p){return p.clone!==!1&&p.isMergeableObject(g)?m(i(g),g,p):g}function l(g,p,x){return g.concat(p).map(function(_){return o(_,x)})}function u(g,p){if(!p.customMerge)return m;var x=p.customMerge(g);return typeof x=="function"?x:m}function f(g){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(g).filter(function(p){return Object.propertyIsEnumerable.call(g,p)}):[]}function h(g){return Object.keys(g).concat(f(g))}function c(g,p){try{return p in g}catch{return!1}}function y(g,p){return c(g,p)&&!(Object.hasOwnProperty.call(g,p)&&Object.propertyIsEnumerable.call(g,p))}function d(g,p,x){var _={};return x.isMergeableObject(g)&&h(g).forEach(function(w){_[w]=o(g[w],x)}),h(p).forEach(function(w){y(g,w)||(c(g,w)&&x.isMergeableObject(p[w])?_[w]=u(w,x)(g[w],p[w],x):_[w]=o(p[w],x))}),_}function m(g,p,x){x=x||{},x.arrayMerge=x.arrayMerge||l,x.isMergeableObject=x.isMergeableObject||a,x.cloneUnlessOtherwiseSpecified=o;var _=Array.isArray(p),w=Array.isArray(g),E=_===w;return E?_?x.arrayMerge(g,p,x):d(g,p,x):o(p,x)}m.all=function(p,x){if(!Array.isArray(p))throw new Error("first argument should be an array");return p.reduce(function(_,w){return m(_,w,x)},{})};var S=m;return G=S,G}var Tt=It();const Vt=kt(Tt),Dt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Mt={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xA9","&#169;":"\xA9","&reg;":"\xAE","&#174;":"\xAE","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},Kt=a=>Mt[a],Ut=a=>a.replace(Dt,Kt);let X={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ut};const Ht=(a={})=>{X={...X,...a}},Yt=()=>X;let pt;const zt=a=>{pt=a},qt=()=>pt,Bt={type:"3rdParty",init(a){Ht(a.options.react),zt(a)}};var ye,xe,Se,_e,we,Oe,ve,Le,Re,Pe,Ce,$e,Ne,je,Ee,Fe,Ae,ke,Ie,Te,Ve,De,Me,Ke,Ue,He,ze,Be,Je,We,Ye,qe,Qe,Ge,Ze,Xe,et,tt,st,nt,rt,it,at,ot,lt,ut,ct,ft,ht;const Jt={pricing:{price_label_sale:""},search:{product_tile:{sold_out:((Se=(xe=(ye=window.search_react)==null?void 0:ye.search)==null?void 0:xe.product_tile)==null?void 0:Se.sold_out)??"Sold Out",add_to_cart:((Oe=(we=(_e=window.search_react)==null?void 0:_e.search)==null?void 0:we.product_tile)==null?void 0:Oe.add_to_cart)??"Add to bag",join_waitlist:((Re=(Le=(ve=window.search_react)==null?void 0:ve.search)==null?void 0:Le.product_tile)==null?void 0:Re.join_wailtlist)??"Join Waitlist",loyalty:{authenticated:((Ne=($e=(Ce=(Pe=window.search_react)==null?void 0:Pe.search)==null?void 0:Ce.product_tile)==null?void 0:$e.loyalty)==null?void 0:Ne.authenticated)??"2x points!",sign_in:((Ae=(Fe=(Ee=(je=window.search_react)==null?void 0:je.search)==null?void 0:Ee.product_tile)==null?void 0:Fe.loyalty)==null?void 0:Ae.sign_in)??"Sign in",for_pts:((Ve=(Te=(Ie=(ke=window.search_react)==null?void 0:ke.search)==null?void 0:Ie.product_tile)==null?void 0:Te.loyalty)==null?void 0:Ve.for_pts)??"for 2x points",ineligible_product:((Ue=(Ke=(Me=(De=window.search_react)==null?void 0:De.search)==null?void 0:Me.product_tile)==null?void 0:Ke.loyalty)==null?void 0:Ue.ineligible_product)??"loyalty ineligible product"}
1,badges:{savings:((Je=(Be=(ze=(He=window.search_react)==null?void 0:He.search)==null?void 0:ze.product_tile)==null?void 0:Be.badges)==null?void 0:Je.savings)??"save $",new_badge:((Qe=(qe=(Ye=(We=window.search_react)==null?void 0:We.search)==null?void 0:Ye.product_tile)==null?void 0:qe.badges)==null?void 0:Qe.new_badge)??"new!",new_shade_badge:((et=(Xe=(Ze=(Ge=window.search_react)==null?void 0:Ge.search)==null?void 0:Ze.product_tile)==null?void 0:Xe.badges)==null?void 0:et.new_shade_badge)??"new shades"}},marketing_tile:{pause_video:((nt=(st=(tt=window.search_react)==null?void 0:tt.search)==null?void 0:st.marketing_tile)==null?void 0:nt.pause_video)??"Pause Video",play_video:((at=(it=(rt=window.search_react)==null?void 0:rt.search)==null?void 0:it.marketing_tile)==null?void 0:at.play_video)??"Play Video",video_showing:((ut=(lt=(ot=window.search_react)==null?void 0:ot.search)==null?void 0:lt.marketing_tile)==null?void 0:ut.video_showing)??"Video showing",video_unsupported:((ht=(ft=(ct=window.search_react)==null?void 0:ct.search)==null?void 0:ft.marketing_tile)==null?void 0:ht.video_unsupported)??"Your browser does not support the video tag."}},rating_summary:{text_before:"",text_after:"{{ratingCount}}"},suggestions:{searchResults:{label:"Search Results",label_suggest:"Trending Products"},query:{label:"suggestions",label_trending:"trending",label_suggest:"suggestions",label_recent:"recent searches"}},search_bar:{placeholder:"Search",modal_label:"Search Modal",close_search:"Close Search",clear_search:"Clear Search"},page_summary:{result_total_one:"{{count}} result for '{{query}}'",result_total_other:"{{count}} results for '{{query}}'",result_total_zero:"no results for '{{query}}'",result_total_approximate:"about {{count}} results for '{{query}}'",result_total_range:"about {{low}} to {{high}} results for '{{query}}'",result_total_range_min:"at least {{low}} results for '{{query}}'",result_total_range_max:"at most {{high}} results for '{{query}}'",filter:"Filter"},no_results:{heading:"No Results",copy:"We're sorry, but there are no results for this category"},no_results_search_lp:{heading:"No results for",copy:"Please try checking your spelling or changing your search term"}},Wt=v.createInstance();Wt.use(Bt).init({fallbackLng:"en",resources:{en:{translation:Vt(mt,Jt)}},react:{useSuspense:!1}});export{qt as a,Yt as b,kt as g,Wt as i};
2//# sourceMappingURL=/cdn/shop/t/516/assets/init-i18n-BZHzXbdw.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.