@shipengine/alchemy 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,28 +1,32 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("react"),rt=require("react/jsx-runtime"),nt=require("@emotion/react"),Qt=require("@packlink/brands"),pr=require("@packlink/giger"),be=require("@shipengine/react-api"),wa=require("react-i18next");function Sa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Vt=Sa(T);function Oa(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function xa(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ea=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(xa(this));var n=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=a.charCodeAt(0)===64&&a.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
2
- `+a+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var o=Oa(n);try{o.insertRule(a,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(a)&&console.error('There was a problem inserting the following rule: "'+a+'"',s)}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),P="-ms-",se="-moz-",O="-webkit-",er="comm",ct="rule",ft="decl",Pa="@import",tr="@keyframes",Ca=Math.abs,lt=String.fromCharCode,Ra=Object.assign;function En(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Pn(e){return e.trim()}function oe(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,r){return e.replace(t,r)}function Re(e,t){return e.indexOf(t)}function L(e,t){return e.charCodeAt(t)|0}function ke(e,t,r){return e.slice(t,r)}function K(e){return e.length}function rr(e){return e.length}function Ye(e,t){return t.push(e),e}function Cn(e,t){return e.map(t).join("")}var dt=1,Ne=1,Rn=0,F=0,A=0,Le="";function pt(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:dt,column:Ne,length:o,return:""}}function ee(e,t){return Ra(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function ka(){return A}function Na(){return A=F>0?L(Le,--F):0,Ne--,A===10&&(Ne=1,dt--),A}function B(){return A=F<Rn?L(Le,F++):0,Ne++,A===10&&(Ne=1,dt++),A}function re(){return L(Le,F)}function Xe(){return F}function Be(e,t){return ke(Le,e,t)}function Ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kn(e){return dt=Ne=1,Rn=K(Le=e),F=0,[]}function Nn(e){return Le="",e}function Ze(e){return Pn(Be(F-1,qt(e===91?e+2:e===40?e+1:e)))}function La(e){for(;(A=re())&&A<33;)B();return Ue(e)>2||Ue(A)>3?"":" "}function _a(e,t){for(;--t&&B()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return Be(e,Xe()+(t<6&&re()==32&&B()==32))}function qt(e){for(;B();)switch(A){case e:return F;case 34:case 39:e!==34&&e!==39&&qt(A);break;case 40:e===41&&qt(e);break;case 92:B();break}return F}function Aa(e,t){for(;B()&&e+A!==47+10;)if(e+A===42+42&&re()===47)break;return"/*"+Be(t,F-1)+"*"+lt(e===47?e:B())}function Ta(e){for(;!Ue(re());)B();return Be(e,F)}function ja(e){return Nn(Qe("",null,null,null,[""],e=kn(e),0,[0],e))}function Qe(e,t,r,a,n,i,o,s,u){for(var f=0,l=0,c=o,d=0,p=0,y=0,b=1,w=1,h=1,g=0,x="",m=n,v=i,N=a,C=x;w;)switch(y=g,g=B()){case 40:if(y!=108&&L(C,c-1)==58){Re(C+=S(Ze(g),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:C+=Ze(g);break;case 9:case 10:case 13:case 32:C+=La(y);break;case 92:C+=_a(Xe()-1,7);continue;case 47:switch(re()){case 42:case 47:Ye($a(Aa(B(),Xe()),t,r),u);break;default:C+="/"}break;case 123*b:s[f++]=K(C)*h;case 125*b:case 59:case 0:switch(g){case 0:case 125:w=0;case 59+l:p>0&&K(C)-c&&Ye(p>32?gr(C+";",a,r,c-1):gr(S(C," ","")+";",a,r,c-2),u);break;case 59:C+=";";default:if(Ye(N=hr(C,t,r,f,l,n,s,x,m=[],v=[],c),i),g===123)if(l===0)Qe(C,t,N,N,m,i,c,s,v);else switch(d===99&&L(C,3)===110?100:d){case 100:case 109:case 115:Qe(e,N,N,a&&Ye(hr(e,N,N,0,0,n,s,x,n,m=[],c),v),n,v,c,s,a?m:v);break;default:Qe(C,N,N,N,[""],v,0,s,v)}}f=l=p=0,b=h=1,x=C="",c=o;break;case 58:c=1+K(C),p=y;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&Na()==125)continue}switch(C+=lt(g),g*b){case 38:h=l>0?1:(C+="\f",-1);break;case 44:s[f++]=(K(C)-1)*h,h=1;break;case 64:re()===45&&(C+=Ze(B())),d=re(),l=c=K(x=C+=Ta(Xe())),g++;break;case 45:y===45&&K(C)==2&&(b=0)}}return i}function hr(e,t,r,a,n,i,o,s,u,f,l){for(var c=n-1,d=n===0?i:[""],p=rr(d),y=0,b=0,w=0;y<a;++y)for(var h=0,g=ke(e,c+1,c=Ca(b=o[y])),x=e;h<p;++h)(x=Pn(b>0?d[h]+" "+g:S(g,/&\f/g,d[h])))&&(u[w++]=x);return pt(e,t,r,n===0?ct:s,u,f,l)}function $a(e,t,r){return pt(e,t,r,er,lt(ka()),ke(e,2,-2),0)}function gr(e,t,r,a){return pt(e,t,r,ft,ke(e,0,a),ke(e,a+1,-1),a)}function Ln(e,t,r){switch(En(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+se+e+P+e+e;case 5936:switch(L(e,t+11)){case 114:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+P+e+e;case 6165:return O+e+P+"flex-"+e+e;case 5187:return O+e+S(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return O+e+P+"flex-item-"+S(e,/flex-|-self/g,"")+(oe(e,/flex-|baseline/)?"":P+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return O+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+P+S(e,"shrink","negative")+e;case 5292:return O+e+P+S(e,"basis","preferred-size")+e;case 6060:return O+"box-"+S(e,"-grow","")+O+e+P+S(e,"grow","positive")+e;case 4554:return O+S(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!oe(e,/flex-|baseline/))return P+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return P+S(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(a,n){return t=n,oe(a.props,/grid-\w+-end/)})?~Re(e+(r=r[t].value),"span")?e:P+S(e,"-start","")+e+P+"grid-row-span:"+(~Re(r,"span")?oe(r,/\d+/):+oe(r,/\d+/)-+oe(e,/\d+/))+";":P+S(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(a){return oe(a.props,/grid-\w+-start/)})?e:P+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?Ln(S(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,n,i,o,s,u,f){return P+n+":"+i+f+(o?P+n+"-span:"+(s?u:+u-+i)+f:"")+e});case 4949:if(L(e,t+6)===121)return S(e,":",":"+O)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(L(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+P+"$2box$3")+e;case 100:return S(e,":",":"+P)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function ue(e,t){for(var r="",a=rr(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Ia(e,t,r,a){switch(e.type){case Pa:case ft:return e.return=e.return||e.value;case er:return"";case tr:return e.return=e.value+"{"+ue(e.children,a)+"}";case ct:e.value=e.props.join(",")}return K(r=ue(e.children,a))?e.return=e.value+"{"+r+"}":""}function Da(e){var t=rr(e);return function(r,a,n,i){for(var o="",s=0;s<t;s++)o+=e[s](r,a,n,i)||"";return o}}function Fa(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ua(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case ft:e.return=Ln(e.value,e.length,r);return;case tr:return ue([ee(e,{value:S(e.value,"@","@"+O)})],a);case ct:if(e.length)return Cn(e.props,function(n){switch(oe(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ee(e,{props:[S(n,/:(read-\w+)/,":"+se+"$1")]})],a);case"::placeholder":return ue([ee(e,{props:[S(n,/:(plac\w+)/,":"+O+"input-$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,":"+se+"$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,P+"input-$1")]})],a)}return""})}}function _n(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ma=function(t,r,a){for(var n=0,i=0;n=i,i=re(),n===38&&i===12&&(r[a]=1),!Ue(i);)B();return Be(t,F)},Ba=function(t,r){var a=-1,n=44;do switch(Ue(n)){case 0:n===38&&re()===12&&(r[a]=1),t[a]+=Ma(F-1,r,a);break;case 2:t[a]+=Ze(n);break;case 4:if(n===44){t[++a]=re()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=lt(n)}while(n=B());return t},Va=function(t,r){return Nn(Ba(kn(t),r))},mr=new WeakMap,qa=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!mr.get(a))&&!n){mr.set(t,!0);for(var i=[],o=Va(r,i),s=a.props,u=0,f=0;u<o.length;u++)for(var l=0;l<s.length;l++,f++)t.props[f]=i[u]?o[u].replace(/&\f/g,s[l]):s[l]+" "+o[u]}}},za=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},Ha="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ka=function(t){return t.type==="comm"&&t.children.indexOf(Ha)>-1},Ja=function(t){return function(r,a,n){if(!(r.type!=="rule"||t.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=r.parent===n[0],s=o?n[0].children:n,u=s.length-1;u>=0;u--){var f=s[u];if(f.line<r.line)break;if(f.column<r.column){if(Ka(f))return;break}}i.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},An=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Ya=function(t,r){for(var a=t-1;a>=0;a--)if(!An(r[a]))return!0;return!1},vr=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Wa=function(t,r,a){An(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),vr(t)):Ya(r,a)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),vr(t)))};function Tn(e,t){switch(En(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+se+e+P+e+e;case 6828:case 4268:return O+e+P+e+e;case 6165:return O+e+P+"flex-"+e+e;case 5187:return O+e+S(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return O+e+P+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return O+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+P+S(e,"shrink","negative")+e;case 5292:return O+e+P+S(e,"basis","preferred-size")+e;case 6060:return O+"box-"+S(e,"-grow","")+O+e+P+S(e,"grow","positive")+e;case 4554:return O+S(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?Tn(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(L(e,t+1)!==115)break;case 6444:switch(L(e,K(e)-3-(~Re(e,"!important")&&10))){case 107:return S(e,":",":"+O)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(L(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(L(e,t+11)){case 114:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+P+e+e}return e}var Ga=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case ft:t.return=Tn(t.value,t.length);break;case tr:return ue([ee(t,{value:S(t.value,"@","@"+O)})],n);case ct:if(t.length)return Cn(t.props,function(i){switch(oe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ee(t,{props:[S(i,/:(read-\w+)/,":"+se+"$1")]})],n);case"::placeholder":return ue([ee(t,{props:[S(i,/:(plac\w+)/,":"+O+"input-$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,":"+se+"$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,P+"input-$1")]})],n)}return""})}},Xa=[Ga],jn=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
3
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=t.stylisPlugins||Xa;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),h=1;h<w.length;h++)i[w[h]]=!0;s.push(b)});var u,f=[qa,za];process.env.NODE_ENV!=="production"&&f.push(Ja({get compat(){return y.compat}}),Wa);{var l,c=[Ia,process.env.NODE_ENV!=="production"?function(b){b.root||(b.return?l.insert(b.return):b.value&&b.type!==er&&l.insert(b.value+"{}"))}:Fa(function(b){l.insert(b)})],d=Da(f.concat(n,c)),p=function(w){return ue(ja(w),d)};u=function(w,h,g,x){l=g,process.env.NODE_ENV!=="production"&&h.map!==void 0&&(l={insert:function(v){g.insert(v+h.map)}}),p(w?w+"{"+h.styles+"}":h.styles),x&&(y.inserted[h.name]=!0)}}var y={key:r,sheet:new Ea({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(s),y};function Za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt={},Qa={get exports(){return zt},set exports(e){zt=e}},R={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("react"),rt=require("react/jsx-runtime"),nt=require("@emotion/react"),er=require("@packlink/brands"),hr=require("@packlink/giger"),be=require("@shipengine/react-api"),Sa=require("react-i18next");function xa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Vt=xa(T);function Oa(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ea(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Pa=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ea(this));var n=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=a.charCodeAt(0)===64&&a.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
2
+ `+a+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var o=Oa(n);try{o.insertRule(a,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(a)&&console.error('There was a problem inserting the following rule: "'+a+'"',s)}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),P="-ms-",se="-moz-",x="-webkit-",tr="comm",ct="rule",ft="decl",Ca="@import",rr="@keyframes",Ra=Math.abs,lt=String.fromCharCode,ka=Object.assign;function Pn(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Cn(e){return e.trim()}function oe(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,r){return e.replace(t,r)}function Re(e,t){return e.indexOf(t)}function L(e,t){return e.charCodeAt(t)|0}function ke(e,t,r){return e.slice(t,r)}function H(e){return e.length}function nr(e){return e.length}function Ye(e,t){return t.push(e),e}function Rn(e,t){return e.map(t).join("")}var dt=1,Ne=1,kn=0,F=0,A=0,Le="";function pt(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:dt,column:Ne,length:o,return:""}}function ee(e,t){return ka(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Na(){return A}function La(){return A=F>0?L(Le,--F):0,Ne--,A===10&&(Ne=1,dt--),A}function B(){return A=F<kn?L(Le,F++):0,Ne++,A===10&&(Ne=1,dt++),A}function re(){return L(Le,F)}function Xe(){return F}function Be(e,t){return ke(Le,e,t)}function Ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Nn(e){return dt=Ne=1,kn=H(Le=e),F=0,[]}function Ln(e){return Le="",e}function Ze(e){return Cn(Be(F-1,qt(e===91?e+2:e===40?e+1:e)))}function _a(e){for(;(A=re())&&A<33;)B();return Ue(e)>2||Ue(A)>3?"":" "}function Aa(e,t){for(;--t&&B()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return Be(e,Xe()+(t<6&&re()==32&&B()==32))}function qt(e){for(;B();)switch(A){case e:return F;case 34:case 39:e!==34&&e!==39&&qt(A);break;case 40:e===41&&qt(e);break;case 92:B();break}return F}function Ta(e,t){for(;B()&&e+A!==47+10;)if(e+A===42+42&&re()===47)break;return"/*"+Be(t,F-1)+"*"+lt(e===47?e:B())}function ja(e){for(;!Ue(re());)B();return Be(e,F)}function $a(e){return Ln(Qe("",null,null,null,[""],e=Nn(e),0,[0],e))}function Qe(e,t,r,a,n,i,o,s,u){for(var f=0,l=0,c=o,d=0,p=0,y=0,b=1,w=1,h=1,g=0,O="",m=n,v=i,N=a,C=O;w;)switch(y=g,g=B()){case 40:if(y!=108&&L(C,c-1)==58){Re(C+=S(Ze(g),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:C+=Ze(g);break;case 9:case 10:case 13:case 32:C+=_a(y);break;case 92:C+=Aa(Xe()-1,7);continue;case 47:switch(re()){case 42:case 47:Ye(Ia(Ta(B(),Xe()),t,r),u);break;default:C+="/"}break;case 123*b:s[f++]=H(C)*h;case 125*b:case 59:case 0:switch(g){case 0:case 125:w=0;case 59+l:p>0&&H(C)-c&&Ye(p>32?mr(C+";",a,r,c-1):mr(S(C," ","")+";",a,r,c-2),u);break;case 59:C+=";";default:if(Ye(N=gr(C,t,r,f,l,n,s,O,m=[],v=[],c),i),g===123)if(l===0)Qe(C,t,N,N,m,i,c,s,v);else switch(d===99&&L(C,3)===110?100:d){case 100:case 109:case 115:Qe(e,N,N,a&&Ye(gr(e,N,N,0,0,n,s,O,n,m=[],c),v),n,v,c,s,a?m:v);break;default:Qe(C,N,N,N,[""],v,0,s,v)}}f=l=p=0,b=h=1,O=C="",c=o;break;case 58:c=1+H(C),p=y;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&La()==125)continue}switch(C+=lt(g),g*b){case 38:h=l>0?1:(C+="\f",-1);break;case 44:s[f++]=(H(C)-1)*h,h=1;break;case 64:re()===45&&(C+=Ze(B())),d=re(),l=c=H(O=C+=ja(Xe())),g++;break;case 45:y===45&&H(C)==2&&(b=0)}}return i}function gr(e,t,r,a,n,i,o,s,u,f,l){for(var c=n-1,d=n===0?i:[""],p=nr(d),y=0,b=0,w=0;y<a;++y)for(var h=0,g=ke(e,c+1,c=Ra(b=o[y])),O=e;h<p;++h)(O=Cn(b>0?d[h]+" "+g:S(g,/&\f/g,d[h])))&&(u[w++]=O);return pt(e,t,r,n===0?ct:s,u,f,l)}function Ia(e,t,r){return pt(e,t,r,tr,lt(Na()),ke(e,2,-2),0)}function mr(e,t,r,a){return pt(e,t,r,ft,ke(e,0,a),ke(e,a+1,-1),a)}function _n(e,t,r){switch(Pn(e,t)){case 5103:return x+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return x+e+e;case 4789:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+se+e+P+e+e;case 5936:switch(L(e,t+11)){case 114:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return x+e+P+e+e;case 6165:return x+e+P+"flex-"+e+e;case 5187:return x+e+S(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return x+e+P+"flex-item-"+S(e,/flex-|-self/g,"")+(oe(e,/flex-|baseline/)?"":P+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return x+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return x+e+P+S(e,"shrink","negative")+e;case 5292:return x+e+P+S(e,"basis","preferred-size")+e;case 6060:return x+"box-"+S(e,"-grow","")+x+e+P+S(e,"grow","positive")+e;case 4554:return x+S(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+e+e;case 4200:if(!oe(e,/flex-|baseline/))return P+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return P+S(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(a,n){return t=n,oe(a.props,/grid-\w+-end/)})?~Re(e+(r=r[t].value),"span")?e:P+S(e,"-start","")+e+P+"grid-row-span:"+(~Re(r,"span")?oe(r,/\d+/):+oe(r,/\d+/)-+oe(e,/\d+/))+";":P+S(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(a){return oe(a.props,/grid-\w+-start/)})?e:P+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,x+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?_n(S(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,n,i,o,s,u,f){return P+n+":"+i+f+(o?P+n+"-span:"+(s?u:+u-+i)+f:"")+e});case 4949:if(L(e,t+6)===121)return S(e,":",":"+x)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(L(e,14)===45?"inline-":"")+"box$3$1"+x+"$2$3$1"+P+"$2box$3")+e;case 100:return S(e,":",":"+P)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function ue(e,t){for(var r="",a=nr(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Da(e,t,r,a){switch(e.type){case Ca:case ft:return e.return=e.return||e.value;case tr:return"";case rr:return e.return=e.value+"{"+ue(e.children,a)+"}";case ct:e.value=e.props.join(",")}return H(r=ue(e.children,a))?e.return=e.value+"{"+r+"}":""}function Fa(e){var t=nr(e);return function(r,a,n,i){for(var o="",s=0;s<t;s++)o+=e[s](r,a,n,i)||"";return o}}function Ua(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ma(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case ft:e.return=_n(e.value,e.length,r);return;case rr:return ue([ee(e,{value:S(e.value,"@","@"+x)})],a);case ct:if(e.length)return Rn(e.props,function(n){switch(oe(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ee(e,{props:[S(n,/:(read-\w+)/,":"+se+"$1")]})],a);case"::placeholder":return ue([ee(e,{props:[S(n,/:(plac\w+)/,":"+x+"input-$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,":"+se+"$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,P+"input-$1")]})],a)}return""})}}function An(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ba=function(t,r,a){for(var n=0,i=0;n=i,i=re(),n===38&&i===12&&(r[a]=1),!Ue(i);)B();return Be(t,F)},Va=function(t,r){var a=-1,n=44;do switch(Ue(n)){case 0:n===38&&re()===12&&(r[a]=1),t[a]+=Ba(F-1,r,a);break;case 2:t[a]+=Ze(n);break;case 4:if(n===44){t[++a]=re()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=lt(n)}while(n=B());return t},qa=function(t,r){return Ln(Va(Nn(t),r))},vr=new WeakMap,za=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!vr.get(a))&&!n){vr.set(t,!0);for(var i=[],o=qa(r,i),s=a.props,u=0,f=0;u<o.length;u++)for(var l=0;l<s.length;l++,f++)t.props[f]=i[u]?o[u].replace(/&\f/g,s[l]):s[l]+" "+o[u]}}},Ha=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},Ka="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ja=function(t){return t.type==="comm"&&t.children.indexOf(Ka)>-1},Ya=function(t){return function(r,a,n){if(!(r.type!=="rule"||t.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=r.parent===n[0],s=o?n[0].children:n,u=s.length-1;u>=0;u--){var f=s[u];if(f.line<r.line)break;if(f.column<r.column){if(Ja(f))return;break}}i.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},Tn=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Wa=function(t,r){for(var a=t-1;a>=0;a--)if(!Tn(r[a]))return!0;return!1},yr=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Ga=function(t,r,a){Tn(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),yr(t)):Wa(r,a)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yr(t)))};function jn(e,t){switch(Pn(e,t)){case 5103:return x+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return x+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+se+e+P+e+e;case 6828:case 4268:return x+e+P+e+e;case 6165:return x+e+P+"flex-"+e+e;case 5187:return x+e+S(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return x+e+P+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return x+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return x+e+P+S(e,"shrink","negative")+e;case 5292:return x+e+P+S(e,"basis","preferred-size")+e;case 6060:return x+"box-"+S(e,"-grow","")+x+e+P+S(e,"grow","positive")+e;case 4554:return x+S(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,x+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?jn(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(L(e,t+1)!==115)break;case 6444:switch(L(e,H(e)-3-(~Re(e,"!important")&&10))){case 107:return S(e,":",":"+x)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+x+(L(e,14)===45?"inline-":"")+"box$3$1"+x+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(L(e,t+11)){case 114:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return x+e+P+e+e}return e}var Xa=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case ft:t.return=jn(t.value,t.length);break;case rr:return ue([ee(t,{value:S(t.value,"@","@"+x)})],n);case ct:if(t.length)return Rn(t.props,function(i){switch(oe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ee(t,{props:[S(i,/:(read-\w+)/,":"+se+"$1")]})],n);case"::placeholder":return ue([ee(t,{props:[S(i,/:(plac\w+)/,":"+x+"input-$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,":"+se+"$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,P+"input-$1")]})],n)}return""})}},Za=[Xa],$n=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
3
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=t.stylisPlugins||Za;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),h=1;h<w.length;h++)i[w[h]]=!0;s.push(b)});var u,f=[za,Ha];process.env.NODE_ENV!=="production"&&f.push(Ya({get compat(){return y.compat}}),Ga);{var l,c=[Da,process.env.NODE_ENV!=="production"?function(b){b.root||(b.return?l.insert(b.return):b.value&&b.type!==tr&&l.insert(b.value+"{}"))}:Ua(function(b){l.insert(b)})],d=Fa(f.concat(n,c)),p=function(w){return ue($a(w),d)};u=function(w,h,g,O){l=g,process.env.NODE_ENV!=="production"&&h.map!==void 0&&(l={insert:function(v){g.insert(v+h.map)}}),p(w?w+"{"+h.styles+"}":h.styles),O&&(y.inserted[h.name]=!0)}}var y={key:r,sheet:new Pa({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(s),y};function Qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt={},ei={get exports(){return zt},set exports(e){zt=e}},R={};/** @license React v16.13.1
4
4
  * react-is.production.min.js
5
5
  *
6
6
  * Copyright (c) Facebook, Inc. and its affiliates.
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var yr;function ei(){if(yr)return R;yr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function x(v){if(typeof v=="object"&&v!==null){var N=v.$$typeof;switch(N){case t:switch(v=v.type,v){case u:case f:case a:case i:case n:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case y:case p:case o:return v;default:return N}}case r:return N}}}function m(v){return x(v)===f}return R.AsyncMode=u,R.ConcurrentMode=f,R.ContextConsumer=s,R.ContextProvider=o,R.Element=t,R.ForwardRef=l,R.Fragment=a,R.Lazy=y,R.Memo=p,R.Portal=r,R.Profiler=i,R.StrictMode=n,R.Suspense=c,R.isAsyncMode=function(v){return m(v)||x(v)===u},R.isConcurrentMode=m,R.isContextConsumer=function(v){return x(v)===s},R.isContextProvider=function(v){return x(v)===o},R.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},R.isForwardRef=function(v){return x(v)===l},R.isFragment=function(v){return x(v)===a},R.isLazy=function(v){return x(v)===y},R.isMemo=function(v){return x(v)===p},R.isPortal=function(v){return x(v)===r},R.isProfiler=function(v){return x(v)===i},R.isStrictMode=function(v){return x(v)===n},R.isSuspense=function(v){return x(v)===c},R.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===a||v===f||v===i||v===n||v===c||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===p||v.$$typeof===o||v.$$typeof===s||v.$$typeof===l||v.$$typeof===w||v.$$typeof===h||v.$$typeof===g||v.$$typeof===b)},R.typeOf=x,R}var k={};/** @license React v16.13.1
10
+ */var br;function ti(){if(br)return R;br=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function O(v){if(typeof v=="object"&&v!==null){var N=v.$$typeof;switch(N){case t:switch(v=v.type,v){case u:case f:case a:case i:case n:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case y:case p:case o:return v;default:return N}}case r:return N}}}function m(v){return O(v)===f}return R.AsyncMode=u,R.ConcurrentMode=f,R.ContextConsumer=s,R.ContextProvider=o,R.Element=t,R.ForwardRef=l,R.Fragment=a,R.Lazy=y,R.Memo=p,R.Portal=r,R.Profiler=i,R.StrictMode=n,R.Suspense=c,R.isAsyncMode=function(v){return m(v)||O(v)===u},R.isConcurrentMode=m,R.isContextConsumer=function(v){return O(v)===s},R.isContextProvider=function(v){return O(v)===o},R.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},R.isForwardRef=function(v){return O(v)===l},R.isFragment=function(v){return O(v)===a},R.isLazy=function(v){return O(v)===y},R.isMemo=function(v){return O(v)===p},R.isPortal=function(v){return O(v)===r},R.isProfiler=function(v){return O(v)===i},R.isStrictMode=function(v){return O(v)===n},R.isSuspense=function(v){return O(v)===c},R.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===a||v===f||v===i||v===n||v===c||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===p||v.$$typeof===o||v.$$typeof===s||v.$$typeof===l||v.$$typeof===w||v.$$typeof===h||v.$$typeof===g||v.$$typeof===b)},R.typeOf=O,R}var k={};/** @license React v16.13.1
11
11
  * react-is.development.js
12
12
  *
13
13
  * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var br;function ti(){return br||(br=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function x(E){return typeof E=="string"||typeof E=="function"||E===a||E===f||E===i||E===n||E===c||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===l||E.$$typeof===w||E.$$typeof===h||E.$$typeof===g||E.$$typeof===b)}function m(E){if(typeof E=="object"&&E!==null){var Oe=E.$$typeof;switch(Oe){case t:var ye=E.type;switch(ye){case u:case f:case a:case i:case n:case c:return ye;default:var dr=ye&&ye.$$typeof;switch(dr){case s:case l:case y:case p:case o:return dr;default:return Oe}}case r:return Oe}}}var v=u,N=f,C=s,X=o,Z=t,_=l,z=a,D=y,_e=p,V=r,ze=i,we=n,he=c,Ae=!1;function Te(E){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),He(E)||m(E)===u}function He(E){return m(E)===f}function ge(E){return m(E)===s}function St(E){return m(E)===o}function Ot(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function me(E){return m(E)===l}function Ke(E){return m(E)===a}function ve(E){return m(E)===y}function Se(E){return m(E)===p}function je(E){return m(E)===r}function Je(E){return m(E)===i}function $e(E){return m(E)===n}function ce(E){return m(E)===c}k.AsyncMode=v,k.ConcurrentMode=N,k.ContextConsumer=C,k.ContextProvider=X,k.Element=Z,k.ForwardRef=_,k.Fragment=z,k.Lazy=D,k.Memo=_e,k.Portal=V,k.Profiler=ze,k.StrictMode=we,k.Suspense=he,k.isAsyncMode=Te,k.isConcurrentMode=He,k.isContextConsumer=ge,k.isContextProvider=St,k.isElement=Ot,k.isForwardRef=me,k.isFragment=Ke,k.isLazy=ve,k.isMemo=Se,k.isPortal=je,k.isProfiler=Je,k.isStrictMode=$e,k.isSuspense=ce,k.isValidElementType=x,k.typeOf=m}()),k}(function(e){process.env.NODE_ENV==="production"?e.exports=ei():e.exports=ti()})(Qa);var $n=zt,ri={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ni={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},In={};In[$n.ForwardRef]=ri;In[$n.Memo]=ni;var ai=!0;function ii(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):a+=n+" "}),a}var Dn=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||ai===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},oi=function(t,r,a){Dn(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function si(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ui={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wr=`You have illegal escape sequence in your template literal, most likely inside content's property value.
17
+ */var wr;function ri(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function O(E){return typeof E=="string"||typeof E=="function"||E===a||E===f||E===i||E===n||E===c||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===l||E.$$typeof===w||E.$$typeof===h||E.$$typeof===g||E.$$typeof===b)}function m(E){if(typeof E=="object"&&E!==null){var xe=E.$$typeof;switch(xe){case t:var ye=E.type;switch(ye){case u:case f:case a:case i:case n:case c:return ye;default:var pr=ye&&ye.$$typeof;switch(pr){case s:case l:case y:case p:case o:return pr;default:return xe}}case r:return xe}}}var v=u,N=f,C=s,X=o,Z=t,_=l,q=a,D=y,_e=p,V=r,ze=i,we=n,he=c,Ae=!1;function Te(E){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),He(E)||m(E)===u}function He(E){return m(E)===f}function ge(E){return m(E)===s}function St(E){return m(E)===o}function xt(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function me(E){return m(E)===l}function Ke(E){return m(E)===a}function ve(E){return m(E)===y}function Se(E){return m(E)===p}function je(E){return m(E)===r}function Je(E){return m(E)===i}function $e(E){return m(E)===n}function ce(E){return m(E)===c}k.AsyncMode=v,k.ConcurrentMode=N,k.ContextConsumer=C,k.ContextProvider=X,k.Element=Z,k.ForwardRef=_,k.Fragment=q,k.Lazy=D,k.Memo=_e,k.Portal=V,k.Profiler=ze,k.StrictMode=we,k.Suspense=he,k.isAsyncMode=Te,k.isConcurrentMode=He,k.isContextConsumer=ge,k.isContextProvider=St,k.isElement=xt,k.isForwardRef=me,k.isFragment=Ke,k.isLazy=ve,k.isMemo=Se,k.isPortal=je,k.isProfiler=Je,k.isStrictMode=$e,k.isSuspense=ce,k.isValidElementType=O,k.typeOf=m}()),k}(function(e){process.env.NODE_ENV==="production"?e.exports=ti():e.exports=ri()})(ei);var In=zt,ni={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ai={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Dn={};Dn[In.ForwardRef]=ni;Dn[In.Memo]=ai;var ii=!0;function oi(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):a+=n+" "}),a}var Fn=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||ii===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},si=function(t,r,a){Fn(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function ui(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ci={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Sr=`You have illegal escape sequence in your template literal, most likely inside content's property value.
18
18
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
19
19
  You can read more about this here:
20
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,ci="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",fi=/[A-Z]|^ms/g,Fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nr=function(t){return t.charCodeAt(1)===45},Sr=function(t){return t!=null&&typeof t!="boolean"},xt=_n(function(e){return nr(e)?e:e.replace(fi,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Fn,function(a,n,i){return J={name:n,styles:i,next:J},n})}return ui[t]!==1&&!nr(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var li=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,di=["normal","none","initial","inherit","unset"],pi=at,hi=/^-ms-/,gi=/-(.)/g,Or={};at=function(t,r){if(t==="content"&&(typeof r!="string"||di.indexOf(r)===-1&&!li.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var a=pi(t,r);return a!==""&&!nr(t)&&t.indexOf("-")!==-1&&Or[t]===void 0&&(Or[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(hi,"ms-").replace(gi,function(n,i){return i.toUpperCase()})+"?")),a}}var Un="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Me(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Un);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return J={name:r.name,styles:r.styles,next:J},r.name;if(r.styles!==void 0){var a=r.next;if(a!==void 0)for(;a!==void 0;)J={name:a.name,styles:a.styles,next:J},a=a.next;var n=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(n+=r.map),n}return mi(e,t,r)}case"function":{if(e!==void 0){var i=J,o=r(e);return J=i,Me(e,t,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],u=r.replace(Fn,function(l,c,d){var p="animation"+s.length;return s.push("const "+p+" = keyframes`"+d.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+p+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+u+"`"]).join(`
20
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,fi="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",li=/[A-Z]|^ms/g,Un=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ar=function(t){return t.charCodeAt(1)===45},xr=function(t){return t!=null&&typeof t!="boolean"},Ot=An(function(e){return ar(e)?e:e.replace(li,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Un,function(a,n,i){return K={name:n,styles:i,next:K},n})}return ci[t]!==1&&!ar(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var di=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,pi=["normal","none","initial","inherit","unset"],hi=at,gi=/^-ms-/,mi=/-(.)/g,Or={};at=function(t,r){if(t==="content"&&(typeof r!="string"||pi.indexOf(r)===-1&&!di.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var a=hi(t,r);return a!==""&&!ar(t)&&t.indexOf("-")!==-1&&Or[t]===void 0&&(Or[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(gi,"ms-").replace(mi,function(n,i){return i.toUpperCase()})+"?")),a}}var Mn="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Me(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Mn);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return K={name:r.name,styles:r.styles,next:K},r.name;if(r.styles!==void 0){var a=r.next;if(a!==void 0)for(;a!==void 0;)K={name:a.name,styles:a.styles,next:K},a=a.next;var n=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(n+=r.map),n}return vi(e,t,r)}case"function":{if(e!==void 0){var i=K,o=r(e);return K=i,Me(e,t,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],u=r.replace(Un,function(l,c,d){var p="animation"+s.length;return s.push("const "+p+" = keyframes`"+d.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+p+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+u+"`"]).join(`
21
21
  `)+`
22
22
 
23
23
  You should wrap it with \`css\` like this:
24
24
 
25
- `+("css`"+u+"`"))}break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function mi(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=Me(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object")t!=null&&t[o]!==void 0?a+=i+"{"+t[o]+"}":Sr(o)&&(a+=xt(i)+":"+at(i,o)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Un);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Sr(o[s])&&(a+=xt(i)+":"+at(i,o[s])+";");else{var u=Me(e,t,o);switch(i){case"animation":case"animationName":{a+=xt(i)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(ci),a+=i+"{"+u+"}"}}}}return a}var xr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Mn;process.env.NODE_ENV!=="production"&&(Mn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var J,Er=function(t,r,a){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,i="";J=void 0;var o=t[0];o==null||o.raw===void 0?(n=!1,i+=Me(a,r,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(wr),i+=o[0]);for(var s=1;s<t.length;s++)i+=Me(a,r,t[s]),n&&(process.env.NODE_ENV!=="production"&&o[s]===void 0&&console.error(wr),i+=o[s]);var u;process.env.NODE_ENV!=="production"&&(i=i.replace(Mn,function(d){return u=d,""})),xr.lastIndex=0;for(var f="",l;(l=xr.exec(i))!==null;)f+="-"+l[1];var c=si(i)+f;return process.env.NODE_ENV!=="production"?{name:c,styles:i,map:u,next:J,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:i,next:J}},vi=function(t){return t()},yi=Vt["useInsertionEffect"]?Vt["useInsertionEffect"]:!1,bi=yi||vi,ht={}.hasOwnProperty,ar=T.createContext(typeof HTMLElement<"u"?jn({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ar.displayName="EmotionCacheContext");ar.Provider;var wi=function(t){return T.forwardRef(function(r,a){var n=T.useContext(ar);return t(r,n,a)})},Bn=T.createContext({});process.env.NODE_ENV!=="production"&&(Bn.displayName="EmotionThemeContext");var Pr=function(t){var r=t.split(".");return r[r.length-1]},Si=function(t){var r=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(r||(r=/^([A-Za-z0-9$.]+)@/.exec(t),r))return Pr(r[1])},Oi=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),xi=function(t){return t.replace(/\$/g,"-")},Ei=function(t){if(t)for(var r=t.split(`
26
- `),a=0;a<r.length;a++){var n=Si(r[a]);if(n){if(Oi.has(n))break;if(/^[A-Z]/.test(n))return xi(n)}}},Ht="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Vn=function(t,r){if(process.env.NODE_ENV!=="production"&&typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var a={};for(var n in r)ht.call(r,n)&&(a[n]=r[n]);if(a[Ht]=t,process.env.NODE_ENV!=="production"&&r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var i=Ei(new Error().stack);i&&(a[Kt]=i)}return a},Pi=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Dn(r,a,n),bi(function(){return oi(r,a,n)}),null},ir=wi(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[Ht],i=[a],o="";typeof e.className=="string"?o=ii(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Er(i,void 0,T.useContext(Bn));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Kt];u&&(s=Er([s,"label:"+u+";"]))}o+=t.key+"-"+s.name;var f={};for(var l in e)ht.call(e,l)&&l!=="css"&&l!==Ht&&(process.env.NODE_ENV==="production"||l!==Kt)&&(f[l]=e[l]);return f.ref=r,f.className=o,T.createElement(T.Fragment,null,T.createElement(Pi,{cache:t,serialized:s,isStringTag:typeof n=="string"}),T.createElement(n,f))});process.env.NODE_ENV!=="production"&&(ir.displayName="EmotionCssPropInternal");function q(e,t,r){return ht.call(t,"css")?rt.jsx(ir,Vn(e,t),r):rt.jsx(e,t,r)}function Ci(e,t,r){return ht.call(t,"css")?rt.jsxs(ir,Vn(e,t),r):rt.jsxs(e,t,r)}var qn={};Object.defineProperty(qn,"__esModule",{value:!0});var Ri=qn.default=function(){},Cr=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const zn=({cdnURL:e="/",scope:t,theme:r})=>{const[a,n]=T.useState();return T.useEffect(()=>{Cr(void 0,null,function*(){var i;try{const o=(i=r?.fontFaces)!=null?i:[];yield Promise.all(o.map(s=>Cr(void 0,[s],function*({family:u,source:f,descriptors:l}){const c=f.map(d=>`url(${d.replace("$cdnUrl",e)})`).join(", ");try{const p=yield new FontFace(u,c,l).load();document.fonts.add(p)}catch(d){console.error(d)}}))),n(r?.defaultFontFamily)}catch(o){be.logger.error({error:o},"Error loading fonts")}})},[e,r]),nt.css({[`.${t}`]:{fontFamily:a}})};var Jt={},ki={get exports(){return Jt},set exports(e){Jt=e}},it={},Ni={get exports(){return it},set exports(e){it=e}},Hn=function(t,r){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(r,n)}},Li=Hn,de=Object.prototype.toString;function or(e){return Array.isArray(e)}function Yt(e){return typeof e>"u"}function _i(e){return e!==null&&!Yt(e)&&e.constructor!==null&&!Yt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Kn(e){return de.call(e)==="[object ArrayBuffer]"}function Ai(e){return de.call(e)==="[object FormData]"}function Ti(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kn(e.buffer),t}function ji(e){return typeof e=="string"}function $i(e){return typeof e=="number"}function Jn(e){return e!==null&&typeof e=="object"}function et(e){if(de.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ii(e){return de.call(e)==="[object Date]"}function Di(e){return de.call(e)==="[object File]"}function Fi(e){return de.call(e)==="[object Blob]"}function Yn(e){return de.call(e)==="[object Function]"}function Ui(e){return Jn(e)&&Yn(e.pipe)}function Mi(e){return de.call(e)==="[object URLSearchParams]"}function Bi(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Vi(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function sr(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),or(e))for(var r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}function Wt(){var e={};function t(n,i){et(e[i])&&et(n)?e[i]=Wt(e[i],n):et(n)?e[i]=Wt({},n):or(n)?e[i]=n.slice():e[i]=n}for(var r=0,a=arguments.length;r<a;r++)sr(arguments[r],t);return e}function qi(e,t,r){return sr(t,function(n,i){r&&typeof n=="function"?e[i]=Li(n,r):e[i]=n}),e}function zi(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var U={isArray:or,isArrayBuffer:Kn,isBuffer:_i,isFormData:Ai,isArrayBufferView:Ti,isString:ji,isNumber:$i,isObject:Jn,isPlainObject:et,isUndefined:Yt,isDate:Ii,isFile:Di,isBlob:Fi,isFunction:Yn,isStream:Ui,isURLSearchParams:Mi,isStandardBrowserEnv:Vi,forEach:sr,merge:Wt,extend:qi,trim:Bi,stripBOM:zi},xe=U;function Rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Wn=function(t,r,a){if(!r)return t;var n;if(a)n=a(r);else if(xe.isURLSearchParams(r))n=r.toString();else{var i=[];xe.forEach(r,function(u,f){u===null||typeof u>"u"||(xe.isArray(u)?f=f+"[]":u=[u],xe.forEach(u,function(c){xe.isDate(c)?c=c.toISOString():xe.isObject(c)&&(c=JSON.stringify(c)),i.push(Rr(f)+"="+Rr(c))}))}),n=i.join("&")}if(n){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t},Hi=U;function gt(){this.handlers=[]}gt.prototype.use=function(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1};gt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};gt.prototype.forEach=function(t){Hi.forEach(this.handlers,function(a){a!==null&&t(a)})};var Ki=gt,Ji=U,Yi=function(t,r){Ji.forEach(t,function(n,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=n,delete t[i])})},Gn=function(t,r,a,n,i){return t.config=r,a&&(t.code=a),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Xn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Et,kr;function Zn(){if(kr)return Et;kr=1;var e=Gn;return Et=function(r,a,n,i,o){var s=new Error(r);return e(s,a,n,i,o)},Et}var Pt,Nr;function Wi(){if(Nr)return Pt;Nr=1;var e=Zn();return Pt=function(r,a,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?r(n):a(e("Request failed with status code "+n.status,n.config,null,n.request,n))},Pt}var Ct,Lr;function Gi(){if(Lr)return Ct;Lr=1;var e=U;return Ct=e.isStandardBrowserEnv()?function(){return{write:function(a,n,i,o,s,u){var f=[];f.push(a+"="+encodeURIComponent(n)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(o)&&f.push("path="+o),e.isString(s)&&f.push("domain="+s),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(a){var n=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ct}var Rt,_r;function Xi(){return _r||(_r=1,Rt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Rt}var kt,Ar;function Zi(){return Ar||(Ar=1,kt=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),kt}var Nt,Tr;function Qi(){if(Tr)return Nt;Tr=1;var e=Xi(),t=Zi();return Nt=function(a,n){return a&&!e(n)?t(a,n):n},Nt}var Lt,jr;function eo(){if(jr)return Lt;jr=1;var e=U,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Lt=function(a){var n={},i,o,s;return a&&e.forEach(a.split(`
27
- `),function(f){if(s=f.indexOf(":"),i=e.trim(f.substr(0,s)).toLowerCase(),o=e.trim(f.substr(s+1)),i){if(n[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?n[i]=(n[i]?n[i]:[]).concat([o]):n[i]=n[i]?n[i]+", "+o:o}}),n},Lt}var _t,$r;function to(){if($r)return _t;$r=1;var e=U;return _t=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),n;function i(o){var s=o;return r&&(a.setAttribute("href",s),s=a.href),a.setAttribute("href",s),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return n=i(window.location.href),function(s){var u=e.isString(s)?i(s):s;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}(),_t}var At,Ir;function mt(){if(Ir)return At;Ir=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,At=e,At}var Tt,Dr;function Fr(){if(Dr)return Tt;Dr=1;var e=U,t=Wi(),r=Gi(),a=Wn,n=Qi(),i=eo(),o=to(),s=Zn(),u=Xn,f=mt();return Tt=function(c){return new Promise(function(p,y){var b=c.data,w=c.headers,h=c.responseType,g;function x(){c.cancelToken&&c.cancelToken.unsubscribe(g),c.signal&&c.signal.removeEventListener("abort",g)}e.isFormData(b)&&delete w["Content-Type"];var m=new XMLHttpRequest;if(c.auth){var v=c.auth.username||"",N=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";w.Authorization="Basic "+btoa(v+":"+N)}var C=n(c.baseURL,c.url);m.open(c.method.toUpperCase(),a(C,c.params,c.paramsSerializer),!0),m.timeout=c.timeout;function X(){if(m){var _="getAllResponseHeaders"in m?i(m.getAllResponseHeaders()):null,z=!h||h==="text"||h==="json"?m.responseText:m.response,D={data:z,status:m.status,statusText:m.statusText,headers:_,config:c,request:m};t(function(V){p(V),x()},function(V){y(V),x()},D),m=null}}if("onloadend"in m?m.onloadend=X:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(X)},m.onabort=function(){m&&(y(s("Request aborted",c,"ECONNABORTED",m)),m=null)},m.onerror=function(){y(s("Network Error",c,null,m)),m=null},m.ontimeout=function(){var z=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",D=c.transitional||u;c.timeoutErrorMessage&&(z=c.timeoutErrorMessage),y(s(z,c,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},e.isStandardBrowserEnv()){var Z=(c.withCredentials||o(C))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;Z&&(w[c.xsrfHeaderName]=Z)}"setRequestHeader"in m&&e.forEach(w,function(z,D){typeof b>"u"&&D.toLowerCase()==="content-type"?delete w[D]:m.setRequestHeader(D,z)}),e.isUndefined(c.withCredentials)||(m.withCredentials=!!c.withCredentials),h&&h!=="json"&&(m.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&m.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(g=function(_){m&&(y(!_||_&&_.type?new f("canceled"):_),m.abort(),m=null)},c.cancelToken&&c.cancelToken.subscribe(g),c.signal&&(c.signal.aborted?g():c.signal.addEventListener("abort",g))),b||(b=null),m.send(b)})},Tt}var j=U,Ur=Yi,ro=Gn,no=Xn,ao={"Content-Type":"application/x-www-form-urlencoded"};function Mr(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function io(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Fr()),e}function oo(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}var vt={transitional:no,adapter:io(),transformRequest:[function(t,r){return Ur(r,"Accept"),Ur(r,"Content-Type"),j.isFormData(t)||j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)?t:j.isArrayBufferView(t)?t.buffer:j.isURLSearchParams(t)?(Mr(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):j.isObject(t)||r&&r["Content-Type"]==="application/json"?(Mr(r,"application/json"),oo(t)):t}],transformResponse:[function(t){var r=this.transitional||vt.transitional,a=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,i=!a&&this.responseType==="json";if(i||n&&j.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?ro(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};j.forEach(["delete","get","head"],function(t){vt.headers[t]={}});j.forEach(["post","put","patch"],function(t){vt.headers[t]=j.merge(ao)});var ur=vt,so=U,uo=ur,co=function(t,r,a){var n=this||uo;return so.forEach(a,function(o){t=o.call(n,t,r)}),t},jt,Br;function Qn(){return Br||(Br=1,jt=function(t){return!!(t&&t.__CANCEL__)}),jt}var Vr=U,$t=co,fo=Qn(),lo=ur,po=mt();function It(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new po("canceled")}var ho=function(t){It(t),t.headers=t.headers||{},t.data=$t.call(t,t.data,t.headers,t.transformRequest),t.headers=Vr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Vr.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var r=t.adapter||lo.adapter;return r(t).then(function(n){return It(t),n.data=$t.call(t,n.data,n.headers,t.transformResponse),n},function(n){return fo(n)||(It(t),n&&n.response&&(n.response.data=$t.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},M=U,ea=function(t,r){r=r||{};var a={};function n(l,c){return M.isPlainObject(l)&&M.isPlainObject(c)?M.merge(l,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function i(l){if(M.isUndefined(r[l])){if(!M.isUndefined(t[l]))return n(void 0,t[l])}else return n(t[l],r[l])}function o(l){if(!M.isUndefined(r[l]))return n(void 0,r[l])}function s(l){if(M.isUndefined(r[l])){if(!M.isUndefined(t[l]))return n(void 0,t[l])}else return n(void 0,r[l])}function u(l){if(l in r)return n(t[l],r[l]);if(l in t)return n(void 0,t[l])}var f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return M.forEach(Object.keys(t).concat(Object.keys(r)),function(c){var d=f[c]||i,p=d(c);M.isUndefined(p)&&d!==u||(a[c]=p)}),a},Dt,qr;function ta(){return qr||(qr=1,Dt={version:"0.26.1"}),Dt}var go=ta().version,cr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){cr[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var zr={};cr.transitional=function(t,r,a){function n(i,o){return"[Axios v"+go+"] Transitional option '"+i+"'"+o+(a?". "+a:"")}return function(i,o,s){if(t===!1)throw new Error(n(o," has been removed"+(r?" in "+r:"")));return r&&!zr[o]&&(zr[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function mo(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var a=Object.keys(e),n=a.length;n-- >0;){var i=a[n],o=t[i];if(o){var s=e[i],u=s===void 0||o(s,i,e);if(u!==!0)throw new TypeError("option "+i+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+i)}}var vo={assertOptions:mo,validators:cr},ra=U,yo=Wn,Hr=Ki,Kr=ho,yt=ea,na=vo,Ee=na.validators;function Ve(e){this.defaults=e,this.interceptors={request:new Hr,response:new Hr}}Ve.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=yt(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var a=r.transitional;a!==void 0&&na.assertOptions(a,{silentJSONParsing:Ee.transitional(Ee.boolean),forcedJSONParsing:Ee.transitional(Ee.boolean),clarifyTimeoutError:Ee.transitional(Ee.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(i=i&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var o=[];this.interceptors.response.forEach(function(p){o.push(p.fulfilled,p.rejected)});var s;if(!i){var u=[Kr,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var f=r;n.length;){var l=n.shift(),c=n.shift();try{f=l(f)}catch(d){c(d);break}}try{s=Kr(f)}catch(d){return Promise.reject(d)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Ve.prototype.getUri=function(t){return t=yt(this.defaults,t),yo(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};ra.forEach(["delete","get","head","options"],function(t){Ve.prototype[t]=function(r,a){return this.request(yt(a||{},{method:t,url:r,data:(a||{}).data}))}});ra.forEach(["post","put","patch"],function(t){Ve.prototype[t]=function(r,a,n){return this.request(yt(n||{},{method:t,url:r,data:a}))}});var bo=Ve,Ft,Jr;function wo(){if(Jr)return Ft;Jr=1;var e=mt();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(o){a=o});var n=this;this.promise.then(function(i){if(n._listeners){var o,s=n._listeners.length;for(o=0;o<s;o++)n._listeners[o](i);n._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(u){n.subscribe(u),o=u}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},r(function(o){n.reason||(n.reason=new e(o),a(n.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]},t.prototype.unsubscribe=function(a){if(this._listeners){var n=this._listeners.indexOf(a);n!==-1&&this._listeners.splice(n,1)}},t.source=function(){var a,n=new t(function(o){a=o});return{token:n,cancel:a}},Ft=t,Ft}var Ut,Yr;function So(){return Yr||(Yr=1,Ut=function(t){return function(a){return t.apply(null,a)}}),Ut}var Mt,Wr;function Oo(){if(Wr)return Mt;Wr=1;var e=U;return Mt=function(r){return e.isObject(r)&&r.isAxiosError===!0},Mt}var Gr=U,xo=Hn,tt=bo,Eo=ea,Po=ur;function aa(e){var t=new tt(e),r=xo(tt.prototype.request,t);return Gr.extend(r,tt.prototype,t),Gr.extend(r,t),r.create=function(n){return aa(Eo(e,n))},r}var ae=aa(Po);ae.Axios=tt;ae.Cancel=mt();ae.CancelToken=wo();ae.isCancel=Qn();ae.VERSION=ta().version;ae.all=function(t){return Promise.all(t)};ae.spread=So();ae.isAxiosError=Oo();Ni.exports=ae;it.default=ae;(function(e){e.exports=it})(ki);const Gt=Za(Jt);var Xr=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const ia=({brandName:e,cdnURL:t="/"})=>{const[r,a]=T.useState();return T.useEffect(()=>{Xr(void 0,null,function*(){try{const n=yield Gt.get("/brand/iconIndex.json",{baseURL:t});a(n.data)}catch(n){be.logger.error({error:n},`Error loading icon index for brand ${e}`)}})},[e,t]),n=>Xr(void 0,null,function*(){if(r){const i=(r[n.toLowerCase()]||[]).includes(e)?e:Qt.BrandName.FALLBACK;return(yield Gt.get(`/brand/${i}/icons/${n.toLowerCase()}.svg`,{baseURL:t,responseType:"text"})).data}})};var Co=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const oa=({cdnURL:e="/",brandName:t})=>{const[r,a]=T.useState();return T.useEffect(()=>{Co(void 0,null,function*(){try{const n=yield Gt.get(`/brand/${t}/theme.json`,{baseURL:e}),i=new Qt.Theme(n.data);a(i)}catch(n){be.logger.error({error:n},`Error loading theme for brand ${t}`)}})},[t,e]),r},fr=T.createContext(void 0),Ro=({baseURL:e="https://api.shipengine.com",brandName:t=Qt.BrandName.FALLBACK,cdnURL:r="/",children:a,getToken:n,onError:i,scope:o="lmnt"})=>{const s=oa({brandName:t,cdnURL:r}),u=zn({cdnURL:r,scope:o,theme:s}),f=ia({brandName:t,cdnURL:r});return s?(i=i??Ri,q(fr.Provider,{value:{baseURL:e,brandName:t,cdnURL:r,getToken:n,onError:i,scope:o,theme:s},children:Ci(nt.ThemeProvider,{theme:s,children:[q(nt.Global,{styles:[pr.getEmotionResetStyles(o),u]}),q(pr.GigerConfigProvider,{resolveIcon:f,children:q(be.ShipEngine,{baseURL:e,getToken:n,children:a})})]})})):null},sa=()=>{const e=T.useContext(fr);if(!e)throw new Error("useAlchemy must be called from within the scope of <Alchemy />");return e};class ua extends Vt.Component{constructor(t){super(t),this.state={error:void 0}}componentDidCatch(t,r){t.stack=r.componentStack,this.props.onError(t),be.logger.error({error:t},t.message),this.setState({error:t})}render(){const{fallback:t,children:r}=this.props,{error:a}=this.state;return a?q("div",{role:"alert",children:q(t,{error:a})}):r}}function Y(e){return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ko(e,t){if(Y(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Y(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ca(e){var t=ko(e,"string");return Y(t)==="symbol"?t:String(t)}function Zr(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ca(a.key),a)}}function G(e,t,r){return t&&Zr(e.prototype,t),r&&Zr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Xt(e,t)}function bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}function qe(e,t){if(t&&(Y(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ne(e)}function pe(e,t,r){return t=ca(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function No(e){if(Array.isArray(e))return e}function Lo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _o(e,t){if(e){if(typeof e=="string")return Qr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qr(e,t)}}function Ao(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function To(e){return No(e)||Lo(e)||_o(e)||Ao()}function en(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?en(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var jo={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},$o=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.init(t,r)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=r||jo,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,a,n,i){return i&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(n).concat(this.prefix," ").concat(r[0])),this.logger[a](r))}},{key:"create",value:function(r){return new e(this.logger,tn(tn({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}}]),e}(),te=new $o,le=function(){function e(){W(this,e),this.observers={}}return G(e,[{key:"on",value:function(r,a){var n=this;return r.split(" ").forEach(function(i){n.observers[i]=n.observers[i]||[],n.observers[i].push(a)}),this}},{key:"off",value:function(r,a){if(this.observers[r]){if(!a){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(n){return n!==a})}}},{key:"emit",value:function(r){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];if(this.observers[r]){var o=[].concat(this.observers[r]);o.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[r].concat(n))})}}}]),e}();function Ie(){var e,t,r=new Promise(function(a,n){e=a,t=n});return r.resolve=e,r.reject=t,r}function rn(e){return e==null?"":""+e}function Io(e,t,r){e.forEach(function(a){t[a]&&(r[a]=t[a])})}function lr(e,t,r){function a(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function n(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(n())return{};var o=a(i.shift());!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return n()?{}:{obj:e,k:a(i.shift())}}function nn(e,t,r){var a=lr(e,t,Object),n=a.obj,i=a.k;n[i]=r}function Do(e,t,r,a){var n=lr(e,t,Object),i=n.obj,o=n.k;i[o]=i[o]||[],a&&(i[o]=i[o].concat(r)),a||i[o].push(r)}function ot(e,t){var r=lr(e,t),a=r.obj,n=r.k;if(a)return a[n]}function an(e,t,r){var a=ot(e,r);return a!==void 0?a:ot(t,r)}function fa(e,t,r){for(var a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?typeof e[a]=="string"||e[a]instanceof String||typeof t[a]=="string"||t[a]instanceof String?r&&(e[a]=t[a]):fa(e[a],t[a],r):e[a]=t[a]);return e}function Pe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Fo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Uo(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Fo[t]}):e}var wt=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Mo=[" ",",","?","!",";"];function Bo(e,t,r){t=t||"",r=r||"";var a=Mo.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(a.length===0)return!0;var n=new RegExp("(".concat(a.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!n.test(e);if(!i){var o=e.indexOf(r);o>0&&!n.test(e.substring(0,o))&&(i=!0)}return i}function on(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?on(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Vo(e){var t=qo();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function qo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function la(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var a=t.split(r),n=e,i=0;i<a.length;++i){if(!n||typeof n[a[i]]=="string"&&i+1<a.length)return;if(n[a[i]]===void 0){for(var o=2,s=a.slice(i,i+o).join(r),u=n[s];u===void 0&&a.length>i+o;)o++,s=a.slice(i,i+o).join(r),u=n[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var f=a.slice(i+o).join(r);return f?la(u,f,r):void 0}n=n[a[i]]}return n}}var zo=function(e){bt(r,e);var t=Vo(r);function r(a){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,r),n=t.call(this),wt&&le.call(fe(n)),n.data=a||{},n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return G(r,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var i=this.options.ns.indexOf(n);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,i];o&&typeof o!="string"&&(l=l.concat(o)),o&&typeof o=="string"&&(l=l.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(l=n.split("."));var c=ot(this.data,l);return c||!f||typeof o!="string"?c:la(this.data&&this.data[n]&&this.data[n][i],o,u)}},{key:"addResource",value:function(n,i,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},f=this.options.keySeparator;f===void 0&&(f=".");var l=[n,i];o&&(l=l.concat(f?o.split(f):o)),n.indexOf(".")>-1&&(l=n.split("."),s=i,i=l[1]),this.addNamespaces(i),nn(this.data,l,s),u.silent||this.emit("added",n,i,o,s)}},{key:"addResources",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(n,i,u,o[u],{silent:!0});s.silent||this.emit("added",n,i,o)}},{key:"addResourceBundle",value:function(n,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,i];n.indexOf(".")>-1&&(l=n.split("."),s=o,o=i,i=l[1]),this.addNamespaces(i);var c=ot(this.data,l)||{};s?fa(c,o,u):c=We(We({},c),o),nn(this.data,l,c),f.silent||this.emit("added",n,i,o)}},{key:"removeResourceBundle",value:function(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}},{key:"hasResourceBundle",value:function(n,i){return this.getResource(n,i)!==void 0}},{key:"getResourceBundle",value:function(n,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We(We({},{}),this.getResource(n,i)):this.getResource(n,i)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"hasLanguageSomeTranslations",value:function(n){var i=this.getDataByLanguage(n),o=i&&Object.keys(i)||[];return!!o.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(le),da={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,a,n,i){var o=this;return t.forEach(function(s){o.processors[s]&&(r=o.processors[s].process(r,a,n,i))}),r}};function sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Ho(e){var t=Ko();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function Ko(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var un={},cn=function(e){bt(r,e);var t=Ho(r);function r(a){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return W(this,r),n=t.call(this),wt&&le.call(fe(n)),Io(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,fe(n)),n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=te.create("translator"),n}return G(r,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,i);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,i){var o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ns||this.options.defaultNS||[],f=o&&n.indexOf(o)>-1,l=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Bo(n,o,s);if(f&&!l){var c=n.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:n,namespaces:u};var d=n.split(o);(o!==s||o===s&&this.options.ns.indexOf(d[0])>-1)&&(u=d.shift()),n=d.join(s)}return typeof u=="string"&&(u=[u]),{key:n,namespaces:u}}},{key:"translate",value:function(n,i,o){var s=this;if(Y(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var u=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=this.extractFromKey(n[n.length-1],i),c=l.key,d=l.namespaces,p=d[d.length-1],y=i.lng||this.language,b=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y&&y.toLowerCase()==="cimode"){if(b){var w=i.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(p).concat(w).concat(c),usedKey:c,exactUsedKey:c,usedLng:y,usedNS:p}:"".concat(p).concat(w).concat(c)}return u?{res:c,usedKey:c,exactUsedKey:c,usedLng:y,usedNS:p}:c}var h=this.resolve(n,i),g=h&&h.res,x=h&&h.usedKey||c,m=h&&h.exactUsedKey||c,v=Object.prototype.toString.apply(g),N=["[object Number]","[object Function]","[object RegExp]"],C=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,Z=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(X&&g&&Z&&N.indexOf(v)<0&&!(typeof C=="string"&&v==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,g,I(I({},i),{},{ns:d})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return u?(h.res=_,h):_}if(f){var z=v==="[object Array]",D=z?[]:{},_e=z?m:x;for(var V in g)if(Object.prototype.hasOwnProperty.call(g,V)){var ze="".concat(_e).concat(f).concat(V);D[V]=this.translate(ze,I(I({},i),{joinArrays:!1,ns:d})),D[V]===ze&&(D[V]=g[V])}g=D}}else if(X&&typeof C=="string"&&v==="[object Array]")g=g.join(C),g&&(g=this.extendTranslation(g,n,i,o));else{var we=!1,he=!1,Ae=i.count!==void 0&&typeof i.count!="string",Te=r.hasDefaultValue(i),He=Ae?this.pluralResolver.getSuffix(y,i.count,i):"",ge=i["defaultValue".concat(He)]||i.defaultValue;!this.isValidLookup(g)&&Te&&(we=!0,g=ge),this.isValidLookup(g)||(he=!0,g=c);var St=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ot=St&&he?void 0:g,me=Te&&ge!==g&&this.options.updateMissing;if(he||we||me){if(this.logger.log(me?"updateKey":"missingKey",y,p,c,me?ge:g),f){var Ke=this.resolve(c,I(I({},i),{},{keySeparator:!1}));Ke&&Ke.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.")}var ve=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var je=0;je<Se.length;je++)ve.push(Se[je]);else this.options.saveMissingTo==="all"?ve=this.languageUtils.toResolveHierarchy(i.lng||this.language):ve.push(i.lng||this.language);var Je=function(ce,E,Oe){var ye=Te&&Oe!==g?Oe:Ot;s.options.missingKeyHandler?s.options.missingKeyHandler(ce,p,E,ye,me,i):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(ce,p,E,ye,me,i),s.emit("missingKey",ce,p,E,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ae?ve.forEach(function($e){s.pluralResolver.getSuffixes($e,i).forEach(function(ce){Je([$e],c+ce,i["defaultValue".concat(ce)]||ge)})}):Je(ve,c,ge))}g=this.extendTranslation(g,n,i,h,o),he&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(p,":").concat(c)),(he||we)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(c):c,we?g:void 0):g=this.options.parseMissingKeyHandler(g))}return u?(h.res=g,h):g}},{key:"extendTranslation",value:function(n,i,o,s,u){var f=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,I(I({},this.options.interpolation.defaultVariables),o),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(I(I({},o),{interpolation:I(I({},this.options.interpolation),o.interpolation)}));var l=typeof n=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){var d=n.match(this.interpolator.nestingRegexp);c=d&&d.length}var p=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(p=I(I({},this.options.interpolation.defaultVariables),p)),n=this.interpolator.interpolate(n,p,o.lng||this.language,o),l){var y=n.match(this.interpolator.nestingRegexp),b=y&&y.length;c<b&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,x=new Array(g),m=0;m<g;m++)x[m]=arguments[m];return u&&u[0]===x[0]&&!o.context?(f.logger.warn("It seems you are nesting recursively key: ".concat(x[0]," in key: ").concat(i[0])),null):f.translate.apply(f,x.concat([i]))},o)),o.interpolation&&this.interpolator.reset()}var w=o.postProcess||this.options.postProcess,h=typeof w=="string"?[w]:w;return n!=null&&h&&h.length&&o.applyPostProcessor!==!1&&(n=da.handle(h,n,i,this.options&&this.options.postProcessPassResolved?I({i18nResolved:s},o):o,this)),n}},{key:"resolve",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,l,c;return typeof n=="string"&&(n=[n]),n.forEach(function(d){if(!i.isValidLookup(s)){var p=i.extractFromKey(d,o),y=p.key;u=y;var b=p.namespaces;i.options.fallbackNS&&(b=b.concat(i.options.fallbackNS));var w=o.count!==void 0&&typeof o.count!="string",h=w&&!o.ordinal&&o.count===0&&i.pluralResolver.shouldUseIntlApi(),g=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",x=o.lngs?o.lngs:i.languageUtils.toResolveHierarchy(o.lng||i.language,o.fallbackLng);b.forEach(function(m){i.isValidLookup(s)||(c=m,!un["".concat(x[0],"-").concat(m)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(c)&&(un["".concat(x[0],"-").concat(m)]=!0,i.logger.warn('key "'.concat(u,'" for languages "').concat(x.join(", "),`" won't get resolved as namespace "`).concat(c,'" 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!!!")),x.forEach(function(v){if(!i.isValidLookup(s)){l=v;var N=[y];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(N,y,v,m,o);else{var C;w&&(C=i.pluralResolver.getSuffix(v,o.count,o));var X="".concat(i.options.pluralSeparator,"zero");if(w&&(N.push(y+C),h&&N.push(y+X)),g){var Z="".concat(y).concat(i.options.contextSeparator).concat(o.context);N.push(Z),w&&(N.push(Z+C),h&&N.push(Z+X))}}for(var _;_=N.pop();)i.isValidLookup(s)||(f=_,s=i.getResource(v,m,_,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:f,usedLng:l,usedNS:c}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,i,o,s):this.resourceStore.getResource(n,i,o,s)}}],[{key:"hasDefaultValue",value:function(n){var i="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&i===o.substring(0,i.length)&&n[o]!==void 0)return!0;return!1}}]),r}(le);function Bt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var fn=function(){function e(t){W(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=te.create("languageUtils")}return G(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var a=r.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var a=r.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],n=r.split("-");return this.options.lowerCaseLng?n=n.map(function(i){return i.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),a.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),a.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase())),a.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bt(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var a=this;if(!r)return null;var n;return r.forEach(function(i){if(!n){var o=a.formatLanguageCode(i);(!a.options.supportedLngs||a.isSupportedCode(o))&&(n=o)}}),!n&&this.options.supportedLngs&&r.forEach(function(i){if(!n){var o=a.getLanguagePartFromCode(i);if(a.isSupportedCode(o))return n=o;n=a.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}},{key:"getFallbackCodes",value:function(r,a){if(!r)return[];if(typeof r=="function"&&(r=r(a)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!a)return r.default||[];var n=r[a];return n||(n=r[this.getScriptPartFromCode(a)]),n||(n=r[this.formatLanguageCode(a)]),n||(n=r[this.getLanguagePartFromCode(a)]),n||(n=r.default),n||[]}},{key:"toResolveHierarchy",value:function(r,a){var n=this,i=this.getFallbackCodes(a||this.options.fallbackLng||[],r),o=[],s=function(f){f&&(n.isSupportedCode(f)?o.push(f):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),i.forEach(function(u){o.indexOf(u)<0&&s(n.formatLanguageCode(u))}),o}}]),e}(),Jo=[{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}],Yo={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},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(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?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:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||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(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},Wo=["v1","v2","v3"],ln={zero:0,one:1,two:2,few:3,many:4,other:5};function Go(){var e={};return Jo.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:Yo[t.fc]}})}),e}var Xo=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=r,this.logger=te.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!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=Go()}return G(e,[{key:"addRule",value:function(r,a){this.rules[r]=a}},{key:"getRule",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:a.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(r,a);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,n).map(function(i){return"".concat(a).concat(i)})}},{key:"getSuffixes",value:function(r){var a=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(o,s){return ln[o]-ln[s]}).map(function(o){return"".concat(a.options.prepend).concat(o)}):i.numbers.map(function(o){return a.getSuffix(r,o,n)}):[]}},{key:"getSuffix",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(r,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(a)):this.getSuffixRetroCompatible(i,a):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,a){var n=this,i=r.noAbs?r.plurals(a):r.plurals(Math.abs(a)),o=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!Wo.includes(this.options.compatibilityJSON)}}]),e}();function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var Zo=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,e),this.logger=te.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return G(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var a=r.interpolation;this.escape=a.escape!==void 0?a.escape:Uo,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?Pe(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?Pe(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?Pe(a.nestingPrefix):a.nestingPrefixEscaped||Pe("$t("),this.nestingSuffix=a.nestingSuffix?Pe(a.nestingSuffix):a.nestingSuffixEscaped||Pe(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(r,a,n,i){var o=this,s,u,f,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(w){return w.replace(/\$/g,"$$$$")}var d=function(h){if(h.indexOf(o.formatSeparator)<0){var g=an(a,l,h);return o.alwaysFormat?o.format(g,void 0,n,H(H(H({},i),a),{},{interpolationkey:h})):g}var x=h.split(o.formatSeparator),m=x.shift().trim(),v=x.join(o.formatSeparator).trim();return o.format(an(a,l,m),v,n,H(H(H({},i),a),{},{interpolationkey:m}))};this.resetRegExp();var p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,y=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,b=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return o.escapeValue?c(o.escape(h)):c(h)}}];return b.forEach(function(w){for(f=0;s=w.regex.exec(r);){var h=s[1].trim();if(u=d(h),u===void 0)if(typeof p=="function"){var g=p(r,s,i);u=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))u="";else if(y){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(r)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=rn(u));var x=w.safeValue(u);if(r=r.replace(s[0],x),y?(w.regex.lastIndex+=u.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,f++,f>=o.maxReplaces)break}}),r}},{key:"nest",value:function(r,a){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u;function f(p,y){var b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;var w=p.split(new RegExp("".concat(b,"[ ]*{"))),h="{".concat(w[1]);p=w[0],h=this.interpolate(h,u);var g=h.match(/'/g),x=h.match(/"/g);(g&&g.length%2===0&&!x||x.length%2!==0)&&(h=h.replace(/'/g,'"'));try{u=JSON.parse(h),y&&(u=H(H({},y),u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(b).concat(h)}return delete u.defaultValue,p}for(;o=this.nestingRegexp.exec(r);){var l=[];u=H({},i),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(p){return p.trim()});o[1]=d.shift(),l=d,c=!0}if(s=a(f.call(this,o[1].trim(),u),u),s&&o[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=rn(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(r)),s=""),c&&(s=l.reduce(function(p,y){return n.format(p,y,i.lng,H(H({},i),{},{interpolationkey:o[1].trim()}))},s.trim())),r=r.replace(o[0],s),this.regexp.lastIndex=0}return r}}]),e}();function pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Qo(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var a=e.split("(");t=a[0].toLowerCase().trim();var n=a[1].substring(0,a[1].length-1);if(t==="currency"&&n.indexOf(":")<0)r.currency||(r.currency=n.trim());else if(t==="relativetime"&&n.indexOf(":")<0)r.range||(r.range=n.trim());else{var i=n.split(";");i.forEach(function(o){if(o){var s=o.split(":"),u=To(s),f=u[0],l=u.slice(1),c=l.join(":").trim().replace(/^'+|'+$/g,"");r[f.trim()]||(r[f.trim()]=c),c==="false"&&(r[f.trim()]=!1),c==="true"&&(r[f.trim()]=!0),isNaN(c)||(r[f.trim()]=parseInt(c,10))}})}}return{formatName:t,formatOptions:r}}function Ce(e){var t={};return function(a,n,i){var o=n+JSON.stringify(i),s=t[o];return s||(s=e(n,i),t[o]=s),s(a)}}var es=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,e),this.logger=te.create("formatter"),this.options=t,this.formats={number:Ce(function(r,a){var n=new Intl.NumberFormat(r,ie({},a));return function(i){return n.format(i)}}),currency:Ce(function(r,a){var n=new Intl.NumberFormat(r,ie(ie({},a),{},{style:"currency"}));return function(i){return n.format(i)}}),datetime:Ce(function(r,a){var n=new Intl.DateTimeFormat(r,ie({},a));return function(i){return n.format(i)}}),relativetime:Ce(function(r,a){var n=new Intl.RelativeTimeFormat(r,ie({},a));return function(i){return n.format(i,a.range||"day")}}),list:Ce(function(r,a){var n=new Intl.ListFormat(r,ie({},a));return function(i){return n.format(i)}})},this.init(t)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},n=a.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(r,a){this.formats[r.toLowerCase().trim()]=a}},{key:"addCached",value:function(r,a){this.formats[r.toLowerCase().trim()]=Ce(a)}},{key:"format",value:function(r,a,n){var i=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.split(this.formatSeparator),u=s.reduce(function(f,l){var c=Qo(l),d=c.formatName,p=c.formatOptions;if(i.formats[d]){var y=f;try{var b=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=b.locale||b.lng||o.locale||o.lng||n;y=i.formats[d](f,w,ie(ie(ie({},p),o),b))}catch(h){i.logger.warn(h)}return y}else i.logger.warn("there was no format function for ".concat(d));return f},r);return u}}]),e}();function hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ts(e){var t=rs();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function rs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ns(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var as=function(e){bt(r,e);var t=ts(r);function r(a,n,i){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return W(this,r),o=t.call(this),wt&&le.call(fe(o)),o.backend=a,o.store=n,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=te.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return G(r,[{key:"queueLoad",value:function(n,i,o,s){var u=this,f={},l={},c={},d={};return n.forEach(function(p){var y=!0;i.forEach(function(b){var w="".concat(p,"|").concat(b);!o.reload&&u.store.hasResourceBundle(p,b)?u.state[w]=2:u.state[w]<0||(u.state[w]===1?l[w]===void 0&&(l[w]=!0):(u.state[w]=1,y=!1,l[w]===void 0&&(l[w]=!0),f[w]===void 0&&(f[w]=!0),d[b]===void 0&&(d[b]=!0)))}),y||(c[p]=!0)}),(Object.keys(f).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(f),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(n,i,o){var s=n.split("|"),u=s[0],f=s[1];i&&this.emit("failedLoading",u,f,i),o&&this.store.addResourceBundle(u,f,o),this.state[n]=i?-1:2;var l={};this.queue.forEach(function(c){Do(c.loaded,[u],f),ns(c,n),i&&c.errors.push(i),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(function(d){l[d]||(l[d]={});var p=c.loaded[d];p.length&&p.forEach(function(y){l[d][y]===void 0&&(l[d][y]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(n,i,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!n.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:o,tried:u,wait:f,callback:l});return}this.readingCalls++;var c=function(b,w){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(b&&w&&u<s.maxRetries){setTimeout(function(){s.read.call(s,n,i,o,u+1,f*2,l)},f);return}l(b,w)},d=this.backend[o].bind(this.backend);if(d.length===2){try{var p=d(n,i);p&&typeof p.then=="function"?p.then(function(y){return c(null,y)}).catch(c):c(null,p)}catch(y){c(y)}return}return d(n,i,c)}},{key:"prepareLoading",value:function(n,i){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=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."),u&&u();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof i=="string"&&(i=[i]);var f=this.queueLoad(n,i,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(function(l){o.loadOne(l)})}},{key:"load",value:function(n,i,o){this.prepareLoading(n,i,{},o)}},{key:"reload",value:function(n,i,o){this.prepareLoading(n,i,{reload:!0},o)}},{key:"loadOne",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=n.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,function(l,c){l&&i.logger.warn("".concat(o,"loading namespace ").concat(f," for language ").concat(u," failed"),l),!l&&c&&i.logger.log("".concat(o,"loaded namespace ").concat(f," for language ").concat(u),c),i.loaded(n,l,c)})}},{key:"saveMissing",value:function(n,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(i,'" 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(!(o==null||o==="")){if(this.backend&&this.backend.create){var c=gn(gn({},f),{},{isUpdate:u}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var p;d.length===5?p=d(n,i,o,s,c):p=d(n,i,o,s),p&&typeof p.then=="function"?p.then(function(y){return l(null,y)}).catch(l):l(null,p)}catch(y){l(y)}else d(n,i,o,s,l,c)}!n||!n[0]||this.store.addResource(n[0],i,o,s)}}}]),r}(le);function mn(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(Y(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),Y(t[2])==="object"||Y(t[3])==="object"){var a=t[3]||t[2];Object.keys(a).forEach(function(n){r[n]=a[n]})}return r},interpolation:{escapeValue:!0,format:function(t,r,a,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function vn(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function is(e){var t=os();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function os(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ge(){}function ss(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var st=function(e){bt(r,e);var t=is(r);function r(){var a,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(W(this,r),a=t.call(this),wt&&le.call(fe(a)),a.options=vn(n),a.services={},a.logger=te,a.modules={external:[]},ss(fe(a)),i&&!a.isInitialized&&!n.isClone){if(!a.options.initImmediate)return a.init(n,i),qe(a,fe(a));setTimeout(function(){a.init(n,i)},0)}return a}return G(r,[{key:"init",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=mn();this.options=Q(Q(Q({},s),this.options),vn(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Q(Q({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function u(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?te.init(u(this.modules.logger),this.options):te.init(null,this.options);var f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=es);var l=new fn(this.options);this.store=new zo(this.options.resources,this.options);var c=this.services;c.logger=te,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new Xo(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=u(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Zo(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new as(u(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var g=arguments.length,x=new Array(g>1?g-1:0),m=1;m<g;m++)x[m-1]=arguments[m];n.emit.apply(n,[h].concat(x))}),this.modules.languageDetector&&(c.languageDetector=u(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=u(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new cn(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,x=new Array(g>1?g-1:0),m=1;m<g;m++)x[m-1]=arguments[m];n.emit.apply(n,[h].concat(x))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.format=this.options.interpolation.format,o||(o=Ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(h){n[h]=function(){var g;return(g=n.store)[h].apply(g,arguments)}});var y=["addResource","addResources","addResourceBundle","removeResourceBundle"];y.forEach(function(h){n[h]=function(){var g;return(g=n.store)[h].apply(g,arguments),n}});var b=Ie(),w=function(){var g=function(m,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),b.resolve(v),o(m,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return g(null,n.t.bind(n));n.changeLanguage(n.options.lng,g)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),b}},{key:"loadResources",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,s=o,u=typeof n=="string"?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var f=[],l=function(p){if(p){var y=i.services.languageUtils.toResolveHierarchy(p);y.forEach(function(b){f.indexOf(b)<0&&f.push(b)})}};if(u)l(u);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(d){return l(d)})}this.options.preload&&this.options.preload.forEach(function(d){return l(d)}),this.services.backendConnector.load(f,this.options.ns,function(d){!d&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(d)})}else s(null)}},{key:"reloadResources",value:function(n,i,o){var s=Ie();return n||(n=this.languages),i||(i=this.options.ns),o||(o=Ge),this.services.backendConnector.reload(n,i,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&da.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"setResolvedLanguage",value:function(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(var i=0;i<this.languages.length;i++){var o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(n,i){var o=this;this.isLanguageChangingTo=n;var s=Ie();this.emit("languageChanging",n);var u=function(d){o.language=d,o.languages=o.services.languageUtils.toResolveHierarchy(d),o.resolvedLanguage=void 0,o.setResolvedLanguage(d)},f=function(d,p){p?(u(p),o.translator.changeLanguage(p),o.isLanguageChangingTo=void 0,o.emit("languageChanged",p),o.logger.log("languageChanged",p)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),i&&i(d,function(){return o.t.apply(o,arguments)})},l=function(d){!n&&!d&&o.services.languageDetector&&(d=[]);var p=typeof d=="string"?d:o.services.languageUtils.getBestMatchFromCodes(d);p&&(o.language||u(p),o.translator.language||o.translator.changeLanguage(p),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(p)),o.loadResources(p,function(y){f(y,p)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(n),s}},{key:"getFixedT",value:function(n,i,o){var s=this,u=function f(l,c){var d;if(Y(c)!=="object"){for(var p=arguments.length,y=new Array(p>2?p-2:0),b=2;b<p;b++)y[b-2]=arguments[b];d=s.options.overloadTranslationOptionHandler([l,c].concat(y))}else d=Q({},c);d.lng=d.lng||f.lng,d.lngs=d.lngs||f.lngs,d.ns=d.ns||f.ns,d.keyPrefix=d.keyPrefix||o||f.keyPrefix;var w=s.options.keySeparator||".",h;return d.keyPrefix&&Array.isArray(l)?h=l.map(function(g){return"".concat(d.keyPrefix).concat(w).concat(g)}):h=d.keyPrefix?"".concat(d.keyPrefix).concat(w).concat(l):l,s.t(h,d)};return typeof n=="string"?u.lng=n:u.lngs=n,u.ns=i,u.keyPrefix=o,u}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?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;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var l=function(p,y){var b=i.services.backendConnector.state["".concat(p,"|").concat(y)];return b===-1||b===2};if(o.precheck){var c=o.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(s,n)&&(!u||l(f,n)))}},{key:"loadNamespaces",value:function(n,i){var o=this,s=Ie();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),i&&i(u)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(n,i){var o=Ie();typeof n=="string"&&(n=[n]);var s=this.options.preload||[],u=n.filter(function(f){return s.indexOf(f)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(f){o.resolve(),i&&i(f)}),o):(i&&i(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";var i=["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"],o=this.services&&this.services.languageUtils||new fn(mn());return i.indexOf(o.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,s=Q(Q(Q({},this.options),i),{isClone:!0}),u=new r(s);(i.debug!==void 0||i.prefix!==void 0)&&(u.logger=u.logger.clone(i));var f=["store","services","language"];return f.forEach(function(l){u[l]=n[l]}),u.services=Q({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new cn(u.services,u.options),u.translator.on("*",function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];u.emit.apply(u,[l].concat(d))}),u.init(s,o),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(le);pe(st,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new st(e,t)});var $=st.createInstance();$.createInstance=st.createInstance;$.createInstance;$.dir;$.init;$.loadResources;$.reloadResources;$.use;$.changeLanguage;$.getFixedT;$.t;$.exists;$.setDefaultNamespace;$.hasLoadedNamespace;$.loadNamespaces;$.loadLanguages;var pa=[],us=pa.forEach,cs=pa.slice;function fs(e){return us.call(cs.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}var bn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ls=function(t,r,a){var n=a||{};n.path=n.path||"/";var i=encodeURIComponent(r),o="".concat(t,"=").concat(i);if(n.maxAge>0){var s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(n.domain){if(!bn.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!bn.test(n.path))throw new TypeError("option path is invalid");o+="; Path=".concat(n.path)}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},wn={create:function(t,r,a,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};a&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+a*60*1e3)),n&&(i.domain=n),document.cookie=ls(t,encodeURIComponent(r),i)},read:function(t){for(var r="".concat(t,"="),a=document.cookie.split(";"),n=0;n<a.length;n++){for(var i=a[n];i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(r)===0)return i.substring(r.length,i.length)}return null},remove:function(t){this.create(t,"",-1)}},ds={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var a=wn.read(t.lookupCookie);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&wn.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},ps={name:"querystring",lookup:function(t){var r;if(typeof window<"u"){var a=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=a.substring(1),i=n.split("&"),o=0;o<i.length;o++){var s=i[o].indexOf("=");if(s>0){var u=i[o].substring(0,s);u===t.lookupQuerystring&&(r=i[o].substring(s+1))}}}return r}},De=null,Sn=function(){if(De!==null)return De;try{De=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{De=!1}return De},hs={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&Sn()){var a=window.localStorage.getItem(t.lookupLocalStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&Sn()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},Fe=null,On=function(){if(Fe!==null)return Fe;try{Fe=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Fe=!1}return Fe},gs={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&On()){var a=window.sessionStorage.getItem(t.lookupSessionStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&On()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},ms={name:"navigator",lookup:function(t){var r=[];if(typeof navigator<"u"){if(navigator.languages)for(var a=0;a<navigator.languages.length;a++)r.push(navigator.languages[a]);navigator.userLanguage&&r.push(navigator.userLanguage),navigator.language&&r.push(navigator.language)}return r.length>0?r:void 0}},vs={name:"htmlTag",lookup:function(t){var r,a=t.htmlTag||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(r=a.getAttribute("lang")),r}},ys={name:"path",lookup:function(t){var r;if(typeof window<"u"){var a=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(a instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof a[t.lookupFromPathIndex]!="string")return;r=a[t.lookupFromPathIndex].replace("/","")}else r=a[0].replace("/","")}return r}},bs={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,a=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[r]}};function ws(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var ha=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=fs(a,this.options||{},ws()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(ds),this.addDetector(ps),this.addDetector(hs),this.addDetector(gs),this.addDetector(ms),this.addDetector(vs),this.addDetector(ys),this.addDetector(bs)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var a=this;r||(r=this.options.order);var n=[];return r.forEach(function(i){if(a.detectors[i]){var o=a.detectors[i].lookup(a.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(r,a){var n=this;a||(a=this.options.caches),a&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||a.forEach(function(i){n.detectors[i]&&n.detectors[i].cacheUserLanguage(r,n.options)}))}}]),e}();ha.type="languageDetector";const ga=({resources:e})=>T.useMemo(()=>$.createInstance({defaultNS:"common",fallbackLng:"en",fallbackNS:"common",load:"languageOnly",ns:["common"],overloadTranslationOptionHandler:t=>({defaultValue:t[1]}),react:{useSuspense:!1},resources:e,supportedLngs:e?Object.keys(e):[]},t=>{if(t)return console.error(t)}).use(ha),[e]),ma=_n(e=>{const t=`.${e}`;return jn({key:"css",stylisPlugins:[a=>{a?.type==="rule"&&a?.value.startsWith(".css")&&(a.props=[a.props].flat().map(n=>n.includes(t)?n:`${t} ${n}`))},Ua]})}),va=({children:e,css:t,fallback:r,resources:a})=>{const{scope:n,onError:i}=sa(),o=ga({resources:a});return q("div",{className:n,css:t,"data-testid":n,children:q(nt.CacheProvider,{value:ma(n),children:q(wa.I18nextProvider,{i18n:o,children:q(ua,{fallback:r,onError:i,children:e})})})})};var Ss=Object.defineProperty,ut=Object.getOwnPropertySymbols,ya=Object.prototype.hasOwnProperty,ba=Object.prototype.propertyIsEnumerable,xn=(e,t,r)=>t in e?Ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zt=(e,t)=>{for(var r in t||(t={}))ya.call(t,r)&&xn(e,r,t[r]);if(ut)for(var r of ut(t))ba.call(t,r)&&xn(e,r,t[r]);return e},Os=(e,t)=>{var r={};for(var a in e)ya.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&ut)for(var a of ut(e))t.indexOf(a)<0&&ba.call(e,a)&&(r[a]=e[a]);return r};const xs=(e,t)=>{if(!e)return;const r=e;return e&&t&&Object.entries(e).forEach(([a,n])=>{Object.keys(n).forEach(i=>{var o;r[a][i]=Zt(Zt({},r[a][i]),(o=t[a])==null?void 0:o[i])})}),r},Es=(e,t,r)=>a=>{var n=a,{resources:i}=n,o=Os(n,["resources"]);return q(va,{resources:xs(r?.resources,i),fallback:t,children:q(e,Zt({},o))})},Ps={createElement:Es};exports.Alchemy=Ro;exports.AlchemyContext=fr;exports.Element=va;exports.ErrorBoundary=ua;exports.default=Ps;exports.memoizedCreateCache=ma;exports.useAlchemy=sa;exports.useI18n=ga;exports.useLoadFonts=zn;exports.useLoadIcons=ia;exports.useLoadTheme=oa;Object.keys(be).forEach(e=>{e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>be[e]})});
25
+ `+("css`"+u+"`"))}break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function vi(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=Me(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object")t!=null&&t[o]!==void 0?a+=i+"{"+t[o]+"}":xr(o)&&(a+=Ot(i)+":"+at(i,o)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Mn);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)xr(o[s])&&(a+=Ot(i)+":"+at(i,o[s])+";");else{var u=Me(e,t,o);switch(i){case"animation":case"animationName":{a+=Ot(i)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(fi),a+=i+"{"+u+"}"}}}}return a}var Er=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Bn;process.env.NODE_ENV!=="production"&&(Bn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var K,Pr=function(t,r,a){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,i="";K=void 0;var o=t[0];o==null||o.raw===void 0?(n=!1,i+=Me(a,r,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(Sr),i+=o[0]);for(var s=1;s<t.length;s++)i+=Me(a,r,t[s]),n&&(process.env.NODE_ENV!=="production"&&o[s]===void 0&&console.error(Sr),i+=o[s]);var u;process.env.NODE_ENV!=="production"&&(i=i.replace(Bn,function(d){return u=d,""})),Er.lastIndex=0;for(var f="",l;(l=Er.exec(i))!==null;)f+="-"+l[1];var c=ui(i)+f;return process.env.NODE_ENV!=="production"?{name:c,styles:i,map:u,next:K,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:i,next:K}},yi=function(t){return t()},bi=Vt["useInsertionEffect"]?Vt["useInsertionEffect"]:!1,wi=bi||yi,ht={}.hasOwnProperty,ir=T.createContext(typeof HTMLElement<"u"?$n({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ir.displayName="EmotionCacheContext");ir.Provider;var Si=function(t){return T.forwardRef(function(r,a){var n=T.useContext(ir);return t(r,n,a)})},Vn=T.createContext({});process.env.NODE_ENV!=="production"&&(Vn.displayName="EmotionThemeContext");var Cr=function(t){var r=t.split(".");return r[r.length-1]},xi=function(t){var r=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(r||(r=/^([A-Za-z0-9$.]+)@/.exec(t),r))return Cr(r[1])},Oi=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Ei=function(t){return t.replace(/\$/g,"-")},Pi=function(t){if(t)for(var r=t.split(`
26
+ `),a=0;a<r.length;a++){var n=xi(r[a]);if(n){if(Oi.has(n))break;if(/^[A-Z]/.test(n))return Ei(n)}}},Ht="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",qn=function(t,r){if(process.env.NODE_ENV!=="production"&&typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var a={};for(var n in r)ht.call(r,n)&&(a[n]=r[n]);if(a[Ht]=t,process.env.NODE_ENV!=="production"&&r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var i=Pi(new Error().stack);i&&(a[Kt]=i)}return a},Ci=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Fn(r,a,n),wi(function(){return si(r,a,n)}),null},or=Si(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[Ht],i=[a],o="";typeof e.className=="string"?o=oi(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Pr(i,void 0,T.useContext(Vn));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Kt];u&&(s=Pr([s,"label:"+u+";"]))}o+=t.key+"-"+s.name;var f={};for(var l in e)ht.call(e,l)&&l!=="css"&&l!==Ht&&(process.env.NODE_ENV==="production"||l!==Kt)&&(f[l]=e[l]);return f.ref=r,f.className=o,T.createElement(T.Fragment,null,T.createElement(Ci,{cache:t,serialized:s,isStringTag:typeof n=="string"}),T.createElement(n,f))});process.env.NODE_ENV!=="production"&&(or.displayName="EmotionCssPropInternal");function J(e,t,r){return ht.call(t,"css")?rt.jsx(or,qn(e,t),r):rt.jsx(e,t,r)}function Ri(e,t,r){return ht.call(t,"css")?rt.jsxs(or,qn(e,t),r):rt.jsxs(e,t,r)}var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var ki=zn.default=function(){},Rr=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const Hn=({cdnURL:e="/",scope:t,theme:r})=>{const[a,n]=T.useState();return T.useEffect(()=>{Rr(void 0,null,function*(){var i;try{const o=(i=r?.fontFaces)!=null?i:[];yield Promise.all(o.map(s=>Rr(void 0,[s],function*({family:u,source:f,descriptors:l}){const c=f.map(d=>`url(${d.replace("$cdnUrl",e)})`).join(", ");try{const p=yield new FontFace(u,c,l).load();document.fonts.add(p)}catch(d){console.error(d)}}))),n(r?.defaultFontFamily)}catch(o){be.logger.error({error:o},"Error loading fonts")}})},[e,r]),nt.css({[`.${t}`]:{fontFamily:a}})};var Jt={},Ni={get exports(){return Jt},set exports(e){Jt=e}},it={},Li={get exports(){return it},set exports(e){it=e}},Kn=function(t,r){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(r,n)}},_i=Kn,de=Object.prototype.toString;function sr(e){return Array.isArray(e)}function Yt(e){return typeof e>"u"}function Ai(e){return e!==null&&!Yt(e)&&e.constructor!==null&&!Yt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Jn(e){return de.call(e)==="[object ArrayBuffer]"}function Ti(e){return de.call(e)==="[object FormData]"}function ji(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jn(e.buffer),t}function $i(e){return typeof e=="string"}function Ii(e){return typeof e=="number"}function Yn(e){return e!==null&&typeof e=="object"}function et(e){if(de.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Di(e){return de.call(e)==="[object Date]"}function Fi(e){return de.call(e)==="[object File]"}function Ui(e){return de.call(e)==="[object Blob]"}function Wn(e){return de.call(e)==="[object Function]"}function Mi(e){return Yn(e)&&Wn(e.pipe)}function Bi(e){return de.call(e)==="[object URLSearchParams]"}function Vi(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function qi(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ur(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),sr(e))for(var r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}function Wt(){var e={};function t(n,i){et(e[i])&&et(n)?e[i]=Wt(e[i],n):et(n)?e[i]=Wt({},n):sr(n)?e[i]=n.slice():e[i]=n}for(var r=0,a=arguments.length;r<a;r++)ur(arguments[r],t);return e}function zi(e,t,r){return ur(t,function(n,i){r&&typeof n=="function"?e[i]=_i(n,r):e[i]=n}),e}function Hi(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var U={isArray:sr,isArrayBuffer:Jn,isBuffer:Ai,isFormData:Ti,isArrayBufferView:ji,isString:$i,isNumber:Ii,isObject:Yn,isPlainObject:et,isUndefined:Yt,isDate:Di,isFile:Fi,isBlob:Ui,isFunction:Wn,isStream:Mi,isURLSearchParams:Bi,isStandardBrowserEnv:qi,forEach:ur,merge:Wt,extend:zi,trim:Vi,stripBOM:Hi},Oe=U;function kr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Gn=function(t,r,a){if(!r)return t;var n;if(a)n=a(r);else if(Oe.isURLSearchParams(r))n=r.toString();else{var i=[];Oe.forEach(r,function(u,f){u===null||typeof u>"u"||(Oe.isArray(u)?f=f+"[]":u=[u],Oe.forEach(u,function(c){Oe.isDate(c)?c=c.toISOString():Oe.isObject(c)&&(c=JSON.stringify(c)),i.push(kr(f)+"="+kr(c))}))}),n=i.join("&")}if(n){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t},Ki=U;function gt(){this.handlers=[]}gt.prototype.use=function(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1};gt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};gt.prototype.forEach=function(t){Ki.forEach(this.handlers,function(a){a!==null&&t(a)})};var Ji=gt,Yi=U,Wi=function(t,r){Yi.forEach(t,function(n,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=n,delete t[i])})},Xn=function(t,r,a,n,i){return t.config=r,a&&(t.code=a),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Et,Nr;function Qn(){if(Nr)return Et;Nr=1;var e=Xn;return Et=function(r,a,n,i,o){var s=new Error(r);return e(s,a,n,i,o)},Et}var Pt,Lr;function Gi(){if(Lr)return Pt;Lr=1;var e=Qn();return Pt=function(r,a,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?r(n):a(e("Request failed with status code "+n.status,n.config,null,n.request,n))},Pt}var Ct,_r;function Xi(){if(_r)return Ct;_r=1;var e=U;return Ct=e.isStandardBrowserEnv()?function(){return{write:function(a,n,i,o,s,u){var f=[];f.push(a+"="+encodeURIComponent(n)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(o)&&f.push("path="+o),e.isString(s)&&f.push("domain="+s),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(a){var n=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ct}var Rt,Ar;function Zi(){return Ar||(Ar=1,Rt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Rt}var kt,Tr;function Qi(){return Tr||(Tr=1,kt=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),kt}var Nt,jr;function eo(){if(jr)return Nt;jr=1;var e=Zi(),t=Qi();return Nt=function(a,n){return a&&!e(n)?t(a,n):n},Nt}var Lt,$r;function to(){if($r)return Lt;$r=1;var e=U,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Lt=function(a){var n={},i,o,s;return a&&e.forEach(a.split(`
27
+ `),function(f){if(s=f.indexOf(":"),i=e.trim(f.substr(0,s)).toLowerCase(),o=e.trim(f.substr(s+1)),i){if(n[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?n[i]=(n[i]?n[i]:[]).concat([o]):n[i]=n[i]?n[i]+", "+o:o}}),n},Lt}var _t,Ir;function ro(){if(Ir)return _t;Ir=1;var e=U;return _t=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),n;function i(o){var s=o;return r&&(a.setAttribute("href",s),s=a.href),a.setAttribute("href",s),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return n=i(window.location.href),function(s){var u=e.isString(s)?i(s):s;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}(),_t}var At,Dr;function mt(){if(Dr)return At;Dr=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,At=e,At}var Tt,Fr;function Ur(){if(Fr)return Tt;Fr=1;var e=U,t=Gi(),r=Xi(),a=Gn,n=eo(),i=to(),o=ro(),s=Qn(),u=Zn,f=mt();return Tt=function(c){return new Promise(function(p,y){var b=c.data,w=c.headers,h=c.responseType,g;function O(){c.cancelToken&&c.cancelToken.unsubscribe(g),c.signal&&c.signal.removeEventListener("abort",g)}e.isFormData(b)&&delete w["Content-Type"];var m=new XMLHttpRequest;if(c.auth){var v=c.auth.username||"",N=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";w.Authorization="Basic "+btoa(v+":"+N)}var C=n(c.baseURL,c.url);m.open(c.method.toUpperCase(),a(C,c.params,c.paramsSerializer),!0),m.timeout=c.timeout;function X(){if(m){var _="getAllResponseHeaders"in m?i(m.getAllResponseHeaders()):null,q=!h||h==="text"||h==="json"?m.responseText:m.response,D={data:q,status:m.status,statusText:m.statusText,headers:_,config:c,request:m};t(function(V){p(V),O()},function(V){y(V),O()},D),m=null}}if("onloadend"in m?m.onloadend=X:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(X)},m.onabort=function(){m&&(y(s("Request aborted",c,"ECONNABORTED",m)),m=null)},m.onerror=function(){y(s("Network Error",c,null,m)),m=null},m.ontimeout=function(){var q=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",D=c.transitional||u;c.timeoutErrorMessage&&(q=c.timeoutErrorMessage),y(s(q,c,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},e.isStandardBrowserEnv()){var Z=(c.withCredentials||o(C))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;Z&&(w[c.xsrfHeaderName]=Z)}"setRequestHeader"in m&&e.forEach(w,function(q,D){typeof b>"u"&&D.toLowerCase()==="content-type"?delete w[D]:m.setRequestHeader(D,q)}),e.isUndefined(c.withCredentials)||(m.withCredentials=!!c.withCredentials),h&&h!=="json"&&(m.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&m.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(g=function(_){m&&(y(!_||_&&_.type?new f("canceled"):_),m.abort(),m=null)},c.cancelToken&&c.cancelToken.subscribe(g),c.signal&&(c.signal.aborted?g():c.signal.addEventListener("abort",g))),b||(b=null),m.send(b)})},Tt}var j=U,Mr=Wi,no=Xn,ao=Zn,io={"Content-Type":"application/x-www-form-urlencoded"};function Br(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function oo(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ur()),e}function so(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}var vt={transitional:ao,adapter:oo(),transformRequest:[function(t,r){return Mr(r,"Accept"),Mr(r,"Content-Type"),j.isFormData(t)||j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)?t:j.isArrayBufferView(t)?t.buffer:j.isURLSearchParams(t)?(Br(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):j.isObject(t)||r&&r["Content-Type"]==="application/json"?(Br(r,"application/json"),so(t)):t}],transformResponse:[function(t){var r=this.transitional||vt.transitional,a=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,i=!a&&this.responseType==="json";if(i||n&&j.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?no(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};j.forEach(["delete","get","head"],function(t){vt.headers[t]={}});j.forEach(["post","put","patch"],function(t){vt.headers[t]=j.merge(io)});var cr=vt,uo=U,co=cr,fo=function(t,r,a){var n=this||co;return uo.forEach(a,function(o){t=o.call(n,t,r)}),t},jt,Vr;function ea(){return Vr||(Vr=1,jt=function(t){return!!(t&&t.__CANCEL__)}),jt}var qr=U,$t=fo,lo=ea(),po=cr,ho=mt();function It(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ho("canceled")}var go=function(t){It(t),t.headers=t.headers||{},t.data=$t.call(t,t.data,t.headers,t.transformRequest),t.headers=qr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),qr.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var r=t.adapter||po.adapter;return r(t).then(function(n){return It(t),n.data=$t.call(t,n.data,n.headers,t.transformResponse),n},function(n){return lo(n)||(It(t),n&&n.response&&(n.response.data=$t.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},M=U,ta=function(t,r){r=r||{};var a={};function n(l,c){return M.isPlainObject(l)&&M.isPlainObject(c)?M.merge(l,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function i(l){if(M.isUndefined(r[l])){if(!M.isUndefined(t[l]))return n(void 0,t[l])}else return n(t[l],r[l])}function o(l){if(!M.isUndefined(r[l]))return n(void 0,r[l])}function s(l){if(M.isUndefined(r[l])){if(!M.isUndefined(t[l]))return n(void 0,t[l])}else return n(void 0,r[l])}function u(l){if(l in r)return n(t[l],r[l]);if(l in t)return n(void 0,t[l])}var f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return M.forEach(Object.keys(t).concat(Object.keys(r)),function(c){var d=f[c]||i,p=d(c);M.isUndefined(p)&&d!==u||(a[c]=p)}),a},Dt,zr;function ra(){return zr||(zr=1,Dt={version:"0.26.1"}),Dt}var mo=ra().version,fr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){fr[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var Hr={};fr.transitional=function(t,r,a){function n(i,o){return"[Axios v"+mo+"] Transitional option '"+i+"'"+o+(a?". "+a:"")}return function(i,o,s){if(t===!1)throw new Error(n(o," has been removed"+(r?" in "+r:"")));return r&&!Hr[o]&&(Hr[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function vo(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var a=Object.keys(e),n=a.length;n-- >0;){var i=a[n],o=t[i];if(o){var s=e[i],u=s===void 0||o(s,i,e);if(u!==!0)throw new TypeError("option "+i+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+i)}}var yo={assertOptions:vo,validators:fr},na=U,bo=Gn,Kr=Ji,Jr=go,yt=ta,aa=yo,Ee=aa.validators;function Ve(e){this.defaults=e,this.interceptors={request:new Kr,response:new Kr}}Ve.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=yt(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var a=r.transitional;a!==void 0&&aa.assertOptions(a,{silentJSONParsing:Ee.transitional(Ee.boolean),forcedJSONParsing:Ee.transitional(Ee.boolean),clarifyTimeoutError:Ee.transitional(Ee.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(i=i&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var o=[];this.interceptors.response.forEach(function(p){o.push(p.fulfilled,p.rejected)});var s;if(!i){var u=[Jr,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var f=r;n.length;){var l=n.shift(),c=n.shift();try{f=l(f)}catch(d){c(d);break}}try{s=Jr(f)}catch(d){return Promise.reject(d)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Ve.prototype.getUri=function(t){return t=yt(this.defaults,t),bo(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};na.forEach(["delete","get","head","options"],function(t){Ve.prototype[t]=function(r,a){return this.request(yt(a||{},{method:t,url:r,data:(a||{}).data}))}});na.forEach(["post","put","patch"],function(t){Ve.prototype[t]=function(r,a,n){return this.request(yt(n||{},{method:t,url:r,data:a}))}});var wo=Ve,Ft,Yr;function So(){if(Yr)return Ft;Yr=1;var e=mt();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(o){a=o});var n=this;this.promise.then(function(i){if(n._listeners){var o,s=n._listeners.length;for(o=0;o<s;o++)n._listeners[o](i);n._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(u){n.subscribe(u),o=u}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},r(function(o){n.reason||(n.reason=new e(o),a(n.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]},t.prototype.unsubscribe=function(a){if(this._listeners){var n=this._listeners.indexOf(a);n!==-1&&this._listeners.splice(n,1)}},t.source=function(){var a,n=new t(function(o){a=o});return{token:n,cancel:a}},Ft=t,Ft}var Ut,Wr;function xo(){return Wr||(Wr=1,Ut=function(t){return function(a){return t.apply(null,a)}}),Ut}var Mt,Gr;function Oo(){if(Gr)return Mt;Gr=1;var e=U;return Mt=function(r){return e.isObject(r)&&r.isAxiosError===!0},Mt}var Xr=U,Eo=Kn,tt=wo,Po=ta,Co=cr;function ia(e){var t=new tt(e),r=Eo(tt.prototype.request,t);return Xr.extend(r,tt.prototype,t),Xr.extend(r,t),r.create=function(n){return ia(Po(e,n))},r}var ae=ia(Co);ae.Axios=tt;ae.Cancel=mt();ae.CancelToken=So();ae.isCancel=ea();ae.VERSION=ra().version;ae.all=function(t){return Promise.all(t)};ae.spread=xo();ae.isAxiosError=Oo();Li.exports=ae;it.default=ae;(function(e){e.exports=it})(Ni);const Gt=Qa(Jt);var Zr=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const oa=({brandName:e,cdnURL:t="/"})=>{const[r,a]=T.useState();return T.useEffect(()=>{Zr(void 0,null,function*(){try{const n=yield Gt.get("/brand/iconIndex.json",{baseURL:t});a(n.data)}catch(n){be.logger.error({error:n},`Error loading icon index for brand ${e}`)}})},[e,t]),n=>Zr(void 0,null,function*(){if(r){const i=(r[n.toLowerCase()]||[]).includes(e)?e:er.BrandName.FALLBACK;return(yield Gt.get(`/brand/${i}/icons/${n.toLowerCase()}.svg`,{baseURL:t,responseType:"text"})).data}})};var Ro=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const sa=({cdnURL:e="/",brandName:t})=>{const[r,a]=T.useState();return T.useEffect(()=>{Ro(void 0,null,function*(){try{const n=yield Gt.get(`/brand/${t}/theme.json`,{baseURL:e}),i=new er.Theme(n.data);a(i)}catch(n){be.logger.error({error:n},`Error loading theme for brand ${t}`)}})},[t,e]),r},lr=T.createContext(void 0),ko=({baseURL:e="https://api.shipengine.com",brandName:t=er.BrandName.FALLBACK,cdnURL:r="/",children:a,getToken:n,onError:i,scope:o="lmnt"})=>{const s=sa({brandName:t,cdnURL:r}),u=Hn({cdnURL:r,scope:o,theme:s}),f=oa({brandName:t,cdnURL:r});return s?(i=i??ki,J(lr.Provider,{value:{baseURL:e,brandName:t,cdnURL:r,getToken:n,onError:i,scope:o,theme:s},children:Ri(nt.ThemeProvider,{theme:s,children:[J(nt.Global,{styles:[hr.getEmotionResetStyles(o),u]}),J(hr.GigerConfigProvider,{resolveIcon:f,children:J(be.ShipEngine,{baseURL:e,getToken:n,children:a})})]})})):null},ua=()=>{const e=T.useContext(lr);if(!e)throw new Error("useAlchemy must be called from within the scope of <Alchemy />");return e};var Xt={},No={get exports(){return Xt},set exports(e){Xt=e}};/*!
28
+ Copyright (c) 2018 Jed Watson.
29
+ Licensed under the MIT License (MIT), see
30
+ http://jedwatson.github.io/classnames
31
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var o=typeof i;if(o==="string"||o==="number")a.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&a.push(s)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){a.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&a.push(u)}}}return a.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(No);const Lo=Xt;class ca extends Vt.Component{constructor(t){super(t),this.state={error:void 0}}componentDidCatch(t,r){t.stack=r.componentStack,this.props.onError(t),be.logger.error({error:t},t.message),this.setState({error:t})}render(){const{fallback:t,children:r}=this.props,{error:a}=this.state;return a?J(t,{error:a}):r}}function Y(e){return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){if(Y(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Y(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fa(e){var t=_o(e,"string");return Y(t)==="symbol"?t:String(t)}function Qr(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,fa(a.key),a)}}function G(e,t,r){return t&&Qr(e.prototype,t),r&&Qr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zt(e,t){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Zt(e,t)}function bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zt(e,t)}function qe(e,t){if(t&&(Y(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ne(e)}function pe(e,t,r){return t=fa(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ao(e){if(Array.isArray(e))return e}function To(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function en(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function jo(e,t){if(e){if(typeof e=="string")return en(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return en(e,t)}}function $o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e){return Ao(e)||To(e)||jo(e)||$o()}function tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var Do={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},Fo=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.init(t,r)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=r||Do,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,a,n,i){return i&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(n).concat(this.prefix," ").concat(r[0])),this.logger[a](r))}},{key:"create",value:function(r){return new e(this.logger,rn(rn({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}}]),e}(),te=new Fo,le=function(){function e(){W(this,e),this.observers={}}return G(e,[{key:"on",value:function(r,a){var n=this;return r.split(" ").forEach(function(i){n.observers[i]=n.observers[i]||[],n.observers[i].push(a)}),this}},{key:"off",value:function(r,a){if(this.observers[r]){if(!a){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(n){return n!==a})}}},{key:"emit",value:function(r){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];if(this.observers[r]){var o=[].concat(this.observers[r]);o.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[r].concat(n))})}}}]),e}();function Ie(){var e,t,r=new Promise(function(a,n){e=a,t=n});return r.resolve=e,r.reject=t,r}function nn(e){return e==null?"":""+e}function Uo(e,t,r){e.forEach(function(a){t[a]&&(r[a]=t[a])})}function dr(e,t,r){function a(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function n(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(n())return{};var o=a(i.shift());!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return n()?{}:{obj:e,k:a(i.shift())}}function an(e,t,r){var a=dr(e,t,Object),n=a.obj,i=a.k;n[i]=r}function Mo(e,t,r,a){var n=dr(e,t,Object),i=n.obj,o=n.k;i[o]=i[o]||[],a&&(i[o]=i[o].concat(r)),a||i[o].push(r)}function ot(e,t){var r=dr(e,t),a=r.obj,n=r.k;if(a)return a[n]}function on(e,t,r){var a=ot(e,r);return a!==void 0?a:ot(t,r)}function la(e,t,r){for(var a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?typeof e[a]=="string"||e[a]instanceof String||typeof t[a]=="string"||t[a]instanceof String?r&&(e[a]=t[a]):la(e[a],t[a],r):e[a]=t[a]);return e}function Pe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Bo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Vo(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Bo[t]}):e}var wt=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,qo=[" ",",","?","!",";"];function zo(e,t,r){t=t||"",r=r||"";var a=qo.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(a.length===0)return!0;var n=new RegExp("(".concat(a.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!n.test(e);if(!i){var o=e.indexOf(r);o>0&&!n.test(e.substring(0,o))&&(i=!0)}return i}function sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Ho(e){var t=Ko();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function Ko(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function da(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var a=t.split(r),n=e,i=0;i<a.length;++i){if(!n||typeof n[a[i]]=="string"&&i+1<a.length)return;if(n[a[i]]===void 0){for(var o=2,s=a.slice(i,i+o).join(r),u=n[s];u===void 0&&a.length>i+o;)o++,s=a.slice(i,i+o).join(r),u=n[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var f=a.slice(i+o).join(r);return f?da(u,f,r):void 0}n=n[a[i]]}return n}}var Jo=function(e){bt(r,e);var t=Ho(r);function r(a){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,r),n=t.call(this),wt&&le.call(fe(n)),n.data=a||{},n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return G(r,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var i=this.options.ns.indexOf(n);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,i];o&&typeof o!="string"&&(l=l.concat(o)),o&&typeof o=="string"&&(l=l.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(l=n.split("."));var c=ot(this.data,l);return c||!f||typeof o!="string"?c:da(this.data&&this.data[n]&&this.data[n][i],o,u)}},{key:"addResource",value:function(n,i,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},f=this.options.keySeparator;f===void 0&&(f=".");var l=[n,i];o&&(l=l.concat(f?o.split(f):o)),n.indexOf(".")>-1&&(l=n.split("."),s=i,i=l[1]),this.addNamespaces(i),an(this.data,l,s),u.silent||this.emit("added",n,i,o,s)}},{key:"addResources",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(n,i,u,o[u],{silent:!0});s.silent||this.emit("added",n,i,o)}},{key:"addResourceBundle",value:function(n,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,i];n.indexOf(".")>-1&&(l=n.split("."),s=o,o=i,i=l[1]),this.addNamespaces(i);var c=ot(this.data,l)||{};s?la(c,o,u):c=We(We({},c),o),an(this.data,l,c),f.silent||this.emit("added",n,i,o)}},{key:"removeResourceBundle",value:function(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}},{key:"hasResourceBundle",value:function(n,i){return this.getResource(n,i)!==void 0}},{key:"getResourceBundle",value:function(n,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We(We({},{}),this.getResource(n,i)):this.getResource(n,i)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"hasLanguageSomeTranslations",value:function(n){var i=this.getDataByLanguage(n),o=i&&Object.keys(i)||[];return!!o.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(le),pa={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,a,n,i){var o=this;return t.forEach(function(s){o.processors[s]&&(r=o.processors[s].process(r,a,n,i))}),r}};function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?un(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Yo(e){var t=Wo();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function Wo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var cn={},fn=function(e){bt(r,e);var t=Yo(r);function r(a){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return W(this,r),n=t.call(this),wt&&le.call(fe(n)),Uo(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,fe(n)),n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=te.create("translator"),n}return G(r,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,i);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,i){var o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ns||this.options.defaultNS||[],f=o&&n.indexOf(o)>-1,l=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!zo(n,o,s);if(f&&!l){var c=n.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:n,namespaces:u};var d=n.split(o);(o!==s||o===s&&this.options.ns.indexOf(d[0])>-1)&&(u=d.shift()),n=d.join(s)}return typeof u=="string"&&(u=[u]),{key:n,namespaces:u}}},{key:"translate",value:function(n,i,o){var s=this;if(Y(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var u=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=this.extractFromKey(n[n.length-1],i),c=l.key,d=l.namespaces,p=d[d.length-1],y=i.lng||this.language,b=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y&&y.toLowerCase()==="cimode"){if(b){var w=i.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(p).concat(w).concat(c),usedKey:c,exactUsedKey:c,usedLng:y,usedNS:p}:"".concat(p).concat(w).concat(c)}return u?{res:c,usedKey:c,exactUsedKey:c,usedLng:y,usedNS:p}:c}var h=this.resolve(n,i),g=h&&h.res,O=h&&h.usedKey||c,m=h&&h.exactUsedKey||c,v=Object.prototype.toString.apply(g),N=["[object Number]","[object Function]","[object RegExp]"],C=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,Z=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(X&&g&&Z&&N.indexOf(v)<0&&!(typeof C=="string"&&v==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,g,I(I({},i),{},{ns:d})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return u?(h.res=_,h):_}if(f){var q=v==="[object Array]",D=q?[]:{},_e=q?m:O;for(var V in g)if(Object.prototype.hasOwnProperty.call(g,V)){var ze="".concat(_e).concat(f).concat(V);D[V]=this.translate(ze,I(I({},i),{joinArrays:!1,ns:d})),D[V]===ze&&(D[V]=g[V])}g=D}}else if(X&&typeof C=="string"&&v==="[object Array]")g=g.join(C),g&&(g=this.extendTranslation(g,n,i,o));else{var we=!1,he=!1,Ae=i.count!==void 0&&typeof i.count!="string",Te=r.hasDefaultValue(i),He=Ae?this.pluralResolver.getSuffix(y,i.count,i):"",ge=i["defaultValue".concat(He)]||i.defaultValue;!this.isValidLookup(g)&&Te&&(we=!0,g=ge),this.isValidLookup(g)||(he=!0,g=c);var St=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,xt=St&&he?void 0:g,me=Te&&ge!==g&&this.options.updateMissing;if(he||we||me){if(this.logger.log(me?"updateKey":"missingKey",y,p,c,me?ge:g),f){var Ke=this.resolve(c,I(I({},i),{},{keySeparator:!1}));Ke&&Ke.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.")}var ve=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var je=0;je<Se.length;je++)ve.push(Se[je]);else this.options.saveMissingTo==="all"?ve=this.languageUtils.toResolveHierarchy(i.lng||this.language):ve.push(i.lng||this.language);var Je=function(ce,E,xe){var ye=Te&&xe!==g?xe:xt;s.options.missingKeyHandler?s.options.missingKeyHandler(ce,p,E,ye,me,i):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(ce,p,E,ye,me,i),s.emit("missingKey",ce,p,E,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ae?ve.forEach(function($e){s.pluralResolver.getSuffixes($e,i).forEach(function(ce){Je([$e],c+ce,i["defaultValue".concat(ce)]||ge)})}):Je(ve,c,ge))}g=this.extendTranslation(g,n,i,h,o),he&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(p,":").concat(c)),(he||we)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(c):c,we?g:void 0):g=this.options.parseMissingKeyHandler(g))}return u?(h.res=g,h):g}},{key:"extendTranslation",value:function(n,i,o,s,u){var f=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,I(I({},this.options.interpolation.defaultVariables),o),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(I(I({},o),{interpolation:I(I({},this.options.interpolation),o.interpolation)}));var l=typeof n=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){var d=n.match(this.interpolator.nestingRegexp);c=d&&d.length}var p=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(p=I(I({},this.options.interpolation.defaultVariables),p)),n=this.interpolator.interpolate(n,p,o.lng||this.language,o),l){var y=n.match(this.interpolator.nestingRegexp),b=y&&y.length;c<b&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,O=new Array(g),m=0;m<g;m++)O[m]=arguments[m];return u&&u[0]===O[0]&&!o.context?(f.logger.warn("It seems you are nesting recursively key: ".concat(O[0]," in key: ").concat(i[0])),null):f.translate.apply(f,O.concat([i]))},o)),o.interpolation&&this.interpolator.reset()}var w=o.postProcess||this.options.postProcess,h=typeof w=="string"?[w]:w;return n!=null&&h&&h.length&&o.applyPostProcessor!==!1&&(n=pa.handle(h,n,i,this.options&&this.options.postProcessPassResolved?I({i18nResolved:s},o):o,this)),n}},{key:"resolve",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,l,c;return typeof n=="string"&&(n=[n]),n.forEach(function(d){if(!i.isValidLookup(s)){var p=i.extractFromKey(d,o),y=p.key;u=y;var b=p.namespaces;i.options.fallbackNS&&(b=b.concat(i.options.fallbackNS));var w=o.count!==void 0&&typeof o.count!="string",h=w&&!o.ordinal&&o.count===0&&i.pluralResolver.shouldUseIntlApi(),g=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",O=o.lngs?o.lngs:i.languageUtils.toResolveHierarchy(o.lng||i.language,o.fallbackLng);b.forEach(function(m){i.isValidLookup(s)||(c=m,!cn["".concat(O[0],"-").concat(m)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(c)&&(cn["".concat(O[0],"-").concat(m)]=!0,i.logger.warn('key "'.concat(u,'" for languages "').concat(O.join(", "),`" won't get resolved as namespace "`).concat(c,'" 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!!!")),O.forEach(function(v){if(!i.isValidLookup(s)){l=v;var N=[y];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(N,y,v,m,o);else{var C;w&&(C=i.pluralResolver.getSuffix(v,o.count,o));var X="".concat(i.options.pluralSeparator,"zero");if(w&&(N.push(y+C),h&&N.push(y+X)),g){var Z="".concat(y).concat(i.options.contextSeparator).concat(o.context);N.push(Z),w&&(N.push(Z+C),h&&N.push(Z+X))}}for(var _;_=N.pop();)i.isValidLookup(s)||(f=_,s=i.getResource(v,m,_,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:f,usedLng:l,usedNS:c}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,i,o,s):this.resourceStore.getResource(n,i,o,s)}}],[{key:"hasDefaultValue",value:function(n){var i="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&i===o.substring(0,i.length)&&n[o]!==void 0)return!0;return!1}}]),r}(le);function Bt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ln=function(){function e(t){W(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=te.create("languageUtils")}return G(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var a=r.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var a=r.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],n=r.split("-");return this.options.lowerCaseLng?n=n.map(function(i){return i.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),a.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),a.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase())),a.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bt(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var a=this;if(!r)return null;var n;return r.forEach(function(i){if(!n){var o=a.formatLanguageCode(i);(!a.options.supportedLngs||a.isSupportedCode(o))&&(n=o)}}),!n&&this.options.supportedLngs&&r.forEach(function(i){if(!n){var o=a.getLanguagePartFromCode(i);if(a.isSupportedCode(o))return n=o;n=a.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}},{key:"getFallbackCodes",value:function(r,a){if(!r)return[];if(typeof r=="function"&&(r=r(a)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!a)return r.default||[];var n=r[a];return n||(n=r[this.getScriptPartFromCode(a)]),n||(n=r[this.formatLanguageCode(a)]),n||(n=r[this.getLanguagePartFromCode(a)]),n||(n=r.default),n||[]}},{key:"toResolveHierarchy",value:function(r,a){var n=this,i=this.getFallbackCodes(a||this.options.fallbackLng||[],r),o=[],s=function(f){f&&(n.isSupportedCode(f)?o.push(f):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),i.forEach(function(u){o.indexOf(u)<0&&s(n.formatLanguageCode(u))}),o}}]),e}(),Go=[{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}],Xo={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},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(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?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:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||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(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},Zo=["v1","v2","v3"],dn={zero:0,one:1,two:2,few:3,many:4,other:5};function Qo(){var e={};return Go.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:Xo[t.fc]}})}),e}var es=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=r,this.logger=te.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!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=Qo()}return G(e,[{key:"addRule",value:function(r,a){this.rules[r]=a}},{key:"getRule",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:a.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(r,a);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,n).map(function(i){return"".concat(a).concat(i)})}},{key:"getSuffixes",value:function(r){var a=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(o,s){return dn[o]-dn[s]}).map(function(o){return"".concat(a.options.prepend).concat(o)}):i.numbers.map(function(o){return a.getSuffix(r,o,n)}):[]}},{key:"getSuffix",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(r,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(a)):this.getSuffixRetroCompatible(i,a):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,a){var n=this,i=r.noAbs?r.plurals(a):r.plurals(Math.abs(a)),o=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!Zo.includes(this.options.compatibilityJSON)}}]),e}();function pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var ts=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,e),this.logger=te.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return G(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var a=r.interpolation;this.escape=a.escape!==void 0?a.escape:Vo,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?Pe(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?Pe(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?Pe(a.nestingPrefix):a.nestingPrefixEscaped||Pe("$t("),this.nestingSuffix=a.nestingSuffix?Pe(a.nestingSuffix):a.nestingSuffixEscaped||Pe(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(r,a,n,i){var o=this,s,u,f,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(w){return w.replace(/\$/g,"$$$$")}var d=function(h){if(h.indexOf(o.formatSeparator)<0){var g=on(a,l,h);return o.alwaysFormat?o.format(g,void 0,n,z(z(z({},i),a),{},{interpolationkey:h})):g}var O=h.split(o.formatSeparator),m=O.shift().trim(),v=O.join(o.formatSeparator).trim();return o.format(on(a,l,m),v,n,z(z(z({},i),a),{},{interpolationkey:m}))};this.resetRegExp();var p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,y=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,b=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return o.escapeValue?c(o.escape(h)):c(h)}}];return b.forEach(function(w){for(f=0;s=w.regex.exec(r);){var h=s[1].trim();if(u=d(h),u===void 0)if(typeof p=="function"){var g=p(r,s,i);u=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))u="";else if(y){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(r)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=nn(u));var O=w.safeValue(u);if(r=r.replace(s[0],O),y?(w.regex.lastIndex+=u.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,f++,f>=o.maxReplaces)break}}),r}},{key:"nest",value:function(r,a){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u;function f(p,y){var b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;var w=p.split(new RegExp("".concat(b,"[ ]*{"))),h="{".concat(w[1]);p=w[0],h=this.interpolate(h,u);var g=h.match(/'/g),O=h.match(/"/g);(g&&g.length%2===0&&!O||O.length%2!==0)&&(h=h.replace(/'/g,'"'));try{u=JSON.parse(h),y&&(u=z(z({},y),u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(b).concat(h)}return delete u.defaultValue,p}for(;o=this.nestingRegexp.exec(r);){var l=[];u=z({},i),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(p){return p.trim()});o[1]=d.shift(),l=d,c=!0}if(s=a(f.call(this,o[1].trim(),u),u),s&&o[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=nn(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(r)),s=""),c&&(s=l.reduce(function(p,y){return n.format(p,y,i.lng,z(z({},i),{},{interpolationkey:o[1].trim()}))},s.trim())),r=r.replace(o[0],s),this.regexp.lastIndex=0}return r}}]),e}();function hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function rs(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var a=e.split("(");t=a[0].toLowerCase().trim();var n=a[1].substring(0,a[1].length-1);if(t==="currency"&&n.indexOf(":")<0)r.currency||(r.currency=n.trim());else if(t==="relativetime"&&n.indexOf(":")<0)r.range||(r.range=n.trim());else{var i=n.split(";");i.forEach(function(o){if(o){var s=o.split(":"),u=Io(s),f=u[0],l=u.slice(1),c=l.join(":").trim().replace(/^'+|'+$/g,"");r[f.trim()]||(r[f.trim()]=c),c==="false"&&(r[f.trim()]=!1),c==="true"&&(r[f.trim()]=!0),isNaN(c)||(r[f.trim()]=parseInt(c,10))}})}}return{formatName:t,formatOptions:r}}function Ce(e){var t={};return function(a,n,i){var o=n+JSON.stringify(i),s=t[o];return s||(s=e(n,i),t[o]=s),s(a)}}var ns=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,e),this.logger=te.create("formatter"),this.options=t,this.formats={number:Ce(function(r,a){var n=new Intl.NumberFormat(r,ie({},a));return function(i){return n.format(i)}}),currency:Ce(function(r,a){var n=new Intl.NumberFormat(r,ie(ie({},a),{},{style:"currency"}));return function(i){return n.format(i)}}),datetime:Ce(function(r,a){var n=new Intl.DateTimeFormat(r,ie({},a));return function(i){return n.format(i)}}),relativetime:Ce(function(r,a){var n=new Intl.RelativeTimeFormat(r,ie({},a));return function(i){return n.format(i,a.range||"day")}}),list:Ce(function(r,a){var n=new Intl.ListFormat(r,ie({},a));return function(i){return n.format(i)}})},this.init(t)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},n=a.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(r,a){this.formats[r.toLowerCase().trim()]=a}},{key:"addCached",value:function(r,a){this.formats[r.toLowerCase().trim()]=Ce(a)}},{key:"format",value:function(r,a,n){var i=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.split(this.formatSeparator),u=s.reduce(function(f,l){var c=rs(l),d=c.formatName,p=c.formatOptions;if(i.formats[d]){var y=f;try{var b=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=b.locale||b.lng||o.locale||o.lng||n;y=i.formats[d](f,w,ie(ie(ie({},p),o),b))}catch(h){i.logger.warn(h)}return y}else i.logger.warn("there was no format function for ".concat(d));return f},r);return u}}]),e}();function gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function as(e){var t=is();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function is(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function os(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var ss=function(e){bt(r,e);var t=as(r);function r(a,n,i){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return W(this,r),o=t.call(this),wt&&le.call(fe(o)),o.backend=a,o.store=n,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=te.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return G(r,[{key:"queueLoad",value:function(n,i,o,s){var u=this,f={},l={},c={},d={};return n.forEach(function(p){var y=!0;i.forEach(function(b){var w="".concat(p,"|").concat(b);!o.reload&&u.store.hasResourceBundle(p,b)?u.state[w]=2:u.state[w]<0||(u.state[w]===1?l[w]===void 0&&(l[w]=!0):(u.state[w]=1,y=!1,l[w]===void 0&&(l[w]=!0),f[w]===void 0&&(f[w]=!0),d[b]===void 0&&(d[b]=!0)))}),y||(c[p]=!0)}),(Object.keys(f).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(f),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(n,i,o){var s=n.split("|"),u=s[0],f=s[1];i&&this.emit("failedLoading",u,f,i),o&&this.store.addResourceBundle(u,f,o),this.state[n]=i?-1:2;var l={};this.queue.forEach(function(c){Mo(c.loaded,[u],f),os(c,n),i&&c.errors.push(i),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(function(d){l[d]||(l[d]={});var p=c.loaded[d];p.length&&p.forEach(function(y){l[d][y]===void 0&&(l[d][y]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(n,i,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!n.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:o,tried:u,wait:f,callback:l});return}this.readingCalls++;var c=function(b,w){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(b&&w&&u<s.maxRetries){setTimeout(function(){s.read.call(s,n,i,o,u+1,f*2,l)},f);return}l(b,w)},d=this.backend[o].bind(this.backend);if(d.length===2){try{var p=d(n,i);p&&typeof p.then=="function"?p.then(function(y){return c(null,y)}).catch(c):c(null,p)}catch(y){c(y)}return}return d(n,i,c)}},{key:"prepareLoading",value:function(n,i){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=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."),u&&u();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof i=="string"&&(i=[i]);var f=this.queueLoad(n,i,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(function(l){o.loadOne(l)})}},{key:"load",value:function(n,i,o){this.prepareLoading(n,i,{},o)}},{key:"reload",value:function(n,i,o){this.prepareLoading(n,i,{reload:!0},o)}},{key:"loadOne",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=n.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,function(l,c){l&&i.logger.warn("".concat(o,"loading namespace ").concat(f," for language ").concat(u," failed"),l),!l&&c&&i.logger.log("".concat(o,"loaded namespace ").concat(f," for language ").concat(u),c),i.loaded(n,l,c)})}},{key:"saveMissing",value:function(n,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(i,'" 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(!(o==null||o==="")){if(this.backend&&this.backend.create){var c=mn(mn({},f),{},{isUpdate:u}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var p;d.length===5?p=d(n,i,o,s,c):p=d(n,i,o,s),p&&typeof p.then=="function"?p.then(function(y){return l(null,y)}).catch(l):l(null,p)}catch(y){l(y)}else d(n,i,o,s,l,c)}!n||!n[0]||this.store.addResource(n[0],i,o,s)}}}]),r}(le);function vn(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(Y(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),Y(t[2])==="object"||Y(t[3])==="object"){var a=t[3]||t[2];Object.keys(a).forEach(function(n){r[n]=a[n]})}return r},interpolation:{escapeValue:!0,format:function(t,r,a,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function yn(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function us(e){var t=cs();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function cs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ge(){}function fs(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var st=function(e){bt(r,e);var t=us(r);function r(){var a,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(W(this,r),a=t.call(this),wt&&le.call(fe(a)),a.options=yn(n),a.services={},a.logger=te,a.modules={external:[]},fs(fe(a)),i&&!a.isInitialized&&!n.isClone){if(!a.options.initImmediate)return a.init(n,i),qe(a,fe(a));setTimeout(function(){a.init(n,i)},0)}return a}return G(r,[{key:"init",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=vn();this.options=Q(Q(Q({},s),this.options),yn(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Q(Q({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function u(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?te.init(u(this.modules.logger),this.options):te.init(null,this.options);var f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=ns);var l=new ln(this.options);this.store=new Jo(this.options.resources,this.options);var c=this.services;c.logger=te,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new es(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=u(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new ts(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new ss(u(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var g=arguments.length,O=new Array(g>1?g-1:0),m=1;m<g;m++)O[m-1]=arguments[m];n.emit.apply(n,[h].concat(O))}),this.modules.languageDetector&&(c.languageDetector=u(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=u(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new fn(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,O=new Array(g>1?g-1:0),m=1;m<g;m++)O[m-1]=arguments[m];n.emit.apply(n,[h].concat(O))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.format=this.options.interpolation.format,o||(o=Ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(h){n[h]=function(){var g;return(g=n.store)[h].apply(g,arguments)}});var y=["addResource","addResources","addResourceBundle","removeResourceBundle"];y.forEach(function(h){n[h]=function(){var g;return(g=n.store)[h].apply(g,arguments),n}});var b=Ie(),w=function(){var g=function(m,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),b.resolve(v),o(m,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return g(null,n.t.bind(n));n.changeLanguage(n.options.lng,g)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),b}},{key:"loadResources",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,s=o,u=typeof n=="string"?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var f=[],l=function(p){if(p){var y=i.services.languageUtils.toResolveHierarchy(p);y.forEach(function(b){f.indexOf(b)<0&&f.push(b)})}};if(u)l(u);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(d){return l(d)})}this.options.preload&&this.options.preload.forEach(function(d){return l(d)}),this.services.backendConnector.load(f,this.options.ns,function(d){!d&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(d)})}else s(null)}},{key:"reloadResources",value:function(n,i,o){var s=Ie();return n||(n=this.languages),i||(i=this.options.ns),o||(o=Ge),this.services.backendConnector.reload(n,i,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&pa.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"setResolvedLanguage",value:function(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(var i=0;i<this.languages.length;i++){var o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(n,i){var o=this;this.isLanguageChangingTo=n;var s=Ie();this.emit("languageChanging",n);var u=function(d){o.language=d,o.languages=o.services.languageUtils.toResolveHierarchy(d),o.resolvedLanguage=void 0,o.setResolvedLanguage(d)},f=function(d,p){p?(u(p),o.translator.changeLanguage(p),o.isLanguageChangingTo=void 0,o.emit("languageChanged",p),o.logger.log("languageChanged",p)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),i&&i(d,function(){return o.t.apply(o,arguments)})},l=function(d){!n&&!d&&o.services.languageDetector&&(d=[]);var p=typeof d=="string"?d:o.services.languageUtils.getBestMatchFromCodes(d);p&&(o.language||u(p),o.translator.language||o.translator.changeLanguage(p),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(p)),o.loadResources(p,function(y){f(y,p)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(n),s}},{key:"getFixedT",value:function(n,i,o){var s=this,u=function f(l,c){var d;if(Y(c)!=="object"){for(var p=arguments.length,y=new Array(p>2?p-2:0),b=2;b<p;b++)y[b-2]=arguments[b];d=s.options.overloadTranslationOptionHandler([l,c].concat(y))}else d=Q({},c);d.lng=d.lng||f.lng,d.lngs=d.lngs||f.lngs,d.ns=d.ns||f.ns,d.keyPrefix=d.keyPrefix||o||f.keyPrefix;var w=s.options.keySeparator||".",h;return d.keyPrefix&&Array.isArray(l)?h=l.map(function(g){return"".concat(d.keyPrefix).concat(w).concat(g)}):h=d.keyPrefix?"".concat(d.keyPrefix).concat(w).concat(l):l,s.t(h,d)};return typeof n=="string"?u.lng=n:u.lngs=n,u.ns=i,u.keyPrefix=o,u}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?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;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var l=function(p,y){var b=i.services.backendConnector.state["".concat(p,"|").concat(y)];return b===-1||b===2};if(o.precheck){var c=o.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(s,n)&&(!u||l(f,n)))}},{key:"loadNamespaces",value:function(n,i){var o=this,s=Ie();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),i&&i(u)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(n,i){var o=Ie();typeof n=="string"&&(n=[n]);var s=this.options.preload||[],u=n.filter(function(f){return s.indexOf(f)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(f){o.resolve(),i&&i(f)}),o):(i&&i(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";var i=["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"],o=this.services&&this.services.languageUtils||new ln(vn());return i.indexOf(o.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,s=Q(Q(Q({},this.options),i),{isClone:!0}),u=new r(s);(i.debug!==void 0||i.prefix!==void 0)&&(u.logger=u.logger.clone(i));var f=["store","services","language"];return f.forEach(function(l){u[l]=n[l]}),u.services=Q({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new fn(u.services,u.options),u.translator.on("*",function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];u.emit.apply(u,[l].concat(d))}),u.init(s,o),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(le);pe(st,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new st(e,t)});var $=st.createInstance();$.createInstance=st.createInstance;$.createInstance;$.dir;$.init;$.loadResources;$.reloadResources;$.use;$.changeLanguage;$.getFixedT;$.t;$.exists;$.setDefaultNamespace;$.hasLoadedNamespace;$.loadNamespaces;$.loadLanguages;var ha=[],ls=ha.forEach,ds=ha.slice;function ps(e){return ls.call(ds.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}var wn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,hs=function(t,r,a){var n=a||{};n.path=n.path||"/";var i=encodeURIComponent(r),o="".concat(t,"=").concat(i);if(n.maxAge>0){var s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(n.domain){if(!wn.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!wn.test(n.path))throw new TypeError("option path is invalid");o+="; Path=".concat(n.path)}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},Sn={create:function(t,r,a,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};a&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+a*60*1e3)),n&&(i.domain=n),document.cookie=hs(t,encodeURIComponent(r),i)},read:function(t){for(var r="".concat(t,"="),a=document.cookie.split(";"),n=0;n<a.length;n++){for(var i=a[n];i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(r)===0)return i.substring(r.length,i.length)}return null},remove:function(t){this.create(t,"",-1)}},gs={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var a=Sn.read(t.lookupCookie);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&Sn.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},ms={name:"querystring",lookup:function(t){var r;if(typeof window<"u"){var a=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=a.substring(1),i=n.split("&"),o=0;o<i.length;o++){var s=i[o].indexOf("=");if(s>0){var u=i[o].substring(0,s);u===t.lookupQuerystring&&(r=i[o].substring(s+1))}}}return r}},De=null,xn=function(){if(De!==null)return De;try{De=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{De=!1}return De},vs={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&xn()){var a=window.localStorage.getItem(t.lookupLocalStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&xn()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},Fe=null,On=function(){if(Fe!==null)return Fe;try{Fe=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Fe=!1}return Fe},ys={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&On()){var a=window.sessionStorage.getItem(t.lookupSessionStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&On()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},bs={name:"navigator",lookup:function(t){var r=[];if(typeof navigator<"u"){if(navigator.languages)for(var a=0;a<navigator.languages.length;a++)r.push(navigator.languages[a]);navigator.userLanguage&&r.push(navigator.userLanguage),navigator.language&&r.push(navigator.language)}return r.length>0?r:void 0}},ws={name:"htmlTag",lookup:function(t){var r,a=t.htmlTag||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(r=a.getAttribute("lang")),r}},Ss={name:"path",lookup:function(t){var r;if(typeof window<"u"){var a=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(a instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof a[t.lookupFromPathIndex]!="string")return;r=a[t.lookupFromPathIndex].replace("/","")}else r=a[0].replace("/","")}return r}},xs={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,a=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[r]}};function Os(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var ga=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=ps(a,this.options||{},Os()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(gs),this.addDetector(ms),this.addDetector(vs),this.addDetector(ys),this.addDetector(bs),this.addDetector(ws),this.addDetector(Ss),this.addDetector(xs)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var a=this;r||(r=this.options.order);var n=[];return r.forEach(function(i){if(a.detectors[i]){var o=a.detectors[i].lookup(a.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(r,a){var n=this;a||(a=this.options.caches),a&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||a.forEach(function(i){n.detectors[i]&&n.detectors[i].cacheUserLanguage(r,n.options)}))}}]),e}();ga.type="languageDetector";const ma=({resources:e})=>T.useMemo(()=>$.createInstance({defaultNS:"common",fallbackLng:"en",fallbackNS:"common",load:"languageOnly",ns:["common"],overloadTranslationOptionHandler:t=>({defaultValue:t[1]}),react:{useSuspense:!1},resources:e,supportedLngs:e?Object.keys(e):[]},t=>{if(t)return console.error(t)}).use(ga),[e]),va=An(e=>{const t=`.${e}`;return $n({key:"css",stylisPlugins:[a=>{a?.type==="rule"&&a?.value.startsWith(".css")&&(a.props=[a.props].flat().map(n=>n.includes(t)?n:`${t} ${n}`))},Ma]})}),ya=({children:e,className:t,fallback:r,resources:a})=>{const{scope:n,onError:i}=ua(),o=ma({resources:a});return J("div",{className:Lo(n,t),"data-testid":n,children:J(nt.CacheProvider,{value:va(n),children:J(Sa.I18nextProvider,{i18n:o,children:J(ca,{fallback:r,onError:i,children:e})})})})};var Es=Object.defineProperty,ut=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,En=(e,t,r)=>t in e?Es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t)=>{for(var r in t||(t={}))ba.call(t,r)&&En(e,r,t[r]);if(ut)for(var r of ut(t))wa.call(t,r)&&En(e,r,t[r]);return e},Ps=(e,t)=>{var r={};for(var a in e)ba.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&ut)for(var a of ut(e))t.indexOf(a)<0&&wa.call(e,a)&&(r[a]=e[a]);return r};const Cs=(e,t)=>{if(!e)return;const r=e;return e&&t&&Object.entries(e).forEach(([a,n])=>{Object.keys(n).forEach(i=>{var o;r[a][i]=Qt(Qt({},r[a][i]),(o=t[a])==null?void 0:o[i])})}),r},Rs=(e,t,r)=>a=>{var n=a,{resources:i}=n,o=Ps(n,["resources"]);return J(ya,{resources:Cs(r?.resources,i),fallback:t,css:r?.css,children:J(e,Qt({},o))})},ks={createElement:Rs};exports.Alchemy=ko;exports.AlchemyContext=lr;exports.Element=ya;exports.ErrorBoundary=ca;exports.default=ks;exports.memoizedCreateCache=va;exports.useAlchemy=ua;exports.useI18n=ma;exports.useLoadFonts=Hn;exports.useLoadIcons=oa;exports.useLoadTheme=sa;Object.keys(be).forEach(e=>{e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>be[e]})});