var n0=Object.defineProperty,r0=Object.defineProperties;var o0=Object.getOwnPropertyDescriptors;var Ui=Object.getOwnPropertySymbols;var cd=Object.prototype.hasOwnProperty,fd=Object.prototype.propertyIsEnumerable;var dd=(e,t,n)=>t in e?n0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,He=(e,t)=>{for(var n in t||(t={}))cd.call(t,n)&&dd(e,n,t[n]);if(Ui)for(var n of Ui(t))fd.call(t,n)&&dd(e,n,t[n]);return e},tt=(e,t)=>r0(e,o0(t));var ji=(e,t)=>{var n={};for(var r in e)cd.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ui)for(var r of Ui(e))t.indexOf(r)<0&&fd.call(e,r)&&(n[r]=e[r]);return n};function pd(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function Wt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wt=function(n){return typeof n}:Wt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wt(e)}function i0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};Mt(this,e),this.init(t,n)}return Dt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||f0,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o1?r-1:0),i=1;i-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function gd(e,t,n){var r=lu(e,t,Object),o=r.obj,i=r.k;o[i]=n}function h0(e,t,n,r){var o=lu(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function Bi(e,t){var n=lu(e,t),r=n.obj,o=n.k;if(!!r)return r[o]}function yd(e,t,n){var r=Bi(e,n);return r!==void 0?r:Bi(t,n)}function wd(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):wd(e[r],t[r],n):e[r]=t[r]);return e}function hr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var v0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function m0(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return v0[t]}):e}var zi=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,g0=[" ",",","?","!",";"];function y0(e,t,n){t=t||"",n=n||"";var r=g0.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var o=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function Sd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;ii+a;)a++,s=r.slice(i,i+a).join(n),u=o[s];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var l=r.slice(i+a).join(n);return l?Sd(u,l,n):void 0}o=o[r[i]]}return o}}var w0=function(e){Vi(t,e);function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Mt(this,t),r=so(this,pr(t).call(this)),zi&&rn.call(nn(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return Dt(t,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var o=this.options.ns.indexOf(r);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(r,o,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[r,o];i&&typeof i!="string"&&(l=l.concat(i)),i&&typeof i=="string"&&(l=l.concat(s?i.split(s):i)),r.indexOf(".")>-1&&(l=r.split("."));var c=Bi(this.data,l);return c||!u||typeof i!="string"?c:Sd(this.data&&this.data[r]&&this.data[r][o],i,s)}},{key:"addResource",value:function(r,o,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var l=[r,o];i&&(l=l.concat(u?i.split(u):i)),r.indexOf(".")>-1&&(l=r.split("."),a=o,o=l[1]),this.addNamespaces(o),gd(this.data,l,a),s.silent||this.emit("added",r,o,i,a)}},{key:"addResources",value:function(r,o,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var s in i)(typeof i[s]=="string"||Object.prototype.toString.apply(i[s])==="[object Array]")&&this.addResource(r,o,s,i[s],{silent:!0});a.silent||this.emit("added",r,o,i)}},{key:"addResourceBundle",value:function(r,o,i,a,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[r,o];r.indexOf(".")>-1&&(l=r.split("."),a=i,i=o,o=l[1]),this.addNamespaces(o);var c=Bi(this.data,l)||{};a?wd(c,i,s):c=be({},c,i),gd(this.data,l,c),u.silent||this.emit("added",r,o,i)}},{key:"removeResourceBundle",value:function(r,o){this.hasResourceBundle(r,o)&&delete this.data[r][o],this.removeNamespaces(o),this.emit("removed",r,o)}},{key:"hasResourceBundle",value:function(r,o){return this.getResource(r,o)!==void 0}},{key:"getResourceBundle",value:function(r,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?be({},{},this.getResource(r,o)):this.getResource(r,o)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"hasLanguageSomeTranslations",value:function(r){var o=this.getDataByLanguage(r),i=o&&Object.keys(o)||[];return!!i.find(function(a){return o[a]&&Object.keys(o[a]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),t}(rn),_d={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,o,i){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,o,i))}),n}},bd={},Ed=function(e){Vi(t,e);function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Mt(this,t),r=so(this,pr(t).call(this)),zi&&rn.call(nn(r)),p0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,nn(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Ft.create("translator"),r}return Dt(t,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var i=this.resolve(r,o);return i&&i.res!==void 0}},{key:"extractFromKey",value:function(r,o){var i=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ns||this.options.defaultNS,u=i&&r.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!y0(r,i,a);if(u&&!l){var c=r.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:r,namespaces:s};var v=r.split(i);(i!==a||i===a&&this.options.ns.indexOf(v[0])>-1)&&(s=v.shift()),r=v.join(a)}return typeof s=="string"&&(s=[s]),{key:r,namespaces:s}}},{key:"translate",value:function(r,o,i){var a=this;if(Wt(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],o),l=u.key,c=u.namespaces,v=c[c.length-1],d=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(m){var y=o.nsSeparator||this.options.nsSeparator;return v+y+l}return l}var _=this.resolve(r,o),p=_&&_.res,f=_&&_.usedKey||l,h=_&&_.exactUsedKey||l,g=Object.prototype.toString.apply(p),w=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,L=typeof p!="string"&&typeof p!="boolean"&&typeof p!="number";if(E&&p&&L&&w.indexOf(g)<0&&!(typeof x=="string"&&g==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,p,be({},o,{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(s){var V=g==="[object Array]",F=V?[]:{},G=V?h:f;for(var Y in p)if(Object.prototype.hasOwnProperty.call(p,Y)){var ie="".concat(G).concat(s).concat(Y);F[Y]=this.translate(ie,be({},o,{joinArrays:!1,ns:c})),F[Y]===ie&&(F[Y]=p[Y])}p=F}}else if(E&&typeof x=="string"&&g==="[object Array]")p=p.join(x),p&&(p=this.extendTranslation(p,r,o,i));else{var Z=!1,S=!1,C=o.count!==void 0&&typeof o.count!="string",U=t.hasDefaultValue(o),b=C?this.pluralResolver.getSuffix(d,o.count,o):"",P=o["defaultValue".concat(b)]||o.defaultValue;!this.isValidLookup(p)&&U&&(Z=!0,p=P),this.isValidLookup(p)||(S=!0,p=l);var I=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,J=I&&S?void 0:p,k=U&&P!==p&&this.options.updateMissing;if(S||Z||k){if(this.logger.log(k?"updateKey":"missingKey",d,v,l,k?P:p),s){var N=this.resolve(l,be({},o,{keySeparator:!1}));N&&N.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 X=[],le=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&le&&le[0])for(var he=0;he1&&arguments[1]!==void 0?arguments[1]:{},a,s,u,l,c;return typeof r=="string"&&(r=[r]),r.forEach(function(v){if(!o.isValidLookup(a)){var d=o.extractFromKey(v,i),m=d.key;s=m;var y=d.namespaces;o.options.fallbackNS&&(y=y.concat(o.options.fallbackNS));var _=i.count!==void 0&&typeof i.count!="string",p=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",f=i.lngs?i.lngs:o.languageUtils.toResolveHierarchy(i.lng||o.language,i.fallbackLng);y.forEach(function(h){o.isValidLookup(a)||(c=h,!bd["".concat(f[0],"-").concat(h)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(c)&&(bd["".concat(f[0],"-").concat(h)]=!0,o.logger.warn('key "'.concat(s,'" for languages "').concat(f.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!!!")),f.forEach(function(g){if(!o.isValidLookup(a)){l=g;var w=m,x=[w];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(x,m,g,h,i);else{var E;_&&(E=o.pluralResolver.getSuffix(g,i.count,i)),_&&p&&x.push(w+E),p&&x.push(w+="".concat(o.options.contextSeparator).concat(i.context)),_&&x.push(w+=E)}for(var L;L=x.pop();)o.isValidLookup(a)||(u=L,a=o.getResource(g,h,L,i))}}))})}}),{res:a,usedKey:s,exactUsedKey:u,usedLng:l,usedNS:c}}},{key:"isValidLookup",value:function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,o,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,i,a):this.resourceStore.getResource(r,o,i,a)}}],[{key:"hasDefaultValue",value:function(r){var o="defaultValue";for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&o===i.substring(0,o.length)&&r[i]!==void 0)return!0;return!1}}]),t}(rn);function cu(e){return e.charAt(0).toUpperCase()+e.slice(1)}var S0=function(){function e(t){Mt(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ft.create("languageUtils")}return Dt(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(i){return i.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=cu(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=cu(o[1].toLowerCase())),r.indexOf(o[2].toLowerCase())>-1&&(o[2]=cu(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var o;return n.forEach(function(i){if(!o){var a=r.formatLanguageCode(i);(!r.options.supportedLngs||r.isSupportedCode(a))&&(o=a)}}),!o&&this.options.supportedLngs&&n.forEach(function(i){if(!o){var a=r.getLanguagePartFromCode(i);if(r.isSupportedCode(a))return o=a;o=r.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var o=n[r];return o||(o=n[this.getScriptPartFromCode(r)]),o||(o=n[this.formatLanguageCode(r)]),o||(o=n[this.getLanguagePartFromCode(r)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,r){var o=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(l){!l||(o.isSupportedCode(l)?a.push(l):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),i.forEach(function(u){a.indexOf(u)<0&&s(o.formatLanguageCode(u))}),a}}]),e}(),_0=[{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}],b0={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)}},E0=["v1","v2","v3"],Rd={zero:0,one:1,two:2,few:3,many:4,other:5};function R0(){var e={};return _0.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:b0[t.fc]}})}),e}var O0=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mt(this,e),this.languageUtils=t,this.options=n,this.logger=Ft.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl=="undefined"||!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=R0()}return Dt(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(i){return"".concat(r).concat(i)})}},{key:"getSuffixes",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(a,s){return Rd[a]-Rd[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):i.numbers.map(function(a){return r.getSuffix(n,a,o)}):[]}},{key:"getSuffix",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(r)):this.getSuffixRetroCompatible(i,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var o=this,i=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[i];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return o.options.prepend&&a.toString()?o.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!E0.includes(this.options.compatibilityJSON)}}]),e}(),C0=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mt(this,e),this.logger=Ft.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Dt(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:m0,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?hr(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?hr(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?hr(r.nestingPrefix):r.nestingPrefixEscaped||hr("$t("),this.nestingSuffix=r.nestingSuffix?hr(r.nestingSuffix):r.nestingSuffixEscaped||hr(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,r,o,i){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function v(p){return p.replace(/\$/g,"$$$$")}var d=function(f){if(f.indexOf(a.formatSeparator)<0){var h=yd(r,c,f);return a.alwaysFormat?a.format(h,void 0,o,be({},i,r,{interpolationkey:f})):h}var g=f.split(a.formatSeparator),w=g.shift().trim(),x=g.join(a.formatSeparator).trim();return a.format(yd(r,c,w),x,o,be({},i,r,{interpolationkey:w}))};this.resetRegExp();var m=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,y=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,_=[{regex:this.regexpUnescape,safeValue:function(f){return v(f)}},{regex:this.regexp,safeValue:function(f){return a.escapeValue?v(a.escape(f)):v(f)}}];return _.forEach(function(p){for(l=0;s=p.regex.exec(n);){if(u=d(s[1].trim()),u===void 0)if(typeof m=="function"){var f=m(n,s,i);u=typeof f=="string"?f:""}else if(y){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(n)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=md(u));var h=p.safeValue(u);if(n=n.replace(s[0],h),y?(p.regex.lastIndex+=h.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u=be({},i);u.applyPostProcessor=!1,delete u.defaultValue;function l(m,y){var _=this.nestingOptionsSeparator;if(m.indexOf(_)<0)return m;var p=m.split(new RegExp("".concat(_,"[ ]*{"))),f="{".concat(p[1]);m=p[0],f=this.interpolate(f,u),f=f.replace(/'/g,'"');try{u=JSON.parse(f),y&&(u=be({},y,u))}catch(h){return this.logger.warn("failed parsing options string in nesting for key ".concat(m),h),"".concat(m).concat(_).concat(f)}return delete u.defaultValue,m}for(;a=this.nestingRegexp.exec(n);){var c=[],v=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var d=a[1].split(this.formatSeparator).map(function(m){return m.trim()});a[1]=d.shift(),c=d,v=!0}if(s=r(l.call(this,a[1].trim(),u),u),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=md(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),v&&(s=c.reduce(function(m,y){return o.format(m,y,i.lng,be({},i,{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function x0(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if(t==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(t==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var i=o.split(";");i.forEach(function(a){if(!!a){var s=a.split(":"),u=c0(s,2),l=u[0],c=u[1];c.trim()==="false"&&(n[l.trim()]=!1),c.trim()==="true"&&(n[l.trim()]=!0),isNaN(c.trim())||(n[l.trim()]=parseInt(c.trim(),10)),n[l.trim()]||(n[l.trim()]=c.trim())}})}}return{formatName:t,formatOptions:n}}var k0=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mt(this,e),this.logger=Ft.create("formatter"),this.options=t,this.formats={number:function(r,o,i){return new Intl.NumberFormat(o,i).format(r)},currency:function(r,o,i){return new Intl.NumberFormat(o,be({},i,{style:"currency"})).format(r)},datetime:function(r,o,i){return new Intl.DateTimeFormat(o,be({},i)).format(r)},relativetime:function(r,o,i){return new Intl.RelativeTimeFormat(o,be({},i)).format(r,i.range||"day")},list:function(r,o,i){return new Intl.ListFormat(o,be({},i)).format(r)}},this.init(t)}return Dt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=r.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n]=r}},{key:"format",value:function(n,r,o,i){var a=this,s=r.split(this.formatSeparator),u=s.reduce(function(l,c){var v=x0(c),d=v.formatName,m=v.formatOptions;if(a.formats[d]){var y=l;try{var _=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},p=_.locale||_.lng||i.locale||i.lng||o;y=a.formats[d](l,p,be({},m,i,_))}catch(f){a.logger.warn(f)}return y}else a.logger.warn("there was no format function for ".concat(d));return l},n);return u}}]),e}();function T0(e,t){for(var n=e.indexOf(t);n!==-1;)e.splice(n,1),n=e.indexOf(t)}var P0=function(e){Vi(t,e);function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Mt(this,t),i=so(this,pr(t).call(this)),zi&&rn.call(nn(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Ft.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Dt(t,[{key:"queueLoad",value:function(r,o,i,a){var s=this,u=[],l=[],c=[],v=[];return r.forEach(function(d){var m=!0;o.forEach(function(y){var _="".concat(d,"|").concat(y);!i.reload&&s.store.hasResourceBundle(d,y)?s.state[_]=2:s.state[_]<0||(s.state[_]===1?l.indexOf(_)<0&&l.push(_):(s.state[_]=1,m=!1,l.indexOf(_)<0&&l.push(_),u.indexOf(_)<0&&u.push(_),v.indexOf(y)<0&&v.push(y)))}),m||c.push(d)}),(u.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:a}),{toLoad:u,pending:l,toLoadLanguages:c,toLoadNamespaces:v}}},{key:"loaded",value:function(r,o,i){var a=r.split("|"),s=a[0],u=a[1];o&&this.emit("failedLoading",s,u,o),i&&this.store.addResourceBundle(s,u,i),this.state[r]=o?-1:2;var l={};this.queue.forEach(function(c){h0(c.loaded,[s],u),T0(c.pending,r),o&&c.errors.push(o),c.pending.length===0&&!c.done&&(Object.keys(c.loaded).forEach(function(v){l[v]||(l[v]=[]),c.loaded[v].length&&c.loaded[v].forEach(function(d){l[v].indexOf(d)<0&&l[v].push(d)})}),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(r,o,i){var a=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,l=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[i](r,o,function(c,v){if(c&&v&&s<5){setTimeout(function(){a.read.call(a,r,o,i,s+1,u*2,l)},u);return}l(c,v)}):l(null,{})}},{key:"prepareLoading",value:function(r,o){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof o=="string"&&(o=[o]);var u=this.queueLoad(r,o,a,s);if(!u.toLoad.length)return u.pending.length||s(),null;u.toLoad.forEach(function(l){i.loadOne(l)})}},{key:"load",value:function(r,o,i){this.prepareLoading(r,o,{},i)}},{key:"reload",value:function(r,o,i){this.prepareLoading(r,o,{reload:!0},i)}},{key:"loadOne",value:function(r){var o=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=r.split("|"),s=a[0],u=a[1];this.read(s,u,"read",void 0,void 0,function(l,c){l&&o.logger.warn("".concat(i,"loading namespace ").concat(u," for language ").concat(s," failed"),l),!l&&c&&o.logger.log("".concat(i,"loaded namespace ").concat(u," for language ").concat(s),c),o.loaded(r,l,c)})}},{key:"saveMissing",value:function(r,o,i,a,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}i==null||i===""||(this.backend&&this.backend.create&&this.backend.create(r,o,i,a,null,be({},u,{isUpdate:s})),!(!r||!r[0])&&this.store.addResource(r[0],o,i,a))}}]),t}(rn);function L0(){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 n={};if(Wt(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Wt(t[2])==="object"||Wt(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(o){n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Od(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 Wi(){}function N0(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var A0=function(e){Vi(t,e);function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Mt(this,t),n=so(this,pr(t).call(this)),zi&&rn.call(nn(n)),n.options=Od(r),n.services={},n.logger=Ft,n.modules={external:[]},N0(nn(n)),o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),so(n,nn(n));setTimeout(function(){n.init(r,o)},0)}return n}return Dt(t,[{key:"init",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(i=o,o={}),!o.defaultNS&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var a=L0();this.options=be({},a,this.options,Od(o)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Ft.init(s(this.modules.logger),this.options):Ft.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl!="undefined"&&(u=k0);var l=new S0(this.options);this.store=new w0(this.options.resources,this.options);var c=this.services;c.logger=Ft,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new O0(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=s(u),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new C0(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new P0(s(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var f=arguments.length,h=new Array(f>1?f-1:0),g=1;g1?f-1:0),g=1;g0&&v[0]!=="dev"&&(this.options.lng=v[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(p){r[p]=function(){var f;return(f=r.store)[p].apply(f,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(p){r[p]=function(){var f;return(f=r.store)[p].apply(f,arguments),r}});var y=uo(),_=function(){var f=function(g,w){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),y.resolve(w),i(g,w)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return f(null,r.t.bind(r));r.changeLanguage(r.options.lng,f)};return this.options.resources||!this.options.initImmediate?_():setTimeout(_,0),y}},{key:"loadResources",value:function(r){var o=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wi,a=i,s=typeof r=="string"?r:this.language;if(typeof r=="function"&&(a=r),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode")return a();var u=[],l=function(d){if(!!d){var m=o.services.languageUtils.toResolveHierarchy(d);m.forEach(function(y){u.indexOf(y)<0&&u.push(y)})}};if(s)l(s);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(v){return l(v)})}this.options.preload&&this.options.preload.forEach(function(v){return l(v)}),this.services.backendConnector.load(u,this.options.ns,a)}else a(null)}},{key:"reloadResources",value:function(r,o,i){var a=uo();return r||(r=this.languages),o||(o=this.options.ns),i||(i=Wi),this.services.backendConnector.reload(r,o,function(s){a.resolve(),i(s)}),a}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&_d.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,o){var i=this;this.isLanguageChangingTo=r;var a=uo();this.emit("languageChanging",r);var s=function(v){if(i.language=v,i.languages=i.services.languageUtils.toResolveHierarchy(v),i.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(v)>-1))for(var d=0;d-1)&&i.store.hasLanguageSomeTranslations(m)){i.resolvedLanguage=m;break}}},u=function(v,d){d?(s(d),i.translator.changeLanguage(d),i.isLanguageChangingTo=void 0,i.emit("languageChanged",d),i.logger.log("languageChanged",d)):i.isLanguageChangingTo=void 0,a.resolve(function(){return i.t.apply(i,arguments)}),o&&o(v,function(){return i.t.apply(i,arguments)})},l=function(v){!r&&!v&&i.services.languageDetector&&(v=[]);var d=typeof v=="string"?v:i.services.languageUtils.getBestMatchFromCodes(v);d&&(i.language||s(d),i.translator.language||i.translator.changeLanguage(d),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(d)),i.loadResources(d,function(m){u(m,d)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(l):l(r),a}},{key:"getFixedT",value:function(r,o,i){var a=this,s=function u(l,c){var v;if(Wt(c)!=="object"){for(var d=arguments.length,m=new Array(d>2?d-2:0),y=2;y1&&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 a=this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var l=function(d,m){var y=o.services.backendConnector.state["".concat(d,"|").concat(m)];return y===-1||y===2};if(i.precheck){var c=i.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(a,r)||!this.services.backendConnector.backend||l(a,r)&&(!s||l(u,r)))}},{key:"loadNamespaces",value:function(r,o){var i=this,a=uo();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(s){i.options.ns.indexOf(s)<0&&i.options.ns.push(s)}),this.loadResources(function(s){a.resolve(),o&&o(s)}),a):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(r,o){var i=uo();typeof r=="string"&&(r=[r]);var a=this.options.preload||[],s=r.filter(function(u){return a.indexOf(u)<0});return s.length?(this.options.preload=a.concat(s),this.loadResources(function(u){i.resolve(),o&&o(u)}),i):(o&&o(),Promise.resolve())}},{key:"dir",value:function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var o=["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"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new t(r,o)}},{key:"cloneInstance",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wi,a=be({},this.options,o,{isClone:!0}),s=new t(a),u=["store","services","language"];return u.forEach(function(l){s[l]=r[l]}),s.services=be({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new Ed(s.services,s.options),s.translator.on("*",function(l){for(var c=arguments.length,v=new Array(c>1?c-1:0),d=1;d0){var s=o.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(s)}if(o.domain){if(!kd.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!kd.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite){var u=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},Td={create:function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),o&&(i.domain=o),document.cookie=U0(t,encodeURIComponent(n),i)},read:function(t){for(var n=t+"=",r=document.cookie.split(";"),o=0;o0){var s=o[i].substring(0,a);s===t.lookupQuerystring&&(n=o[i].substring(a+1))}}return n}},lo=null,Pd=function(){if(lo!==null)return lo;try{lo=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{lo=!1}return lo},B0={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Pd()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Pd()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},co=null,Ld=function(){if(co!==null)return co;try{co=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{co=!1}return co},z0={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Ld()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Ld()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},W0={name:"navigator",lookup:function(t){var n=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var r=0;r0?n:void 0}},H0={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document!="undefined"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},q0={name:"path",lookup:function(t){var n;if(typeof window!="undefined"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Q0={name:"subdomain",lookup:function(t){var n;if(typeof window!="undefined"){var r=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);r instanceof Array&&(typeof t.lookupFromSubdomainIndex=="number"?n=r[t.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n=r[0].replace("http://","").replace("https://","").replace(".",""))}return n}};function K0(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var G0=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};M0(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return D0(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=$0(r,this.options||{},K0()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(j0),this.addDetector(V0),this.addDetector(B0),this.addDetector(z0),this.addDetector(W0),this.addDetector(H0),this.addDetector(q0),this.addDetector(Q0)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var o=[];return n.forEach(function(i){if(r.detectors[i]){var a=r.detectors[i].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(o=o.concat(a))}}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var o=this;r||(r=this.options.caches),!!r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(i){o.detectors[i]&&o.detectors[i].cacheUserLanguage(n,o.options)}))}}]),e}();G0.type="languageDetector";function Hi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hi=function(n){return typeof n}:Hi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hi(e)}var Nd=[],X0=Nd.forEach,Y0=Nd.slice;function fu(e){return X0.call(Y0.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Ad(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest=="undefined"?"undefined":Hi(XMLHttpRequest))==="object"}function Z0(e){return!!e&&typeof e.then=="function"}function J0(e){return Z0(e)?e:Promise.resolve(e)}var qi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function e1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t1(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}function n1(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Qi={exports:{}},du={exports:{}};(function(e,t){var n=typeof self!="undefined"?self:qi,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(a){var s={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function u(S){return S&&DataView.prototype.isPrototypeOf(S)}if(s.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(S){return S&&l.indexOf(Object.prototype.toString.call(S))>-1};function v(S){if(typeof S!="string"&&(S=String(S)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(S))throw new TypeError("Invalid character in header field name");return S.toLowerCase()}function d(S){return typeof S!="string"&&(S=String(S)),S}function m(S){var C={next:function(){var U=S.shift();return{done:U===void 0,value:U}}};return s.iterable&&(C[Symbol.iterator]=function(){return C}),C}function y(S){this.map={},S instanceof y?S.forEach(function(C,U){this.append(U,C)},this):Array.isArray(S)?S.forEach(function(C){this.append(C[0],C[1])},this):S&&Object.getOwnPropertyNames(S).forEach(function(C){this.append(C,S[C])},this)}y.prototype.append=function(S,C){S=v(S),C=d(C);var U=this.map[S];this.map[S]=U?U+", "+C:C},y.prototype.delete=function(S){delete this.map[v(S)]},y.prototype.get=function(S){return S=v(S),this.has(S)?this.map[S]:null},y.prototype.has=function(S){return this.map.hasOwnProperty(v(S))},y.prototype.set=function(S,C){this.map[v(S)]=d(C)},y.prototype.forEach=function(S,C){for(var U in this.map)this.map.hasOwnProperty(U)&&S.call(C,this.map[U],U,this)},y.prototype.keys=function(){var S=[];return this.forEach(function(C,U){S.push(U)}),m(S)},y.prototype.values=function(){var S=[];return this.forEach(function(C){S.push(C)}),m(S)},y.prototype.entries=function(){var S=[];return this.forEach(function(C,U){S.push([U,C])}),m(S)},s.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function _(S){if(S.bodyUsed)return Promise.reject(new TypeError("Already read"));S.bodyUsed=!0}function p(S){return new Promise(function(C,U){S.onload=function(){C(S.result)},S.onerror=function(){U(S.error)}})}function f(S){var C=new FileReader,U=p(C);return C.readAsArrayBuffer(S),U}function h(S){var C=new FileReader,U=p(C);return C.readAsText(S),U}function g(S){for(var C=new Uint8Array(S),U=new Array(C.length),b=0;b-1?C:S}function V(S,C){C=C||{};var U=C.body;if(S instanceof V){if(S.bodyUsed)throw new TypeError("Already read");this.url=S.url,this.credentials=S.credentials,C.headers||(this.headers=new y(S.headers)),this.method=S.method,this.mode=S.mode,this.signal=S.signal,!U&&S._bodyInit!=null&&(U=S._bodyInit,S.bodyUsed=!0)}else this.url=String(S);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new y(C.headers)),this.method=L(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&U)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(U)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function F(S){var C=new FormData;return S.trim().split("&").forEach(function(U){if(U){var b=U.split("="),P=b.shift().replace(/\+/g," "),I=b.join("=").replace(/\+/g," ");C.append(decodeURIComponent(P),decodeURIComponent(I))}}),C}function G(S){var C=new y,U=S.replace(/\r?\n[\t ]+/g," ");return U.split(/\r?\n/).forEach(function(b){var P=b.split(":"),I=P.shift().trim();if(I){var J=P.join(":").trim();C.append(I,J)}}),C}x.call(V.prototype);function Y(S,C){C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in C?C.statusText:"OK",this.headers=new y(C.headers),this.url=C.url||"",this._initBody(S)}x.call(Y.prototype),Y.prototype.clone=function(){return new Y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},Y.error=function(){var S=new Y(null,{status:0,statusText:""});return S.type="error",S};var ie=[301,302,303,307,308];Y.redirect=function(S,C){if(ie.indexOf(C)===-1)throw new RangeError("Invalid status code");return new Y(null,{status:C,headers:{location:S}})},a.DOMException=i.DOMException;try{new a.DOMException}catch{a.DOMException=function(C,U){this.message=C,this.name=U;var b=Error(C);this.stack=b.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Z(S,C){return new Promise(function(U,b){var P=new V(S,C);if(P.signal&&P.signal.aborted)return b(new a.DOMException("Aborted","AbortError"));var I=new XMLHttpRequest;function J(){I.abort()}I.onload=function(){var k={status:I.status,statusText:I.statusText,headers:G(I.getAllResponseHeaders()||"")};k.url="responseURL"in I?I.responseURL:k.headers.get("X-Request-URL");var N="response"in I?I.response:I.responseText;U(new Y(N,k))},I.onerror=function(){b(new TypeError("Network request failed"))},I.ontimeout=function(){b(new TypeError("Network request failed"))},I.onabort=function(){b(new a.DOMException("Aborted","AbortError"))},I.open(P.method,P.url,!0),P.credentials==="include"?I.withCredentials=!0:P.credentials==="omit"&&(I.withCredentials=!1),"responseType"in I&&s.blob&&(I.responseType="blob"),P.headers.forEach(function(k,N){I.setRequestHeader(N,k)}),P.signal&&(P.signal.addEventListener("abort",J),I.onreadystatechange=function(){I.readyState===4&&P.signal.removeEventListener("abort",J)}),I.send(typeof P._bodyInit=="undefined"?null:P._bodyInit)})}return Z.polyfill=!0,i.fetch||(i.fetch=Z,i.Headers=y,i.Request=V,i.Response=Y),a.Headers=y,a.Request=V,a.Response=Y,a.fetch=Z,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(du,du.exports);(function(e,t){var n;if(typeof fetch=="function"&&(typeof qi!="undefined"&&qi.fetch?n=qi.fetch:typeof window!="undefined"&&window.fetch&&(n=window.fetch)),typeof n1!="undefined"&&(typeof window=="undefined"||typeof window.document=="undefined")){var r=n||du.exports;r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Qi,Qi.exports);var Md=Qi.exports,Dd=Object.freeze(pd({__proto__:null,[Symbol.toStringTag]:"Module",default:Md},[Qi.exports]));function fo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fo=function(n){return typeof n}:fo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fo(e)}var on;typeof fetch=="function"&&(typeof global!="undefined"&&global.fetch?on=global.fetch:typeof window!="undefined"&&window.fetch&&(on=window.fetch));var po;Ad&&(typeof global!="undefined"&&global.XMLHttpRequest?po=global.XMLHttpRequest:typeof window!="undefined"&&window.XMLHttpRequest&&(po=window.XMLHttpRequest));var Ki;typeof ActiveXObject=="function"&&(typeof global!="undefined"&&global.ActiveXObject?Ki=global.ActiveXObject:typeof window!="undefined"&&window.ActiveXObject&&(Ki=window.ActiveXObject));!on&&Dd&&!po&&!Ki&&(on=Md||Dd);typeof on!="function"&&(on=void 0);var pu=function(t,n){if(n&&fo(n)==="object"){var r="";for(var o in n)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},r1=function(t,n,r,o){t.queryStringParams&&(n=pu(n,t.queryStringParams));var i=fu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(i["Content-Type"]="application/json"),on(n,fu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions)).then(function(a){if(!a.ok)return o(a.statusText||"Error",{status:a.status});a.text().then(function(s){o(null,{status:a.status,data:s})}).catch(o)}).catch(o)},o1=function(t,n,r,o){r&&fo(r)==="object"&&(r=pu("",r).slice(1)),t.queryStringParams&&(n=pu(n,t.queryStringParams));try{var i;po?i=new po:i=new Ki("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)i.setRequestHeader(s,a[s]);i.onreadystatechange=function(){i.readyState>3&&o(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(u){console&&console.log(u)}},i1=function(t,n,r,o){if(typeof r=="function"&&(o=r,r=void 0),o=o||function(){},on)return r1(t,n,r,o);if(Ad||typeof ActiveXObject=="function")return o1(t,n,r,o)};function a1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fd(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};a1(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return s1(e,[{key:"init",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=fu(o,this.options||{},l1()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,o){this._readAny(n,n,r,r,o)}},{key:"read",value:function(n,r,o){this._readAny([n],n,[r],r,o)}},{key:"_readAny",value:function(n,r,o,i,a){var s=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,o)),u=J0(u),u.then(function(l){var c=s.services.interpolator.interpolate(l,{lng:n.join("+"),ns:o.join("+")});s.loadUrl(c,a,r,i)})}},{key:"loadUrl",value:function(n,r,o,i){var a=this;this.options.request(this.options,n,void 0,function(s,u){if(u&&(u.status>=500&&u.status<600||!u.status))return r("failed loading "+n+"; status code: "+u.status,!0);if(u&&u.status>=400&&u.status<500)return r("failed loading "+n+"; status code: "+u.status,!1);if(!u&&s&&s.message&&s.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+s.message,!0);if(s)return r(s,!1);var l,c;try{typeof u.data=="string"?l=a.options.parse(u.data,o,i):l=u.data}catch{c="failed parsing "+n+" to json"}if(c)return r(c,!1);r(null,l)})}},{key:"create",value:function(n,r,o,i,a){var s=this;if(!!this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,o,i),l=0,c=[],v=[];n.forEach(function(d){var m=s.options.addPath;typeof s.options.addPath=="function"&&(m=s.options.addPath(d,r));var y=s.services.interpolator.interpolate(m,{lng:d,ns:r});s.options.request(s.options,y,u,function(_,p){l+=1,c.push(_),v.push(p),l===n.length&&a&&a(c,v)})})}}},{key:"reload",value:function(){var n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;if(!(s&&s.toLowerCase()==="cimode")){var u=[],l=function(v){var d=i.toResolveHierarchy(v);d.forEach(function(m){u.indexOf(m)<0&&u.push(m)})};l(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return l(c)}),u.forEach(function(c){n.allOptions.ns.forEach(function(v){o.read(c,v,"read",null,null,function(d,m){d&&a.warn("loading namespace ".concat(v," for language ").concat(c," failed"),d),!d&&m&&a.log("loaded namespace ".concat(v," for language ").concat(c),m),o.loaded("".concat(c,"|").concat(v),d,m)})})})}}}]),e}();c1.type="backend";function Id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $={exports:{}},ve={};/* object-assign (c) Sindre Sorhus @license MIT */var $d=Object.getOwnPropertySymbols,f1=Object.prototype.hasOwnProperty,d1=Object.prototype.propertyIsEnumerable;function p1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function h1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Ud=h1()?Object.assign:function(e,t){for(var n,r=p1(e),o,i=1;i0&&arguments[0]!==void 0?arguments[0]:{};Su=rp(rp({},Su),e)}function R1(){return Su}var O1=function(){function e(){S1(this,e),this.usedNamespaces={}}return _1(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(o){r.usedNamespaces[o]||(r.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function C1(e){op=e}function x1(){return op}var jT={type:"3rdParty",init:function(t){E1(t.options.react),C1(t)}};function k1(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return _u("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(u,l){var c=t.services.backendConnector.state["".concat(u,"|").concat(l)];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||a(r,e)&&(!o||a(i,e)))}function P1(e){if(Array.isArray(e))return e}function L1(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,s=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function sp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=$.exports.useContext(b1)||{},o=r.i18n,i=r.defaultNS,a=n||o||x1();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new O1),!a){_u("You will need to pass in an i18next instance by using initReactI18next");var s=function(L){return Array.isArray(L)?L[L.length-1]:L},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&a.options.react.wait!==void 0&&_u("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=bu(bu(bu({},R1()),a.options.react),t),c=l.useSuspense,v=l.keyPrefix,d=e||i||a.options&&a.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var m=(a.isInitialized||a.initializedStoreOnce)&&d.every(function(E){return T1(E,a,l)});function y(){return a.getFixedT(null,l.nsMode==="fallback"?d:d[0],v)}var _=$.exports.useState(y),p=M1(_,2),f=p[0],h=p[1],g=$.exports.useRef(!0);$.exports.useEffect(function(){var E=l.bindI18n,L=l.bindI18nStore;g.current=!0,!m&&!c&&ap(a,d,function(){g.current&&h(y)});function V(){g.current&&h(y)}return E&&a&&a.on(E,V),L&&a&&a.store.on(L,V),function(){g.current=!1,E&&a&&E.split(" ").forEach(function(F){return a.off(F,V)}),L&&a&&L.split(" ").forEach(function(F){return a.store.off(F,V)})}},[a,d.join()]);var w=$.exports.useRef(!0);$.exports.useEffect(function(){g.current&&!w.current&&h(y),w.current=!1},[a]);var x=[f,a,m];if(x.t=f,x.i18n=a,x.ready=m,m||!m&&!c)return x;throw new Promise(function(E){ap(a,d,function(){E()})})}var Yi={exports:{}},pt={},Eu={exports:{}},lp={};/** @license React v0.20.2 * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(e){var t,n,r,o;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window=="undefined"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var k=e.unstable_now();u(!0,k),u=null}catch(N){throw setTimeout(c,0),N}};t=function(k){u!==null?setTimeout(t,0,k):(u=k,setTimeout(c,0))},n=function(k,N){l=setTimeout(k,N)},r=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var v=window.setTimeout,d=window.clearTimeout;if(typeof console!="undefined"){var m=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof m!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,_=null,p=-1,f=5,h=0;e.unstable_shouldYield=function(){return e.unstable_now()>=h},o=function(){},e.unstable_forceFrameRate=function(k){0>k||125>>1,he=k[le];if(he!==void 0&&0V(T,X))A!==void 0&&0>V(A,T)?(k[le]=A,k[M]=X,le=M):(k[le]=T,k[Te]=X,le=Te);else if(A!==void 0&&0>V(A,X))k[le]=A,k[M]=X,le=M;else break e}}return N}return null}function V(k,N){var X=k.sortIndex-N.sortIndex;return X!==0?X:k.id-N.id}var F=[],G=[],Y=1,ie=null,Z=3,S=!1,C=!1,U=!1;function b(k){for(var N=E(G);N!==null;){if(N.callback===null)L(G);else if(N.startTime<=k)L(G),N.sortIndex=N.expirationTime,x(F,N);else break;N=E(G)}}function P(k){if(U=!1,b(k),!C)if(E(F)!==null)C=!0,t(I);else{var N=E(G);N!==null&&n(P,N.startTime-k)}}function I(k,N){C=!1,U&&(U=!1,r()),S=!0;var X=Z;try{for(b(N),ie=E(F);ie!==null&&(!(ie.expirationTime>N)||k&&!e.unstable_shouldYield());){var le=ie.callback;if(typeof le=="function"){ie.callback=null,Z=ie.priorityLevel;var he=le(ie.expirationTime<=N);N=e.unstable_now(),typeof he=="function"?ie.callback=he:ie===E(F)&&L(F),b(N)}else L(F);ie=E(F)}if(ie!==null)var Te=!0;else{var T=E(G);T!==null&&n(P,T.startTime-N),Te=!1}return Te}finally{ie=null,Z=X,S=!1}}var J=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){C||S||(C=!0,t(I))},e.unstable_getCurrentPriorityLevel=function(){return Z},e.unstable_getFirstCallbackNode=function(){return E(F)},e.unstable_next=function(k){switch(Z){case 1:case 2:case 3:var N=3;break;default:N=Z}var X=Z;Z=N;try{return k()}finally{Z=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=J,e.unstable_runWithPriority=function(k,N){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var X=Z;Z=k;try{return N()}finally{Z=X}},e.unstable_scheduleCallback=function(k,N,X){var le=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0le?(k.sortIndex=X,x(G,k),E(F)===null&&k===E(G)&&(U?r():U=!0,n(P,X-le))):(k.sortIndex=he,x(F,k),C||S||(C=!0,t(I))),k},e.unstable_wrapCallback=function(k){var N=Z;return function(){var X=Z;Z=N;try{return k.apply(this,arguments)}finally{Z=X}}}})(lp);Eu.exports=lp;/** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Zi=$.exports,Ce=Ud,je=Eu.exports;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Ye(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Be[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Be[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Be[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Be[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Be[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Be[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Be[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Be[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Be[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ru=/[\-:]([a-z])/g;function Ou(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ru,Ou);Be[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ru,Ou);Be[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ru,Ou);Be[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Be[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Be.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Be[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cu(e,t,n,r){var o=Be.hasOwnProperty(t)?Be[t]:null,i=o!==null?o.type===0:r?!1:!(!(2s||o[a]!==i[s])return` `+o[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{Fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function U1(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=na(e.type,!1),e;case 11:return e=na(e.type.render,!1),e;case 22:return e=na(e.type._render,!1),e;case 1:return e=na(e.type,!0),e;default:return""}}function yr(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case an:return"Fragment";case $n:return"Portal";case go:return"Profiler";case xu:return"StrictMode";case yo:return"Suspense";case ea:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tu:return(e.displayName||"Context")+".Consumer";case ku:return(e._context.displayName||"Context")+".Provider";case Ji:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case ta:return yr(e.type);case Lu:return yr(e._render);case Pu:t=e._payload,e=e._init;try{return yr(e(t))}catch{}}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function mp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j1(e){var t=mp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ra(e){e._valueTracker||(e._valueTracker=j1(e))}function gp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oa(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Iu(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function yp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wp(e,t){t=t.checked,t!=null&&Cu(e,"checked",t,!1)}function $u(e,t){wp(e,t);var n=sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Uu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uu(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Uu(e,t,n){(t!=="number"||oa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function V1(e){var t="";return Zi.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function ju(e,t){return e=Ce({children:void 0},t),(t=V1(t.children))&&(e.children=t),e}function wr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sn(n)}}function bp(e,t){var n=sn(t.value),r=sn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ep(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Bu={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Rp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function zu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Rp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ia,Op=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==Bu.svg||"innerHTML"in e)e.innerHTML=t;else{for(ia=ia||document.createElement("div"),ia.innerHTML=""+t.valueOf().toString()+"",t=ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _o(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},B1=["Webkit","ms","Moz","O"];Object.keys(bo).forEach(function(e){B1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]})});function Cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function xp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Cp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var z1=Ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wu(e,t){if(t){if(z1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Hu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qu=null,Sr=null,_r=null;function kp(e){if(e=Vo(e)){if(typeof Qu!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ea(t),Qu(e.stateNode,e.type,t))}}function Tp(e){Sr?_r?_r.push(e):_r=[e]:Sr=e}function Pp(){if(Sr){var e=Sr,t=_r;if(_r=Sr=null,kp(e),t)for(e=0;er?0:1<n;n++)t.push(e);return t}function da(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-fn(t),e[t]=n}var fn=Math.clz32?Math.clz32:iw,rw=Math.log,ow=Math.LN2;function iw(e){return e===0?32:31-(rw(e)/ow|0)|0}var aw=je.unstable_UserBlockingPriority,sw=je.unstable_runWithPriority,pa=!0;function uw(e,t,n,r){Un||Gu();var o=sl,i=Un;Un=!0;try{Lp(o,e,t,n,r)}finally{(Un=i)||Yu()}}function lw(e,t,n,r){sw(aw,sl.bind(null,e,t,n,r))}function sl(e,t,n,r){if(pa){var o;if((o=(t&4)==0)&&0=Mo),rh=String.fromCharCode(32),oh=!1;function ih(e,t){switch(e){case"keyup":return Nw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cr=!1;function Mw(e,t){switch(e){case"compositionend":return ah(t);case"keypress":return t.which!==32?null:(oh=!0,rh);case"textInput":return e=t.data,e===rh&&oh?null:e;default:return null}}function Dw(e,t){if(Cr)return e==="compositionend"||!vl&&ih(e,t)?(e=Yp(),ha=ll=dn=null,Cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ph(n)}}function vh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mh(){for(var e=window,t=oa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oa(e.document)}return t}function yl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Hw=qt&&"documentMode"in document&&11>=document.documentMode,xr=null,wl=null,$o=null,Sl=!1;function gh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sl||xr==null||xr!==oa(r)||(r=xr,"selectionStart"in r&&yl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$o&&Io($o,r)||($o=r,r=wa(wl,"onSelect"),0Nr||(e.current=xl[Nr],xl[Nr]=null,Nr--)}function Ne(e,t){Nr++,xl[Nr]=e.current,e.current=t}var vn={},qe=hn(vn),nt=hn(!1),Bn=vn;function Ar(e,t){var n=e.type.contextTypes;if(!n)return vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function Ra(){Re(nt),Re(qe)}function Ah(e,t,n){if(qe.current!==vn)throw Error(j(168));Ne(qe,t),Ne(nt,n)}function Mh(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(j(108,yr(t)||"Unknown",o));return Ce({},n,r)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vn,Bn=qe.current,Ne(qe,e),Ne(nt,nt.current),!0}function Dh(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Mh(e,t,Bn),r.__reactInternalMemoizedMergedChildContext=e,Re(nt),Re(qe),Ne(qe,e)):Re(nt),Ne(nt,n)}var kl=null,zn=null,Kw=je.unstable_runWithPriority,Tl=je.unstable_scheduleCallback,Pl=je.unstable_cancelCallback,Gw=je.unstable_shouldYield,Fh=je.unstable_requestPaint,Ll=je.unstable_now,Xw=je.unstable_getCurrentPriorityLevel,Ca=je.unstable_ImmediatePriority,Ih=je.unstable_UserBlockingPriority,$h=je.unstable_NormalPriority,Uh=je.unstable_LowPriority,jh=je.unstable_IdlePriority,Nl={},Yw=Fh!==void 0?Fh:function(){},Qt=null,xa=null,Al=!1,Vh=Ll(),Qe=1e4>Vh?Ll:function(){return Ll()-Vh};function Mr(){switch(Xw()){case Ca:return 99;case Ih:return 98;case $h:return 97;case Uh:return 96;case jh:return 95;default:throw Error(j(332))}}function Bh(e){switch(e){case 99:return Ca;case 98:return Ih;case 97:return $h;case 96:return Uh;case 95:return jh;default:throw Error(j(332))}}function Wn(e,t){return e=Bh(e),Kw(e,t)}function Bo(e,t,n){return e=Bh(e),Tl(e,t,n)}function $t(){if(xa!==null){var e=xa;xa=null,Pl(e)}zh()}function zh(){if(!Al&&Qt!==null){Al=!0;var e=0;try{var t=Qt;Wn(99,function(){for(;eL?(V=E,E=null):V=E.sibling;var F=d(p,E,h[L],g);if(F===null){E===null&&(E=V);break}e&&E&&F.alternate===null&&t(p,E),f=i(F,f,L),x===null?w=F:x.sibling=F,x=F,E=V}if(L===h.length)return n(p,E),w;if(E===null){for(;LL?(V=E,E=null):V=E.sibling;var G=d(p,E,F.value,g);if(G===null){E===null&&(E=V);break}e&&E&&G.alternate===null&&t(p,E),f=i(G,f,L),x===null?w=G:x.sibling=G,x=G,E=V}if(F.done)return n(p,E),w;if(E===null){for(;!F.done;L++,F=h.next())F=v(p,F.value,g),F!==null&&(f=i(F,f,L),x===null?w=F:x.sibling=F,x=F);return w}for(E=r(p,E);!F.done;L++,F=h.next())F=m(E,p,L,F.value,g),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?L:F.key),f=i(F,f,L),x===null?w=F:x.sibling=F,x=F);return e&&E.forEach(function(Y){return t(p,Y)}),w}return function(p,f,h,g){var w=typeof h=="object"&&h!==null&&h.type===an&&h.key===null;w&&(h=h.props.children);var x=typeof h=="object"&&h!==null;if(x)switch(h.$$typeof){case mo:e:{for(x=h.key,w=f;w!==null;){if(w.key===x){switch(w.tag){case 7:if(h.type===an){n(p,w.sibling),f=o(w,h.props.children),f.return=p,p=f;break e}break;default:if(w.elementType===h.type){n(p,w.sibling),f=o(w,h.props),f.ref=Wo(p,w,h),f.return=p,p=f;break e}}n(p,w);break}else t(p,w);w=w.sibling}h.type===an?(f=Wr(h.props.children,p.mode,g,h.key),f.return=p,p=f):(g=Za(h.type,h.key,h.props,null,p.mode,g),g.ref=Wo(p,f,h),g.return=p,p=g)}return a(p);case $n:e:{for(w=h.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(p,f.sibling),f=o(f,h.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Sc(h,p.mode,g),f.return=p,p=f}return a(p)}if(typeof h=="string"||typeof h=="number")return h=""+h,f!==null&&f.tag===6?(n(p,f.sibling),f=o(f,h),f.return=p,p=f):(n(p,f),f=wc(h,p.mode,g),f.return=p,p=f),a(p);if(Aa(h))return y(p,f,h,g);if(wo(h))return _(p,f,h,g);if(x&&Ma(p,h),typeof h=="undefined"&&!w)switch(p.tag){case 1:case 22:case 0:case 11:case 15:throw Error(j(152,yr(p.type)||"Component"))}return n(p,f)}}var Da=Zh(!0),Jh=Zh(!1),Ho={},Ut=hn(Ho),qo=hn(Ho),Qo=hn(Ho);function Hn(e){if(e===Ho)throw Error(j(174));return e}function $l(e,t){switch(Ne(Qo,t),Ne(qo,e),Ne(Ut,Ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zu(t,e)}Re(Ut),Ne(Ut,t)}function Ir(){Re(Ut),Re(qo),Re(Qo)}function ev(e){Hn(Qo.current);var t=Hn(Ut.current),n=zu(t,e.type);t!==n&&(Ne(qo,e),Ne(Ut,n))}function Ul(e){qo.current===e&&(Re(Ut),Re(qo))}var Ae=hn(0);function Fa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!=0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kt=null,wn=null,jt=!1;function tv(e,t){var n=yt(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function nv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function jl(e){if(jt){var t=wn;if(t){var n=t;if(!nv(e,t)){if(t=Tr(n.nextSibling),!t||!nv(e,t)){e.flags=e.flags&-1025|2,jt=!1,Kt=e;return}tv(Kt,n)}Kt=e,wn=Tr(t.firstChild)}else e.flags=e.flags&-1025|2,jt=!1,Kt=e}}function rv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kt=e}function Ia(e){if(e!==Kt)return!1;if(!jt)return rv(e),jt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Rl(t,e.memoizedProps))for(t=wn;t;)tv(e,t),t=Tr(t.nextSibling);if(rv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wn=Tr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wn=null}}else wn=Kt?Tr(e.stateNode.nextSibling):null;return!0}function Vl(){wn=Kt=null,jt=!1}var $r=[];function Bl(){for(var e=0;e<$r.length;e++)$r[e]._workInProgressVersionPrimary=null;$r.length=0}var Ko=In.ReactCurrentDispatcher,mt=In.ReactCurrentBatchConfig,Go=0,Fe=null,Ke=null,ze=null,$a=!1,Xo=!1;function ot(){throw Error(j(321))}function zl(e,t){if(t===null)return!1;for(var n=0;ni))throw Error(j(301));i+=1,ze=Ke=null,t.updateQueue=null,Ko.current=nS,e=n(r,o)}while(Xo)}if(Ko.current=Ba,t=Ke!==null&&Ke.next!==null,Go=0,ze=Ke=Fe=null,$a=!1,t)throw Error(j(300));return e}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?Fe.memoizedState=ze=e:ze=ze.next=e,ze}function Qn(){if(Ke===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=ze===null?Fe.memoizedState:ze.next;if(t!==null)ze=t,Ke=e;else{if(e===null)throw Error(j(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},ze===null?Fe.memoizedState=ze=e:ze=ze.next=e}return ze}function Vt(e,t){return typeof t=="function"?t(e):t}function Yo(e){var t=Qn(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=Ke,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){o=o.next,r=r.baseState;var s=a=i=null,u=o;do{var l=u.lane;if((Go&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,i=r):s=s.next=c,Fe.lanes|=l,ti|=l}u=u.next}while(u!==null&&u!==o);s===null?i=r:s.next=a,ht(r,t.memoizedState)||(Ot=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Zo(e){var t=Qn(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);ht(i,t.memoizedState)||(Ot=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ov(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===r:(e=e.mutableReadLanes,(e=(Go&e)===e)&&(t._workInProgressVersionPrimary=r,$r.push(t))),e)return n(t._source);throw $r.push(t),Error(j(350))}function iv(e,t,n,r){var o=Ze;if(o===null)throw Error(j(349));var i=t._getVersion,a=i(t._source),s=Ko.current,u=s.useState(function(){return ov(o,t,n)}),l=u[1],c=u[0];u=ze;var v=e.memoizedState,d=v.refs,m=d.getSnapshot,y=v.source;v=v.subscribe;var _=Fe;return e.memoizedState={refs:d,source:t,subscribe:r},s.useEffect(function(){d.getSnapshot=n,d.setSnapshot=l;var p=i(t._source);if(!ht(a,p)){p=n(t._source),ht(c,p)||(l(p),p=_n(_),o.mutableReadLanes|=p&o.pendingLanes),p=o.mutableReadLanes,o.entangledLanes|=p;for(var f=o.entanglements,h=p;0n?98:n,function(){e(!0)}),Wn(97<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pn]=t,e[ba]=r,Cv(e,t,!1,!1),t.stateNode=e,a=Hu(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),o=r;break;case"iframe":case"object":case"embed":Ee("load",e),o=r;break;case"video":case"audio":for(o=0;occ&&(t.flags|=64,i=!0,ei(r,!1),t.lanes=33554432)}else{if(!i)if(e=Fa(a),e!==null){if(t.flags|=64,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ei(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!jt)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Qe()-r.renderingStartTime>cc&&n!==1073741824&&(t.flags|=64,i=!0,ei(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Qe(),n.sibling=null,t=Ae.current,Ne(Ae,i?t&1|2:t&1),n):null;case 23:case 24:return mc(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(j(156,t.tag))}function iS(e){switch(e.tag){case 1:rt(e.type)&&Ra();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Ir(),Re(nt),Re(qe),Bl(),t=e.flags,(t&64)!=0)throw Error(j(285));return e.flags=t&-4097|64,e;case 5:return Ul(e),null;case 13:return Re(Ae),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Re(Ae),null;case 4:return Ir(),null;case 10:return Dl(e),null;case 23:case 24:return mc(),null;default:return null}}function ec(e,t){try{var n="",r=t;do n+=U1(r),r=r.return;while(r);var o=n}catch(i){o=` Error generating stack: `+i.message+` `+i.stack}return{value:e,source:t,stack:o}}function tc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aS=typeof WeakMap=="function"?WeakMap:Map;function Tv(e,t,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qa||(qa=!0,fc=r),tc(e,t)},n}function Pv(e,t,n){n=gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return tc(e,t),r(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Bt===null?Bt=new Set([this]):Bt.add(this),tc(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var sS=typeof WeakSet=="function"?WeakSet:Set;function Lv(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Rn(e,n)}else t.current=null}function uS(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Rt(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Ol(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(j(163))}function lS(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;r=o.next,o=o.tag,(o&4)!=0&&(o&1)!=0&&(qv(n,e),gS(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Rt(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Qh(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Qh(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&kh(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&zp(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(j(163))}function Nv(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,r.style.display=Cp("display",o)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Av(e,t){if(zn&&typeof zn.onCommitFiberUnmount=="function")try{zn.onCommitFiberUnmount(kl,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,o!==void 0)if((r&4)!=0)qv(t,n);else{r=t;try{o()}catch(i){Rn(r,i)}}n=n.next}while(n!==e)}break;case 1:if(Lv(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Rn(t,i)}break;case 5:Lv(t);break;case 4:Iv(e,t)}}function Mv(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Dv(e){return e.tag===5||e.tag===3||e.tag===4}function Fv(e){e:{for(var t=e.return;t!==null;){if(Dv(t))break e;t=t.return}throw Error(j(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(j(161))}n.flags&16&&(_o(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Dv(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?nc(e,n,t):rc(e,n,t)}function nc(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sa));else if(r!==4&&(e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function rc(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function Iv(e,t){for(var n=t,r=!1,o,i;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(j(160));switch(o=r.stateNode,r.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,u=s;;)if(Av(a,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(a=o,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):o.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){o=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(Av(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function oc(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)==3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var o=e!==null?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(n[ba]=r,e==="input"&&r.type==="radio"&&r.name!=null&&wp(n,r),Hu(e,o),t=Hu(e,r),o=0;oo&&(o=a),n&=~i}if(n=o,n=Qe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fS(n/1960))-n,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}We!==5&&(We=2),u=ec(u,s),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t;var x=Tv(d,i,t);qh(d,x);break e;case 1:i=u;var E=d.type,L=d.stateNode;if((d.flags&64)==0&&(typeof E.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Bt===null||!Bt.has(L)))){d.flags|=4096,t&=-t,d.lanes|=t;var V=Pv(d,i,t);qh(d,V);break e}}d=d.return}while(d!==null)}Hv(n)}catch(F){t=F,$e===n&&n!==null&&($e=n=n.return);continue}break}while(1)}function zv(){var e=Wa.current;return Wa.current=Ba,e===null?Ba:e}function ai(e,t){var n=oe;oe|=16;var r=zv();Ze===e&&Ge===t||zr(e,t);do try{pS();break}catch(o){Bv(e,o)}while(1);if(Ml(),oe=n,Wa.current=r,$e!==null)throw Error(j(261));return Ze=null,Ge=0,We}function pS(){for(;$e!==null;)Wv($e)}function hS(){for(;$e!==null&&!Gw();)Wv($e)}function Wv(e){var t=Kv(e.alternate,e,Kn);e.memoizedProps=e.pendingProps,t===null?Hv(e):$e=t,ic.current=null}function Hv(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)==0){if(n=oS(n,t,Kn),n!==null){$e=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(Kn&1073741824)!=0||(n.mode&4)==0){for(var r=0,o=n.child;o!==null;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=x,x=s),s=hh(h,x),i=hh(h,a),s&&i&&(w.rangeCount!==1||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&(g=g.createRange(),g.setStart(s.node,s.offset),w.removeAllRanges(),x>a?(w.addRange(g),w.extend(i.node,i.offset)):(g.setEnd(i.node,i.offset),w.addRange(g)))))),g=[],w=h;w=w.parentNode;)w.nodeType===1&&g.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;hQe()-lc?zr(e,0):sc|=n),gt(e,t)}function SS(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)==0?t=1:(t&4)==0?t=Mr()===99?1:2:(Yt===0&&(Yt=Ur),t=Rr(62914560&~Yt),t===0&&(t=4194304))),n=ut(),e=Xa(e,t),e!==null&&(da(e,t,n),gt(e,n))}var Kv;Kv=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)Ot=!0;else if((n&r)!=0)Ot=(e.flags&16384)!=0;else{switch(Ot=!1,t.tag){case 3:wv(t),Vl();break;case 5:ev(t);break;case 1:rt(t.type)&&Oa(t);break;case 4:$l(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;Ne(ka,o._currentValue),o._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!=0?Sv(e,t,n):(Ne(Ae,Ae.current&1),t=Gt(e,t,n),t!==null?t.sibling:null);Ne(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!=0,(e.flags&64)!=0){if(r)return Ov(e,t,n);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ne(Ae,Ae.current),r)break;return null;case 23:case 24:return t.lanes=0,Gl(e,t,n)}return Gt(e,t,n)}else Ot=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Ar(t,qe.current),Fr(t,n),o=Wl(null,t,r,e,o,n),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)){var i=!0;Oa(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Fl(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&La(t,r,a,e),o.updater=Na,t.stateNode=o,o._reactInternals=t,Il(t,r,e,n),t=Yl(null,t,r,!0,i,n)}else t.tag=0,it(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=bS(o),e=Rt(o,e),i){case 0:t=Xl(null,t,o,e,n);break e;case 1:t=yv(null,t,o,e,n);break e;case 11:t=hv(null,t,o,e,n);break e;case 14:t=vv(null,t,o,Rt(o.type,e),r,n);break e}throw Error(j(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Xl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),yv(e,t,r,o,n);case 3:if(wv(t),r=t.updateQueue,e===null||r===null)throw Error(j(282));if(r=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,Hh(e,t),zo(t,r,null,n),r=t.memoizedState.element,r===o)Vl(),t=Gt(e,t,n);else{if(o=t.stateNode,(i=o.hydrate)&&(wn=Tr(t.stateNode.containerInfo.firstChild),Kt=t,i=jt=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o=0)&&i(u,!c)}function s(u){var l=[].slice.call(u.querySelectorAll("*"),0).reduce(function(c,v){return c.concat(v.shadowRoot?s(v.shadowRoot):[v])},[]);return l.filter(a)}e.exports=t.default})(rs,rs.exports);Object.defineProperty(Ct,"__esModule",{value:!0});Ct.resetState=FS;Ct.log=IS;Ct.handleBlur=li;Ct.handleFocus=ci;Ct.markForFocusLater=$S;Ct.returnFocus=US;Ct.popWithoutFocus=jS;Ct.setupScopedFocus=VS;Ct.teardownScopedFocus=BS;var AS=rs.exports,MS=DS(AS);function DS(e){return e&&e.__esModule?e:{default:e}}var Hr=[],qr=null,Cc=!1;function FS(){Hr=[]}function IS(){}function li(){Cc=!0}function ci(){if(Cc){if(Cc=!1,!qr)return;setTimeout(function(){if(!qr.contains(document.activeElement)){var e=(0,MS.default)(qr)[0]||qr;e.focus()}},0)}}function $S(){Hr.push(document.activeElement)}function US(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Hr.length!==0&&(t=Hr.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function jS(){Hr.length>0&&Hr.pop()}function VS(e){qr=e,window.addEventListener?(window.addEventListener("blur",li,!1),document.addEventListener("focus",ci,!0)):(window.attachEvent("onBlur",li),document.attachEvent("onFocus",ci))}function BS(){qr=null,window.addEventListener?(window.removeEventListener("blur",li),document.removeEventListener("focus",ci)):(window.detachEvent("onBlur",li),document.detachEvent("onFocus",ci))}var xc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=rs.exports,r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?i(s.activeElement.shadowRoot):s.activeElement}function a(s,u){var l=(0,r.default)(s);if(!l.length){u.preventDefault();return}var c=void 0,v=u.shiftKey,d=l[0],m=l[l.length-1],y=i();if(s===y){if(!v)return;c=m}if(m===y&&!v&&(c=d),d===y&&v&&(c=m),c){u.preventDefault(),c.focus();return}var _=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),p=_!=null&&_[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!!p){var f=l.indexOf(y);if(f>-1&&(f+=v?-1:1),c=l[f],typeof c=="undefined"){u.preventDefault(),c=v?m:d,c.focus();return}u.preventDefault(),c.focus()}}e.exports=t.default})(xc,xc.exports);var xt={},zS=function(){},WS=zS,kt={},tm={exports:{}};/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. */(function(e){(function(){var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(tm);Object.defineProperty(kt,"__esModule",{value:!0});kt.canUseDOM=kt.SafeNodeList=kt.SafeHTMLCollection=void 0;var HS=tm.exports,qS=QS(HS);function QS(e){return e&&e.__esModule?e:{default:e}}var os=qS.default,KS=os.canUseDOM?window.HTMLElement:{};kt.SafeHTMLCollection=os.canUseDOM?window.HTMLCollection:{};kt.SafeNodeList=os.canUseDOM?window.NodeList:{};kt.canUseDOM=os.canUseDOM;kt.default=KS;Object.defineProperty(xt,"__esModule",{value:!0});xt.resetState=JS;xt.log=e_;xt.assertNodeList=nm;xt.setElement=t_;xt.validateElement=kc;xt.hide=n_;xt.show=r_;xt.documentNotReadyOrSSRTesting=o_;var GS=WS,XS=ZS(GS),YS=kt;function ZS(e){return e&&e.__esModule?e:{default:e}}var wt=null;function JS(){wt&&(wt.removeAttribute?wt.removeAttribute("aria-hidden"):wt.length!=null?wt.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(wt).forEach(function(e){return e.removeAttribute("aria-hidden")})),wt=null}function e_(){}function nm(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function t_(e){var t=e;if(typeof t=="string"&&YS.canUseDOM){var n=document.querySelectorAll(t);nm(n,t),t=n}return wt=t||wt,wt}function kc(e){var t=e||wt;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,XS.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function n_(e){var t=!0,n=!1,r=void 0;try{for(var o=kc(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function r_(e){var t=!0,n=!1,r=void 0;try{for(var o=kc(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function o_(){wt=null}var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.resetState=i_;Qr.log=a_;var fi={},di={};function rm(e,t){e.classList.remove(t)}function i_(){var e=document.getElementsByTagName("html")[0];for(var t in fi)rm(e,fi[t]);var n=document.body;for(var r in di)rm(n,di[r]);fi={},di={}}function a_(){}var s_=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},u_=function(t,n){return t[n]&&(t[n]-=1),n},l_=function(t,n,r){r.forEach(function(o){s_(n,o),t.add(o)})},c_=function(t,n,r){r.forEach(function(o){u_(n,o),n[o]===0&&t.remove(o)})};Qr.add=function(t,n){return l_(t.classList,t.nodeName.toLowerCase()=="html"?fi:di,n.split(" "))};Qr.remove=function(t,n){return c_(t.classList,t.nodeName.toLowerCase()=="html"?fi:di,n.split(" "))};var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.log=d_;Kr.resetState=p_;function f_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var om=function e(){var t=this;f_(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},is=new om;function d_(){console.log("portalOpenInstances ----------"),console.log(is.openInstances.length),is.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function p_(){is=new om}Kr.default=is;var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});Tc.resetState=g_;Tc.log=y_;var h_=Kr,v_=m_(h_);function m_(e){return e&&e.__esModule?e:{default:e}}var Xe=void 0,Tt=void 0,Yn=[];function g_(){for(var e=[Xe,Tt],t=0;t0?(document.body.firstChild!==Xe&&document.body.insertBefore(Xe,document.body.firstChild),document.body.lastChild!==Tt&&document.body.appendChild(Tt)):(Xe.parentElement&&Xe.parentElement.removeChild(Xe),Tt.parentElement&&Tt.parentElement.removeChild(Tt))}v_.default.subscribe(w_);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(S){for(var C=1;C0&&(ie-=1,ie===0&&m.show(I)),b.props.shouldFocusAfterRender&&(b.props.shouldReturnFocusAfterClose?(l.returnFocus(b.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),b.props.onAfterClose&&b.props.onAfterClose(),g.default.deregister(b)},b.open=function(){b.beforeOpen(),b.state.afterOpen&&b.state.beforeClose?(clearTimeout(b.closeTimer),b.setState({beforeClose:!1})):(b.props.shouldFocusAfterRender&&(l.setupScopedFocus(b.node),l.markForFocusLater()),b.setState({isOpen:!0},function(){b.openAnimationFrame=requestAnimationFrame(function(){b.setState({afterOpen:!0}),b.props.isOpen&&b.props.onAfterOpen&&b.props.onAfterOpen({overlayEl:b.overlay,contentEl:b.content})})}))},b.close=function(){b.props.closeTimeoutMS>0?b.closeWithTimeout():b.closeWithoutTimeout()},b.focusContent=function(){return b.content&&!b.contentHasFocus()&&b.content.focus({preventScroll:!0})},b.closeWithTimeout=function(){var P=Date.now()+b.props.closeTimeoutMS;b.setState({beforeClose:!0,closesAt:P},function(){b.closeTimer=setTimeout(b.closeWithoutTimeout,b.state.closesAt-Date.now())})},b.closeWithoutTimeout=function(){b.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},b.afterClose)},b.handleKeyDown=function(P){P.keyCode===G&&(0,v.default)(b.content,P),b.props.shouldCloseOnEsc&&P.keyCode===Y&&(P.stopPropagation(),b.requestClose(P))},b.handleOverlayOnClick=function(P){b.shouldClose===null&&(b.shouldClose=!0),b.shouldClose&&b.props.shouldCloseOnOverlayClick&&(b.ownerHandlesClose()?b.requestClose(P):b.focusContent()),b.shouldClose=null},b.handleContentOnMouseUp=function(){b.shouldClose=!1},b.handleOverlayOnMouseDown=function(P){!b.props.shouldCloseOnOverlayClick&&P.target==b.overlay&&P.preventDefault()},b.handleContentOnClick=function(){b.shouldClose=!1},b.handleContentOnMouseDown=function(){b.shouldClose=!1},b.requestClose=function(P){return b.ownerHandlesClose()&&b.props.onRequestClose(P)},b.ownerHandlesClose=function(){return b.props.onRequestClose},b.shouldBeClosed=function(){return!b.state.isOpen&&!b.state.beforeClose},b.contentHasFocus=function(){return document.activeElement===b.content||b.content.contains(document.activeElement)},b.buildClassName=function(P,I){var J=(typeof I=="undefined"?"undefined":r(I))==="object"?I:{base:F[P],afterOpen:F[P]+"--after-open",beforeClose:F[P]+"--before-close"},k=J.base;return b.state.afterOpen&&(k=k+" "+J.afterOpen),b.state.beforeClose&&(k=k+" "+J.beforeClose),typeof I=="string"&&I?k+" "+I:k},b.attributesFromObject=function(P,I){return Object.keys(I).reduce(function(J,k){return J[P+"-"+k]=I[k],J},{})},b.state={afterOpen:!1,beforeClose:!1},b.shouldClose=null,b.moveFromContentToOverlay=null,b}return o(C,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(b,P){this.props.isOpen&&!b.isOpen?this.open():!this.props.isOpen&&b.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!P.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var b=this.props,P=b.appElement,I=b.ariaHideApp,J=b.htmlOpenClassName,k=b.bodyOpenClassName;k&&_.add(document.body,k),J&&_.add(document.getElementsByTagName("html")[0],J),I&&(ie+=1,m.hide(P)),g.default.register(this)}},{key:"render",value:function(){var b=this.props,P=b.id,I=b.className,J=b.overlayClassName,k=b.defaultStyles,N=b.children,X=I?{}:k.content,le=J?{}:k.overlay;if(this.shouldBeClosed())return null;var he={ref:this.setOverlayRef,className:this.buildClassName("overlay",J),style:n({},le,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Te=n({id:P,ref:this.setContentRef,style:n({},X,this.props.style.content),className:this.buildClassName("content",I),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),T=this.props.contentElement(Te,N);return this.props.overlayElement(he,T)}}]),C}(i.Component);Z.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Z.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Z,e.exports=t.default})(Oc,Oc.exports);function am(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function sm(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function um(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}am.__suppressDeprecationWarning=!0;sm.__suppressDeprecationWarning=!0;um.__suppressDeprecationWarning=!0;function S_(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+i+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?` `+n:"")+(r!==null?` `+r:"")+(o!==null?` `+o:"")+` The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=am,t.componentWillReceiveProps=sm),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=um;var s=t.componentDidUpdate;t.componentDidUpdate=function(l,c,v){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:v;s.call(this,l,c,d)}}return e}var __=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",polyfill:S_}),b_=t1(__);Object.defineProperty(Xn,"__esModule",{value:!0});Xn.bodyOpenClassName=Xn.portalClassName=void 0;var lm=Object.assign||function(e){for(var t=1;t0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function fe(){return fe=Object.assign||function(e){for(var t=1;t=0&&e!==1/0}function cs(e){return Array.isArray(e)?e:[e]}function mm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fs(e,t,n){return vi(e)?typeof t=="function"?fe({},n,{queryKey:e,queryFn:t}):fe({},t,{queryKey:e}):e}function F_(e,t,n){return vi(e)?typeof t=="function"?fe({},n,{mutationKey:e,mutationFn:t}):fe({},t,{mutationKey:e}):typeof e=="function"?fe({},t,{mutationFn:e}):fe({},e)}function xn(e,t,n){return vi(e)?[fe({},t,{queryKey:e}),n]:[e||{},t]}function I_(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e!=null?e:!t;return n?"active":"inactive"}function gm(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(vi(s)){if(r){if(t.queryHash!==Lc(s,t.options))return!1}else if(!ds(t.queryKey,s))return!1}var l=I_(n,i);if(l==="none")return!1;if(l!=="all"){var c=t.isActive();if(l==="active"&&!c||l==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o=="boolean"&&t.isFetching()!==o||a&&!a(t))}function ym(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(vi(i)){if(!t.options.mutationKey)return!1;if(n){if(Jn(t.options.mutationKey)!==Jn(i))return!1}else if(!ds(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function Lc(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Jn;return n(e)}function Jn(e){var t=cs(e);return $_(t)}function $_(e){return JSON.stringify(e,function(t,n){return Nc(n)?Object.keys(n).sort().reduce(function(r,o){return r[o]=n[o],r},{}):n})}function ds(e,t){return wm(cs(e),cs(t))}function wm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!wm(e[n],t[n])}):!1}function ps(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||Nc(e)&&Nc(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},s=0,u=0;u0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>d.dataUpdateCount||y.errorUpdateCount>d.errorUpdateCount,isFetching:h,isRefetching:h&&g!=="loading",isLoadingError:g==="error"&&y.dataUpdatedAt===0,isPlaceholderData:x,isPreviousData:w,isRefetchError:g==="error"&&y.dataUpdatedAt!==0,isStale:gi(o,i),refetch:this.refetch,remove:this.remove};return Y},n.shouldNotifyListeners=function(o,i){if(!i)return!0;if(o===i)return!1;var a=this.options,s=a.notifyOnChangeProps,u=a.notifyOnChangePropsExclusions;if(!s&&!u||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(c){var v=c,d=o[v]!==i[v],m=l==null?void 0:l.some(function(_){return _===c}),y=u==null?void 0:u.some(function(_){return _===c});return d&&!y&&(!l||m)})},n.updateResult=function(o){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!U_(this.currentResult,i)){var a={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(a.listeners=!0),this.notify(fe({},a,o))}},n.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var i=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))}},n.onQueryUpdate=function(o){var i={};o.type==="success"?i.onSuccess=!0:o.type==="error"&&!ms(o.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(o){var i=this;xe.batch(function(){o.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):o.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),o.listeners&&i.listeners.forEach(function(a){a(i.currentResult)}),o.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t}(Xr);function eb(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function tb(e,t){return t.enabled!==!1&&e.state.dataUpdatedAt>0&&(t.refetchOnMount==="always"||t.refetchOnMount!==!1&&gi(e,t))}function km(e,t){return eb(e,t)||tb(e,t)}function nb(e,t){return t.enabled!==!1&&(t.refetchOnReconnect==="always"||t.refetchOnReconnect!==!1&&gi(e,t))}function rb(e,t){return t.enabled!==!1&&(t.refetchOnWindowFocus==="always"||t.refetchOnWindowFocus!==!1&&gi(e,t))}function Tm(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error"||r.enabled===!1)&&gi(e,n)}function gi(e,t){return e.isStaleByTime(t.staleTime)}var ob=function(e){Gr(t,e);function t(r,o){var i;return i=e.call(this)||this,i.client=r,i.setOptions(o),i.bindMethods(),i.updateResult(),i}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},n.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},n.onMutationUpdate=function(o){this.updateResult();var i={listeners:!0};o.type==="success"?i.onSuccess=!0:o.type==="error"&&(i.onError=!0),this.notify(i)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(o,i){return this.mutateOptions=i,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,fe({},this.options,{variables:typeof o!="undefined"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:Cm(),i=fe({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=i},n.notify=function(o){var i=this;xe.batch(function(){i.mutateOptions&&(o.onSuccess?(i.mutateOptions.onSuccess==null||i.mutateOptions.onSuccess(i.currentResult.data,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(i.currentResult.data,null,i.currentResult.variables,i.currentResult.context)):o.onError&&(i.mutateOptions.onError==null||i.mutateOptions.onError(i.currentResult.error,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(void 0,i.currentResult.error,i.currentResult.variables,i.currentResult.context))),o.listeners&&i.listeners.forEach(function(a){a(i.currentResult)})})},t}(Xr),ib=Zv.unstable_batchedUpdates;xe.setBatchNotifyFunction(ib);var ab=console;H_(ab);var Pm=B.createContext(void 0),Lm=B.createContext(!1);function Nm(e){return e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Pm),window.ReactQueryClientContext):Pm}var Am=function(){var t=B.useContext(Nm(B.useContext(Lm)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},WT=function(t){var n=t.client,r=t.contextSharing,o=r===void 0?!1:r,i=t.children;B.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var a=Nm(o);return B.createElement(Lm.Provider,{value:o},B.createElement(a.Provider,{value:n},i))};function sb(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var ub=B.createContext(sb()),lb=function(){return B.useContext(ub)};function Mm(e,t,n){return typeof t=="function"?t(n):typeof t=="boolean"?t:!!e}function HT(e,t,n){var r=B.useRef(!1),o=B.useState(0),i=o[1],a=F_(e,t,n),s=Am(),u=B.useRef();u.current?u.current.setOptions(a):u.current=new ob(s,a);var l=u.current.getCurrentResult();B.useEffect(function(){r.current=!0;var v=u.current.subscribe(xe.batchCalls(function(){r.current&&i(function(d){return d+1})}));return function(){r.current=!1,v()}},[]);var c=B.useCallback(function(v,d){u.current.mutate(v,d).catch(Ie)},[]);if(l.error&&Mm(void 0,u.current.options.useErrorBoundary,l.error))throw l.error;return fe({},l,{mutate:c,mutateAsync:l.mutate})}function cb(e,t){var n=B.useRef(!1),r=B.useState(0),o=r[1],i=Am(),a=lb(),s=i.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=xe.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=xe.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=xe.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var u=B.useState(function(){return new t(i,s)}),l=u[0],c=l.getOptimisticResult(s);if(B.useEffect(function(){n.current=!0,a.clearReset();var v=l.subscribe(xe.batchCalls(function(){n.current&&o(function(d){return d+1})}));return l.updateResult(),function(){n.current=!1,v()}},[a,l]),B.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&c.isLoading)throw l.fetchOptimistic(s).then(function(v){var d=v.data;s.onSuccess==null||s.onSuccess(d),s.onSettled==null||s.onSettled(d,null)}).catch(function(v){a.clearReset(),s.onError==null||s.onError(v),s.onSettled==null||s.onSettled(void 0,v)});if(c.isError&&!c.isFetching&&Mm(s.suspense,s.useErrorBoundary,c.error))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=l.trackResult(c)),c}function qT(e,t,n){var r=fs(e,t,n);return cb(r,J_)}function ys(){return ys=Object.assign||function(e){for(var t=1;t({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=kn(r));let{pathname:l="/",search:c="",hash:v="",state:d=null,key:m="default"}=r,y=$.exports.useMemo(()=>{let _=Bm(l,s);return _==null?null:{pathname:_,search:c,hash:v,state:d,key:m}},[s,l,c,v,d,m]);return y==null?null:$.exports.createElement(Mc.Provider,{value:u},$.exports.createElement(Dc.Provider,{children:n,value:{location:y,navigationType:o}}))}function vb(e){Si()||Tn(!1);let{basename:t,navigator:n}=$.exports.useContext(Mc),{hash:r,pathname:o,search:i}=$m(e),a=o;if(t!=="/"){let s=Db(e),u=s!=null&&s.endsWith("/");a=o==="/"?t+(u?"/":""):Pn([t,o])}return n.createHref({pathname:a,search:i,hash:r})}function Si(){return $.exports.useContext(Dc)!=null}function ws(){return Si()||Tn(!1),$.exports.useContext(Dc).location}function mb(){Si()||Tn(!1);let{basename:e,navigator:t}=$.exports.useContext(Mc),{matches:n}=$.exports.useContext(wi),{pathname:r}=ws(),o=JSON.stringify(n.map(s=>s.pathnameBase)),i=$.exports.useRef(!1);return $.exports.useEffect(()=>{i.current=!0}),$.exports.useCallback(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let l=Vm(s,JSON.parse(o),r);e!=="/"&&(l.pathname=Pn([e,l.pathname])),(u.replace?t.replace:t.push)(l,u.state)},[e,t,o,r])}function gb(){return $.exports.useContext(wi).outlet}function $m(e){let{matches:t}=$.exports.useContext(wi),{pathname:n}=ws(),r=JSON.stringify(t.map(o=>o.pathnameBase));return $.exports.useMemo(()=>Vm(e,JSON.parse(r),n),[e,r,n])}function QT(e,t){Si()||Tn(!1);let{matches:n}=$.exports.useContext(wi),r=n[n.length-1],o=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let a=ws(),s;if(t){var u;let d=typeof t=="string"?kn(t):t;i==="/"||((u=d.pathname)==null?void 0:u.startsWith(i))||Tn(!1),s=d}else s=a;let l=s.pathname||"/",c=i==="/"?l:l.slice(i.length)||"/",v=yb(e,{pathname:c});return Tb(v&&v.map(d=>Object.assign({},d,{params:Object.assign({},o,d.params),pathname:Pn([i,d.pathname]),pathnameBase:d.pathnameBase==="/"?i:Pn([i,d.pathnameBase])})),n)}function yb(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?kn(t):t,o=Bm(r.pathname||"/",n);if(o==null)return null;let i=Um(e);wb(i);let a=null;for(let s=0;a==null&&s{let a={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i};a.relativePath.startsWith("/")&&(a.relativePath.startsWith(r)||Tn(!1),a.relativePath=a.relativePath.slice(r.length));let s=Pn([r,a.relativePath]),u=n.concat(a);o.children&&o.children.length>0&&(o.index===!0&&Tn(!1),Um(o.children,t,u,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Cb(s,o.index),routesMeta:u})}),t}function wb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Sb=/^:\w+$/,_b=3,bb=2,Eb=1,Rb=10,Ob=-2,jm=e=>e==="*";function Cb(e,t){let n=e.split("/"),r=n.length;return n.some(jm)&&(r+=Ob),t&&(r+=bb),n.filter(o=>!jm(o)).reduce((o,i)=>o+(Sb.test(i)?_b:i===""?Eb:Rb),r)}function xb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function kb(e,t,n){let r=t,{routesMeta:o}=e,i={},a="/",s=[];for(let u=0;u$.exports.createElement(wi.Provider,{children:r.route.element!==void 0?r.route.element:$.exports.createElement(pb,null),value:{outlet:n,matches:t.concat(e.slice(0,o+1))}}),null)}function Pb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Lb(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((l,c,v)=>{if(c==="*"){let d=s[v]||"";a=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return l[c]=Nb(s[v]||""),l},{}),pathname:i,pathnameBase:a,pattern:e}}function Lb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(a,s)=>(r.push(s),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:\\b|$)",[new RegExp(o,t?void 0:"i"),r]}function Nb(e,t){try{return decodeURIComponent(e)}catch{return e}}function Ab(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?kn(e):e;return{pathname:n?n.startsWith("/")?n:Mb(n,t):t,search:Ib(r),hash:$b(o)}}function Mb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Vm(e,t,n){let r=typeof e=="string"?kn(e):e,o=e===""||r.pathname===""?"/":r.pathname,i;if(o==null)i=n;else{let s=t.length-1;if(o.startsWith("..")){let u=o.split("/");for(;u[0]==="..";)u.shift(),s-=1;r.pathname=u.join("/")}i=s>=0?t[s]:"/"}let a=Ab(r,i);return o&&o!=="/"&&o.endsWith("/")&&!a.pathname.endsWith("/")&&(a.pathname+="/"),a}function Db(e){return e===""||e.pathname===""?"/":typeof e=="string"?kn(e).pathname:e.pathname}function Bm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const Pn=e=>e.join("/").replace(/\/\/+/g,"/"),Fb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ib=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$b=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;/** * React Router DOM v6.0.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Fc(){return Fc=Object.assign||function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}const jb=["onClick","reloadDocument","replace","state","target","to"];function KT(e){let{basename:t,children:n,window:r}=e,o=$.exports.useRef();o.current==null&&(o.current=db({window:r}));let i=o.current,[a,s]=$.exports.useState({action:i.action,location:i.location});return $.exports.useLayoutEffect(()=>i.listen(s),[i]),$.exports.createElement(hb,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}function Vb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const GT=$.exports.forwardRef(function(t,n){let{onClick:r,reloadDocument:o,replace:i=!1,state:a,target:s,to:u}=t,l=Ub(t,jb),c=vb(u),v=Bb(u,{replace:i,state:a,target:s});function d(m){r&&r(m),!m.defaultPrevented&&!o&&v(m)}return $.exports.createElement("a",Fc({},l,{href:c,onClick:d,ref:n,target:s}))});function Bb(e,t){let{target:n,replace:r,state:o}=t===void 0?{}:t,i=mb(),a=ws(),s=$m(e);return $.exports.useCallback(u=>{if(u.button===0&&(!n||n==="_self")&&!Vb(u)){u.preventDefault();let l=!!r||yi(a)===yi(s);i(e,{replace:l,state:o})}},[a,i,s,r,o,n,e])}function zb(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Wb=zb,de=Wb;function Hb(e){return!!e&&typeof e.then=="function"}var ke=Hb;function qb(e,t){if(e!=null)return e;throw de(t!=null?t:"Got unexpected null or undefined")}var ye=qb;function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ss{getValue(){throw de("BaseLoadable")}toPromise(){throw de("BaseLoadable")}valueMaybe(){throw de("BaseLoadable")}valueOrThrow(){throw de(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw de("BaseLoadable")}promiseOrThrow(){throw de(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw de("BaseLoadable")}errorOrThrow(){throw de(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw de("BaseLoadable")}}class Qb extends Ss{constructor(t){super();ue(this,"state","hasValue"),ue(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return ke(n)?Yr(n):Es(n)?n:_s(n)}catch(n){return ke(n)?Yr(n.next(()=>this.map(t))):bs(n)}}}class Kb extends Ss{constructor(t){super();ue(this,"state","hasError"),ue(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class zm extends Ss{constructor(t){super();ue(this,"state","loading"),ue(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return Yr(this.contents.then(n=>{const r=t(n);if(Es(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(ke(n))return n.then(()=>this.map(t).contents);throw n}))}}function _s(e){return Object.freeze(new Qb(e))}function bs(e){return Object.freeze(new Kb(e))}function Yr(e){return Object.freeze(new zm(e))}function Gb(){return Object.freeze(new zm(new Promise(()=>{})))}function Xb(e){return e.every(t=>t.state==="hasValue")?_s(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?bs(ye(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Yr(Promise.all(e.map(t=>t.contents)))}function Wm(e){const t=Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(r=>e[r]),n=Xb(t);return Array.isArray(e)?n:n.map(r=>Object.getOwnPropertyNames(e).reduce((o,i,a)=>tt(He({},o),{[i]:r[a]}),{}))}function Es(e){return e instanceof Ss}const Yb={of:e=>ke(e)?Yr(e):_s(e),error:e=>bs(e),all:Wm,isLoadable:Es};var tr={loadableWithValue:_s,loadableWithError:bs,loadableWithPromise:Yr,loadableLoading:Gb,loadableAll:Wm,isLoadable:Es,RecoilLoadable:Yb},Zb=tr.loadableWithValue,Jb=tr.loadableWithError,eE=tr.loadableWithPromise,tE=tr.loadableLoading,nE=tr.loadableAll,rE=tr.isLoadable,oE=tr.RecoilLoadable,_i=Object.freeze({__proto__:null,loadableWithValue:Zb,loadableWithError:Jb,loadableWithPromise:eE,loadableLoading:tE,loadableAll:nE,isLoadable:rE,RecoilLoadable:oE}),Ic;const Hm=(Ic=B.useMutableSource)!==null&&Ic!==void 0?Ic:B.unstable_useMutableSource;function iE(){return Hm&&!(typeof window!="undefined"&&window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE)}var qm={mutableSourceExists:iE,useMutableSource:Hm};const{mutableSourceExists:aE}=qm,$c=new Map().set("recoil_hamt_2020",!0).set("recoil_memory_managament_2020",!0).set("recoil_suppress_rerender_in_callback",!0);function Uc(e){var t;return e==="recoil_early_rendering_2021"&&!aE()?!1:(t=$c.get(e))!==null&&t!==void 0?t:!1}Uc.setPass=e=>{$c.set(e,!0)};Uc.setFail=e=>{$c.set(e,!1)};var Se=Uc;function sE(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Qm=sE;function uE(e,t,{error:n}={}){return null}var lE=uE,Km=lE;class jc{constructor(t){ue(this,"key",void 0),this.key=t}}class Gm extends jc{}class Xm extends jc{}function cE(e){return e instanceof Gm||e instanceof Xm}var Rs={AbstractRecoilValue:jc,RecoilState:Gm,RecoilValueReadOnly:Xm,isRecoilValue:cE},fE=Rs.AbstractRecoilValue,dE=Rs.RecoilState,pE=Rs.RecoilValueReadOnly,hE=Rs.isRecoilValue,nr=Object.freeze({__proto__:null,AbstractRecoilValue:fE,RecoilState:dE,RecoilValueReadOnly:pE,isRecoilValue:hE});class Ym{}const vE=new Ym;class mE extends Error{constructor(t){super(`Tried to set the value of Recoil selector ${t} using an updater function, but it is an async selector in a pending or error state; this is not supported.`)}}const rr=new Map,Vc=new Map;function gE(e){return Qm(e,t=>ye(Vc.get(t)))}function yE(e){if(rr.has(e.key)){const n=`Duplicate atom key "${e.key}". This is a FATAL ERROR in production. But it is safe to ignore this warning if it occurred because of hot module replacement.`;console.warn(n)}rr.set(e.key,e);const t=e.set==null?new nr.RecoilValueReadOnly(e.key):new nr.RecoilState(e.key);return Vc.set(e.key,t),t}class Zm extends Error{}function wE(e){const t=rr.get(e);if(t==null)throw new Zm(`Missing definition for RecoilValue: "${e}""`);return t}function SE(e){return rr.get(e)}const Os=new Map;function _E(e){var t;if(!Se("recoil_memory_managament_2020"))return;const n=rr.get(e);if(n==null||(t=n.shouldDeleteConfigOnRelease)===null||t===void 0?void 0:t.call(n)){var r;rr.delete(e),(r=Jm(e))===null||r===void 0||r(),Os.delete(e)}}function bE(e,t){!Se("recoil_memory_managament_2020")||(t===void 0?Os.delete(e):Os.set(e,t))}function Jm(e){return Os.get(e)}var Je={nodes:rr,recoilValues:Vc,registerNode:yE,getNode:wE,getNodeMaybe:SE,deleteNodeConfigIfPossible:_E,setConfigDeletionHandler:bE,getConfigDeletionHandler:Jm,recoilValuesForKeys:gE,NodeMissingError:Zm,DefaultValue:Ym,DEFAULT_VALUE:vE,RecoilValueNotReady:mE};function EE(e,t){t()}var RE={enqueueExecution:EE};function OE(e,t){return t={exports:{}},e(t,t.exports),t.exports}var CE=OE(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,s=o/4,u={},l=function(R){return function(){return R}},c=n.hash=function(O){var R=typeof O=="undefined"?"undefined":t(O);if(R==="number")return O;R!=="string"&&(O+="");for(var D=0,W=0,H=O.length;W>1&1431655765,R=(R&858993459)+(R>>2&858993459),R=R+(R>>4)&252645135,R+=R>>8,R+=R>>16,R&127},d=function(R,D){return D>>>R&i},m=function(R){return 1<=D;)H[re--]=H[re];return H[D]=W,H}for(var ee=0,te=0,ce=new Array(K+1);ee>>=1;return re[D]=W,Y(R,te+1,re)},S=function(R,D,W,H){for(var K=new Array(D-1),re=0,ee=0,te=0,ce=H.length;te1?F(R,this.hash,ce):ce[0]}var Oe=H();return Oe===u?this:(++ee.value,C(R,W,this.hash,this,K,V(R,K,re,Oe)))},J=function(R,D,W,H,K,re,ee){var te=this.mask,ce=this.children,Oe=d(W,K),et=m(Oe),Ue=y(te,et),dt=te&et,bt=dt?ce[Ue]:E,dr=bt._modify(R,D,W+r,H,K,re,ee);if(bt===dr)return this;var $i=b(R,this),io=te,ao=void 0;if(dt&&L(dr)){if(io&=~et,!io)return E;if(ce.length<=2&&ie(ce[Ue^1]))return ce[Ue^1];ao=p($i,Ue,ce)}else if(!dt&&!L(dr)){if(ce.length>=a)return Z(R,Oe,dr,te,ce);io|=et,ao=f($i,Ue,dr,ce)}else ao=_($i,Ue,dr,ce);return $i?(this.mask=io,this.children=ao,this):G(R,io,ao)},k=function(R,D,W,H,K,re,ee){var te=this.size,ce=this.children,Oe=d(W,K),et=ce[Oe],Ue=(et||E)._modify(R,D,W+r,H,K,re,ee);if(et===Ue)return this;var dt=b(R,this),bt=void 0;if(L(et)&&!L(Ue))++te,bt=_(dt,Oe,Ue,ce);else if(!L(et)&&L(Ue)){if(--te,te<=s)return S(R,te,Oe,ce);bt=_(dt,Oe,E,ce)}else bt=_(dt,Oe,Ue,ce);return dt?(this.size=te,this.children=bt,this):Y(R,te,bt)};E._modify=function(O,R,D,W,H,K,re){var ee=W();return ee===u?E:(++re.value,V(O,H,K,ee))};function N(O,R,D,W,H){this._editable=O,this._edit=R,this._config=D,this._root=W,this._size=H}N.prototype.setTree=function(O,R){return this._editable?(this._root=O,this._size=R,this):O===this._root?this:new N(this._editable,this._edit,this._config,O,R)};var X=n.tryGetHash=function(O,R,D,W){for(var H=W._root,K=0,re=W._config.keyEq;;)switch(H.type){case h:return re(D,H.key)?H.value:O;case g:{if(R===H.hash)for(var ee=H.children,te=0,ce=ee.length;te{n.set(o,t(r,o))}),n}var xs=NE;function AE(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function ME(e){return{nodeDeps:xs(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:xs(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Wc(e,t,n){const{nodeDeps:r,nodeToNodeSubscriptions:o}=t;e.forEach((i,a)=>{const s=r.get(a);if(s&&n&&s!==n.nodeDeps.get(a))return;r.set(a,new Set(i)),(s==null?i:Cs(i,s)).forEach(l=>{o.has(l)||o.set(l,new Set),ye(o.get(l)).add(a)}),s&&Cs(s,i).forEach(c=>{if(!o.has(c))return;const v=ye(o.get(c));v.delete(a),v.size===0&&o.delete(c)})})}function DE(e,t,n){var r,o,i,a;const s=t.getState();!(n===s.currentTree.version||n===((r=s.nextTree)===null||r===void 0?void 0:r.version)||n===((o=s.previousTree)===null||o===void 0?void 0:o.version));const u=t.getGraph(n);if(Wc(e,u),n===((i=s.previousTree)===null||i===void 0?void 0:i.version)){const c=t.getGraph(s.currentTree.version);Wc(e,c,u)}if(n===((a=s.previousTree)===null||a===void 0?void 0:a.version)||n===s.currentTree.version){var l;const c=(l=s.nextTree)===null||l===void 0?void 0:l.version;if(c!==void 0){const v=t.getGraph(c);Wc(e,v,u)}}}function FE(e,t){e.forEach((n,r)=>{t.has(r)||t.set(r,new Set);const o=ye(t.get(r));n.forEach(i=>o.add(i))})}function IE(e,t,n){n.has(e)||n.set(e,new Set),ye(n.get(e)).add(t)}var bi={addToDependencyMap:IE,cloneGraph:ME,graph:AE,mergeDepsIntoDependencyMap:FE,saveDependencyMapToStore:DE};const{persistentMap:eg}=PE,{graph:$E}=bi;let UE=0;const tg=()=>UE++;function ng(){const e=tg();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:eg(),nonvalidatedAtoms:eg()}}function jE(){const e=ng();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,$E()),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var rg={makeEmptyTreeState:ng,makeEmptyStoreState:jE,getNextTreeStateVersion:tg};function VE(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var BE=VE;function zE(e,t){const n=new Set(e);return n.add(t),n}function WE(e,t){const n=new Set(e);return n.delete(t),n}function HE(e,t,n){const r=new Map(e);return r.set(t,n),r}function qE(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function QE(e,t){const n=new Map(e);return n.delete(t),n}function KE(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var og={setByAddingToSet:zE,setByDeletingFromSet:WE,mapBySettingInMap:HE,mapByUpdatingInMap:qE,mapByDeletingFromMap:QE,mapByDeletingMultipleFromMap:KE};function*GE(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ig=GE;class ag{}function XE(){return new ag}var ks={RetentionZone:ag,retentionZone:XE};const{setByAddingToSet:YE}=og,{getNode:Ts,getNodeMaybe:ZE,recoilValuesForKeys:sg}=Je,{RetentionZone:ug}=ks,JE=Object.freeze(new Set);class eR extends Error{}function tR(e,t,n){if(!Se("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof ug)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!Se("recoil_memory_managament_2020"))return;const i=e.getState().retention.nodesRetainedByZone;function a(s){const u=i.get(s);u&&u.delete(t),u&&u.size===0&&i.delete(s)}if(n instanceof ug)a(n);else if(Array.isArray(n))for(const s of n)a(s)}}function Hc(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=Ts(n),a=tR(e,n,i.retainedBy),s=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{s(),a()})}function nR(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function rR(e,t,n){return Hc(e,t,n,"get"),Ts(n).get(e,t)}function lg(e,t,n){return Ts(n).peek(e,t)}function oR(e,t,n){var r;const o=ZE(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),tt(He({},e),{atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:YE(e.dirtyAtoms,t)})}function iR(e,t,n,r){const o=Ts(n);if(o.set==null)throw new eR(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return Hc(e,t,n,"set"),i(e,t,r)}function aR(e,t,n){var r,o,i;const a=e.getState(),s=e.getGraph(t.version),u=a.knownAtoms.has(n)?"atom":a.knownSelectors.has(n)?"selector":void 0,l=ig(cg(e,t,new Set([n])),c=>c!==n);return{loadable:lg(e,t,n),isActive:a.knownAtoms.has(n)||a.knownSelectors.has(n),isSet:u==="selector"?!1:t.atomValues.has(n),isModified:t.dirtyAtoms.has(n),type:u,deps:sg((r=s.nodeDeps.get(n))!==null&&r!==void 0?r:[]),subscribers:{nodes:sg(l),components:Qm((o=(i=a.nodeToComponentSubscriptions.get(n))===null||i===void 0?void 0:i.values())!==null&&o!==void 0?o:[],([c])=>({name:c}))}}}function cg(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let s=o.pop();s;s=o.pop()){var a;r.add(s);const u=(a=i.nodeToNodeSubscriptions.get(s))!==null&&a!==void 0?a:JE;for(const l of u)r.has(l)||o.push(l)}return r}var or={getNodeLoadable:rR,peekNodeLoadable:lg,setNodeValue:iR,cleanUpNode:nR,setUnvalidatedAtomValue_DEPRECATED:oR,peekNodeInfo:aR,getDownstreamNodes:cg,initializeNodeIfNewToStore:Hc};const{getDownstreamNodes:sR,getNodeLoadable:fg,setNodeValue:uR}=or,{getNodeMaybe:dg}=Je,{DefaultValue:qc,RecoilValueNotReady:lR}=Je,{AbstractRecoilValue:cR,RecoilState:fR,RecoilValueReadOnly:dR,isRecoilValue:pR}=nr;function hR(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();!(n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||n.version===((o=i.previousTree)===null||o===void 0?void 0:o.version));const a=fg(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function vR(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof qc?n.delete(o):n.set(o,r)}),n}function mR(e,t,{key:n},r){if(typeof r=="function"){const o=fg(e,t,n);if(o.state==="loading")throw new lR(n);if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function gR(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=mR(e,t,o,i),s=uR(e,t,o.key,a);for(const[u,l]of s.entries())Qc(t,u,l)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;Qc(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,a=dg(o);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else Km(`Unknown action ${n.type}`)}function Qc(e,t,n){n.state==="hasValue"&&n.contents instanceof qc?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function pg(e,t){e.replaceState(n=>{const r=hg(n);for(const o of t)gR(e,r,o);return Kc(e,r),r})}function Ps(e,t){if(Ei.length){const n=Ei[Ei.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else pg(e,[t])}const Ei=[];function yR(){const e=new Map;return Ei.push(e),()=>{for(const[t,n]of e)pg(t,n);Ei.pop()}}function hg(e){return tt(He({},e),{atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)})}function Kc(e,t){const n=sR(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=dg(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function vg(e,t,n){Ps(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function wR(e,t,n){if(n instanceof qc)return vg(e,t,n);Ps(e,{type:"setLoadable",recoilValue:t,loadable:n})}function SR(e,t){Ps(e,{type:"markModified",recoilValue:t})}function _R(e,t,n){Ps(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}let bR=0;function ER(e,{key:t},n,r=null){const o=bR++,i=e.getState();if(i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),ye(i.nodeToComponentSubscriptions.get(t)).set(o,[r!=null?r:"",n]),Se("recoil_early_rendering_2021")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&n(a)}return{release:()=>{const a=e.getState(),s=a.nodeToComponentSubscriptions.get(t);s===void 0||!s.has(o)||(s.delete(o),s.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}var Zt={RecoilValueReadOnly:dR,AbstractRecoilValue:cR,RecoilState:fR,getRecoilValueAsLoadable:hR,setRecoilValue:vg,setRecoilValueLoadable:wR,markRecoilValueModified:SR,setUnvalidatedRecoilValue:_R,subscribeToRecoilValue:ER,isRecoilValue:pR,applyAtomValueWrites:vR,batchStart:yR,writeLoadableToTreeState:Qc,invalidateDownstreams:Kc,copyTreeState:hg,invalidateDownstreams_FOR_TESTING:Kc};function RR(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var OR=RR;const{cleanUpNode:CR}=or,{deleteNodeConfigIfPossible:xR,getNode:mg}=Je,{RetentionZone:gg}=ks,kR=12e4,yg=new Set;function wg(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const a of t)if(a instanceof gg)for(const s of NR(n,a))o.add(s);else o.add(a);const i=TR(e,o);for(const a of i)LR(e,r,a)}function TR(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return s(t),i;function s(u){const l=new Set,c=PR(e,r,u,i,a);for(const y of c){var v;if(mg(y).retainedBy==="recoilRoot"){a.add(y);continue}if(((v=n.retention.referenceCounts.get(y))!==null&&v!==void 0?v:0)>0){a.add(y);continue}if(Sg(y).some(p=>n.retention.referenceCounts.get(p))){a.add(y);continue}const _=o.nodeToNodeSubscriptions.get(y);if(_&&OR(_,p=>a.has(p))){a.add(y);continue}i.add(y),l.add(y)}const d=new Set;for(const y of l)for(const _ of(m=o.nodeDeps.get(y))!==null&&m!==void 0?m:yg){var m;i.has(_)||d.add(_)}d.size&&s(d)}}function PR(e,t,n,r,o){const i=e.getGraph(t.version),a=[],s=new Set;for(;n.size>0;)u(ye(n.values().next().value));return a;function u(l){if(r.has(l)||o.has(l)){n.delete(l);return}if(s.has(l))return;const c=i.nodeToNodeSubscriptions.get(l);if(c)for(const v of c)u(v);s.add(l),n.delete(l),a.push(l)}}function LR(e,t,n){if(!Se("recoil_memory_managament_2020"))return;CR(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=Sg(n);for(const u of o){var i;(i=r.retention.nodesRetainedByZone.get(u))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const u=a.nodeDeps.get(n);if(u!==void 0){a.nodeDeps.delete(n);for(const l of u){var s;(s=a.nodeToNodeSubscriptions.get(l))===null||s===void 0||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}xR(n)}function NR(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:yg}function Sg(e){const t=mg(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof gg?[t]:t}function AR(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):wg(e,new Set([t]))}function MR(e,t,n){var r;if(!Se("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?_g(e,t):o.set(t,i)}function _g(e,t){if(!Se("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),AR(e,t)}function DR(e){if(!Se("recoil_memory_managament_2020"))return;const t=e.getState();wg(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function FR(e){return e===void 0?"recoilRoot":e}var ir={SUSPENSE_TIMEOUT_MS:kR,updateRetainCount:MR,updateRetainCountToZero:_g,releaseScheduledRetainablesNow:DR,retainedByOptionWithDefault:FR};function*IR(e){for(const t of e)for(const n of t)yield n}var $R=IR;const UR=typeof window=="undefined",jR=typeof navigator!="undefined"&&navigator.product==="ReactNative";var Gc={isSSR:UR,isReactNative:jR};const{unstable_batchedUpdates:VR}=Zv;var BR={unstable_batchedUpdates:VR};const{unstable_batchedUpdates:zR}=BR;var WR={unstable_batchedUpdates:zR};const{batchStart:HR}=Zt,{unstable_batchedUpdates:qR}=WR;let Xc=qR;const QR=e=>{Xc=e},KR=()=>Xc,GR=e=>{Xc(()=>{let t=()=>{};try{t=HR(),e()}finally{t()}})};var Ls={getBatcher:KR,setBatcher:QR,batchUpdates:GR};const{isSSR:XR}=Gc,{batchUpdates:Yc}=Ls,{initializeNodeIfNewToStore:YR,peekNodeInfo:ZR}=or,{graph:JR}=bi,{DEFAULT_VALUE:eO,recoilValues:bg,recoilValuesForKeys:Eg}=Je,{AbstractRecoilValue:tO,getRecoilValueAsLoadable:nO,setRecoilValue:Rg,setUnvalidatedRecoilValue:rO}=Zt,{updateRetainCount:Ns}=ir,{getNextTreeStateVersion:oO,makeEmptyStoreState:iO}=rg;class As{constructor(t){ue(this,"_store",void 0),ue(this,"_refCount",0),ue(this,"getLoadable",n=>(this.checkRefCount_INTERNAL(),nO(this._store,n))),ue(this,"getPromise",n=>(this.checkRefCount_INTERNAL(),this.getLoadable(n).toPromise())),ue(this,"getNodes_UNSTABLE",n=>{if(this.checkRefCount_INTERNAL(),(n==null?void 0:n.isModified)===!0){if((n==null?void 0:n.isInitialized)===!1)return[];const i=this._store.getState().currentTree;return Eg(i.dirtyAtoms)}const r=this._store.getState().knownAtoms,o=this._store.getState().knownSelectors;return(n==null?void 0:n.isInitialized)==null?bg.values():n.isInitialized===!0?Eg($R([this._store.getState().knownAtoms,this._store.getState().knownSelectors])):ig(bg.values(),({key:i})=>!r.has(i)&&!o.has(i))}),ue(this,"getInfo_UNSTABLE",({key:n})=>(this.checkRefCount_INTERNAL(),ZR(this._store,this._store.getState().currentTree,n))),ue(this,"map",n=>{this.checkRefCount_INTERNAL();const r=new Jc(this,Yc);return n(r),Zc(r.getStore_INTERNAL())}),ue(this,"asyncMap",async n=>{this.checkRefCount_INTERNAL();const r=new Jc(this,Yc);return await n(r),Zc(r.getStore_INTERNAL())}),this._store={getState:()=>t,replaceState:n=>{t.currentTree=n(t.currentTree)},getGraph:n=>{const r=t.graphsByVersion;if(r.has(n))return ye(r.get(n));const o=JR();return r.set(n,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw de("Cannot subscribe to Snapshots")}};for(const n of this._store.getState().nodeCleanupFunctions.keys())YR(this._store,t.currentTree,n,"get"),Ns(this._store,n,1);this.retain(),this.autorelease_INTERNAL()}retain(){if(!Se("recoil_memory_managament_2020"))return()=>{};this._refCount++;let t=!1;return()=>{t||(t=!0,this.release_INTERNAL())}}autorelease_INTERNAL(){!Se("recoil_memory_managament_2020")||XR||window.setTimeout(()=>this.release_INTERNAL(),0)}release_INTERNAL(){!Se("recoil_memory_managament_2020")||(this._refCount--,this._refCount===0)}checkRefCount_INTERNAL(){Se("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this.getID_INTERNAL()}getID_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}}function Og(e,t,n=!1){const r=e.getState(),o=n?oO():t.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:He({},t.transactionMetadata),dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()}:t,commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}function aO(e){const t=new As(iO());return e!=null?t.map(e):t}function Zc(e,t="current"){const n=e.getState(),r=t==="current"?n.currentTree:ye(n.previousTree);return new As(Og(e,r))}class Jc extends As{constructor(t,n){super(Og(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0));ue(this,"_batch",void 0),ue(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{Ns(i,r.key,1),Rg(this.getStore_INTERNAL(),r,o)})}),ue(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{Ns(o,r.key,1),Rg(this.getStore_INTERNAL(),r,eO)})}),ue(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();Yc(()=>{for(const[i,a]of r.entries())Ns(o,i,1),rO(o,new tO(i),a)})}),this._batch=n}}var Ms={Snapshot:As,MutableSnapshot:Jc,freshSnapshot:aO,cloneSnapshot:Zc},sO=Ms.Snapshot,uO=Ms.MutableSnapshot,lO=Ms.freshSnapshot,cO=Ms.cloneSnapshot,Ri=Object.freeze({__proto__:null,Snapshot:sO,MutableSnapshot:uO,freshSnapshot:lO,cloneSnapshot:cO});const{getNextTreeStateVersion:fO,makeEmptyStoreState:Cg}=rg,{cleanUpNode:dO,getDownstreamNodes:pO,setNodeValue:hO,setUnvalidatedAtomValue_DEPRECATED:vO}=or,{graph:mO}=bi,{cloneGraph:gO}=bi,{applyAtomValueWrites:yO}=Zt,{releaseScheduledRetainablesNow:xg}=ir,{freshSnapshot:wO}=Ri,{useCallback:SO,useContext:kg,useEffect:ef,useMemo:_O,useRef:tf,useState:bO}=B;function Oi(){throw de("This component must be used inside a component.")}const Tg=Object.freeze({getState:Oi,replaceState:Oi,getGraph:Oi,subscribeToTransactions:Oi,addTransactionMetadata:Oi});let nf=!1;function Pg(e){if(nf)throw de("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){Se("recoil_memory_managament_2020")&&Se("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&xg(e);const n=t.currentTree.version,r=fO();t.nextTree=tt(He({},t.currentTree),{version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}}),t.graphsByVersion.set(r,gO(ye(t.graphsByVersion.get(n))))}}const Lg=B.createContext({current:Tg}),rf=()=>kg(Lg),Ng=B.createContext(null);function EO(){return kg(Ng)}function of(e,t,n){const r=pO(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[a,[s,u]]of i)u(n)}}function Ag(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[a,s]of i)s(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!Se("recoil_early_rendering_2021")||t.suspendedComponentResolvers.size)&&(of(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function RO(e){const t=e.current.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n===null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Ag(e.current),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Km("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Se("recoil_memory_managament_2020")&&xg(e.current)}finally{t.commitDepth--}}function OO({setNotifyBatcherOfChange:e}){const t=rf(),[n,r]=bO([]);return e(()=>r({})),ef(()=>{RE.enqueueExecution("Batcher",()=>{RO(t)})}),ef(()=>()=>{e(()=>{})},[e]),null}function CO(e,t){const n=Cg();return t({set:(r,o)=>{const i=n.currentTree,a=hO(e,i,r.key,o),s=new Set(a.keys()),u=i.nonvalidatedAtoms.clone();for(const l of s)u.delete(l);n.currentTree=tt(He({},i),{dirtyAtoms:BE(i.dirtyAtoms,s),atomValues:yO(i.atomValues,a),nonvalidatedAtoms:u})},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=vO(n.currentTree,i,o)})}}),n}function xO(e){return wO().map(e).getStore_INTERNAL().getState()}let Mg=0;function kO({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){var o;let i;const a=p=>{const f=i.current.graphsByVersion;if(f.has(p))return ye(f.get(p));const h=mO();return f.set(p,h),h},s=(p,f)=>{if(f==null){const{transactionSubscriptions:h}=y.current.getState(),g=Mg++;return h.set(g,p),{release:()=>{h.delete(g)}}}else{const{nodeTransactionSubscriptions:h}=y.current.getState();h.has(f)||h.set(f,new Map);const g=Mg++;return ye(h.get(f)).set(g,p),{release:()=>{const w=h.get(f);w&&(w.delete(g),w.size===0&&h.delete(f))}}}},u=p=>{Pg(y.current);for(const f of Object.keys(p))ye(y.current.getState().nextTree).transactionMetadata[f]=p[f]},l=p=>{const f=y.current.getState();Pg(y.current);const h=ye(f.nextTree);let g;try{nf=!0,g=p(h)}finally{nf=!1}g!==h&&(f.nextTree=g,Se("recoil_early_rendering_2021")&&of(m,f,g),ye(c.current)())},c=tf(null),v=SO(p=>{c.current=p},[c]),d=(o=B.createMutableSource)!==null&&o!==void 0?o:B.unstable_createMutableSource,m=n!=null?n:{getState:()=>i.current,replaceState:l,getGraph:a,subscribeToTransactions:s,addTransactionMetadata:u},y=tf(m);i=tf(e!=null?CO(m,e):t!=null?xO(t):Cg());const _=_O(()=>d?d(i,()=>i.current.currentTree.version):null,[d,i]);return ef(()=>()=>{for(const p of y.current.getState().knownAtoms)dO(y.current,p)},[]),B.createElement(Lg.Provider,{value:y},B.createElement(Ng.Provider,{value:_},B.createElement(OO,{setNotifyBatcherOfChange:v}),r))}function TO(e){const o=e,{override:t}=o,n=ji(o,["override"]),r=rf();return t===!1&&r.current!==Tg?e.children:B.createElement(kO,n)}var Jt={useStoreRef:rf,useRecoilMutableSource:EO,RecoilRoot:TO,notifyComponents_FOR_TESTING:of,sendEndOfBatchNotifications_FOR_TESTING:Ag};const{useRef:PO}=B;function LO(){return PO(),""}var af=LO;function NO(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var Dg=FO;const{useStoreRef:IO}=Jt,{SUSPENSE_TIMEOUT_MS:$O}=ir,{updateRetainCount:Ci}=ir,{RetentionZone:UO}=ks,{isSSR:Fg}=Gc,{useEffect:jO,useRef:VO}=B;function BO(e){if(!!Se("recoil_memory_managament_2020"))return zO(e)}function zO(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof UO?a:a.key),r=IO();jO(()=>{if(!Se("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!Fg)window.clearTimeout(o.current),o.current=null;else for(const s of n)Ci(a,s,1);return()=>{for(const s of n)Ci(a,s,-1)}},[r,...n]);const o=VO(),i=Dg(n);if(!Fg&&(i===void 0||!AO(i,n))){const a=r.current;for(const s of n)Ci(a,s,1);if(i)for(const s of i)Ci(a,s,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const s of n)Ci(a,s,-1)},$O)}}var Ig=BO;const{batchUpdates:WO}=Ls,{DEFAULT_VALUE:$g}=Je,{useRecoilMutableSource:HO,useStoreRef:ar}=Jt,{AbstractRecoilValue:Ug,getRecoilValueAsLoadable:xi,setRecoilValue:Ds,setUnvalidatedRecoilValue:qO,subscribeToRecoilValue:sf}=Zt,{setByAddingToSet:QO}=og,{mutableSourceExists:KO,useMutableSource:GO}=qm,{useCallback:Zr,useEffect:ki,useMemo:XO,useRef:Ti,useState:jg}=B;function Vg(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{n.current.getState().suspendedComponentResolvers.add(o)}):e.state==="hasError"?e.contents:de(`Invalid value of loadable atom "${t.key}"`)}function YO(){const e=ar(),[,t]=jg([]),n=Ti(new Set);n.current=new Set;const r=Ti(new Set),o=Ti(new Map),i=Zr(s=>{const u=o.current.get(s);u&&(u.release(),o.current.delete(s))},[o]),a=af();return ki(()=>{const s=e.current;function u(l,c){!o.current.has(c)||t([])}Cs(n.current,r.current).forEach(l=>{if(o.current.has(l))return;const c=sf(s,new Ug(l),d=>{u(d,l)},a);o.current.set(l,c),s.getState().nextTree?s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(s.getState(),l)}):u(s.getState(),l)}),Cs(r.current,n.current).forEach(l=>{i(l)}),r.current=n.current}),ki(()=>{const s=o.current;return()=>s.forEach((u,l)=>i(l))},[i]),XO(()=>{function s(m){return y=>{Ds(e.current,m,y)}}function u(m){return()=>Ds(e.current,m,$g)}function l(m){var y;n.current.has(m.key)||(n.current=QO(n.current,m.key));const _=e.current.getState();return xi(e.current,m,Se("recoil_early_rendering_2021")&&(y=_.nextTree)!==null&&y!==void 0?y:_.currentTree)}function c(m){const y=l(m);return Vg(y,m,e)}function v(m){return[c(m),s(m)]}function d(m){return[l(m),s(m)]}return{getRecoilValue:c,getRecoilValueLoadable:l,getRecoilState:v,getRecoilStateLoadable:d,getSetRecoilState:s,getResetRecoilState:u}},[n,e])}const ZO={current:0};function JO(e){const t=ar(),n=Zr(()=>{var l;const c=t.current,v=c.getState(),d=Se("recoil_early_rendering_2021")&&(l=v.nextTree)!==null&&l!==void 0?l:v.currentTree;return xi(c,e,d)},[t,e]),r=Zr(()=>n(),[n]),o=af(),i=Zr((l,c)=>{const v=t.current;return sf(v,e,()=>{if(!Se("recoil_suppress_rerender_in_callback"))return c();const m=n();u.current.is(m)||c(),u.current=m},o).release},[t,e,o,n]),a=HO(),s=GO(a,r,i),u=Ti(s);return ki(()=>{u.current=s}),s}function e2(e){const t=ar(),[n,r]=jg([]),o=af();ki(()=>{const s=t.current,u=s.getState(),l=sf(s,e,v=>{var d;if(!Se("recoil_suppress_rerender_in_callback"))return r([]);const m=xi(s,e,s.getState().currentTree);((d=a.current)===null||d===void 0?void 0:d.is(m))||r(m),a.current=m},o);if(u.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,r([])});else{var c;if(!Se("recoil_suppress_rerender_in_callback"))return r([]);const v=xi(s,e,s.getState().currentTree);((c=a.current)===null||c===void 0?void 0:c.is(v))||r(v),a.current=v}return l.release},[o,e,t]);const i=xi(t.current,e),a=Ti(i);return ki(()=>{a.current=i}),i}function uf(e){return Se("recoil_memory_managament_2020")&&Ig(e),KO()?JO(e):e2(e)}function Bg(e){const t=ar(),n=uf(e);return Vg(n,e,t)}function lf(e){const t=ar();return Zr(n=>{Ds(t.current,e,n)},[t,e])}function t2(e){const t=ar();return Zr(()=>{Ds(t.current,e,$g)},[t,e])}function n2(e){return[Bg(e),lf(e)]}function r2(e){return[uf(e),lf(e)]}function o2(){const e=ar();return(t,n={})=>{WO(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>qO(e.current,new Ug(o),r))})}}var i2={recoilComponentGetRecoilValueCount_FOR_TESTING:ZO,useRecoilInterface:YO,useRecoilState:n2,useRecoilStateLoadable:r2,useRecoilValue:Bg,useRecoilValueLoadable:uf,useResetRecoilState:t2,useSetRecoilState:lf,useSetUnvalidatedAtomValues:o2};function a2(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var s2=a2;function u2(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var l2=u2;function c2(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function qg(e){const t=e.atomValues.toMap(),n=xs(s2(t,(r,o)=>{const a=zg(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return f2(e.nonvalidatedAtoms.toMap(),n)}function S2(e){$s(Is(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=qg(r),i=qg(n),a=xs(h2,u=>{var l,c,v,d;return{persistence_UNSTABLE:{type:(l=(c=u.persistence_UNSTABLE)===null||c===void 0?void 0:c.type)!==null&&l!==void 0?l:"none",backButton:(v=(d=u.persistence_UNSTABLE)===null||d===void 0?void 0:d.backButton)!==null&&v!==void 0?v:!1}}}),s=l2(r.dirtyAtoms,u=>o.has(u)||i.has(u));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:s,transactionMetadata:He({},r.transactionMetadata)})},[e]))}function _2(e){$s(Is(t=>{const n=Fs(t,"current"),r=Fs(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function b2(){const e=cf(),[t,n]=w2(()=>Fs(e.current)),r=Dg(t),o=y2();return Hg(()=>(o.current&&!Wg&&window.clearTimeout(o.current),t.retain()),[t]),$s(Is(i=>n(Fs(i)),[])),r!==t&&!Wg&&(o.current&&(r==null||r.release_INTERNAL(),window.clearTimeout(o.current)),t.retain(),o.current=window.setTimeout(()=>{t.release_INTERNAL(),o.current=null},g2)),t}function E2(){const e=cf();return Is(t=>{var n;const r=e.current.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;d2(()=>{const a=new Set;for(const l of[o.atomValues.keys(),i.atomValues.keys()])for(const c of l){var s,u;((s=o.atomValues.get(c))===null||s===void 0?void 0:s.contents)!==((u=i.atomValues.get(c))===null||u===void 0?void 0:u.contents)&&zg(c).shouldRestoreFromSnapshots&&a.add(c)}a.forEach(l=>{m2(e.current,new v2(l),i.atomValues.has(l)?ye(i.atomValues.get(l)):p2)}),e.current.replaceState(l=>tt(He({},l),{stateID:t.getID_INTERNAL()}))})},[e])}var Qg={useRecoilSnapshot:b2,useGotoRecoilSnapshot:E2,useRecoilTransactionObserver:_2,useTransactionObservation_DEPRECATED:S2,useTransactionSubscription_DEPRECATED:$s};const{peekNodeInfo:R2}=or,{useStoreRef:O2}=Jt;function C2(){const e=O2();return({key:t})=>R2(e.current,e.current.getState().currentTree,t)}var x2=C2;const{RecoilRoot:k2,useStoreRef:T2}=Jt,{useMemo:P2}=B;function L2(){const e=T2().current;return P2(()=>{function t({children:n}){return B.createElement(k2,{store_INTERNAL:e},n)}return t},[e])}var N2=L2;const{loadableWithValue:A2}=_i,{DEFAULT_VALUE:M2,getNode:D2}=Je,{copyTreeState:F2,getRecoilValueAsLoadable:I2,invalidateDownstreams:$2,writeLoadableToTreeState:U2}=Zt;function Kg(e){return D2(e.key).nodeType==="atom"}class j2{constructor(t,n){ue(this,"_store",void 0),ue(this,"_treeState",void 0),ue(this,"_changes",void 0),ue(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Kg(r))throw de("Reading selectors within atomicUpdate is not supported");const o=I2(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:de(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),ue(this,"set",(r,o)=>{if(!Kg(r))throw de("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else this._changes.set(r.key,o)}),ue(this,"reset",r=>{this.set(r,M2)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=F2(this._treeState);for(const[n,r]of this._changes)U2(t,n,A2(r));return $2(this._store,t),t}}function V2(e){return t=>{e.replaceState(n=>{const r=new j2(e,n);return t(r),r.newTreeState_INTERNAL()})}}var B2={atomicUpdater:V2},z2=B2.atomicUpdater,Gg=Object.freeze({__proto__:null,atomicUpdater:z2});function W2(e,t){if(!e)throw new Error(t)}var H2=W2,Us=H2;const{atomicUpdater:q2}=Gg,{batchUpdates:Q2}=Ls,{DEFAULT_VALUE:K2}=Je,{useStoreRef:G2}=Jt,{setRecoilValue:Xg}=Zt,{Snapshot:YT,cloneSnapshot:X2}=Ri,{useGotoRecoilSnapshot:Y2}=Qg,{useCallback:Z2}=B;class Yg{}const J2=new Yg;function eC(e,t){const n=G2(),r=Y2();return Z2((...o)=>{function i(c,v){Xg(n.current,c,v)}function a(c){Xg(n.current,c,K2)}const s=X2(n.current),u=q2(n.current);let l=J2;return Q2(()=>{const c="useRecoilCallback expects a function that returns a function: it accepts a function of the type (RecoilInterface) => T = R and returns a callback function T => R, where RecoilInterface is an object {snapshot, set, ...} and T and R are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof e!="function")throw de(c);const v=e({set:i,reset:a,snapshot:s,gotoSnapshot:r,transact_UNSTABLE:u});if(typeof v!="function")throw de(c);l=v(...o)}),l instanceof Yg&&Us(!1),l},t!=null?[...t,n]:void 0)}var tC=eC;const{getNode:nC}=Je,{useStoreRef:rC}=Jt,{useCallback:oC}=B;function iC(e){const t=rC();return oC(()=>{var n;const r=t.current,{currentTree:o}=r.getState(),i=nC(e.key);(n=i.clearCache)===null||n===void 0||n.call(i,r,o)},[e,t])}var aC=iC;const{atomicUpdater:sC}=Gg,{useStoreRef:uC}=Jt,{useMemo:lC}=B;function cC(e,t){const n=uC();return lC(()=>(...r)=>{sC(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var fC=cC;function Pt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw de("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(ke(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>Pt(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return Pt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,a]of e)o[typeof i=="string"?i:Pt(i,t)]=a;return Pt(o,t,n)}return e instanceof Set?Pt(Array.from(e).sort((o,i)=>Pt(o,t).localeCompare(Pt(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Pt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${Pt(o,t)}:${Pt(e[o],t,o)}`).join(",")}}`}function dC(e,t={allowFunctions:!1}){return Pt(e,t)}var js=dC;class pC{constructor(t){var n,r,o;ue(this,"_numLeafs",void 0),ue(this,"_root",void 0),ue(this,"_onHit",void 0),ue(this,"_onSet",void 0),ue(this,"_mapNodeValue",void 0),this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){return Zg(this.root(),r=>this._mapNodeValue(t(r)),{onNodeVisit:r=>{n==null||n.onNodeVisit(r),r.type==="leaf"&&this._onHit(r)}})}set(t,n,r){let o,i=null;const a=()=>{i=ff(this.root(),t.map(([s,u])=>[s,this._mapNodeValue(u)]),null,n,null,{onNodeVisit:s=>{r==null||r.onNodeVisit(s),s.type==="leaf"&&(o=s)}},()=>{this.clear(),a()})};a(),this.root()||(this._root=i),this._numLeafs++,this._onSet(ye(o))}delete(t){if(!this.root())return!1;const n=ye(this.root());return hC(n,t,t.parent)?t===n||n.type==="branch"&&!n.branches.size?(this._root=null,this._numLeafs=0,!0):(this._numLeafs-=ey(t),!0):!1}clear(){this._numLeafs=0,this._root=null}}const Zg=(e,t,n)=>{var r;if(e==null)return;if(n==null||(r=n.onNodeVisit)===null||r===void 0||r.call(n,e),e.type==="leaf")return e;const o=t(e.nodeKey);return Zg(e.branches.get(o),t,n)},ff=(e,t,n,r,o,i,a)=>{var s;let u;if(e==null)if(t.length===0)u={type:"leaf",value:r,parent:n,branchKey:o};else{const[l,...c]=t,[v,d]=l;u={type:"branch",nodeKey:v,parent:n,branches:new Map,branchKey:o},u.branches.set(d,ff(null,c,u,r,d,i,a))}else if(u=e,t.length){const[l,...c]=t,[v,d]=l;if(e.type!=="branch"||e.nodeKey!==v)return a(),u;e.branches.set(d,ff(e.branches.get(d),c,e,r,d,i,a))}return i==null||(s=i.onNodeVisit)===null||s===void 0||s.call(i,u),u},hC=(e,t,n)=>n?(n.branches.delete(t.branchKey),Jg(e,n,n.parent)):e===t,Jg=(e,t,n)=>n?(t.branches.size===0&&n.branches.delete(t.branchKey),Jg(e,n,n.parent)):e===t,ey=e=>e.type==="leaf"?1:Array.from(e.branches.values()).reduce((t,n)=>t+ey(n),0);var vC={TreeCache:pC},mC=vC.TreeCache,ty=Object.freeze({__proto__:null,TreeCache:mC});class gC{constructor(t){var n;ue(this,"_maxSize",void 0),ue(this,"_size",void 0),ue(this,"_head",void 0),ue(this,"_tail",void 0),ue(this,"_map",void 0),ue(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(!!r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),a={key:t,right:i,left:null,value:n};i?i.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ye(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var yC={LRUCache:gC},wC=yC.LRUCache,ny=Object.freeze({__proto__:null,LRUCache:wC});const{LRUCache:SC}=ny,{TreeCache:_C}=ty;function bC(e,t=n=>n){const n=new SC({maxSize:e}),r=new _C({mapNodeValue:t,onHit:o=>{n.set(o,!0)},onSet:o=>{const i=n.tail();n.set(o,!0),i&&r.size()>e&&r.delete(i.key)}});return r}var ry=bC;const{TreeCache:EC}=ty,Vs={equality:"reference",eviction:"keep-all",maxSize:1/0};function RC({equality:e=Vs.equality,eviction:t=Vs.eviction,maxSize:n=Vs.maxSize}=Vs){const r=OC(e);return CC(t,n,r)}function OC(e){switch(e){case"reference":return t=>t;case"value":return t=>js(t)}throw de(`Unrecognized equality policy ${e}`)}function CC(e,t,n){switch(e){case"keep-all":return new EC({mapNodeValue:n});case"lru":return ry(ye(t),n);case"most-recent":return ry(1,n)}throw de(`Unrecognized eviction policy ${e}`)}var xC=RC;function kC(e){return()=>null}var TC={startPerfBlock:kC};const{loadableWithError:Pi,loadableWithPromise:PC,loadableWithValue:df}=_i,{getNodeLoadable:LC,peekNodeLoadable:NC,setNodeValue:AC}=or,{saveDependencyMapToStore:MC}=bi,{DEFAULT_VALUE:DC,RecoilValueNotReady:FC,getConfigDeletionHandler:IC,getNode:$C,registerNode:oy}=Je,{isRecoilValue:UC}=nr,{AbstractRecoilValue:jC}=nr,{markRecoilValueModified:VC,setRecoilValueLoadable:BC}=Zt,{retainedByOptionWithDefault:zC}=ir,{cloneSnapshot:WC}=Ri,{startPerfBlock:HC}=TC;class iy{}const Li=new iy,Ni=[],Bs=new Map,qC=(()=>{let e=0;return()=>e++})();function QC(){return{depValuesDiscoveredSoFarDuringAsyncWork:null,latestLoadable:null,latestExecutionId:null,stateVersion:null}}function KC(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,a=new Set,s=xC(o!=null?o:{equality:"reference",eviction:"keep-all"}),u=zC(e.retainedBy_UNSTABLE),l=new Map;let c=0;function v(){return!Se("recoil_memory_managament_2020")||c>0}function d(T){return l.has(T)||l.set(T,QC()),ye(l.get(T))}function m(T){return c++,T.getState().knownSelectors.add(n),()=>{c--,T.getState().knownSelectors.delete(n),l.delete(T)}}function y(){return IC(n)!==void 0&&!v()}function _(T,M,A){if(M.state==="loading"){let q=Bs.get(A);q==null&&Bs.set(A,q=new Set),q.add(T)}}function p(T,M){const A=Bs.get(M);if(A!==void 0){for(const q of A)BC(q,new jC(n),T);Bs.delete(M)}}function f(T,M,A){const q=T.getState().knownSelectors.has(A);if(q&&M.atomValues.has(A))return ye(M.atomValues.get(A));const z=LC(T,M,A);return z.state!=="loading"&&q&&M.atomValues.set(A,z),z}function h(T,M,A,q,z,ae){return M.then(pe=>{if(!v())throw P(T,z),Li;const we=df(pe);return k(A,F(q),we),x(T,A,new Set(q.keys()),z),w(T,we,z),pe}).catch(pe=>{if(!v())throw P(T,z),Li;if(I(T,z)&&b(q,T,z),ke(pe))return g(T,pe,A,q,z,ae);const we=Pi(pe);throw k(A,F(q),we),x(T,A,new Set(q.keys()),z),w(T,we,z),pe})}function g(T,M,A,q,z,ae){return M.then(pe=>{if(!v())throw P(T,z),Li;ae.loadingDepKey!=null&&ae.loadingDepPromise===M?A.atomValues.set(ae.loadingDepKey,df(pe)):T.getState().knownSelectors.forEach(De=>{A.atomValues.delete(De)});const we=V(T,A);if(we&&we.state==="hasValue")return C(we,T),we.contents;if(!I(T,z)){var Me;const De=ie(A);if((De==null||(Me=De.latestLoadable)===null||Me===void 0?void 0:Me.state)==="loading")return De.latestLoadable.contents}const[Pe,Le]=L(T,A,z);if(I(T,z)&&b(Le,T,z),Pe.state!=="loading"&&(k(A,F(Le),Pe),x(T,A,new Set(Le.keys()),z),w(T,Pe,z)),Pe.state==="hasError")throw Pe.contents;return Pe.contents}).catch(pe=>{if(pe instanceof iy)throw Li;if(!v())throw P(T,z),Li;const we=Pi(pe);throw k(A,F(q),Pi(pe)),x(T,A,new Set(q.keys()),z),w(T,we,z),pe})}function w(T,M,A){I(T,A)&&(C(M,T),p(M,A))}function x(T,M,A,q){var z,ae,pe,we;if(I(T,q)||M.version===((z=T.getState())===null||z===void 0||(ae=z.currentTree)===null||ae===void 0?void 0:ae.version)||M.version===((pe=T.getState())===null||pe===void 0||(we=pe.nextTree)===null||we===void 0?void 0:we.version)){var Me,Pe,Le;MC(new Map([[n,A]]),T,(Me=(Pe=T.getState())===null||Pe===void 0||(Le=Pe.nextTree)===null||Le===void 0?void 0:Le.version)!==null&&Me!==void 0?Me:T.getState().currentTree.version)}}function E(T,M,A,q,z){A.add(q),x(T,M,A,z)}function L(T,M,A){const q=HC(n);let z,ae=!1,pe;const we={loadingDepKey:null,loadingDepPromise:null},Me=new Map,Pe=new Set;x(T,M,Pe,A);function Le(At){const{key:_t}=At;E(T,M,Pe,_t,A);const at=f(T,M,_t);switch(Me.set(_t,at),at.state){case"hasValue":return at.contents;case"hasError":throw at.contents;case"loading":throw we.loadingDepKey=_t,we.loadingDepPromise=at.contents,at.contents}throw de("Invalid Loadable state")}let De=!1;const oo=At=>(..._t)=>{if(!De)throw de("getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can obtain the current Recoil state without a subscription.");const at=WC(T),Ii=At({snapshot:at});if(typeof Ii!="function")throw de("getCallback() expects a function that returns a function.");return Ii(..._t)};try{z=r({get:Le,getCallback:oo}),z=UC(z)?Le(z):z,De=!0,ke(z)?z=h(T,z,M,Me,A,we).finally(q):q()}catch(At){z=At,ke(z)?z=g(T,z,M,Me,A,we).finally(q):(ae=!0,q())}return ae?pe=Pi(z):ke(z)?pe=PC(z):pe=df(z),pe.state!=="loading"&&J(pe.contents),[pe,Me]}function V(T,M){const A=new Set,q=d(T);let z;try{z=s.get(ae=>(typeof ae!="string"&&Us(!1),f(T,M,ae).contents),{onNodeVisit:ae=>{ae.type==="branch"&&ae.nodeKey!==n&&typeof ae.nodeKey=="string"&&(A.add(ae.nodeKey),a.add(ae.nodeKey))}})}catch(ae){throw de(`Problem with cache lookup for selector "${n}": ${ae.message}`)}return z&&x(T,M,A,q.latestExecutionId),z}function F(T){return Array.from(T.entries()).map(([M,A])=>[M,A.contents])}function G(T,M){const A=qC(),[q,z]=L(T,M,A);return C(q,T,z,A,M),U(M,F(z),q),_(T,q,A),q}function Y(T,M){const A=V(T,M);if(A!=null)return C(A,T),A;const q=ie(M);if(q){const z=q;return _(T,ye(z.latestLoadable),ye(z.latestExecutionId)),ye(z.latestLoadable)}return G(T,M)}function ie(T){var M;const[,A]=(M=Array.from(l.entries()).find(([q,z])=>z.latestLoadable!=null&&z.latestExecutionId!=null&&!S(q,T)))!==null&&M!==void 0?M:[];return A}const Z=new Map;function S(T,M){var A,q;const z=d(T),ae=(A=z.depValuesDiscoveredSoFarDuringAsyncWork)!==null&&A!==void 0?A:new Map,pe=Array(((q=Z.get(M.version))!==null&&q!==void 0?q:new Map).entries()),we=Z.has(M.version)&&pe.length===ae.size&&pe.every(([Me,Pe])=>ae.get(Me)===Pe);return ae==null||M.version===z.stateVersion||we?!1:(Z.set(M.version,new Map(ae)),Array.from(ae).some(([Me,Pe])=>f(T,M,Me).contents!==Pe.contents))}function C(T,M,A,q,z){const ae=d(M);T.state==="loading"?(ae.depValuesDiscoveredSoFarDuringAsyncWork=A,ae.latestExecutionId=q,ae.latestLoadable=T,ae.stateVersion=z==null?void 0:z.version):(ae.depValuesDiscoveredSoFarDuringAsyncWork=null,ae.latestExecutionId=null,ae.latestLoadable=null,ae.stateVersion=null)}function U(T,M,A){A.state!=="loading"&&k(T,M,A)}function b(T,M,A){const q=d(M);I(M,A)&&(q.depValuesDiscoveredSoFarDuringAsyncWork=T)}function P(T,M){I(T,M)&&l.delete(T)}function I(T,M){const A=d(T);return M===A.latestExecutionId}function J(T){}function k(T,M,A){T.atomValues.set(n,A);try{s.set(M,A)}catch(q){throw de(`Problem with setting cache for selector "${n}": ${q.message}`)}}function N(T){if(Ni.includes(n)){const M=`Recoil selector has circular dependencies: ${Ni.slice(Ni.indexOf(n)).join(" \u2192 ")}`;return Pi(de(M))}Ni.push(n);try{return T()}finally{Ni.pop()}}function X(T,M){return s.get(q=>{typeof q!="string"&&Us(!1);const z=NC(T,M,q);return z==null?void 0:z.contents})}function le(T,M){return N(()=>Y(T,M))}function he(T){T.atomValues.delete(n)}function Te(T,M){t==null&&Us(!1);for(const q of a){var A;const z=$C(q);(A=z.clearCache)===null||A===void 0||A.call(z,T,M)}he(M),s.clear(),VC(T,t)}return i!=null?t=oy({key:n,nodeType:"selector",peek:X,get:le,set:(M,A,q)=>{let z=!1;const ae=new Map;function pe({key:Le}){if(z)throw de("Recoil: Async selector sets are not currently supported.");const De=f(M,A,Le);if(De.state==="hasValue")return De.contents;throw De.state==="loading"?new FC(Le):De.contents}function we(Le,De){if(z)throw de("Recoil: Async selector sets are not currently supported.");const oo=typeof De=="function"?De(pe(Le)):De;AC(M,A,Le.key,oo).forEach((_t,at)=>ae.set(at,_t))}function Me(Le){we(Le,DC)}const Pe=i({set:we,get:pe,reset:Me},q);if(Pe!==void 0)throw ke(Pe)?de("Recoil: Async selector sets are not currently supported."):de("Recoil: selector set should be a void function.");return z=!0,ae},init:m,invalidate:he,clearCache:Te,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:u}):t=oy({key:n,nodeType:"selector",peek:X,get:le,init:m,invalidate:he,clearCache:Te,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:u})}var zs=KC;const{loadableWithError:ay,loadableWithPromise:pf,loadableWithValue:Jr}=_i,{peekNodeInfo:GC}=or,{DEFAULT_VALUE:sr,DefaultValue:zt,getConfigDeletionHandler:sy,registerNode:XC,setConfigDeletionHandler:YC}=Je,{isRecoilValue:ZC}=nr,{getRecoilValueAsLoadable:JC,markRecoilValueModified:ex,setRecoilValue:uy,setRecoilValueLoadable:tx}=Zt,{retainedByOptionWithDefault:nx}=ir;function rx(e){const{key:t,persistence_UNSTABLE:n}=e,r=nx(e.retainedBy_UNSTABLE);let o=0,i=ke(e.default)?pf(e.default.then(f=>(i=Jr(f),f)).catch(f=>{throw i=ay(f),f})):Jr(e.default);u(e.default);let a;const s=new Map;function u(f){return f}function l(f,h){const g=h.then(w=>{var x,E;return((E=((x=f.getState().nextTree)!==null&&x!==void 0?x:f.getState().currentTree).atomValues.get(t))===null||E===void 0?void 0:E.contents)===g&&uy(f,p,w),w}).catch(w=>{var x,E;throw((E=((x=f.getState().nextTree)!==null&&x!==void 0?x:f.getState().currentTree).atomValues.get(t))===null||E===void 0?void 0:E.contents)===g&&tx(f,p,ay(w)),w});return g}function c(f,h,g){o++;const w=f.getState().knownAtoms.has(t);if(f.getState().knownAtoms.add(t),i.state==="loading"){const G=()=>{var Y;((Y=f.getState().nextTree)!==null&&Y!==void 0?Y:f.getState().currentTree).atomValues.has(t)||ex(f,p)};i.contents.then(G).catch(G)}let x=sr,E=null;if(e.effects_UNSTABLE!=null&&!w){let Y=function(b){if(G&&b.key===t&&!(x instanceof zt)){const P=x;return P instanceof zt?i:ke(P)?pf(P.then(I=>I instanceof zt?i.toPromise():I)):Jr(P)}return JC(f,b)},ie=function(b){return Y(b).toPromise()},Z=function(b){var P;const I=GC(f,(P=f.getState().nextTree)!==null&&P!==void 0?P:f.getState().currentTree,b.key);return G&&b.key===t&&!(x instanceof zt)?tt(He({},I),{isSet:!0,loadable:Y(b)}):I},G=!0;const S=b=>P=>{if(G){const I=x instanceof zt||ke(x)?i.state==="hasValue"?i.contents:sr:x;x=typeof P=="function"?P(I):P,ke(x)&&(x=x.then(J=>(E={effect:b,value:J},J)))}else{if(ke(P))throw de("Setting atoms to async values is not implemented.");typeof P!="function"&&(E={effect:b,value:P}),uy(f,p,typeof P=="function"?I=>{const J=P(I);return E={effect:b,value:J},J}:P)}},C=b=>()=>S(b)(sr),U=b=>P=>{f.subscribeToTransactions(I=>{var J;let{currentTree:k,previousTree:N}=I.getState();N||(N=k);const X=(J=k.atomValues.get(t))!==null&&J!==void 0?J:i;if(X.state==="hasValue"){var le,he,Te,T;const M=X.contents,A=(le=N.atomValues.get(t))!==null&&le!==void 0?le:i,q=A.state==="hasValue"?A.contents:sr;((he=E)===null||he===void 0?void 0:he.effect)!==b||((Te=E)===null||Te===void 0?void 0:Te.value)!==M?P(M,q,!k.atomValues.has(t)):((T=E)===null||T===void 0?void 0:T.effect)===b&&(E=null)}},t)};for(const b of(L=e.effects_UNSTABLE)!==null&&L!==void 0?L:[]){var L;const P=b({node:p,trigger:g,setSelf:S(b),resetSelf:C(b),onSet:U(b),getPromise:ie,getLoadable:Y,getInfo_UNSTABLE:Z});if(P!=null){var V;s.set(f,[...(V=s.get(f))!==null&&V!==void 0?V:[],P])}}G=!1}if(!(x instanceof zt)){var F;const G=u(x),Y=ke(G)?pf(l(f,G)):Jr(G);h.atomValues.set(t,Y),(F=f.getState().nextTree)===null||F===void 0||F.atomValues.set(t,Y)}return()=>{var G;o--,(G=s.get(f))===null||G===void 0||G.forEach(Y=>Y()),s.delete(f),f.getState().knownAtoms.delete(t)}}function v(f,h){var g,w;return(g=(w=h.atomValues.get(t))!==null&&w!==void 0?w:a)!==null&&g!==void 0?g:i}function d(f,h){if(h.atomValues.has(t))return ye(h.atomValues.get(t));if(h.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(n==null)return i;const g=h.nonvalidatedAtoms.get(t),w=n.validator(g,sr);return a=w instanceof zt?i:Jr(w),a}else return i}function m(){a=void 0}function y(f,h,g){if(h.atomValues.has(t)){const w=ye(h.atomValues.get(t));if(w.state==="hasValue"&&g===w.contents)return new Map}else if(!h.nonvalidatedAtoms.has(t)&&g instanceof zt)return new Map;return a=void 0,new Map().set(t,Jr(g))}function _(){return sy(t)!==void 0&&o<=0}const p=XC({key:t,nodeType:"atom",peek:v,get:d,set:y,init:c,invalidate:m,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return p}function ly(e){const r=e,{default:t}=r,n=ji(r,["default"]);return ZC(t)?ox(tt(He({},n),{default:t})):rx(tt(He({},n),{default:t}))}function ox(e){const t=ly(tt(He({},e),{default:sr,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:tt(He({},e.persistence_UNSTABLE),{validator:r=>r instanceof zt?r:ye(e.persistence_UNSTABLE).validator(r,sr)}),effects_UNSTABLE:e.effects_UNSTABLE})),n=zs({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof zt?e.default:o},set:({set:r},o)=>r(t,o),dangerouslyAllowMutability:e.dangerouslyAllowMutability});return YC(n.key,sy(e.key)),n}var cy=ly;class ix{constructor(t){var n;ue(this,"_map",void 0),ue(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var ax={MapCache:ix},sx=ax.MapCache,ux=Object.freeze({__proto__:null,MapCache:sx});const{LRUCache:fy}=ny,{MapCache:lx}=ux,Ws={equality:"reference",eviction:"none",maxSize:1/0};function cx({equality:e=Ws.equality,eviction:t=Ws.eviction,maxSize:n=Ws.maxSize}=Ws){const r=fx(e);return dx(t,n,r)}function fx(e){switch(e){case"reference":return t=>t;case"value":return t=>js(t)}throw de(`Unrecognized equality policy ${e}`)}function dx(e,t,n){switch(e){case"keep-all":return new lx({mapKey:n});case"lru":return new fy({mapKey:n,maxSize:ye(t)});case"most-recent":return new fy({mapKey:n,maxSize:1})}throw de(`Unrecognized eviction policy ${e}`)}var dy=cx;const{setConfigDeletionHandler:px}=Je;function hx(e){var t,n;const r=dy({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;const a=r.get(o);if(a!=null)return a;const c=e,{cachePolicyForParams_UNSTABLE:s}=c,u=ji(c,["cachePolicyForParams_UNSTABLE"]),l=cy(tt(He({},u),{key:`${e.key}__${(i=js(o))!==null&&i!==void 0?i:"void"}`,default:typeof e.default=="function"?e.default(o):e.default,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects_UNSTABLE:typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):e.effects_UNSTABLE}));return r.set(o,l),px(l.key,()=>{r.delete(o)}),l}}var vx=hx;const{setConfigDeletionHandler:mx}=Je;let gx=0;function yx(e){var t,n;const r=dy({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;const a=r.get(o);if(a!=null)return a;const s=`${e.key}__selectorFamily/${(i=js(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${gx++}`,u=d=>e.get(o)(d),l=e.cachePolicy_UNSTABLE,c=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let v;if(e.set!=null){const d=e.set;v=zs({key:s,get:u,set:(y,_)=>d(o)(y,_),cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else v=zs({key:s,get:u,cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return r.set(o,v),mx(v.key,()=>{r.delete(o)}),v}}var Ln=yx;const wx=Ln({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Sx(e){return wx(e)}var _x=Sx;const bx=Ln({key:"__error",get:e=>()=>{throw de(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ex(e){return bx(e)}var Rx=Ex;function Ox(e){return e}var Cx=Ox;const{loadableWithError:py,loadableWithPromise:hy,loadableWithValue:vy}=_i;function Hs(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(a){r[o]=a}return[n,r]}function xx(e){return e!=null&&!ke(e)}function qs(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function hf(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>tt(He({},n),{[r]:t[o]}),{})}function eo(e,t,n){const r=n.map((o,i)=>o==null?vy(t[i]):ke(o)?hy(o):py(o));return hf(e,r)}function kx(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Tx=Ln({key:"__waitForNone",get:e=>({get:t})=>{const n=qs(e),[r,o]=Hs(t,n);return eo(e,r,o)},dangerouslyAllowMutability:!0}),Px=Ln({key:"__waitForAny",get:e=>({get:t})=>{const n=qs(e),[r,o]=Hs(t,n);return o.some(i=>!ke(i))?eo(e,r,o):new Promise(i=>{for(const[a,s]of o.entries())ke(s)&&s.then(u=>{r[a]=u,o[a]=void 0,i(eo(e,r,o))}).catch(u=>{o[a]=u,i(eo(e,r,o))})})},dangerouslyAllowMutability:!0}),Lx=Ln({key:"__waitForAll",get:e=>({get:t})=>{const n=qs(e),[r,o]=Hs(t,n);if(o.every(a=>a==null))return hf(e,r);const i=o.find(xx);if(i!=null)throw i;return Promise.all(o).then(a=>hf(e,kx(r,a)))},dangerouslyAllowMutability:!0}),Nx=Ln({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=qs(e),[r,o]=Hs(t,n);return o.every(i=>!ke(i))?eo(e,r,o):Promise.all(o.map((i,a)=>ke(i)?i.then(s=>{r[a]=s,o[a]=void 0}).catch(s=>{r[a]=void 0,o[a]=s}):null)).then(()=>eo(e,r,o))},dangerouslyAllowMutability:!0}),Ax=Ln({key:"__noWait",get:e=>({get:t})=>{try{return vy(t(e))}catch(n){return ke(n)?hy(n):py(n)}},dangerouslyAllowMutability:!0});var Mx={waitForNone:Tx,waitForAny:Px,waitForAll:Lx,waitForAllSettled:Nx,noWait:Ax};const{RecoilLoadable:Dx}=_i,{DefaultValue:Fx}=Je,{RecoilRoot:Ix}=Jt,{isRecoilValue:$x}=nr,{retentionZone:Ux}=ks,{freshSnapshot:jx}=Ri,{useRecoilState:Vx,useRecoilStateLoadable:Bx,useRecoilValue:zx,useRecoilValueLoadable:Wx,useResetRecoilState:Hx,useSetRecoilState:qx,useSetUnvalidatedAtomValues:Qx}=i2,{useGotoRecoilSnapshot:Kx,useRecoilSnapshot:Gx,useRecoilTransactionObserver:Xx,useTransactionObservation_DEPRECATED:Yx}=Qg,{noWait:Zx,waitForAll:Jx,waitForAllSettled:ek,waitForAny:tk,waitForNone:nk}=Mx;var vf={DefaultValue:Fx,isRecoilValue:$x,RecoilLoadable:Dx,RecoilRoot:Ix,useRecoilBridgeAcrossReactRoots_UNSTABLE:N2,atom:cy,selector:zs,atomFamily:vx,selectorFamily:Ln,constSelector:_x,errorSelector:Rx,readOnlySelector:Cx,noWait:Zx,waitForNone:nk,waitForAny:tk,waitForAll:Jx,waitForAllSettled:ek,useRecoilValue:zx,useRecoilValueLoadable:Wx,useRecoilState:Vx,useRecoilStateLoadable:Bx,useSetRecoilState:qx,useResetRecoilState:Hx,useGetRecoilValueInfo_UNSTABLE:x2,useRecoilRefresher_UNSTABLE:aC,useRecoilCallback:tC,useRecoilTransaction_UNSTABLE:fC,useGotoRecoilSnapshot:Kx,useRecoilSnapshot:Gx,useRecoilTransactionObserver_UNSTABLE:Xx,useTransactionObservation_UNSTABLE:Yx,useSetUnvalidatedAtomValues_UNSTABLE:Qx,snapshot_UNSTABLE:jx,useRetain:Ig,retentionZone:Ux},ZT=vf.RecoilRoot,JT=vf.atom,eP=vf.useRecoilState;function mf(){return mf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var gf=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=rk(e,["color","size"]);return B.createElement("svg",mf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("polyline",{points:"6 9 12 15 18 9"}))});gf.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};gf.displayName="ChevronDown";var tP=gf;function yf(){return yf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function ak(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var wf=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=ik(e,["color","size"]);return B.createElement("svg",yf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),B.createElement("line",{x1:"1",y1:"1",x2:"23",y2:"23"}))});wf.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};wf.displayName="EyeOff";var nP=wf;function Sf(){return Sf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function uk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var _f=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=sk(e,["color","size"]);return B.createElement("svg",Sf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),B.createElement("circle",{cx:"12",cy:"12",r:"3"}))});_f.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};_f.displayName="Eye";var rP=_f;function bf(){return bf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function ck(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Ef=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=lk(e,["color","size"]);return B.createElement("svg",bf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"}))});Ef.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};Ef.displayName="GitHub";var oP=Ef;function Rf(){return Rf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function dk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Of=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=fk(e,["color","size"]);return B.createElement("svg",Rf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("circle",{cx:"12",cy:"12",r:"10"}),B.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),B.createElement("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))});Of.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};Of.displayName="Info";var iP=Of;function Cf(){return Cf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function hk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var xf=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=pk(e,["color","size"]);return B.createElement("svg",Cf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),B.createElement("polyline",{points:"16 17 21 12 16 7"}),B.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"}))});xf.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};xf.displayName="LogOut";var aP=xf;function kf(){return kf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function mk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Tf=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=vk(e,["color","size"]);return B.createElement("svg",kf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),B.createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))});Tf.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};Tf.displayName="Pause";var sP=Tf;function Pf(){return Pf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function yk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Lf=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=gk(e,["color","size"]);return B.createElement("svg",Pf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("polygon",{points:"5 3 19 12 5 21 5 3"}))});Lf.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};Lf.displayName="Play";var uP=Lf;function Nf(){return Nf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Sk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Af=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=wk(e,["color","size"]);return B.createElement("svg",Nf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("polyline",{points:"23 4 23 10 17 10"}),B.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"}))});Af.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};Af.displayName="RotateCw";var lP=Af;function Mf(){return Mf=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function bk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Df=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=_k(e,["color","size"]);return B.createElement("svg",Mf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("circle",{cx:"11",cy:"11",r:"8"}),B.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Df.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};Df.displayName="Search";var cP=Df;function Ff(){return Ff=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Rk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var If=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=Ek(e,["color","size"]);return B.createElement("svg",Ff({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),B.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});If.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};If.displayName="X";var fP=If;function $f(){return $f=Object.assign||function(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Ck(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Uf=$.exports.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=Ok(e,["color","size"]);return B.createElement("svg",$f({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),B.createElement("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"}))});Uf.propTypes={color:ne.string,size:ne.oneOfType([ne.string,ne.number])};Uf.displayName="Zap";var dP=Uf;function Lt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Vf(e)?2:Bf(e)?3:0}function jf(e,t){return no(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xk(e,t){return no(e)===2?e.get(t):e[t]}function my(e,t,n){var r=no(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function kk(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Vf(e){return Nk&&e instanceof Map}function Bf(e){return Ak&&e instanceof Set}function lr(e){return e.o||e.t}function zf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Dk(e);delete t[lt];for(var n=ed(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Tk),Object.freeze(e),t&&Ai(e,function(n,r){return Wf(r,!0)},!0)),e}function Tk(){Lt(2)}function Hf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function en(e){var t=Fk[e];return t||Lt(18,e),t}function gy(){return Mi}function qf(e,t){t&&(en("Patches"),e.u=[],e.s=[],e.v=t)}function Qs(e){Qf(e),e.p.forEach(Pk),e.p=null}function Qf(e){e===Mi&&(Mi=e.l)}function yy(e){return Mi={p:[],l:Mi,h:e,m:!0,_:0}}function Pk(e){var t=e[lt];t.i===0||t.i===1?t.j():t.O=!0}function Kf(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||en("ES5").S(t,e,r),r?(n[lt].P&&(Qs(t),Lt(4)),ur(e)&&(e=Ks(t,e),t.l||Gs(t,e)),t.u&&en("Patches").M(n[lt],e,t.u,t.s)):e=Ks(t,n,[]),Qs(t),t.u&&t.v(t.u,t.s),e!==Ry?e:void 0}function Ks(e,t,n){if(Hf(t))return t;var r=t[lt];if(!r)return Ai(t,function(i,a){return wy(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Gs(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=zf(r.k):r.o;Ai(r.i===3?new Set(o):o,function(i,a){return wy(e,r,o,i,a,n)}),Gs(e,o,!1),n&&e.u&&en("Patches").R(r,n,e.u,e.s)}return r.o}function wy(e,t,n,r,o,i){if(to(o)){var a=Ks(e,o,i&&t&&t.i!==3&&!jf(t.D,r)?i.concat(r):void 0);if(my(n,r,a),!to(a))return;e.m=!1}if(ur(o)&&!Hf(o)){if(!e.h.F&&e._<1)return;Ks(e,o),t&&t.A.l||Gs(e,o)}}function Gs(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Wf(t,n)}function Gf(e,t){var n=e[lt];return(n?lr(n):e)[t]}function Sy(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Xf(e){e.P||(e.P=!0,e.l&&Xf(e.l))}function Yf(e){e.o||(e.o=zf(e.t))}function Zf(e,t,n){var r=Vf(t)?en("MapSet").N(t,n):Bf(t)?en("MapSet").T(t,n):e.g?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:gy(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,l=Xs;a&&(u=[s],l=Ys);var c=Proxy.revocable(u,l),v=c.revoke,d=c.proxy;return s.k=d,s.j=v,d}(t,n):en("ES5").J(t,n);return(n?n.A:gy()).p.push(r),r}function Lk(e){return to(e)||Lt(22,e),function t(n){if(!ur(n))return n;var r,o=n[lt],i=no(n);if(o){if(!o.P&&(o.i<4||!en("ES5").K(o)))return o.t;o.I=!0,r=_y(n,i),o.I=!1}else r=_y(n,i);return Ai(r,function(a,s){o&&xk(o.t,a)===s||my(r,a,t(s))}),i===3?new Set(r):r}(e)}function _y(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zf(e)}var by,Mi,Jf=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Nk=typeof Map!="undefined",Ak=typeof Set!="undefined",Ey=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",Ry=Jf?Symbol.for("immer-nothing"):((by={})["immer-nothing"]=!0,by),Oy=Jf?Symbol.for("immer-draftable"):"__$immer_draftable",lt=Jf?Symbol.for("immer-state"):"__$immer_state",Mk=""+Object.prototype.constructor,ed=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Dk=Object.getOwnPropertyDescriptors||function(e){var t={};return ed(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Fk={},Xs={get:function(e,t){if(t===lt)return e;var n=lr(e);if(!jf(n,t))return function(o,i,a){var s,u=Sy(i,a);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!ur(r)?r:r===Gf(e.t,t)?(Yf(e),e.o[t]=Zf(e.A.h,r,e)):r},has:function(e,t){return t in lr(e)},ownKeys:function(e){return Reflect.ownKeys(lr(e))},set:function(e,t,n){var r=Sy(lr(e),t);if(r==null?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Gf(lr(e),t),i=o==null?void 0:o[lt];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(kk(n,o)&&(n!==void 0||jf(e.t,t)))return!0;Yf(e),Xf(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Gf(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Yf(e),Xf(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=lr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Lt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Lt(12)}},Ys={};Ai(Xs,function(e,t){Ys[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ys.deleteProperty=function(e,t){return Xs.deleteProperty.call(this,e[0],t)},Ys.set=function(e,t,n){return Xs.set.call(this,e[0],t,n,e[0])};var Ik=function(){function e(n){var r=this;this.g=Ey,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var u=r;return function(m){var y=this;m===void 0&&(m=s);for(var _=arguments.length,p=Array(_>1?_-1:0),f=1;f<_;f++)p[f-1]=arguments[f];return u.produce(m,function(h){var g;return(g=i).call.apply(g,[y,h].concat(p))})}}var l;if(typeof i!="function"&&Lt(6),a!==void 0&&typeof a!="function"&&Lt(7),ur(o)){var c=yy(r),v=Zf(r,o,void 0),d=!0;try{l=i(v),d=!1}finally{d?Qs(c):Qf(c)}return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(m){return qf(c,a),Kf(m,c)},function(m){throw Qs(c),m}):(qf(c,a),Kf(l,c))}if(!o||typeof o!="object")return(l=i(o))===Ry?void 0:(l===void 0&&(l=o),r.F&&Wf(l,!0),l);Lt(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(u){for(var l=arguments.length,c=Array(l>1?l-1:0),v=1;v=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}var a=en("Patches").$;return to(n)?a(n,r):this.produce(n,function(s){return a(s,r.slice(o+1))})},e}(),ct=new Ik,pP=ct.produce;ct.produceWithPatches.bind(ct);var hP=ct.setAutoFreeze.bind(ct);ct.setUseProxies.bind(ct);ct.applyPatches.bind(ct);ct.createDraft.bind(ct);ct.finishDraft.bind(ct);var Zs="NOT_FOUND";function $k(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Zs},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Uk(e,t){var n=[];function r(s){var u=n.findIndex(function(c){return t(s,c.key)});if(u>-1){var l=n[u];return u>0&&(n.splice(u,1),n.unshift(l)),l.value}return Zs}function o(s,u){r(s)===Zs&&(n.unshift({key:s,value:u}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var jk=function(t,n){return t===n};function Vk(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function Yk(e,t){if(e!=null)if(Py(e))e(t);else try{e.current=t}catch{throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function Ny(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}var tT=["as","style"],nT=$.exports.forwardRef(function(t,n){var r=t.as,o=r===void 0?"span":r,i=t.style,a=i===void 0?{}:i,s=eT(t,tT);return $.exports.createElement(o,Js({ref:n,style:Js({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},a)},s))}),rT=["bottom","height","left","right","top","width"],oT=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),rT.some(function(r){return t[r]!==n[r]})},An=new Map,Ay,iT=function e(){var t=[];An.forEach(function(n,r){var o=r.getBoundingClientRect();oT(o,n.rect)&&(n.rect=o,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),Ay=window.requestAnimationFrame(e)};function aT(e,t){return{observe:function(){var r=An.size===0;An.has(e)?An.get(e).callbacks.push(t):An.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&iT()},unobserve:function(){var r=An.get(e);if(r){var o=r.callbacks.indexOf(t);o>=0&&r.callbacks.splice(o,1),r.callbacks.length||An.delete(e),An.size||cancelAnimationFrame(Ay)}}}}function My(e,t,n){var r,o;if(Kk(t))r=t;else{var i;r=(i=t==null?void 0:t.observe)!=null?i:!0,o=t==null?void 0:t.onChange}Py(n)&&(o=n);var a=$.exports.useState(e.current),s=a[0],u=a[1],l=$.exports.useRef(!1),c=$.exports.useRef(!1),v=$.exports.useState(null),d=v[0],m=v[1],y=$.exports.useRef(o);return Di(function(){y.current=o,e.current!==s&&u(e.current)}),Di(function(){s&&!l.current&&(l.current=!0,m(s.getBoundingClientRect()))},[s]),Di(function(){if(!!r){var _=s;if(c.current||(c.current=!0,_=e.current),!!_){var p=aT(_,function(f){y.current==null||y.current(f),m(f)});return p.observe(),function(){p.unobserve()}}}},[r,s,e]),d}function Mn(){return Mn=Object.assign||function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}var sT=["children","label","ariaLabel","id","DEBUG_STYLE"],uT=["label","ariaLabel","isVisible","id"],lT=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],cT=["type"],tu,cr,tn,Fi,nu,fr,fT=100,dT=500,ge;(function(e){e.Idle="IDLE",e.Focused="FOCUSED",e.Visible="VISIBLE",e.LeavingVisible="LEAVING_VISIBLE",e.Dismissed="DISMISSED"})(ge||(ge={}));var me;(function(e){e.Blur="BLUR",e.Focus="FOCUS",e.GlobalMouseMove="GLOBAL_MOUSE_MOVE",e.MouseDown="MOUSE_DOWN",e.MouseEnter="MOUSE_ENTER",e.MouseLeave="MOUSE_LEAVE",e.MouseMove="MOUSE_MOVE",e.Rest="REST",e.SelectWithKeyboard="SELECT_WITH_KEYBOARD",e.TimeComplete="TIME_COMPLETE"})(me||(me={}));var rd={initial:ge.Idle,states:(fr={},fr[ge.Idle]={enter:ad,on:(tu={},tu[me.MouseEnter]=ge.Focused,tu[me.Focus]=ge.Visible,tu)},fr[ge.Focused]={enter:vT,leave:mT,on:(cr={},cr[me.MouseMove]=ge.Focused,cr[me.MouseLeave]=ge.Idle,cr[me.MouseDown]=ge.Dismissed,cr[me.Blur]=ge.Idle,cr[me.Rest]=ge.Visible,cr)},fr[ge.Visible]={on:(tn={},tn[me.Focus]=ge.Focused,tn[me.MouseEnter]=ge.Focused,tn[me.MouseLeave]=ge.LeavingVisible,tn[me.Blur]=ge.LeavingVisible,tn[me.MouseDown]=ge.Dismissed,tn[me.SelectWithKeyboard]=ge.Dismissed,tn[me.GlobalMouseMove]=ge.LeavingVisible,tn)},fr[ge.LeavingVisible]={enter:gT,leave:function(){yT(),ad()},on:(Fi={},Fi[me.MouseEnter]=ge.Visible,Fi[me.Focus]=ge.Visible,Fi[me.TimeComplete]=ge.Idle,Fi)},fr[ge.Dismissed]={leave:function(){ad()},on:(nu={},nu[me.MouseLeave]=ge.Idle,nu[me.Blur]=ge.Idle,nu)},fr)},St={value:rd.initial,context:{id:null}},ru=[];function pT(e){return ru.push(e),function(){ru.splice(ru.indexOf(e),1)}}function hT(){ru.forEach(function(e){return e(St)})}var od;function vT(){window.clearTimeout(od),od=window.setTimeout(function(){Nt({type:me.Rest})},fT)}function mT(){window.clearTimeout(od)}var id;function gT(){window.clearTimeout(id),id=window.setTimeout(function(){return Nt({type:me.TimeComplete})},dT)}function yT(){window.clearTimeout(id)}function ad(){St.context.id=null}function wT(e){var t=e===void 0?{}:e,n=t.id,r=t.onPointerEnter,o=t.onPointerMove,i=t.onPointerLeave,a=t.onPointerDown,s=t.onMouseEnter,u=t.onMouseMove,l=t.onMouseLeave,c=t.onMouseDown,v=t.onFocus,d=t.onBlur,m=t.onKeyDown,y=t.disabled,_=t.ref,p=t.DEBUG_STYLE,f=String(qk(n)),h=$.exports.useState(p?!0:Dy(f,!0)),g=h[0],w=h[1],x=$.exports.useRef(null),E=Ny(_,x),L=My(x,{observe:g});$.exports.useEffect(function(){return pT(function(){w(Dy(f))})},[f]),$.exports.useEffect(function(){var I=nd(x.current);function J(k){(k.key==="Escape"||k.key==="Esc")&&St.value===ge.Visible&&Nt({type:me.SelectWithKeyboard})}return I.addEventListener("keydown",J),function(){return I.removeEventListener("keydown",J)}},[]),CT({disabled:y,isVisible:g,ref:x});function V(I,J){return typeof window!="undefined"&&"PointerEvent"in window?I:Nn(I,J)}function F(I){return function(k){k.pointerType==="mouse"&&I(k)}}function G(){Nt({type:me.MouseEnter,id:f})}function Y(){Nt({type:me.MouseMove,id:f})}function ie(){Nt({type:me.MouseLeave})}function Z(){St.context.id===f&&Nt({type:me.MouseDown})}function S(){window.__REACH_DISABLE_TOOLTIPS||Nt({type:me.Focus,id:f})}function C(){St.context.id===f&&Nt({type:me.Blur})}function U(I){(I.key==="Enter"||I.key===" ")&&Nt({type:me.SelectWithKeyboard})}var b={"aria-describedby":g?Ty("tooltip",f):void 0,"data-state":g?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:E,onPointerEnter:Nn(r,F(G)),onPointerMove:Nn(o,F(Y)),onPointerLeave:Nn(i,F(ie)),onPointerDown:Nn(a,F(Z)),onMouseEnter:V(s,G),onMouseMove:V(u,Y),onMouseLeave:V(l,ie),onMouseDown:V(c,Z),onFocus:Nn(v,S),onBlur:Nn(d,C),onKeyDown:Nn(m,U)},P={id:f,triggerRect:L,isVisible:g};return[b,P,g]}var ST=$.exports.forwardRef(function(e,t){var n=e.children,r=e.label,o=e.ariaLabel,i=e.id,a=e.DEBUG_STYLE,s=eu(e,sT),u=$.exports.Children.only(n),l=wT({id:i,onPointerEnter:u.props.onPointerEnter,onPointerMove:u.props.onPointerMove,onPointerLeave:u.props.onPointerLeave,onPointerDown:u.props.onPointerDown,onMouseEnter:u.props.onMouseEnter,onMouseMove:u.props.onMouseMove,onMouseLeave:u.props.onMouseLeave,onMouseDown:u.props.onMouseDown,onFocus:u.props.onFocus,onBlur:u.props.onBlur,onKeyDown:u.props.onKeyDown,disabled:u.props.disabled,ref:u.ref,DEBUG_STYLE:a}),c=l[0],v=l[1];return $.exports.createElement($.exports.Fragment,null,$.exports.cloneElement(u,c),$.exports.createElement(_T,Mn({ref:t,label:r,"aria-label":o},v,s)))}),_T=$.exports.forwardRef(function(t,n){var r=t.label,o=t.ariaLabel,i=t.isVisible,a=t.id,s=eu(t,uT);return i?$.exports.createElement(Jk,null,$.exports.createElement(bT,Mn({ref:n,label:r,"aria-label":o,isVisible:i},s,{id:Ty("tooltip",String(a))}))):null}),bT=$.exports.forwardRef(function(t,n){var r=t.ariaLabel,o=t["aria-label"],i=t.as,a=i===void 0?"div":i,s=t.id,u=t.isVisible,l=t.label,c=t.position,v=c===void 0?OT:c,d=t.style,m=t.triggerRect,y=eu(t,lT),_=(o||r)!=null,p=$.exports.useRef(null),f=Ny(n,p),h=My(p,{observe:u});return $.exports.createElement($.exports.Fragment,null,$.exports.createElement(a,Mn({role:_?void 0:"tooltip"},y,{ref:f,"data-reach-tooltip":"",id:_?void 0:s,style:Mn({},d,ET(v,m,h))}),l),_&&$.exports.createElement(nT,{role:"tooltip",id:s},o||r))});function ET(e,t,n){var r=!n;return r?{visibility:"hidden"}:e(t,n)}var RT=8,OT=function(t,n,r){r===void 0&&(r=RT);var o=Qk(),i=o.width,a=o.height;if(!t||!n)return{};var s={top:t.top-n.height<0,right:ir&&(a=!0,TT.unstable_scheduleCallback(n))}function n(){a=!1;var s=r;if(o!==null)for(var u=o.previous;i>s&&u!==null;){var l=u.onDelete,c=u.previous;u.onDelete=null,u.previous=u.next=null,u===o?o=u=null:(o.previous=c,c.next=o,u=c),--i,l()}}var r=e,o=null,i=0,a=!1;return{add:function(s,u){return s={value:s,onDelete:u,next:null,previous:null},o===null?s.previous=s.next=s:(u=o.previous,u.next=s,s.previous=u,o.previous=s,s.next=o),o=s,i+=1,s},update:function(s,u){s.value=u},access:function(s){var u=s.next;if(u!==null){var l=o;if(o!==s){var c=s.previous;c.next=u,u.previous=c,u=l.previous,u.next=s,s.previous=u,l.previous=s,s.next=l,o=s}}return t(),s.value},setLimit:function(s){r=s,t()}}}(500),iu=new Map,$y=Fy.createContext(null);function Uy(e,t,n,r){var o=iu.get(e);o===void 0&&(o=new Map,iu.set(e,o));var i=o.get(r);if(i===void 0){t=t(n),t.then(function(s){if(a.status===0){var u=a;u.status=1,u.value=s}},function(s){if(a.status===0){var u=a;u.status=2,u.value=s}});var a={status:0,value:t};return e=sd.add(a,NT.bind(null,e,r)),o.set(r,e),a}return sd.access(i)}function NT(e,t){var n=iu.get(e);n!==void 0&&(n.delete(t),n.size===0&&iu.delete(e))}ou.unstable_createResource=function(e,t){var n=t!==void 0?t:LT,r={read:function(o){Iy($y);var i=n(o);switch(o=Uy(r,e,o,i),o.status){case 0:throw o.value;case 1:return o.value;case 2:throw o.value}},preload:function(o){Iy($y);var i=n(o);Uy(r,e,o,i)}};return r};ou.unstable_setGlobalCacheLimit=function(e){sd.setLimit(e)};kT.exports=ou;var jy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Vy=B.createContext&&B.createContext(jy),Dn=globalThis&&globalThis.__assign||function(){return Dn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=u)&&this.A(n),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(n){n.preventDefault(),typeof n.button=="number"&&n.button!==0||(this.I(n.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(n){n.preventDefault(),this.L(n.clientX)},t.prototype.g=function(n){this.U(n),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(n){this.X=null,this.I(n.touches[0].clientX)},t.prototype.M=function(n){this.L(n.touches[0].clientX)},t.prototype.m=function(n){n.preventDefault(),this.U(n)},t.prototype.$=function(n){Date.now()-this.l>50&&(this.A(n),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(n){this.H=n},t.prototype.T=function(n){n.preventDefault(),this.H.focus(),this.A(n),this.W&&this.setState({j:!1})},t.prototype.A=function(n){var r=this.props;(0,r.onChange)(!r.checked,n,r.id)},t.prototype.render=function(){var n=this.props,r=n.checked,o=n.disabled,i=n.className,a=n.offColor,s=n.onColor,u=n.offHandleColor,l=n.onHandleColor,c=n.checkedIcon,v=n.uncheckedIcon,d=n.checkedHandleIcon,m=n.uncheckedHandleIcon,y=n.boxShadow,_=n.activeBoxShadow,p=n.height,f=n.width,h=n.borderRadius,g=function(C,U){var b={};for(var P in C)Object.prototype.hasOwnProperty.call(C,P)&&U.indexOf(P)===-1&&(b[P]=C[P]);return b}(n,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),w=this.state,x=w.h,E=w.N,L=w.j,V={position:"relative",display:"inline-block",textAlign:"left",opacity:o?.5:1,direction:"ltr",borderRadius:p/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},F={height:p,width:f,margin:Math.max(0,(this.t-p)/2),position:"relative",background:qy(x,this.i,this.o,a,s),borderRadius:typeof h=="number"?h:p/2,cursor:o?"default":"pointer",WebkitTransition:E?null:"background 0.25s",MozTransition:E?null:"background 0.25s",transition:E?null:"background 0.25s"},G={height:p,width:Math.min(1.5*p,f-(this.t+p)/2+1),position:"relative",opacity:(x-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:E?null:"opacity 0.25s",MozTransition:E?null:"opacity 0.25s",transition:E?null:"opacity 0.25s"},Y={height:p,width:Math.min(1.5*p,f-(this.t+p)/2+1),position:"absolute",opacity:1-(x-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:E?null:"opacity 0.25s",MozTransition:E?null:"opacity 0.25s",transition:E?null:"opacity 0.25s"},ie={height:this.t,width:this.t,background:qy(x,this.i,this.o,u,l),display:"inline-block",cursor:o?"default":"pointer",borderRadius:typeof h=="number"?h-1:"50%",position:"absolute",transform:"translateX("+x+"px)",top:Math.max(0,(p-this.t)/2),outline:0,boxShadow:L?_:y,border:0,WebkitTransition:E?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:E?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:E?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},Z={height:this.t,width:this.t,opacity:Math.max(2*(1-(x-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:E?null:"opacity 0.25s",MozTransition:E?null:"opacity 0.25s",transition:E?null:"opacity 0.25s"},S={height:this.t,width:this.t,opacity:Math.max(2*((x-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:E?null:"opacity 0.25s",MozTransition:E?null:"opacity 0.25s",transition:E?null:"opacity 0.25s"};return ft.createElement("div",{className:i,style:V},ft.createElement("div",{className:"react-switch-bg",style:F,onClick:o?null:this.T,onMouseDown:function(C){return C.preventDefault()}},c&&ft.createElement("div",{style:G},c),v&&ft.createElement("div",{style:Y},v)),ft.createElement("div",{className:"react-switch-handle",style:ie,onClick:function(C){return C.preventDefault()},onMouseDown:o?null:this.p,onTouchStart:o?null:this.k,onTouchMove:o?null:this.M,onTouchEnd:o?null:this.m,onTouchCancel:o?null:this.O},m&&ft.createElement("div",{style:Z},m),d&&ft.createElement("div",{style:S},d)),ft.createElement("input",Wy({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:o,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},g,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(ft.Component);Qy.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:DT,checkedIcon:FT,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},ud.default=Qy;zy.exports=ud;var RP=zy.exports;export{qi as A,c1 as B,tP as C,sP as D,nP as E,yP as F,oP as G,KT as H,fP as I,aP as J,cP as K,GT as L,BT as M,eP as N,lP as O,uP as P,Q_ as Q,B as R,RP as S,gP as T,Am as U,HT as V,dP as Z,jT as a,G0 as b,zT as c,vP as d,JT as e,pP as f,mP as g,rP as h,$T as i,UT as j,VT as k,kT as l,SP as m,bP as n,wP as o,EP as p,_P as q,$ as r,hP as s,ws as t,qT as u,iP as v,ZT as w,WT as x,QT as y,Zv as z};