87 lines
405 KiB
JavaScript
87 lines
405 KiB
JavaScript
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;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){i0(e,o,n[o])})}return e}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t,n){return t&&hd(e.prototype,t),n&&hd(e,n),e}function nn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function so(e,t){return t&&(Wt(t)==="object"||typeof t=="function")?t:nn(e)}function pr(e){return pr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pr(e)}function uu(e,t){return uu=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},uu(e,t)}function Vi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uu(e,t)}function a0(e){if(Array.isArray(e))return e}function s0(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u0(e,t){if(!!e){if(typeof e=="string")return vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vd(e,t)}}function l0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c0(e,t){return a0(e)||s0(e,t)||u0(e,t)||l0()}var f0={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},d0=function(){function e(t){var n=arguments.length>1&&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;o<n;o++)r[o]=arguments[o];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,o,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,be({},{prefix:"".concat(this.prefix,":").concat(n,":")},this.options))}}]),e}(),Ft=new d0,rn=function(){function e(){Mt(this,e),this.observers={}}return Dt(e,[{key:"on",value:function(n,r){var o=this;return n.split(" ").forEach(function(i){o.observers[i]=o.observers[i]||[],o.observers[i].push(r)}),this}},{key:"off",value:function(n,r){if(!!this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(o){return o!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(u){u.apply(void 0,o)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[n].concat(o))})}}}]),e}();function uo(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function md(e){return e==null?"":""+e}function p0(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function lu(e,t,n){function r(s){return s&&s.indexOf("###")>-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;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,s=r.slice(i,i+a).join(n),u=o[s];u===void 0&&r.length>i+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;he<le.length;he++)X.push(le[he]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(o.lng||this.language):X.push(o.lng||this.language);var Te=function(M,A,q){a.options.missingKeyHandler?a.options.missingKeyHandler(M,v,A,k?q:J,k,o):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(M,v,A,k?q:J,k,o),a.emit("missingKey",M,v,A,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?X.forEach(function(T){a.pluralResolver.getSuffixes(T).forEach(function(M){Te([T],l+M,o["defaultValue".concat(M)]||P)})}):Te(X,l,P))}p=this.extendTranslation(p,r,o,_,i),S&&p===l&&this.options.appendNamespaceToMissingKey&&(p="".concat(v,":").concat(l)),(S||Z)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:"extendTranslation",value:function(r,o,i,a,s){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,i,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(be({},i,{interpolation:be({},this.options.interpolation,i.interpolation)}));var l=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,c;if(l){var v=r.match(this.interpolator.nestingRegexp);c=v&&v.length}var d=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(d=be({},this.options.interpolation.defaultVariables,d)),r=this.interpolator.interpolate(r,d,i.lng||this.language,i),l){var m=r.match(this.interpolator.nestingRegexp),y=m&&m.length;c<y&&(i.nest=!1)}i.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return s&&s[0]===h[0]&&!i.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(h[0]," in key: ").concat(o[0])),null):u.translate.apply(u,h.concat([o]))},i)),i.interpolation&&this.interpolator.reset()}var _=i.postProcess||this.options.postProcess,p=typeof _=="string"?[_]:_;return r!=null&&p&&p.length&&i.applyPostProcessor!==!1&&(r=_d.handle(p,r,o,this.options&&this.options.postProcessPassResolved?be({i18nResolved:a},i):i,this)),r}},{key:"resolve",value:function(r){var o=this,i=arguments.length>1&&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;g<f;g++)h[g-1]=arguments[g];r.emit.apply(r,[p].concat(h))}),this.modules.languageDetector&&(c.languageDetector=s(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=s(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Ed(this.services,this.options),this.translator.on("*",function(p){for(var f=arguments.length,h=new Array(f>1?f-1:0),g=1;g<f;g++)h[g-1]=arguments[g];r.emit.apply(r,[p].concat(h))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}if(this.format=this.options.interpolation.format,i||(i=Wi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&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<i.languages.length;d++){var m=i.languages[d];if(!(["cimode","dev"].indexOf(m)>-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;y<d;y++)m[y-2]=arguments[y];v=a.options.overloadTranslationOptionHandler([l,c].concat(m))}else v=be({},c);v.lng=v.lng||u.lng,v.lngs=v.lngs||u.lngs,v.ns=v.ns||u.ns;var _=a.options.keySeparator||".",p=i?"".concat(i).concat(_).concat(l):l;return a.t(p,v)};return typeof r=="string"?s.lng=r:s.lngs=r,s.ns=o,s.keyPrefix=i,s}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var o=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var 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;d<c;d++)v[d-1]=arguments[d];s.emit.apply(s,[l].concat(v))}),s.init(a,i),s.translator.options=s.options,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),t}(rn),$T=new A0;function M0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D0(e,t,n){return t&&Cd(e.prototype,t),n&&Cd(e,n),e}var xd=[],F0=xd.forEach,I0=xd.slice;function $0(e){return F0.call(I0.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var kd=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,U0=function(t,n,r){var o=r||{};o.path=o.path||"/";var i=encodeURIComponent(n),a=t+"="+i;if(o.maxAge>0){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;o<r.length;o++){for(var i=r[o];i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(n)===0)return i.substring(n.length,i.length)}return null},remove:function(t){this.create(t,"",-1)}},j0={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document!="undefined"){var r=Td.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document!="undefined"&&Td.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},V0={name:"querystring",lookup:function(t){var n;if(typeof window!="undefined")for(var r=window.location.search.substring(1),o=r.split("&"),i=0;i<o.length;i++){var a=o[i].indexOf("=");if(a>0){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;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?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<C.length;b++)U[b]=String.fromCharCode(C[b]);return U.join("")}function w(S){if(S.slice)return S.slice(0);var C=new Uint8Array(S.byteLength);return C.set(new Uint8Array(S)),C.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(S){this._bodyInit=S,S?typeof S=="string"?this._bodyText=S:s.blob&&Blob.prototype.isPrototypeOf(S)?this._bodyBlob=S:s.formData&&FormData.prototype.isPrototypeOf(S)?this._bodyFormData=S:s.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)?this._bodyText=S.toString():s.arrayBuffer&&s.blob&&u(S)?(this._bodyArrayBuffer=w(S.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(S)||c(S))?this._bodyArrayBuffer=w(S):this._bodyText=S=Object.prototype.toString.call(S):this._bodyText="",this.headers.get("content-type")||(typeof S=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):s.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s.blob&&(this.blob=function(){var S=_(this);if(S)return S;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?_(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var S=_(this);if(S)return S;if(this._bodyBlob)return h(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(g(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function L(S){var C=S.toUpperCase();return E.indexOf(C)>-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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s1(e,t,n){return t&&Fd(e.prototype,t),n&&Fd(e,n),e}function u1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l1=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,o){return u1({},r,o||"")},request:i1,reloadInterval:typeof window!="undefined"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},c1=function(){function e(t){var n=arguments.length>1&&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;i<arguments.length;i++){n=Object(arguments[i]);for(var a in n)f1.call(n,a)&&(r[a]=n[a]);if($d){o=$d(n);for(var s=0;s<o.length;s++)d1.call(n,o[s])&&(r[o[s]]=n[o[s]])}}return r};/** @license React v17.0.2
|
|
* react.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 hu=Ud,vr=60103,jd=60106;ve.Fragment=60107;ve.StrictMode=60108;ve.Profiler=60114;var Vd=60109,Bd=60110,zd=60112;ve.Suspense=60113;var Wd=60115,Hd=60116;if(typeof Symbol=="function"&&Symbol.for){var Et=Symbol.for;vr=Et("react.element"),jd=Et("react.portal"),ve.Fragment=Et("react.fragment"),ve.StrictMode=Et("react.strict_mode"),ve.Profiler=Et("react.profiler"),Vd=Et("react.provider"),Bd=Et("react.context"),zd=Et("react.forward_ref"),ve.Suspense=Et("react.suspense"),Wd=Et("react.memo"),Hd=Et("react.lazy")}var qd=typeof Symbol=="function"&&Symbol.iterator;function v1(e){return e===null||typeof e!="object"?null:(e=qd&&e[qd]||e["@@iterator"],typeof e=="function"?e:null)}function ho(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kd={};function mr(e,t,n){this.props=e,this.context=t,this.refs=Kd,this.updater=n||Qd}mr.prototype.isReactComponent={};mr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(ho(85));this.updater.enqueueSetState(this,e,t,"setState")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gd(){}Gd.prototype=mr.prototype;function vu(e,t,n){this.props=e,this.context=t,this.refs=Kd,this.updater=n||Qd}var mu=vu.prototype=new Gd;mu.constructor=vu;hu(mu,mr.prototype);mu.isPureReactComponent=!0;var gu={current:null},Xd=Object.prototype.hasOwnProperty,Yd={key:!0,ref:!0,__self:!0,__source:!0};function Zd(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Xd.call(t,r)&&!Yd.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:vr,type:e,key:i,ref:a,props:o,_owner:gu.current}}function m1(e,t){return{$$typeof:vr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yu(e){return typeof e=="object"&&e!==null&&e.$$typeof===vr}function g1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Jd=/\/+/g;function wu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?g1(""+e.key):t.toString(36)}function Gi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case vr:case jd:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+wu(a,0):r,Array.isArray(o)?(n="",e!=null&&(n=e.replace(Jd,"$&/")+"/"),Gi(o,t,n,"",function(l){return l})):o!=null&&(yu(o)&&(o=m1(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Jd,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var u=r+wu(i,s);a+=Gi(i,t,n,u,o)}else if(u=v1(e),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=r+wu(i,s++),a+=Gi(i,t,n,u,o);else if(i==="object")throw t=""+e,Error(ho(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function Xi(e,t,n){if(e==null)return e;var r=[],o=0;return Gi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function y1(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var ep={current:null};function Ht(){var e=ep.current;if(e===null)throw Error(ho(321));return e}var w1={ReactCurrentDispatcher:ep,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:gu,IsSomeRendererActing:{current:!1},assign:hu};ve.Children={map:Xi,forEach:function(e,t,n){Xi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xi(e,function(){t++}),t},toArray:function(e){return Xi(e,function(t){return t})||[]},only:function(e){if(!yu(e))throw Error(ho(143));return e}};ve.Component=mr;ve.PureComponent=vu;ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w1;ve.cloneElement=function(e,t,n){if(e==null)throw Error(ho(267,e));var r=hu({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=gu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)Xd.call(t,u)&&!Yd.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:vr,type:e.type,key:o,ref:i,props:r,_owner:a}};ve.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Bd,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Vd,_context:e},e.Consumer=e};ve.createElement=Zd;ve.createFactory=function(e){var t=Zd.bind(null,e);return t.type=e,t};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:zd,render:e}};ve.isValidElement=yu;ve.lazy=function(e){return{$$typeof:Hd,_payload:{_status:-1,_result:e},_init:y1}};ve.memo=function(e,t){return{$$typeof:Wd,type:e,compare:t===void 0?null:t}};ve.useCallback=function(e,t){return Ht().useCallback(e,t)};ve.useContext=function(e,t){return Ht().useContext(e,t)};ve.useDebugValue=function(){};ve.useEffect=function(e,t){return Ht().useEffect(e,t)};ve.useImperativeHandle=function(e,t,n){return Ht().useImperativeHandle(e,t,n)};ve.useLayoutEffect=function(e,t){return Ht().useLayoutEffect(e,t)};ve.useMemo=function(e,t){return Ht().useMemo(e,t)};ve.useReducer=function(e,t,n){return Ht().useReducer(e,t,n)};ve.useRef=function(e){return Ht().useRef(e)};ve.useState=function(e){return Ht().useState(e)};ve.version="17.0.2";$.exports=ve;var B=$.exports,UT=Object.freeze(pd({__proto__:null,[Symbol.toStringTag]:"Module",default:B},[$.exports]));function S1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _1(e,t,n){return t&&tp(e.prototype,t),n&&tp(e,n),e}function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?np(Object(n),!0).forEach(function(r){Id(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Su={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},op,b1=B.createContext();function E1(){var e=arguments.length>0&&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;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var ip={};function _u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&ip[t[0]]||(typeof t[0]=="string"&&(ip[t[0]]=new Date),k1.apply(void 0,t))}function ap(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{var r=function o(){setTimeout(function(){e.off("initialized",o)},0),n()};e.on("initialized",r)}})}function T1(e,t){var n=arguments.length>2&&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);n<t;n++)r[n]=e[n];return r}function N1(e,t){if(!!e){if(typeof e=="string")return sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(e,t)}}function A1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M1(e,t){return P1(e)||L1(e,t)||N1(e,t)||A1()}function up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?up(Object(n),!0).forEach(function(r){Id(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VT(e){var t=arguments.length>1&&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<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):f=0<k?Math.floor(1e3/k):5};var g=new MessageChannel,w=g.port2;g.port1.onmessage=function(){if(_!==null){var k=e.unstable_now();h=k+f;try{_(!0,k)?w.postMessage(null):(y=!1,_=null)}catch(N){throw w.postMessage(null),N}}else y=!1},t=function(k){_=k,y||(y=!0,w.postMessage(null))},n=function(k,N){p=v(function(){k(e.unstable_now())},N)},r=function(){d(p),p=-1}}function x(k,N){var X=k.length;k.push(N);e:for(;;){var le=X-1>>>1,he=k[le];if(he!==void 0&&0<V(he,N))k[le]=N,k[X]=he,X=le;else break e}}function E(k){return k=k[0],k===void 0?null:k}function L(k){var N=k[0];if(N!==void 0){var X=k.pop();if(X!==N){k[0]=X;e:for(var le=0,he=k.length;le<he;){var Te=2*(le+1)-1,T=k[Te],M=Te+1,A=k[M];if(T!==void 0&&0>V(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"&&0<X?le+X:le):X=le,k){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=X+he,k={id:Y++,callback:N,priorityLevel:k,startTime:X,expirationTime:he,sortIndex:-1},X>le?(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;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Zi)throw Error(j(227));var cp=new Set,vo={};function Fn(e,t){gr(e,t),gr(e+"Capture",t)}function gr(e,t){for(vo[e]=t,e=0;e<t.length;e++)cp.add(t[e])}var qt=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),D1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fp=Object.prototype.hasOwnProperty,dp={},pp={};function F1(e){return fp.call(pp,e)?!0:fp.call(dp,e)?!1:D1.test(e)?pp[e]=!0:(dp[e]=!0,!1)}function I1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $1(e,t,n,r){if(t===null||typeof t=="undefined"||I1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}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:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");i||($1(t,n,o,r)&&(n=null),r||o===null?F1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var In=Zi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mo=60103,$n=60106,an=60107,xu=60108,go=60114,ku=60109,Tu=60110,Ji=60112,yo=60113,ea=60120,ta=60115,Pu=60116,Lu=60121,Nu=60128,hp=60129,Au=60130,Mu=60131;if(typeof Symbol=="function"&&Symbol.for){var Ve=Symbol.for;mo=Ve("react.element"),$n=Ve("react.portal"),an=Ve("react.fragment"),xu=Ve("react.strict_mode"),go=Ve("react.profiler"),ku=Ve("react.provider"),Tu=Ve("react.context"),Ji=Ve("react.forward_ref"),yo=Ve("react.suspense"),ea=Ve("react.suspense_list"),ta=Ve("react.memo"),Pu=Ve("react.lazy"),Lu=Ve("react.block"),Ve("react.scope"),Nu=Ve("react.opaque.id"),hp=Ve("react.debug_trace_mode"),Au=Ve("react.offscreen"),Mu=Ve("react.legacy_hidden")}var vp=typeof Symbol=="function"&&Symbol.iterator;function wo(e){return e===null||typeof e!="object"?null:(e=vp&&e[vp]||e["@@iterator"],typeof e=="function"?e:null)}var Du;function So(e){if(Du===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Du=t&&t[1]||""}return`
|
|
`+Du+e}var Fu=!1;function na(e,t){if(!e||Fu)return"";Fu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
`),i=r.stack.split(`
|
|
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||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;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Vu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _p(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Array.isArray(n)){if(!(1>=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="<svg>"+t.valueOf().toString()+"</svg>",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;e<t.length;e++)kp(t[e])}}function Ku(e,t){return e(t)}function Lp(e,t,n,r,o){return e(t,n,r,o)}function Gu(){}var Np=Ku,Un=!1,Xu=!1;function Yu(){(Sr!==null||_r!==null)&&(Gu(),Pp())}function W1(e,t,n){if(Xu)return e(t,n);Xu=!0;try{return Np(e,t,n)}finally{Xu=!1,Yu()}}function Eo(e,t){var n=e.stateNode;if(n===null)return null;var r=Ea(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Zu=!1;if(qt)try{var Ro={};Object.defineProperty(Ro,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",Ro,Ro),window.removeEventListener("test",Ro,Ro)}catch{Zu=!1}function H1(e,t,n,r,o,i,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Oo=!1,aa=null,sa=!1,Ju=null,q1={onError:function(e){Oo=!0,aa=e}};function Q1(e,t,n,r,o,i,a,s,u){Oo=!1,aa=null,H1.apply(q1,arguments)}function K1(e,t,n,r,o,i,a,s,u){if(Q1.apply(this,arguments),Oo){if(Oo){var l=aa;Oo=!1,aa=null}else throw Error(j(198));sa||(sa=!0,Ju=l)}}function jn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!=0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ap(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Mp(e){if(jn(e)!==e)throw Error(j(188))}function G1(e){var t=e.alternate;if(!t){if(t=jn(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Mp(o),e;if(i===r)return Mp(o),t;i=i.sibling}throw Error(j(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function Dp(e){if(e=G1(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Fp(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Ip,el,$p,Up,tl=!1,It=[],un=null,ln=null,cn=null,Co=new Map,xo=new Map,ko=[],jp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nl(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:o,targetContainers:[r]}}function Vp(e,t){switch(e){case"focusin":case"focusout":un=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":cn=null;break;case"pointerover":case"pointerout":Co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xo.delete(t.pointerId)}}function To(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e=nl(t,n,r,o,i),t!==null&&(t=Vo(t),t!==null&&el(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function X1(e,t,n,r,o){switch(t){case"focusin":return un=To(un,e,t,n,r,o),!0;case"dragenter":return ln=To(ln,e,t,n,r,o),!0;case"mouseover":return cn=To(cn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Co.set(i,To(Co.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xo.set(i,To(xo.get(i)||null,e,t,n,r,o)),!0}return!1}function Y1(e){var t=Vn(e.target);if(t!==null){var n=jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Ap(n),t!==null){e.blockedOn=t,Up(e.lanePriority,function(){je.unstable_runWithPriority(e.priority,function(){$p(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ua(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Vo(n),t!==null&&el(t),e.blockedOn=n,!1;t.shift()}return!0}function Bp(e,t,n){ua(e)&&n.delete(t)}function Z1(){for(tl=!1;0<It.length;){var e=It[0];if(e.blockedOn!==null){e=Vo(e.blockedOn),e!==null&&Ip(e);break}for(var t=e.targetContainers;0<t.length;){var n=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&It.shift()}un!==null&&ua(un)&&(un=null),ln!==null&&ua(ln)&&(ln=null),cn!==null&&ua(cn)&&(cn=null),Co.forEach(Bp),xo.forEach(Bp)}function Po(e,t){e.blockedOn===t&&(e.blockedOn=null,tl||(tl=!0,je.unstable_scheduleCallback(je.unstable_NormalPriority,Z1)))}function zp(e){function t(o){return Po(o,e)}if(0<It.length){Po(It[0],e);for(var n=1;n<It.length;n++){var r=It[n];r.blockedOn===e&&(r.blockedOn=null)}}for(un!==null&&Po(un,e),ln!==null&&Po(ln,e),cn!==null&&Po(cn,e),Co.forEach(t),xo.forEach(t),n=0;n<ko.length;n++)r=ko[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ko.length&&(n=ko[0],n.blockedOn===null);)Y1(n),n.blockedOn===null&&ko.shift()}function la(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:la("Animation","AnimationEnd"),animationiteration:la("Animation","AnimationIteration"),animationstart:la("Animation","AnimationStart"),transitionend:la("Transition","TransitionEnd")},rl={},Wp={};qt&&(Wp=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);function ca(e){if(rl[e])return rl[e];if(!br[e])return e;var t=br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wp)return rl[e]=t[n];return e}var Hp=ca("animationend"),qp=ca("animationiteration"),Qp=ca("animationstart"),Kp=ca("transitionend"),Gp=new Map,ol=new Map,J1=["abort","abort",Hp,"animationEnd",qp,"animationIteration",Qp,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Kp,"transitionEnd","waiting","waiting"];function il(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),ol.set(r,t),Gp.set(r,o),Fn(o,[r])}}var ew=je.unstable_now;ew();var _e=8;function Er(e){if((1&e)!=0)return _e=15,1;if((2&e)!=0)return _e=14,2;if((4&e)!=0)return _e=13,4;var t=24&e;return t!==0?(_e=12,t):(e&32)!=0?(_e=11,32):(t=192&e,t!==0?(_e=10,t):(e&256)!=0?(_e=9,256):(t=3584&e,t!==0?(_e=8,t):(e&4096)!=0?(_e=7,4096):(t=4186112&e,t!==0?(_e=6,t):(t=62914560&e,t!==0?(_e=5,t):e&67108864?(_e=4,67108864):(e&134217728)!=0?(_e=3,134217728):(t=805306368&e,t!==0?(_e=2,t):(1073741824&e)!=0?(_e=1,1073741824):(_e=8,e))))))}function tw(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function nw(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(j(358,e))}}function Lo(e,t){var n=e.pendingLanes;if(n===0)return _e=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(i!==0)r=i,o=_e=15;else if(i=n&134217727,i!==0){var u=i&~a;u!==0?(r=Er(u),o=_e):(s&=i,s!==0&&(r=Er(s),o=_e))}else i=n&~a,i!==0?(r=Er(i),o=_e):s!==0&&(r=Er(s),o=_e);if(r===0)return 0;if(r=31-fn(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&a)==0){if(Er(t),o<=_e)return t;_e=o}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-fn(t),o=1<<n,r|=e[n],t&=~o;return r}function Xp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fa(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Rr(24&~t),e===0?fa(10,t):e;case 10:return e=Rr(192&~t),e===0?fa(8,t):e;case 8:return e=Rr(3584&~t),e===0&&(e=Rr(4186112&~t),e===0&&(e=512)),e;case 2:return t=Rr(805306368&~t),t===0&&(t=268435456),t}throw Error(j(358,e))}function Rr(e){return e&-e}function al(e){for(var t=[],n=0;31>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<It.length&&-1<jp.indexOf(e))e=nl(null,e,t,n,r),It.push(e);else{var i=ul(e,t,n,r);if(i===null)o&&Vp(e,r);else{if(o){if(-1<jp.indexOf(e)){e=nl(i,e,t,n,r),It.push(e);return}if(X1(i,e,t,n,r))return;Vp(e,r)}Ch(e,t,r,null,n)}}}}function ul(e,t,n,r){var o=qu(r);if(o=Vn(o),o!==null){var i=jn(o);if(i===null)o=null;else{var a=i.tag;if(a===13){if(o=Ap(i),o!==null)return o;o=null}else if(a===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Ch(e,t,r,o,n),null}var dn=null,ll=null,ha=null;function Yp(){if(ha)return ha;var e,t=ll,n=t.length,r,o="value"in dn?dn.value:dn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return ha=o.slice(e,1<r?1-r:void 0)}function va(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ma(){return!0}function Zp(){return!1}function st(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ma:Zp,this.isPropagationStopped=Zp,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ma)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ma)},persist:function(){},isPersistent:ma}),t}var Or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cl=st(Or),No=Ce({},Or,{view:0,detail:0}),cw=st(No),fl,dl,Ao,ga=Ce({},No,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ao&&(Ao&&e.type==="mousemove"?(fl=e.screenX-Ao.screenX,dl=e.screenY-Ao.screenY):dl=fl=0,Ao=e),fl)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),Jp=st(ga),fw=Ce({},ga,{dataTransfer:0}),dw=st(fw),pw=Ce({},No,{relatedTarget:0}),pl=st(pw),hw=Ce({},Or,{animationName:0,elapsedTime:0,pseudoElement:0}),vw=st(hw),mw=Ce({},Or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gw=st(mw),yw=Ce({},Or,{data:0}),eh=st(yw),ww={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_w={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_w[e])?!!t[e]:!1}function hl(){return bw}var Ew=Ce({},No,{key:function(e){if(e.key){var t=ww[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=va(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hl,charCode:function(e){return e.type==="keypress"?va(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?va(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rw=st(Ew),Ow=Ce({},ga,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),th=st(Ow),Cw=Ce({},No,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hl}),xw=st(Cw),kw=Ce({},Or,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tw=st(kw),Pw=Ce({},ga,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lw=st(Pw),Nw=[9,13,27,32],vl=qt&&"CompositionEvent"in window,Mo=null;qt&&"documentMode"in document&&(Mo=document.documentMode);var Aw=qt&&"TextEvent"in window&&!Mo,nh=qt&&(!vl||Mo&&8<Mo&&11>=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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nh&&t.locale!=="ko"?null:t.data;default:return null}}var Fw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fw[e.type]:t==="textarea"}function uh(e,t,n,r){Tp(r),t=wa(t,"onChange"),0<t.length&&(n=new cl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Do=null,Fo=null;function Iw(e){_h(e,0)}function ya(e){var t=Lr(e);if(gp(t))return e}function $w(e,t){if(e==="change")return t}var lh=!1;if(qt){var ml;if(qt){var gl="oninput"in document;if(!gl){var ch=document.createElement("div");ch.setAttribute("oninput","return;"),gl=typeof ch.oninput=="function"}ml=gl}else ml=!1;lh=ml&&(!document.documentMode||9<document.documentMode)}function fh(){Do&&(Do.detachEvent("onpropertychange",dh),Fo=Do=null)}function dh(e){if(e.propertyName==="value"&&ya(Fo)){var t=[];if(uh(t,Fo,e,qu(e)),e=Iw,Un)e(t);else{Un=!0;try{Ku(e,t)}finally{Un=!1,Yu()}}}}function Uw(e,t,n){e==="focusin"?(fh(),Do=t,Fo=n,Do.attachEvent("onpropertychange",dh)):e==="focusout"&&fh()}function jw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ya(Fo)}function Vw(e,t){if(e==="click")return ya(t)}function Bw(e,t){if(e==="input"||e==="change")return ya(t)}function zw(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:zw,Ww=Object.prototype.hasOwnProperty;function Io(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ww.call(t,n[r])||!ht(e[n[r]],t[n[r]]))return!1;return!0}function ph(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hh(e,t){var n=ph(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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"),0<r.length&&(t=new cl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}il("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);il("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);il(J1,2);for(var yh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_l=0;_l<yh.length;_l++)ol.set(yh[_l],0);gr("onMouseEnter",["mouseout","mouseover"]);gr("onMouseLeave",["mouseout","mouseover"]);gr("onPointerEnter",["pointerout","pointerover"]);gr("onPointerLeave",["pointerout","pointerover"]);Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wh=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uo));function Sh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,K1(r,t,void 0,e),e.currentTarget=null}function _h(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;Sh(o,s,l),i=u}else for(a=0;a<r.length;a++){if(s=r[a],u=s.instance,l=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;Sh(o,s,l),i=u}}}if(sa)throw e=Ju,sa=!1,Ju=null,e}function Ee(e,t){var n=Nh(t),r=e+"__bubble";n.has(r)||(Oh(t,e,2,!1),n.add(r))}var bh="_reactListening"+Math.random().toString(36).slice(2);function Eh(e){e[bh]||(e[bh]=!0,cp.forEach(function(t){wh.has(t)||Rh(t,!1,e,null),Rh(t,!0,e,null)}))}function Rh(e,t,n,r){var o=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(e==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),r!==null&&!t&&wh.has(e)){if(e!=="scroll")return;o|=2,i=r}var a=Nh(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Oh(i,e,o,t),a.add(s))}function Oh(e,t,n,r){var o=ol.get(t);switch(o===void 0?2:o){case 0:o=uw;break;case 1:o=lw;break;default:o=sl}n=o.bind(null,t,n,e),o=void 0,!Zu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ch(e,t,n,r,o){var i=r;if((t&1)==0&&(t&2)==0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Vn(s),a===null)return;if(u=a.tag,u===5||u===6){r=i=a;continue e}s=s.parentNode}}r=r.return}W1(function(){var l=i,c=qu(n),v=[];e:{var d=Gp.get(e);if(d!==void 0){var m=cl,y=e;switch(e){case"keypress":if(va(n)===0)break e;case"keydown":case"keyup":m=Rw;break;case"focusin":y="focus",m=pl;break;case"focusout":y="blur",m=pl;break;case"beforeblur":case"afterblur":m=pl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Jp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=dw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=xw;break;case Hp:case qp:case Qp:m=vw;break;case Kp:m=Tw;break;case"scroll":m=cw;break;case"wheel":m=Lw;break;case"copy":case"cut":case"paste":m=gw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=th}var _=(t&4)!=0,p=!_&&e==="scroll",f=_?d!==null?d+"Capture":null:d;_=[];for(var h=l,g;h!==null;){g=h;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,f!==null&&(w=Eo(h,f),w!=null&&_.push(jo(h,w,g)))),p)break;h=h.return}0<_.length&&(d=new m(d,y,null,n,c),v.push({event:d,listeners:_}))}}if((t&7)==0){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&(t&16)==0&&(y=n.relatedTarget||n.fromElement)&&(Vn(y)||y[Pr]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=l,y=y?Vn(y):null,y!==null&&(p=jn(y),y!==p||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=l),m!==y)){if(_=Jp,w="onMouseLeave",f="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(_=th,w="onPointerLeave",f="onPointerEnter",h="pointer"),p=m==null?d:Lr(m),g=y==null?d:Lr(y),d=new _(w,h+"leave",m,n,c),d.target=p,d.relatedTarget=g,w=null,Vn(c)===l&&(_=new _(f,h+"enter",y,n,c),_.target=g,_.relatedTarget=p,w=_),p=w,m&&y)t:{for(_=m,f=y,h=0,g=_;g;g=kr(g))h++;for(g=0,w=f;w;w=kr(w))g++;for(;0<h-g;)_=kr(_),h--;for(;0<g-h;)f=kr(f),g--;for(;h--;){if(_===f||f!==null&&_===f.alternate)break t;_=kr(_),f=kr(f)}_=null}else _=null;m!==null&&xh(v,d,m,_,!1),y!==null&&p!==null&&xh(v,p,y,_,!0)}}e:{if(d=l?Lr(l):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var x=$w;else if(sh(d))if(lh)x=Bw;else{x=jw;var E=Uw}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=Vw);if(x&&(x=x(e,l))){uh(v,x,n,c);break e}E&&E(e,d,l),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Uu(d,"number",d.value)}switch(E=l?Lr(l):window,e){case"focusin":(sh(E)||E.contentEditable==="true")&&(xr=E,wl=l,$o=null);break;case"focusout":$o=wl=xr=null;break;case"mousedown":Sl=!0;break;case"contextmenu":case"mouseup":case"dragend":Sl=!1,gh(v,n,c);break;case"selectionchange":if(Hw)break;case"keydown":case"keyup":gh(v,n,c)}var L;if(vl)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Cr?ih(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(nh&&n.locale!=="ko"&&(Cr||V!=="onCompositionStart"?V==="onCompositionEnd"&&Cr&&(L=Yp()):(dn=c,ll="value"in dn?dn.value:dn.textContent,Cr=!0)),E=wa(l,V),0<E.length&&(V=new eh(V,e,null,n,c),v.push({event:V,listeners:E}),L?V.data=L:(L=ah(n),L!==null&&(V.data=L)))),(L=Aw?Mw(e,n):Dw(e,n))&&(l=wa(l,"onBeforeInput"),0<l.length&&(c=new eh("onBeforeInput","beforeinput",null,n,c),v.push({event:c,listeners:l}),c.data=L))}_h(v,t)})}function jo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wa(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Eo(e,n),i!=null&&r.unshift(jo(e,i,o)),i=Eo(e,t),i!=null&&r.push(jo(e,i,o))),e=e.return}return r}function kr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xh(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&l!==null&&(s=l,o?(u=Eo(n,i),u!=null&&a.unshift(jo(n,u,s))):o||(u=Eo(n,i),u!=null&&a.push(jo(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function Sa(){}var bl=null,El=null;function kh(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Rl(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Th=typeof setTimeout=="function"?setTimeout:void 0,qw=typeof clearTimeout=="function"?clearTimeout:void 0;function Ol(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Tr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Ph(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cl=0;function Qw(e){return{$$typeof:Nu,toString:e,valueOf:e}}var _a=Math.random().toString(36).slice(2),pn="__reactFiber$"+_a,ba="__reactProps$"+_a,Pr="__reactContainer$"+_a,Lh="__reactEvents$"+_a;function Vn(e){var t=e[pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pr]||n[pn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ph(e);e!==null;){if(n=e[pn])return n;e=Ph(e)}return t}e=n,n=e.parentNode}return null}function Vo(e){return e=e[pn]||e[Pr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Ea(e){return e[ba]||null}function Nh(e){var t=e[Lh];return t===void 0&&(t=e[Lh]=new Set),t}var xl=[],Nr=-1;function hn(e){return{current:e}}function Re(e){0>Nr||(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(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Qt=null}catch(n){throw Qt!==null&&(Qt=Qt.slice(e+1)),Tl(Ca,$t),n}finally{Al=!1}}}var Zw=In.ReactCurrentBatchConfig;function Rt(e,t){if(e&&e.defaultProps){t=Ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ka=hn(null),Ta=null,Dr=null,Pa=null;function Ml(){Pa=Dr=Ta=null}function Dl(e){var t=ka.current;Re(ka),e.type._context._currentValue=t}function Wh(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Fr(e,t){Ta=e,Pa=Dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!=0&&(Ot=!0),e.firstContext=null)}function vt(e,t){if(Pa!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Pa=e,t=1073741823),t={context:e,observedBits:t,next:null},Dr===null){if(Ta===null)throw Error(j(308));Dr=t,Ta.dependencies={lanes:0,firstContext:t,responders:null}}else Dr=Dr.next=t;return e._currentValue}var mn=!1;function Fl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Hh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yn(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function qh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zo(e,t,n,r){var o=e.updateQueue;mn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,l=u.next;u.next=null,a===null?i=l:a.next=l,a=u;var c=e.alternate;if(c!==null){c=c.updateQueue;var v=c.lastBaseUpdate;v!==a&&(v===null?c.firstBaseUpdate=l:v.next=l,c.lastBaseUpdate=u)}}if(i!==null){v=o.baseState,a=0,c=l=u=null;do{s=i.lane;var d=i.eventTime;if((r&s)===s){c!==null&&(c=c.next={eventTime:d,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,y=i;switch(s=t,d=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){v=m.call(d,v,s);break e}v=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=y.payload,s=typeof m=="function"?m.call(d,v,s):m,s==null)break e;v=Ce({},v,s);break e;case 2:mn=!0}}i.callback!==null&&(e.flags|=32,s=o.effects,s===null?o.effects=[i]:s.push(i))}else d={eventTime:d,lane:s,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(l=c=d,u=v):c=c.next=d,a|=s;if(i=i.next,i===null){if(s=o.shared.pending,s===null)break;i=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}while(1);c===null&&(u=v),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,ti|=a,e.lanes=a,e.memoizedState=v}}function Qh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(j(191,o));o.call(r)}}}var Kh=new Zi.Component().refs;function La(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Na={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ut(),o=_n(e),i=gn(r,o);i.payload=t,n!=null&&(i.callback=n),yn(e,i),bn(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ut(),o=_n(e),i=gn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),yn(e,i),bn(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ut(),r=_n(e),o=gn(n,r);o.tag=2,t!=null&&(o.callback=t),yn(e,o),bn(e,r,n)}};function Gh(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Io(n,r)||!Io(o,i):!0}function Xh(e,t,n){var r=!1,o=vn,i=t.contextType;return typeof i=="object"&&i!==null?i=vt(i):(o=rt(t)?Bn:qe.current,r=t.contextTypes,i=(r=r!=null)?Ar(e,o):vn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Na,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Yh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Na.enqueueReplaceState(t,t.state,null)}function Il(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Kh,Fl(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=vt(i):(i=rt(t)?Bn:qe.current,o.context=Ar(e,i)),zo(e,n,o,r),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(La(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Na.enqueueReplaceState(o,o.state,null),zo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4)}var Aa=Array.isArray;function Wo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=r.refs;a===Kh&&(a=r.refs={}),i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Ma(e,t){if(e.type!=="textarea")throw Error(j(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Zh(e){function t(p,f){if(e){var h=p.lastEffect;h!==null?(h.nextEffect=f,p.lastEffect=f):p.firstEffect=p.lastEffect=f,f.nextEffect=null,f.flags=8}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function o(p,f){return p=On(p,f),p.index=0,p.sibling=null,p}function i(p,f,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<f?(p.flags=2,f):h):(p.flags=2,f)):f}function a(p){return e&&p.alternate===null&&(p.flags=2),p}function s(p,f,h,g){return f===null||f.tag!==6?(f=wc(h,p.mode,g),f.return=p,f):(f=o(f,h),f.return=p,f)}function u(p,f,h,g){return f!==null&&f.elementType===h.type?(g=o(f,h.props),g.ref=Wo(p,f,h),g.return=p,g):(g=Za(h.type,h.key,h.props,null,p.mode,g),g.ref=Wo(p,f,h),g.return=p,g)}function l(p,f,h,g){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=Sc(h,p.mode,g),f.return=p,f):(f=o(f,h.children||[]),f.return=p,f)}function c(p,f,h,g,w){return f===null||f.tag!==7?(f=Wr(h,p.mode,g,w),f.return=p,f):(f=o(f,h),f.return=p,f)}function v(p,f,h){if(typeof f=="string"||typeof f=="number")return f=wc(""+f,p.mode,h),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case mo:return h=Za(f.type,f.key,f.props,null,p.mode,h),h.ref=Wo(p,null,f),h.return=p,h;case $n:return f=Sc(f,p.mode,h),f.return=p,f}if(Aa(f)||wo(f))return f=Wr(f,p.mode,h,null),f.return=p,f;Ma(p,f)}return null}function d(p,f,h,g){var w=f!==null?f.key:null;if(typeof h=="string"||typeof h=="number")return w!==null?null:s(p,f,""+h,g);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case mo:return h.key===w?h.type===an?c(p,f,h.props.children,g,w):u(p,f,h,g):null;case $n:return h.key===w?l(p,f,h,g):null}if(Aa(h)||wo(h))return w!==null?null:c(p,f,h,g,null);Ma(p,h)}return null}function m(p,f,h,g,w){if(typeof g=="string"||typeof g=="number")return p=p.get(h)||null,s(f,p,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mo:return p=p.get(g.key===null?h:g.key)||null,g.type===an?c(f,p,g.props.children,w,g.key):u(f,p,g,w);case $n:return p=p.get(g.key===null?h:g.key)||null,l(f,p,g,w)}if(Aa(g)||wo(g))return p=p.get(h)||null,c(f,p,g,w,null);Ma(f,g)}return null}function y(p,f,h,g){for(var w=null,x=null,E=f,L=f=0,V=null;E!==null&&L<h.length;L++){E.index>L?(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(;L<h.length;L++)E=v(p,h[L],g),E!==null&&(f=i(E,f,L),x===null?w=E:x.sibling=E,x=E);return w}for(E=r(p,E);L<h.length;L++)V=m(E,p,L,h[L],g),V!==null&&(e&&V.alternate!==null&&E.delete(V.key===null?L:V.key),f=i(V,f,L),x===null?w=V:x.sibling=V,x=V);return e&&E.forEach(function(G){return t(p,G)}),w}function _(p,f,h,g){var w=wo(h);if(typeof w!="function")throw Error(j(150));if(h=w.call(h),h==null)throw Error(j(151));for(var x=w=null,E=f,L=f=0,V=null,F=h.next();E!==null&&!F.done;L++,F=h.next()){E.index>L?(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;n<t.length&&n<e.length;n++)if(!ht(e[n],t[n]))return!1;return!0}function Wl(e,t,n,r,o,i){if(Go=i,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=e===null||e.memoizedState===null?eS:tS,e=n(r,o),Xo){i=0;do{if(Xo=!1,!(25>i))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;0<h;){var g=31-fn(h),w=1<<g;f[g]|=p,h&=~w}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var p=d.getSnapshot,f=d.setSnapshot;try{f(p(t._source));var h=_n(_);o.mutableReadLanes|=h&o.pendingLanes}catch(g){f(function(){throw g})}})},[t,r]),ht(m,n)&&ht(y,t)&&ht(v,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:c},e.dispatch=l=Kl.bind(null,Fe,e),u.queue=e,u.baseQueue=null,c=ov(o,t,n),u.memoizedState=u.baseState=c),c}function av(e,t,n){var r=Qn();return iv(r,e,t,n)}function Jo(e){var t=qn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:e},e=e.dispatch=Kl.bind(null,Fe,e),[t.memoizedState,e]}function Ua(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function sv(e){var t=qn();return e={current:e},t.memoizedState=e}function ja(){return Qn().memoizedState}function Hl(e,t,n,r){var o=qn();Fe.flags|=e,o.memoizedState=Ua(1|t,n,void 0,r===void 0?null:r)}function ql(e,t,n,r){var o=Qn();r=r===void 0?null:r;var i=void 0;if(Ke!==null){var a=Ke.memoizedState;if(i=a.destroy,r!==null&&zl(r,a.deps)){Ua(t,n,i,r);return}}Fe.flags|=e,o.memoizedState=Ua(1|t,n,i,r)}function uv(e,t){return Hl(516,4,e,t)}function Va(e,t){return ql(516,4,e,t)}function lv(e,t){return ql(4,2,e,t)}function cv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fv(e,t,n){return n=n!=null?n.concat([e]):null,ql(4,2,cv.bind(null,t,e),n)}function Ql(){}function dv(e,t){var n=Qn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pv(e,t){var n=Qn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jw(e,t){var n=Mr();Wn(98>n?98:n,function(){e(!0)}),Wn(97<n?97:n,function(){var r=mt.transition;mt.transition=1;try{e(!1),t()}finally{mt.transition=r}})}function Kl(e,t,n){var r=ut(),o=_n(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Fe||a!==null&&a===Fe)Xo=$a=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,u=a(s,n);if(i.eagerReducer=a,i.eagerState=u,ht(u,s))return}catch{}finally{}bn(e,o,r)}}var Ba={readContext:vt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useOpaqueIdentifier:ot,unstable_isNewReconciler:!1},eS={readContext:vt,useCallback:function(e,t){return qn().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:uv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4,2,cv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hl(4,2,e,t)},useMemo:function(e,t){var n=qn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Kl.bind(null,Fe,e),[r.memoizedState,e]},useRef:sv,useState:Jo,useDebugValue:Ql,useDeferredValue:function(e){var t=Jo(e),n=t[0],r=t[1];return uv(function(){var o=mt.transition;mt.transition=1;try{r(e)}finally{mt.transition=o}},[e]),n},useTransition:function(){var e=Jo(!1),t=e[0];return e=Jw.bind(null,e[1]),sv(e),[e,t]},useMutableSource:function(e,t,n){var r=qn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},iv(r,e,t,n)},useOpaqueIdentifier:function(){if(jt){var e=!1,t=Qw(function(){throw e||(e=!0,n("r:"+(Cl++).toString(36))),Error(j(355))}),n=Jo(t)[1];return(Fe.mode&2)==0&&(Fe.flags|=516,Ua(5,function(){n("r:"+(Cl++).toString(36))},void 0,null)),t}return t="r:"+(Cl++).toString(36),Jo(t),t},unstable_isNewReconciler:!1},tS={readContext:vt,useCallback:dv,useContext:vt,useEffect:Va,useImperativeHandle:fv,useLayoutEffect:lv,useMemo:pv,useReducer:Yo,useRef:ja,useState:function(){return Yo(Vt)},useDebugValue:Ql,useDeferredValue:function(e){var t=Yo(Vt),n=t[0],r=t[1];return Va(function(){var o=mt.transition;mt.transition=1;try{r(e)}finally{mt.transition=o}},[e]),n},useTransition:function(){var e=Yo(Vt)[0];return[ja().current,e]},useMutableSource:av,useOpaqueIdentifier:function(){return Yo(Vt)[0]},unstable_isNewReconciler:!1},nS={readContext:vt,useCallback:dv,useContext:vt,useEffect:Va,useImperativeHandle:fv,useLayoutEffect:lv,useMemo:pv,useReducer:Zo,useRef:ja,useState:function(){return Zo(Vt)},useDebugValue:Ql,useDeferredValue:function(e){var t=Zo(Vt),n=t[0],r=t[1];return Va(function(){var o=mt.transition;mt.transition=1;try{r(e)}finally{mt.transition=o}},[e]),n},useTransition:function(){var e=Zo(Vt)[0];return[ja().current,e]},useMutableSource:av,useOpaqueIdentifier:function(){return Zo(Vt)[0]},unstable_isNewReconciler:!1},rS=In.ReactCurrentOwner,Ot=!1;function it(e,t,n,r){t.child=e===null?Jh(t,null,n,r):Da(t,e.child,n,r)}function hv(e,t,n,r,o){n=n.render;var i=t.ref;return Fr(t,o),r=Wl(e,t,n,r,i,o),e!==null&&!Ot?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Gt(e,t,o)):(t.flags|=1,it(e,t,r,o),t.child)}function vv(e,t,n,r,o,i){if(e===null){var a=n.type;return typeof a=="function"&&!gc(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,mv(e,t,a,r,o,i)):(e=Za(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,(o&i)==0&&(o=a.memoizedProps,n=n.compare,n=n!==null?n:Io,n(o,r)&&e.ref===t.ref)?Gt(e,t,i):(t.flags|=1,e=On(a,r),e.ref=t.ref,e.return=t,t.child=e)}function mv(e,t,n,r,o,i){if(e!==null&&Io(e.memoizedProps,r)&&e.ref===t.ref)if(Ot=!1,(i&o)!=0)(e.flags&16384)!=0&&(Ot=!0);else return t.lanes=e.lanes,Gt(e,t,i);return Xl(e,t,n,r,i)}function Gl(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if((t.mode&4)==0)t.memoizedState={baseLanes:0},Ya(t,n);else if((n&1073741824)!=0)t.memoizedState={baseLanes:0},Ya(t,i!==null?i.baseLanes:n);else return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Ya(t,e),null;else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ya(t,r);return it(e,t,o,n),t.child}function gv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Xl(e,t,n,r,o){var i=rt(n)?Bn:qe.current;return i=Ar(t,i),Fr(t,o),n=Wl(e,t,n,r,i,o),e!==null&&!Ot?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Gt(e,t,o)):(t.flags|=1,it(e,t,n,o),t.child)}function yv(e,t,n,r,o){if(rt(n)){var i=!0;Oa(t)}else i=!1;if(Fr(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Xh(t,n,r),Il(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=vt(l):(l=rt(n)?Bn:qe.current,l=Ar(t,l));var c=n.getDerivedStateFromProps,v=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";v||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Yh(t,a,r,l),mn=!1;var d=t.memoizedState;a.state=d,zo(t,r,a,o),u=t.memoizedState,s!==r||d!==u||nt.current||mn?(typeof c=="function"&&(La(t,n,c,r),u=t.memoizedState),(s=mn||Gh(t,n,s,r,d,u,l))?(v||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,Hh(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Rt(t.type,s),a.props=l,v=t.pendingProps,d=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=vt(u):(u=rt(n)?Bn:qe.current,u=Ar(t,u));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==v||d!==u)&&Yh(t,a,r,u),mn=!1,d=t.memoizedState,a.state=d,zo(t,r,a,o);var y=t.memoizedState;s!==v||d!==y||nt.current||mn?(typeof m=="function"&&(La(t,n,m,r),y=t.memoizedState),(l=mn||Gh(t,n,l,r,d,y,u))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=u,r=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Yl(e,t,n,r,i,o)}function Yl(e,t,n,r,o,i){gv(e,t);var a=(t.flags&64)!=0;if(!r&&!a)return o&&Dh(t,n,!1),Gt(e,t,i);r=t.stateNode,rS.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Da(t,e.child,null,i),t.child=Da(t,null,s,i)):it(e,t,s,i),t.memoizedState=r.state,o&&Dh(t,n,!0),t.child}function wv(e){var t=e.stateNode;t.pendingContext?Ah(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ah(e,t.context,!1),$l(e,t.containerInfo)}var za={dehydrated:null,retryLane:0};function Sv(e,t,n){var r=t.pendingProps,o=Ae.current,i=!1,a;return(a=(t.flags&64)!=0)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!=0),a?(i=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(o|=1),Ne(Ae,o&1),e===null?(r.fallback!==void 0&&jl(t),e=r.children,o=r.fallback,i?(e=_v(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=za,e):typeof r.unstable_expectedLoadTime=="number"?(e=_v(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=za,t.lanes=33554432,e):(n=yc({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?i?(r=Ev(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=za,r):(n=bv(e,t,r.children,n),t.memoizedState=null,n):i?(r=Ev(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=za,r):(n=bv(e,t,r.children,n),t.memoizedState=null,n)}function _v(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},(o&2)==0&&i!==null?(i.childLanes=0,i.pendingProps=t):i=yc(t,o,0,null),n=Wr(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function bv(e,t,n,r){var o=e.child;return e=o.sibling,n=On(o,{mode:"visible",children:n}),(t.mode&2)==0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ev(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return(i&2)==0&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=On(a,s),e!==null?r=On(e,r):(r=Wr(r,i,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Rv(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Wh(e.return,t)}function Zl(e,t,n,r,o,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Ov(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(it(e,t,r.children,n),r=Ae.current,(r&2)!=0)r=r&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!=0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rv(e,n);else if(e.tag===19)Rv(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ne(Ae,r),(t.mode&2)==0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Fa(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Zl(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Fa(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Zl(t,!0,n,null,i,t.lastEffect);break;case"together":Zl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ti|=t.lanes,(n&t.childLanes)!=0){if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Cv,Jl,xv,kv;Cv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&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.sibling.return=n.return,n=n.sibling}};Jl=function(){};xv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Hn(Ut.current);var i=null;switch(n){case"input":o=Iu(e,o),r=Iu(e,r),i=[];break;case"option":o=ju(e,o),r=ju(e,r),i=[];break;case"select":o=Ce({},o,{value:void 0}),r=Ce({},r,{value:void 0}),i=[];break;case"textarea":o=Vu(e,o),r=Vu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Sa)}Wu(n,r);var a;n=null;for(l in o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var s=o[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(vo.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in r){var u=r[l];if(s=o!=null?o[l]:void 0,r.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(vo.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Ee("scroll",e),i||s===u||(i=[])):typeof u=="object"&&u!==null&&u.$$typeof===Nu?u.toString():(i=i||[]).push(l,u))}n&&(i=i||[]).push("style",n);var l=i;(t.updateQueue=l)&&(t.flags|=4)}};kv=function(e,t,n,r){n!==r&&(t.flags|=4)};function ei(e,t){if(!jt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function oS(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return rt(t.type)&&Ra(),null;case 3:return Ir(),Re(nt),Re(qe),Bl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Jl(t),null;case 5:Ul(t);var o=Hn(Qo.current);if(n=t.type,e!==null&&t.stateNode!=null)xv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(j(166));return null}if(e=Hn(Ut.current),Ia(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pn]=t,r[ba]=i,n){case"dialog":Ee("cancel",r),Ee("close",r);break;case"iframe":case"object":case"embed":Ee("load",r);break;case"video":case"audio":for(e=0;e<Uo.length;e++)Ee(Uo[e],r);break;case"source":Ee("error",r);break;case"img":case"image":case"link":Ee("error",r),Ee("load",r);break;case"details":Ee("toggle",r);break;case"input":yp(r,i),Ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ee("invalid",r);break;case"textarea":_p(r,i),Ee("invalid",r)}Wu(n,i),e=null;for(var a in i)i.hasOwnProperty(a)&&(o=i[a],a==="children"?typeof o=="string"?r.textContent!==o&&(e=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(e=["children",""+o]):vo.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&Ee("scroll",r));switch(n){case"input":ra(r),Sp(r,i,!0);break;case"textarea":ra(r),Ep(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Sa)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=o.nodeType===9?o:o.ownerDocument,e===Bu.html&&(e=Rp(n)),e===Bu.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/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;o<Uo.length;o++)Ee(Uo[o],e);o=r;break;case"source":Ee("error",e),o=r;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),o=r;break;case"details":Ee("toggle",e),o=r;break;case"input":yp(e,r),o=Iu(e,r),Ee("invalid",e);break;case"option":o=ju(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ce({},r,{value:void 0}),Ee("invalid",e);break;case"textarea":_p(e,r),o=Vu(e,r),Ee("invalid",e);break;default:o=r}Wu(n,o);var s=o;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];i==="style"?xp(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Op(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&_o(e,u):typeof u=="number"&&_o(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(vo.hasOwnProperty(i)?u!=null&&i==="onScroll"&&Ee("scroll",e):u!=null&&Cu(e,i,u,a))}switch(n){case"input":ra(e),Sp(e,r,!1);break;case"textarea":ra(e),Ep(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?wr(e,!!r.multiple,i,!1):r.defaultValue!=null&&wr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Sa)}kh(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)kv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));n=Hn(Qo.current),Hn(Ut.current),Ia(t)?(r=t.stateNode,n=t.memoizedProps,r[pn]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pn]=t,t.stateNode=r)}return null;case 13:return Re(Ae),r=t.memoizedState,(t.flags&64)!=0?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ia(t):n=e.memoizedState!==null,r&&!n&&(t.mode&2)!=0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Ae.current&1)!=0?We===0&&(We=3):((We===0||We===3)&&(We=4),Ze===null||(ti&134217727)==0&&(jr&134217727)==0||Br(Ze,Ge))),(r||n)&&(t.flags|=4),null);case 4:return Ir(),Jl(t),e===null&&Eh(t.stateNode.containerInfo),null;case 10:return Dl(t),null;case 17:return rt(t.type)&&Ra(),null;case 19:if(Re(Ae),r=t.memoizedState,r===null)return null;if(i=(t.flags&64)!=0,a=r.rendering,a===null)if(i)ei(r,!1);else{if(We!==0||e!==null&&(e.flags&64)!=0)for(e=t.child;e!==null;){if(a=Fa(e),a!==null){for(t.flags|=64,ei(r,!1),i=a.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ne(Ae,Ae.current&1|2),t.child}e=e.sibling}r.tail!==null&&Qe()>cc&&(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;o<i.length;o+=2){var a=i[o],s=i[o+1];a==="style"?xp(n,s):a==="dangerouslySetInnerHTML"?Op(n,s):a==="children"?_o(n,s):Cu(n,a,s,t)}switch(e){case"input":$u(n,r);break;case"textarea":bp(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,i=r.value,i!=null?wr(n,!!r.multiple,i,!1):e!==!!r.multiple&&(r.defaultValue!=null?wr(n,!!r.multiple,r.defaultValue,!0):wr(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(j(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,zp(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(lc=Qe(),Nv(t.child,!0)),$v(t);return;case 19:$v(t);return;case 17:return;case 23:case 24:Nv(t,t.memoizedState!==null);return}throw Error(j(163))}function $v(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sS),t.forEach(function(r){var o=SS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function cS(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var fS=Math.ceil,Wa=In.ReactCurrentDispatcher,ic=In.ReactCurrentOwner,oe=0,Ze=null,$e=null,Ge=0,Kn=0,ac=hn(0),We=0,Ha=null,Ur=0,ti=0,jr=0,sc=0,uc=null,lc=0,cc=1/0;function Vr(){cc=Qe()+500}var Q=null,qa=!1,fc=null,Bt=null,Sn=!1,ni=null,ri=90,dc=[],pc=[],Xt=null,oi=0,hc=null,Qa=-1,Yt=0,Ka=0,ii=null,Ga=!1;function ut(){return(oe&48)!=0?Qe():Qa!==-1?Qa:Qa=Qe()}function _n(e){if(e=e.mode,(e&2)==0)return 1;if((e&4)==0)return Mr()===99?1:2;if(Yt===0&&(Yt=Ur),Zw.transition!==0){Ka!==0&&(Ka=uc!==null?uc.pendingLanes:0),e=Yt;var t=4186112&~Ka;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Mr(),(oe&4)!=0&&e===98?e=fa(12,Yt):(e=tw(e),e=fa(e,Yt)),e}function bn(e,t,n){if(50<oi)throw oi=0,hc=null,Error(j(185));if(e=Xa(e,t),e===null)return null;da(e,t,n),e===Ze&&(jr|=t,We===4&&Br(e,Ge));var r=Mr();t===1?(oe&8)!=0&&(oe&48)==0?vc(e):(gt(e,n),oe===0&&(Vr(),$t())):((oe&4)==0||r!==98&&r!==99||(Xt===null?Xt=new Set([e]):Xt.add(e)),gt(e,n)),uc=e}function Xa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function gt(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-fn(a),u=1<<s,l=i[s];if(l===-1){if((u&r)==0||(u&o)!=0){l=t,Er(u);var c=_e;i[s]=10<=c?l+250:6<=c?l+5e3:-1}}else l<=t&&(e.expiredLanes|=u);a&=~u}if(r=Lo(e,e===Ze?Ge:0),t=_e,r===0)n!==null&&(n!==Nl&&Pl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Nl&&Pl(n)}t===15?(n=vc.bind(null,e),Qt===null?(Qt=[n],xa=Tl(Ca,zh)):Qt.push(n),n=Nl):t===14?n=Bo(99,vc.bind(null,e)):(n=nw(t),n=Bo(n,Uv.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Uv(e){if(Qa=-1,Ka=Yt=0,(oe&48)!=0)throw Error(j(327));var t=e.callbackNode;if(En()&&e.callbackNode!==t)return null;var n=Lo(e,e===Ze?Ge:0);if(n===0)return null;var r=n,o=oe;oe|=16;var i=zv();(Ze!==e||Ge!==r)&&(Vr(),zr(e,r));do try{hS();break}catch(s){Bv(e,s)}while(1);if(Ml(),Wa.current=i,oe=o,$e!==null?r=0:(Ze=null,Ge=0,r=We),(Ur&jr)!=0)zr(e,0);else if(r!==0){if(r===2&&(oe|=64,e.hydrate&&(e.hydrate=!1,Ol(e.containerInfo)),n=Xp(e),n!==0&&(r=ai(e,n))),r===1)throw t=Ha,zr(e,0),Br(e,n),gt(e,Qe()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(j(345));case 2:Gn(e);break;case 3:if(Br(e,n),(n&62914560)===n&&(r=lc+500-Qe(),10<r)){if(Lo(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Th(Gn.bind(null,e),r);break}Gn(e);break;case 4:if(Br(e,n),(n&4186112)===n)break;for(r=e.eventTimes,o=-1;0<n;){var a=31-fn(n);i=1<<a,a=r[a],a>o&&(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<n){e.timeoutHandle=Th(Gn.bind(null,e),n);break}Gn(e);break;case 5:Gn(e);break;default:throw Error(j(329))}}return gt(e,Qe()),e.callbackNode===t?Uv.bind(null,e):null}function Br(e,t){for(t&=~sc,t&=~jr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-fn(t),r=1<<n;e[n]=-1,t&=~r}}function vc(e){if((oe&48)!=0)throw Error(j(327));if(En(),e===Ze&&(e.expiredLanes&Ge)!=0){var t=Ge,n=ai(e,t);(Ur&jr)!=0&&(t=Lo(e,t),n=ai(e,t))}else t=Lo(e,0),n=ai(e,t);if(e.tag!==0&&n===2&&(oe|=64,e.hydrate&&(e.hydrate=!1,Ol(e.containerInfo)),t=Xp(e),t!==0&&(n=ai(e,t))),n===1)throw n=Ha,zr(e,0),Br(e,t),gt(e,Qe()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gn(e),gt(e,Qe()),null}function dS(){if(Xt!==null){var e=Xt;Xt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,gt(t,Qe())})}$t()}function jv(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Vr(),$t())}}function Vv(e,t){var n=oe;oe&=-2,oe|=8;try{return e(t)}finally{oe=n,oe===0&&(Vr(),$t())}}function Ya(e,t){Ne(ac,Kn),Kn|=t,Ur|=t}function mc(){Kn=ac.current,Re(ac)}function zr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qw(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ra();break;case 3:Ir(),Re(nt),Re(qe),Bl();break;case 5:Ul(r);break;case 4:Ir();break;case 13:Re(Ae);break;case 19:Re(Ae);break;case 10:Dl(r);break;case 23:case 24:mc()}n=n.return}Ze=e,$e=On(e.current,null),Ge=Kn=Ur=t,We=0,Ha=null,sc=jr=ti=0}function Bv(e,t){do{var n=$e;try{if(Ml(),Ko.current=Ba,$a){for(var r=Fe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}$a=!1}if(Go=0,ze=Ke=Fe=null,Xo=!1,ic.current=null,n===null||n.return===null){We=1,Ha=t,$e=null;break}e:{var i=e,a=n.return,s=n,u=t;if(t=Ge,s.flags|=2048,s.firstEffect=s.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u;if((s.mode&2)==0){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var v=(Ae.current&1)!=0,d=a;do{var m;if(m=d.tag===13){var y=d.memoizedState;if(y!==null)m=y.dehydrated!==null;else{var _=d.memoizedProps;m=_.fallback===void 0?!1:_.unstable_avoidThisFallback!==!0?!0:!v}}if(m){var p=d.updateQueue;if(p===null){var f=new Set;f.add(l),d.updateQueue=f}else p.add(l);if((d.mode&2)==0){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var h=gn(-1,1);h.tag=2,yn(s,h)}s.lanes|=1;break e}u=void 0,s=t;var g=i.pingCache;if(g===null?(g=i.pingCache=new aS,u=new Set,g.set(l,u)):(u=g.get(l),u===void 0&&(u=new Set,g.set(l,u))),!u.has(s)){u.add(s);var w=wS.bind(null,i,l,s);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(d!==null);u=Error((yr(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
|
|
Add a <Suspense fallback=...> 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),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=iS(t),n!==null){n.flags&=2047,$e=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);We===0&&(We=5)}function Gn(e){var t=Mr();return Wn(99,vS.bind(null,e,t)),null}function vS(e,t){do En();while(ni!==null);if((oe&48)!=0)throw Error(j(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<i;){var u=31-fn(i),l=1<<u;o[u]=0,a[u]=-1,s[u]=-1,i&=~l}if(Xt!==null&&(r&24)==0&&Xt.has(e)&&Xt.delete(e),e===Ze&&($e=Ze=null,Ge=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(o=oe,oe|=32,ic.current=null,bl=pa,a=mh(),yl(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(l=s.getSelection&&s.getSelection())&&l.rangeCount!==0){s=l.anchorNode,i=l.anchorOffset,u=l.focusNode,l=l.focusOffset;try{s.nodeType,u.nodeType}catch{s=null;break e}var c=0,v=-1,d=-1,m=0,y=0,_=a,p=null;t:for(;;){for(var f;_!==s||i!==0&&_.nodeType!==3||(v=c+i),_!==u||l!==0&&_.nodeType!==3||(d=c+l),_.nodeType===3&&(c+=_.nodeValue.length),(f=_.firstChild)!==null;)p=_,_=f;for(;;){if(_===a)break t;if(p===s&&++m===i&&(v=c),p===u&&++y===l&&(d=c),(f=_.nextSibling)!==null)break;_=p,p=_.parentNode}_=f}s=v===-1||d===-1?null:{start:v,end:d}}else s=null;s=s||{start:0,end:0}}else s=null;El={focusedElem:a,selectionRange:s},pa=!1,ii=null,Ga=!1,Q=r;do try{mS()}catch(F){if(Q===null)throw Error(j(330));Rn(Q,F),Q=Q.nextEffect}while(Q!==null);ii=null,Q=r;do try{for(a=e;Q!==null;){var h=Q.flags;if(h&16&&_o(Q.stateNode,""),h&128){var g=Q.alternate;if(g!==null){var w=g.ref;w!==null&&(typeof w=="function"?w(null):w.current=null)}}switch(h&1038){case 2:Fv(Q),Q.flags&=-3;break;case 6:Fv(Q),Q.flags&=-3,oc(Q.alternate,Q);break;case 1024:Q.flags&=-1025;break;case 1028:Q.flags&=-1025,oc(Q.alternate,Q);break;case 4:oc(Q.alternate,Q);break;case 8:s=Q,Iv(a,s);var x=s.alternate;Mv(s),x!==null&&Mv(x)}Q=Q.nextEffect}}catch(F){if(Q===null)throw Error(j(330));Rn(Q,F),Q=Q.nextEffect}while(Q!==null);if(w=El,g=mh(),h=w.focusedElem,a=w.selectionRange,g!==h&&h&&h.ownerDocument&&vh(h.ownerDocument.documentElement,h)){for(a!==null&&yl(h)&&(g=a.start,w=a.end,w===void 0&&(w=g),"selectionStart"in h?(h.selectionStart=g,h.selectionEnd=Math.min(w,h.value.length)):(w=(g=h.ownerDocument||document)&&g.defaultView||window,w.getSelection&&(w=w.getSelection(),s=h.textContent.length,x=Math.min(a.start,s),a=a.end===void 0?x:Math.min(a.end,s),!w.extend&&x>a&&(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;h<g.length;h++)w=g[h],w.element.scrollLeft=w.left,w.element.scrollTop=w.top}pa=!!bl,El=bl=null,e.current=n,Q=r;do try{for(h=e;Q!==null;){var E=Q.flags;if(E&36&&lS(h,Q.alternate,Q),E&128){g=void 0;var L=Q.ref;if(L!==null){var V=Q.stateNode;switch(Q.tag){case 5:g=V;break;default:g=V}typeof L=="function"?L(g):L.current=g}}Q=Q.nextEffect}}catch(F){if(Q===null)throw Error(j(330));Rn(Q,F),Q=Q.nextEffect}while(Q!==null);Q=null,Yw(),oe=o}else e.current=n;if(Sn)Sn=!1,ni=e,ri=t;else for(Q=r;Q!==null;)t=Q.nextEffect,Q.nextEffect=null,Q.flags&8&&(E=Q,E.sibling=null,E.stateNode=null),Q=t;if(r=e.pendingLanes,r===0&&(Bt=null),r===1?e===hc?oi++:(oi=0,hc=e):oi=0,n=n.stateNode,zn&&typeof zn.onCommitFiberRoot=="function")try{zn.onCommitFiberRoot(kl,n,void 0,(n.current.flags&64)==64)}catch{}if(gt(e,Qe()),qa)throw qa=!1,e=fc,fc=null,e;return(oe&8)!=0||$t(),null}function mS(){for(;Q!==null;){var e=Q.alternate;Ga||ii===null||((Q.flags&8)!=0?Fp(Q,ii)&&(Ga=!0):Q.tag===13&&cS(e,Q)&&Fp(Q,ii)&&(Ga=!0));var t=Q.flags;(t&256)!=0&&uS(e,Q),(t&512)==0||Sn||(Sn=!0,Bo(97,function(){return En(),null})),Q=Q.nextEffect}}function En(){if(ri!==90){var e=97<ri?97:ri;return ri=90,Wn(e,yS)}return!1}function gS(e,t){dc.push(t,e),Sn||(Sn=!0,Bo(97,function(){return En(),null}))}function qv(e,t){pc.push(t,e),Sn||(Sn=!0,Bo(97,function(){return En(),null}))}function yS(){if(ni===null)return!1;var e=ni;if(ni=null,(oe&48)!=0)throw Error(j(331));var t=oe;oe|=32;var n=pc;pc=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],a=o.destroy;if(o.destroy=void 0,typeof a=="function")try{a()}catch(u){if(i===null)throw Error(j(330));Rn(i,u)}}for(n=dc,dc=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(u){if(i===null)throw Error(j(330));Rn(i,u)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return oe=t,$t(),!0}function Qv(e,t,n){t=ec(n,t),t=Tv(e,t,1),yn(e,t),t=ut(),e=Xa(e,1),e!==null&&(da(e,1,t),gt(e,t))}function Rn(e,t){if(e.tag===3)Qv(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Qv(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bt===null||!Bt.has(r))){e=ec(t,e);var o=Pv(n,e,1);if(yn(n,o),o=ut(),n=Xa(n,1),n!==null)da(n,1,o),gt(n,o);else if(typeof r.componentDidCatch=="function"&&(Bt===null||!Bt.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function wS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ut(),e.pingedLanes|=e.suspendedLanes&n,Ze===e&&(Ge&n)===n&&(We===4||We===3&&(Ge&62914560)===Ge&&500>Qe()-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<e.length;o+=2)i=e[o],i._workInProgressVersionPrimary=e[o+1],$r.push(i);for(n=Jh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else it(e,t,r,n),Vl();t=t.child}return t;case 5:return ev(t),e===null&&jl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Rl(r,o)?a=null:i!==null&&Rl(r,i)&&(t.flags|=16),gv(e,t),it(e,t,a,n),t.child;case 6:return e===null&&jl(t),null;case 13:return Sv(e,t,n);case 4:return $l(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Da(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),hv(e,t,r,o,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var s=t.type._context;if(Ne(ka,s._currentValue),s._currentValue=i,a!==null)if(s=a.value,i=ht(s,i)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,i):1073741823)|0,i===0){if(a.children===o.children&&!nt.current){t=Gt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){a=s.child;for(var l=u.firstContext;l!==null;){if(l.context===r&&(l.observedBits&i)!=0){s.tag===1&&(l=gn(-1,n&-n),l.tag=2,yn(s,l)),s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Wh(s.return,n),u.lanes|=n;break}l=l.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}it(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps,r=i.children,Fr(t,n),o=vt(o,i.unstable_observedBits),r=r(o),t.flags|=1,it(e,t,r,n),t.child;case 14:return o=t.type,i=Rt(o,t.pendingProps),i=Rt(o.type,i),vv(e,t,o,i,r,n);case 15:return mv(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,rt(r)?(e=!0,Oa(t)):e=!1,Fr(t,n),Xh(t,r,o),Il(t,r,o,n),Yl(null,t,r,!0,e,n);case 19:return Ov(e,t,n);case 23:return Gl(e,t,n);case 24:return Gl(e,t,n)}throw Error(j(156,t.tag))};function _S(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,n,r){return new _S(e,t,n,r)}function gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bS(e){if(typeof e=="function")return gc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ji)return 11;if(e===ta)return 14}return 2}function On(e,t){var n=e.alternate;return n===null?(n=yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Za(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")gc(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case an:return Wr(n.children,o,i,t);case hp:a=8,o|=16;break;case xu:a=8,o|=1;break;case go:return e=yt(12,n,t,o|8),e.elementType=go,e.type=go,e.lanes=i,e;case yo:return e=yt(13,n,t,o),e.type=yo,e.elementType=yo,e.lanes=i,e;case ea:return e=yt(19,n,t,o),e.elementType=ea,e.lanes=i,e;case Au:return yc(n,o,i,t);case Mu:return e=yt(24,n,t,o),e.elementType=Mu,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ku:a=10;break e;case Tu:a=9;break e;case Ji:a=11;break e;case ta:a=14;break e;case Pu:a=16,r=null;break e;case Lu:a=22;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=yt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Wr(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function yc(e,t,n,r){return e=yt(23,e,r,t),e.elementType=Au,e.lanes=n,e}function wc(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function Sc(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ES(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=al(0),this.expirationTimes=al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=al(0),this.mutableSourceEagerHydrationData=null}function RS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$n,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ja(e,t,n,r){var o=t.current,i=ut(),a=_n(o);e:if(n){n=n._reactInternals;t:{if(jn(n)!==n||n.tag!==1)throw Error(j(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(rt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(j(171))}if(n.tag===1){var u=n.type;if(rt(u)){n=Mh(n,u,s);break e}}n=s}else n=vn;return t.context===null?t.context=n:t.pendingContext=n,t=gn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),yn(o,t),bn(o,a,i),a}function _c(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Gv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bc(e,t){Gv(e,t),(e=e.alternate)&&Gv(e,t)}function OS(){return null}function Ec(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new ES(e,t,n!=null&&n.hydrate===!0),t=yt(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Fl(t),e[Pr]=n.current,Eh(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var o=t._getVersion;o=o(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}Ec.prototype.render=function(e){Ja(e,this._internalRoot,null,null)};Ec.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ja(null,e,null,function(){t[Pr]=null})};function si(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function CS(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ec(e,0,t?{hydrate:!0}:void 0)}function es(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if(typeof o=="function"){var s=o;o=function(){var l=_c(a);s.call(l)}}Ja(t,a,e,o)}else{if(i=n._reactRootContainer=CS(n,r),a=i._internalRoot,typeof o=="function"){var u=o;o=function(){var l=_c(a);u.call(l)}}Vv(function(){Ja(t,a,e,o)})}return _c(a)}Ip=function(e){if(e.tag===13){var t=ut();bn(e,4,t),bc(e,4)}};el=function(e){if(e.tag===13){var t=ut();bn(e,67108864,t),bc(e,67108864)}};$p=function(e){if(e.tag===13){var t=ut(),n=_n(e);bn(e,n,t),bc(e,n)}};Up=function(e,t){return t()};Qu=function(e,t,n){switch(t){case"input":if($u(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ea(r);if(!o)throw Error(j(90));gp(r),$u(r,o)}}}break;case"textarea":bp(e,n);break;case"select":t=n.value,t!=null&&wr(e,!!n.multiple,t,!1)}};Ku=jv;Lp=function(e,t,n,r,o){var i=oe;oe|=4;try{return Wn(98,e.bind(null,t,n,r,o))}finally{oe=i,oe===0&&(Vr(),$t())}};Gu=function(){(oe&49)==0&&(dS(),En())};Np=function(e,t){var n=oe;oe|=2;try{return e(t)}finally{oe=n,oe===0&&(Vr(),$t())}};function Xv(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!si(t))throw Error(j(200));return RS(e,t,null,n)}var xS={Events:[Vo,Lr,Ea,Tp,Pp,En,{current:!1}]},ui={findFiberByHostInstance:Vn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},kS={bundleType:ui.bundleType,version:ui.version,rendererPackageName:ui.rendererPackageName,rendererConfig:ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:In.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Dp(e),e===null?null:e.stateNode},findFiberByHostInstance:ui.findFiberByHostInstance||OS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ts.isDisabled&&ts.supportsFiber)try{kl=ts.inject(kS),zn=ts}catch{}}pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xS;pt.createPortal=Xv;pt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):Error(j(268,Object.keys(e)));return e=Dp(t),e=e===null?null:e.stateNode,e};pt.flushSync=function(e,t){var n=oe;if((n&48)!=0)return e(t);oe|=1;try{if(e)return Wn(99,e.bind(null,t))}finally{oe=n,$t()}};pt.hydrate=function(e,t,n){if(!si(t))throw Error(j(200));return es(null,e,t,!0,n)};pt.render=function(e,t,n){if(!si(t))throw Error(j(200));return es(null,e,t,!1,n)};pt.unmountComponentAtNode=function(e){if(!si(e))throw Error(j(40));return e._reactRootContainer?(Vv(function(){es(null,null,e,!1,function(){e._reactRootContainer=null,e[Pr]=null})}),!0):!1};pt.unstable_batchedUpdates=jv;pt.unstable_createPortal=function(e,t){return Xv(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};pt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!si(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return es(e,t,n,!1,r)};pt.version="17.0.2";function Yv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yv)}catch(e){console.error(e)}}Yv(),Yi.exports=pt;var Zv=Yi.exports,Rc={exports:{}},Xn={},ns={exports:{}},TS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PS=TS,LS=PS;function Jv(){}function em(){}em.resetWarningCache=Jv;var NS=function(){function e(r,o,i,a,s,u){if(u!==LS){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:em,resetWarningCache:Jv};return n.PropTypes=n,n};ns.exports=NS();var ne=ns.exports,Oc={exports:{}},Ct={},rs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;/*!
|
|
* Adapted from jQuery UI core
|
|
*
|
|
* http://jqueryui.com
|
|
*
|
|
* Copyright 2014 jQuery Foundation and other contributors
|
|
* Released under the MIT license.
|
|
* http://jquery.org/license
|
|
*
|
|
* http://api.jqueryui.com/category/ui-core/
|
|
*/var n=/input|select|textarea|button|object/;function r(u){var l=u.offsetWidth<=0&&u.offsetHeight<=0;if(l&&!u.innerHTML)return!0;try{var c=window.getComputedStyle(u);return l?c.getPropertyValue("overflow")!=="visible"||u.scrollWidth<=0&&u.scrollHeight<=0:c.getPropertyValue("display")=="none"}catch{return console.warn("Failed to inspect element style"),!1}}function o(u){for(var l=u,c=u.getRootNode&&u.getRootNode();l&&l!==document.body;){if(c&&l===c&&(l=c.host.parentNode),r(l))return!1;l=l.parentNode}return!0}function i(u,l){var c=u.nodeName.toLowerCase(),v=n.test(c)&&!u.disabled||c==="a"&&u.href||l;return v&&o(u)}function a(u){var l=u.getAttribute("tabindex");l===null&&(l=void 0);var c=isNaN(l);return(c||l>=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;t<e.length;t++){var n=e[t];!n||n.parentNode&&n.parentNode.removeChild(n)}Xe=Tt=null,Yn=[]}function y_(){console.log("bodyTrap ----------"),console.log(Yn.length);for(var e=[Xe,Tt],t=0;t<e.length;t++){var n=e[t],r=n||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")}function im(){Yn.length!==0&&Yn[Yn.length-1].focusContent()}function w_(e,t){!Xe&&!Tt&&(Xe=document.createElement("div"),Xe.setAttribute("data-react-modal-body-trap",""),Xe.style.position="absolute",Xe.style.opacity="0",Xe.setAttribute("tabindex","0"),Xe.addEventListener("focus",im),Tt=Xe.cloneNode(),Tt.addEventListener("focus",im)),Yn=t,Yn.length>0?(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;C<arguments.length;C++){var U=arguments[C];for(var b in U)Object.prototype.hasOwnProperty.call(U,b)&&(S[b]=U[b])}return S},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},o=function(){function S(C,U){for(var b=0;b<U.length;b++){var P=U[b];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}return function(C,U,b){return U&&S(C.prototype,U),b&&S(C,b),C}}(),i=$.exports,a=ns.exports,s=x(a),u=Ct,l=w(u),c=xc.exports,v=x(c),d=xt,m=w(d),y=Qr,_=w(y),p=kt,f=x(p),h=Kr,g=x(h);function w(S){if(S&&S.__esModule)return S;var C={};if(S!=null)for(var U in S)Object.prototype.hasOwnProperty.call(S,U)&&(C[U]=S[U]);return C.default=S,C}function x(S){return S&&S.__esModule?S:{default:S}}function E(S,C){if(!(S instanceof C))throw new TypeError("Cannot call a class as a function")}function L(S,C){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:S}function V(S,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);S.prototype=Object.create(C&&C.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(S,C):S.__proto__=C)}var F={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},G=9,Y=27,ie=0,Z=function(S){V(C,S);function C(U){E(this,C);var b=L(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,U));return b.setOverlayRef=function(P){b.overlay=P,b.props.overlayRef&&b.props.overlayRef(P)},b.setContentRef=function(P){b.content=P,b.props.contentRef&&b.props.contentRef(P)},b.afterClose=function(){var P=b.props,I=P.appElement,J=P.ariaHideApp,k=P.htmlOpenClassName,N=P.bodyOpenClassName;N&&_.remove(document.body,N),k&&_.remove(document.getElementsByTagName("html")[0],k),J&&ie>0&&(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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E_=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),cm=$.exports,as=pi(cm),R_=Yi.exports,ss=pi(R_),O_=ns.exports,se=pi(O_),C_=Oc.exports,fm=pi(C_),x_=xt,k_=P_(x_),Cn=kt,dm=pi(Cn),T_=b_;function P_(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function pi(e){return e&&e.__esModule?e:{default:e}}function L_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function N_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var A_=Xn.portalClassName="ReactModalPortal",M_=Xn.bodyOpenClassName="ReactModal__Body--open",Zn=Cn.canUseDOM&&ss.default.createPortal!==void 0,hm=function(t){return document.createElement(t)},vm=function(){return Zn?ss.default.createPortal:ss.default.unstable_renderSubtreeIntoContainer};function us(e){return e()}var hi=function(e){N_(t,e);function t(){var n,r,o,i;L_(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return i=(r=(o=pm(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.removePortal=function(){!Zn&&ss.default.unmountComponentAtNode(o.node);var l=us(o.props.parentSelector);l&&l.contains(o.node)?l.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(l){o.portal=l},o.renderPortal=function(l){var c=vm(),v=c(o,as.default.createElement(fm.default,lm({defaultStyles:t.defaultStyles},l)),o.node);o.portalRef(v)},r),pm(o,i)}return E_(t,[{key:"componentDidMount",value:function(){if(!!Cn.canUseDOM){Zn||(this.node=hm("div")),this.node.className=this.props.portalClassName;var r=us(this.props.parentSelector);r.appendChild(this.node),!Zn&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(r){var o=us(r.parentSelector),i=us(this.props.parentSelector);return{prevParent:o,nextParent:i}}},{key:"componentDidUpdate",value:function(r,o,i){if(!!Cn.canUseDOM){var a=this.props,s=a.isOpen,u=a.portalClassName;r.portalClassName!==u&&(this.node.className=u);var l=i.prevParent,c=i.nextParent;c!==l&&(l.removeChild(this.node),c.appendChild(this.node)),!(!r.isOpen&&!s)&&!Zn&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!Cn.canUseDOM||!this.node||!this.portal)){var r=this.portal.state,o=Date.now(),i=r.isOpen&&this.props.closeTimeoutMS&&(r.closesAt||o+this.props.closeTimeoutMS);i?(r.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,i-o)):this.removePortal()}}},{key:"render",value:function(){if(!Cn.canUseDOM||!Zn)return null;!this.node&&Zn&&(this.node=hm("div"));var r=vm();return r(as.default.createElement(fm.default,lm({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(r){k_.setElement(r)}}]),t}(cm.Component);hi.propTypes={isOpen:se.default.bool.isRequired,style:se.default.shape({content:se.default.object,overlay:se.default.object}),portalClassName:se.default.string,bodyOpenClassName:se.default.string,htmlOpenClassName:se.default.string,className:se.default.oneOfType([se.default.string,se.default.shape({base:se.default.string.isRequired,afterOpen:se.default.string.isRequired,beforeClose:se.default.string.isRequired})]),overlayClassName:se.default.oneOfType([se.default.string,se.default.shape({base:se.default.string.isRequired,afterOpen:se.default.string.isRequired,beforeClose:se.default.string.isRequired})]),appElement:se.default.oneOfType([se.default.instanceOf(dm.default),se.default.instanceOf(Cn.SafeHTMLCollection),se.default.instanceOf(Cn.SafeNodeList),se.default.arrayOf(se.default.instanceOf(dm.default))]),onAfterOpen:se.default.func,onRequestClose:se.default.func,closeTimeoutMS:se.default.number,ariaHideApp:se.default.bool,shouldFocusAfterRender:se.default.bool,shouldCloseOnOverlayClick:se.default.bool,shouldReturnFocusAfterClose:se.default.bool,preventScroll:se.default.bool,parentSelector:se.default.func,aria:se.default.object,data:se.default.object,role:se.default.string,contentLabel:se.default.string,shouldCloseOnEsc:se.default.bool,overlayRef:se.default.func,contentRef:se.default.func,id:se.default.string,overlayElement:se.default.func,contentElement:se.default.func};hi.defaultProps={isOpen:!1,portalClassName:A_,bodyOpenClassName:M_,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,n){return as.default.createElement("div",t,n)},contentElement:function(t,n){return as.default.createElement("div",t,n)}};hi.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}};(0,T_.polyfill)(hi);Xn.default=hi;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Xn,r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}t.default=r.default,e.exports=t.default})(Rc,Rc.exports);var BT=e1(Rc.exports);function Gr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Xr=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var o=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(a){return a!==i}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function fe(){return fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(this,arguments)}var ls=typeof window=="undefined";function Ie(){}function D_(e,t){return typeof e=="function"?e(t):e}function Pc(e){return typeof e=="number"&&e>=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;u<i;u++){var l=n?u:o[u];a[l]=ps(e[l],t[l]),a[l]===e[l]&&s++}return r===i&&s===r?e:a}return t}function U_(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function Nc(e){if(!Sm(e))return!1;var t=e.constructor;if(typeof t=="undefined")return!0;var n=t.prototype;return!(!Sm(n)||!n.hasOwnProperty("isPrototypeOf"))}function Sm(e){return Object.prototype.toString.call(e)==="[object Object]"}function vi(e){return typeof e=="string"||Array.isArray(e)}function j_(e){return new Promise(function(t){setTimeout(t,e)})}function _m(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function bm(){if(typeof AbortController=="function")return new AbortController}var V_=function(e){Gr(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(o){var i=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=o(function(a){typeof a=="boolean"?i.setFocused(a):i.onFocus()})},n.setFocused=function(o){this.focused=o,o&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(o){o()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},n.setDefaultEventListener=function(){var o;!ls&&((o=window)==null?void 0:o.addEventListener)&&this.setEventListener(function(i){var a=function(){return i()};return window.addEventListener("visibilitychange",a,!1),window.addEventListener("focus",a,!1),function(){window.removeEventListener("visibilitychange",a),window.removeEventListener("focus",a)}})},t}(Xr),mi=new V_,B_=function(e){Gr(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(o){var i=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=o(function(a){typeof a=="boolean"?i.setOnline(a):i.onOnline()})},n.setOnline=function(o){this.online=o,o&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(o){o()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine},n.setDefaultEventListener=function(){var o;!ls&&((o=window)==null?void 0:o.addEventListener)&&this.setEventListener(function(i){var a=function(){return i()};return window.addEventListener("online",a,!1),window.addEventListener("offline",a,!1),function(){window.removeEventListener("online",a),window.removeEventListener("offline",a)}})},t}(Xr),hs=new B_;function z_(e){return Math.min(1e3*Math.pow(2,e),3e4)}function vs(e){return typeof(e==null?void 0:e.cancel)=="function"}var Em=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function ms(e){return e instanceof Em}var Rm=function(t){var n=this,r=!1,o,i,a,s;this.abort=t.abort,this.cancel=function(d){return o==null?void 0:o(d)},this.cancelRetry=function(){r=!0},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(d,m){a=d,s=m});var u=function(m){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(m),i==null||i(),a(m))},l=function(m){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(m),i==null||i(),s(m))},c=function(){return new Promise(function(m){i=m,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},v=function d(){if(!n.isResolved){var m;try{m=t.fn()}catch(y){m=Promise.reject(y)}o=function(_){if(!n.isResolved&&(l(new Em(_)),n.abort==null||n.abort(),vs(m)))try{m.cancel()}catch{}},n.isTransportCancelable=vs(m),Promise.resolve(m).then(u).catch(function(y){var _,p;if(!n.isResolved){var f=(_=t.retry)!=null?_:3,h=(p=t.retryDelay)!=null?p:z_,g=typeof h=="function"?h(n.failureCount,y):h,w=f===!0||typeof f=="number"&&n.failureCount<f||typeof f=="function"&&f(n.failureCount,y);if(r||!w){l(y);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,y),j_(g).then(function(){if(!mi.isFocused()||!hs.isOnline())return c()}).then(function(){r?l(y):d()})}})}};v()},W_=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){this.transactions++;var o=r();return this.transactions--,this.transactions||this.flush(),o},t.schedule=function(r){var o=this;this.transactions?this.queue.push(r):_m(function(){o.notifyFn(r)})},t.batchCalls=function(r){var o=this;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];o.schedule(function(){r.apply(void 0,a)})}},t.flush=function(){var r=this,o=this.queue;this.queue=[],o.length&&_m(function(){r.batchNotifyFn(function(){o.forEach(function(i){r.notifyFn(i)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),xe=new W_,Om=console||{error:Ie,warn:Ie,log:Ie};function gs(){return Om}function H_(e){Om=e}var q_=function(){function e(n){this.abortSignalConsumed=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var o;this.options=fe({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),Pc(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){!this.observers.length&&!this.state.isFetching&&this.cache.remove(this)},t.setData=function(r,o){var i,a,s=this.state.data,u=D_(r,s);return((i=(a=this.options).isDataEqual)==null?void 0:i.call(a,s,u))?u=s:this.options.structuralSharing!==!1&&(u=ps(s,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),u},t.setState=function(r,o){this.dispatch({type:"setState",state:r,setStateOptions:o})},t.cancel=function(r){var o,i=this.promise;return(o=this.retryer)==null||o.cancel(r),i?i.then(Ie).catch(Ie):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!mm(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,o=this.observers.find(function(i){return i.shouldFetchOnWindowFocus()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,o=this.observers.find(function(i){return i.shouldFetchOnReconnect()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(o){return o!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,o){var i=this,a,s,u;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o==null?void 0:o.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return this.promise}if(r&&this.setOptions(r),!this.options.queryFn){var l=this.observers.find(function(f){return f.options.queryFn});l&&this.setOptions(l.options)}var c=cs(this.queryKey),v=bm(),d={queryKey:c,pageParam:void 0,meta:this.meta};Object.defineProperty(d,"signal",{enumerable:!0,get:function(){if(v)return i.abortSignalConsumed=!0,v.signal}});var m=function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(d)):Promise.reject("Missing queryFn")},y={fetchOptions:o,options:this.options,queryKey:c,state:this.state,fetchFn:m,meta:this.meta};if((a=this.options.behavior)==null?void 0:a.onFetch){var _;(_=this.options.behavior)==null||_.onFetch(y)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=y.fetchOptions)==null?void 0:s.meta)){var p;this.dispatch({type:"fetch",meta:(p=y.fetchOptions)==null?void 0:p.meta})}return this.retryer=new Rm({fn:y.fetchFn,abort:v==null||(u=v.abort)==null?void 0:u.bind(v),onSuccess:function(h){i.setData(h),i.cache.config.onSuccess==null||i.cache.config.onSuccess(h,i),i.cacheTime===0&&i.optionalRemove()},onError:function(h){ms(h)&&h.silent||i.dispatch({type:"error",error:h}),ms(h)||(i.cache.config.onError==null||i.cache.config.onError(h,i),gs().error(h)),i.cacheTime===0&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var o=this;this.state=this.reducer(this.state,r),xe.batch(function(){o.observers.forEach(function(i){i.onQueryUpdate(r)}),o.cache.notify({query:o,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var o=typeof r.initialData=="function"?r.initialData():r.initialData,i=typeof r.initialData!="undefined",a=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,s=typeof o!="undefined";return{data:o,dataUpdateCount:0,dataUpdatedAt:s?a!=null?a:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(r,o){var i,a;switch(o.type){case"failed":return fe({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return fe({},r,{isPaused:!0});case"continue":return fe({},r,{isPaused:!1});case"fetch":return fe({},r,{fetchFailureCount:0,fetchMeta:(i=o.meta)!=null?i:null,isFetching:!0,isPaused:!1,status:r.dataUpdatedAt?r.status:"loading"});case"success":return fe({},r,{data:o.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=o.dataUpdatedAt)!=null?a:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=o.error;return ms(s)&&s.revert&&this.revertState?fe({},this.revertState):fe({},r,{error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return fe({},r,{isInvalidated:!0});case"setState":return fe({},r,o.state);default:return r}},e}(),Q_=function(e){Gr(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.queries=[],o.queriesMap={},o}var n=t.prototype;return n.build=function(o,i,a){var s,u=i.queryKey,l=(s=i.queryHash)!=null?s:Lc(u,i),c=this.get(l);return c||(c=new q_({cache:this,queryKey:u,queryHash:l,options:o.defaultQueryOptions(i),state:a,defaultOptions:o.getQueryDefaults(u),meta:i.meta}),this.add(c)),c},n.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},n.remove=function(o){var i=this.queriesMap[o.queryHash];i&&(o.destroy(),this.queries=this.queries.filter(function(a){return a!==o}),i===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},n.clear=function(){var o=this;xe.batch(function(){o.queries.forEach(function(i){o.remove(i)})})},n.get=function(o){return this.queriesMap[o]},n.getAll=function(){return this.queries},n.find=function(o,i){var a=xn(o,i),s=a[0];return typeof s.exact=="undefined"&&(s.exact=!0),this.queries.find(function(u){return gm(s,u)})},n.findAll=function(o,i){var a=xn(o,i),s=a[0];return s?this.queries.filter(function(u){return gm(s,u)}):this.queries},n.notify=function(o){var i=this;xe.batch(function(){i.listeners.forEach(function(a){a(o)})})},n.onFocus=function(){var o=this;xe.batch(function(){o.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var o=this;xe.batch(function(){o.queries.forEach(function(i){i.onOnline()})})},t}(Xr),K_=function(){function e(n){this.options=fe({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||Cm()}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(o){return o!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Ie).catch(Ie)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,o,i=this.state.status==="loading",a=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),a=a.then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(s){s!==r.state.context&&r.dispatch({type:"loading",context:s,variables:r.state.variables})})),a.then(function(){return r.executeMutation()}).then(function(s){o=s,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(o,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(o,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(o,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:o}),o}).catch(function(s){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(s,r.state.variables,r.state.context,r),gs().error(s),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(s,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,s,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var r=this,o;return this.retryer=new Rm({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var o=this;this.state=G_(this.state,r),xe.batch(function(){o.observers.forEach(function(i){i.onMutationUpdate(r)}),o.mutationCache.notify(o)})},e}();function Cm(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function G_(e,t){switch(t.type){case"failed":return fe({},e,{failureCount:e.failureCount+1});case"pause":return fe({},e,{isPaused:!0});case"continue":return fe({},e,{isPaused:!1});case"loading":return fe({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return fe({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return fe({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return fe({},e,t.state);default:return e}}var X_=function(e){Gr(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.mutations=[],o.mutationId=0,o}var n=t.prototype;return n.build=function(o,i,a){var s=new K_({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(i),state:a,defaultOptions:i.mutationKey?o.getMutationDefaults(i.mutationKey):void 0});return this.add(s),s},n.add=function(o){this.mutations.push(o),this.notify(o)},n.remove=function(o){this.mutations=this.mutations.filter(function(i){return i!==o}),o.cancel(),this.notify(o)},n.clear=function(){var o=this;xe.batch(function(){o.mutations.forEach(function(i){o.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(o){return typeof o.exact=="undefined"&&(o.exact=!0),this.mutations.find(function(i){return ym(o,i)})},n.findAll=function(o){return this.mutations.filter(function(i){return ym(o,i)})},n.notify=function(o){var i=this;xe.batch(function(){i.listeners.forEach(function(a){a(o)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var o=this.mutations.filter(function(i){return i.state.isPaused});return xe.batch(function(){return o.reduce(function(i,a){return i.then(function(){return a.continue().catch(Ie)})},Promise.resolve())})},t}(Xr);function Y_(){return{onFetch:function(t){t.fetchFn=function(){var n,r,o,i,a,s,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,l=(o=t.fetchOptions)==null||(i=o.meta)==null?void 0:i.fetchMore,c=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",m=((a=t.state.data)==null?void 0:a.pages)||[],y=((s=t.state.data)==null?void 0:s.pageParams)||[],_=bm(),p=_==null?void 0:_.signal,f=y,h=!1,g=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(S,C,U,b){return f=b?[C].concat(f):[].concat(f,[C]),b?[U].concat(S):[].concat(S,[U])},x=function(S,C,U,b){if(h)return Promise.reject("Cancelled");if(typeof U=="undefined"&&!C&&S.length)return Promise.resolve(S);var P={queryKey:t.queryKey,signal:p,pageParam:U,meta:t.meta},I=g(P),J=Promise.resolve(I).then(function(N){return w(S,U,N,b)});if(vs(I)){var k=J;k.cancel=I.cancel}return J},E;if(!m.length)E=x([]);else if(v){var L=typeof c!="undefined",V=L?c:xm(t.options,m);E=x(m,L,V)}else if(d){var F=typeof c!="undefined",G=F?c:Z_(t.options,m);E=x(m,F,G,!0)}else(function(){f=[];var Z=typeof t.options.getNextPageParam=="undefined",S=u&&m[0]?u(m[0],0,m):!0;E=S?x([],Z,y[0]):Promise.resolve(w([],y[0],m[0]));for(var C=function(P){E=E.then(function(I){var J=u&&m[P]?u(m[P],P,m):!0;if(J){var k=Z?y[P]:xm(t.options,I);return x(I,Z,k)}return Promise.resolve(w(I,y[P],m[P]))})},U=1;U<m.length;U++)C(U)})();var Y=E.then(function(Z){return{pages:Z,pageParams:f}}),ie=Y;return ie.cancel=function(){h=!0,_==null||_.abort(),vs(E)&&E.cancel()},Y}}}}function xm(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Z_(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var zT=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new Q_,this.mutationCache=n.mutationCache||new X_,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=mi.subscribe(function(){mi.isFocused()&&hs.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=hs.subscribe(function(){mi.isFocused()&&hs.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,o;(r=this.unsubscribeFocus)==null||r.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},t.isFetching=function(r,o){var i=xn(r,o),a=i[0];return a.fetching=!0,this.queryCache.findAll(a).length},t.isMutating=function(r){return this.mutationCache.findAll(fe({},r,{fetching:!0})).length},t.getQueryData=function(r,o){var i;return(i=this.queryCache.find(r,o))==null?void 0:i.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(o){var i=o.queryKey,a=o.state,s=a.data;return[i,s]})},t.setQueryData=function(r,o,i){var a=fs(r),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(o,i)},t.setQueriesData=function(r,o,i){var a=this;return xe.batch(function(){return a.getQueryCache().findAll(r).map(function(s){var u=s.queryKey;return[u,a.setQueryData(u,o,i)]})})},t.getQueryState=function(r,o){var i;return(i=this.queryCache.find(r,o))==null?void 0:i.state},t.removeQueries=function(r,o){var i=xn(r,o),a=i[0],s=this.queryCache;xe.batch(function(){s.findAll(a).forEach(function(u){s.remove(u)})})},t.resetQueries=function(r,o,i){var a=this,s=xn(r,o,i),u=s[0],l=s[1],c=this.queryCache,v=fe({},u,{active:!0});return xe.batch(function(){return c.findAll(u).forEach(function(d){d.reset()}),a.refetchQueries(v,l)})},t.cancelQueries=function(r,o,i){var a=this,s=xn(r,o,i),u=s[0],l=s[1],c=l===void 0?{}:l;typeof c.revert=="undefined"&&(c.revert=!0);var v=xe.batch(function(){return a.queryCache.findAll(u).map(function(d){return d.cancel(c)})});return Promise.all(v).then(Ie).catch(Ie)},t.invalidateQueries=function(r,o,i){var a,s,u,l=this,c=xn(r,o,i),v=c[0],d=c[1],m=fe({},v,{active:(a=(s=v.refetchActive)!=null?s:v.active)!=null?a:!0,inactive:(u=v.refetchInactive)!=null?u:!1});return xe.batch(function(){return l.queryCache.findAll(v).forEach(function(y){y.invalidate()}),l.refetchQueries(m,d)})},t.refetchQueries=function(r,o,i){var a=this,s=xn(r,o,i),u=s[0],l=s[1],c=xe.batch(function(){return a.queryCache.findAll(u).map(function(d){return d.fetch(void 0,fe({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),v=Promise.all(c).then(Ie);return(l==null?void 0:l.throwOnError)||(v=v.catch(Ie)),v},t.fetchQuery=function(r,o,i){var a=fs(r,o,i),s=this.defaultQueryOptions(a);typeof s.retry=="undefined"&&(s.retry=!1);var u=this.queryCache.build(this,s);return u.isStaleByTime(s.staleTime)?u.fetch(s):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,o,i){return this.fetchQuery(r,o,i).then(Ie).catch(Ie)},t.fetchInfiniteQuery=function(r,o,i){var a=fs(r,o,i);return a.behavior=Y_(),this.fetchQuery(a)},t.prefetchInfiniteQuery=function(r,o,i){return this.fetchInfiniteQuery(r,o,i).then(Ie).catch(Ie)},t.cancelMutations=function(){var r=this,o=xe.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(o).then(Ie).catch(Ie)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,o){var i=this.queryDefaults.find(function(a){return Jn(r)===Jn(a.queryKey)});i?i.defaultOptions=o:this.queryDefaults.push({queryKey:r,defaultOptions:o})},t.getQueryDefaults=function(r){var o;return r?(o=this.queryDefaults.find(function(i){return ds(r,i.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(r,o){var i=this.mutationDefaults.find(function(a){return Jn(r)===Jn(a.mutationKey)});i?i.defaultOptions=o:this.mutationDefaults.push({mutationKey:r,defaultOptions:o})},t.getMutationDefaults=function(r){var o;return r?(o=this.mutationDefaults.find(function(i){return ds(r,i.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r==null?void 0:r._defaulted)return r;var o=fe({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=Lc(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return(r==null?void 0:r._defaulted)?r:fe({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),J_=function(e){Gr(t,e);function t(r,o){var i;return i=e.call(this)||this,i.client=r,i.options=o,i.trackedProps=[],i.previousSelectError=null,i.bindMethods(),i.setOptions(o),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),km(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return nb(this.currentQuery,this.options)},n.shouldFetchOnWindowFocus=function(){return rb(this.currentQuery,this.options)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(o,i){var a=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=a.queryKey),this.updateQuery();var u=this.hasListeners();u&&Tm(this.currentQuery,s,this.options,a)&&this.executeFetch(),this.updateResult(i),u&&(this.currentQuery!==s||this.options.enabled!==a.enabled||this.options.staleTime!==a.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();u&&(this.currentQuery!==s||this.options.enabled!==a.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},n.getOptimisticResult=function(o){var i=this.client.defaultQueryObserverOptions(o),a=this.client.getQueryCache().build(this.client,i);return this.createResult(a,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(o){var i=this,a={};return Object.keys(o).forEach(function(s){Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:function(){var l=s;return i.trackedProps.includes(l)||i.trackedProps.push(l),o[l]}})}),a},n.getNextResult=function(o){var i=this;return new Promise(function(a,s){var u=i.subscribe(function(l){l.isFetching||(u(),l.isError&&(o==null?void 0:o.throwOnError)?s(l.error):a(l))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(o){return this.fetch(fe({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},n.fetchOptimistic=function(o){var i=this,a=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,a);return s.fetch().then(function(){return i.createResult(s,a)})},n.fetch=function(o){var i=this;return this.executeFetch(o).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(o){this.updateQuery();var i=this.currentQuery.fetch(this.options,o);return(o==null?void 0:o.throwOnError)||(i=i.catch(Ie)),i},n.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(ls||this.currentResult.isStale||!Pc(this.options.staleTime))){var i=mm(this.currentResult.dataUpdatedAt,this.options.staleTime),a=i+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},a)}},n.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},n.updateRefetchInterval=function(o){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(ls||this.options.enabled===!1||!Pc(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||mi.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(o,i){var a=this.currentQuery,s=this.options,u=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,v=o!==a,d=v?o.state:this.currentQueryInitialState,m=v?this.currentResult:this.previousQueryResult,y=o.state,_=y.dataUpdatedAt,p=y.error,f=y.errorUpdatedAt,h=y.isFetching,g=y.status,w=!1,x=!1,E;if(i.optimisticResults){var L=this.hasListeners(),V=!L&&km(o,i),F=L&&Tm(o,a,i,s);(V||F)&&(h=!0,_||(g="loading"))}if(i.keepPreviousData&&!y.dataUpdateCount&&(m==null?void 0:m.isSuccess)&&g!=="error")E=m.data,_=m.dataUpdatedAt,g=m.status,w=!0;else if(i.select&&typeof y.data!="undefined")if(u&&y.data===(l==null?void 0:l.data)&&i.select===(c==null?void 0:c.select)&&!this.previousSelectError)E=u.data;else try{E=i.select(y.data),i.structuralSharing!==!1&&(E=ps(u==null?void 0:u.data,E)),this.previousSelectError=null}catch(ie){gs().error(ie),p=ie,this.previousSelectError=ie,f=Date.now(),g="error"}else E=y.data;if(typeof i.placeholderData!="undefined"&&typeof E=="undefined"&&(g==="loading"||g==="idle")){var G;if((u==null?void 0:u.isPlaceholderData)&&i.placeholderData===(c==null?void 0:c.placeholderData))G=u.data;else if(G=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof G!="undefined")try{G=i.select(G),i.structuralSharing!==!1&&(G=ps(u==null?void 0:u.data,G)),this.previousSelectError=null}catch(ie){gs().error(ie),p=ie,this.previousSelectError=ie,f=Date.now(),g="error"}typeof G!="undefined"&&(g="success",E=G,x=!0)}var Y={status:g,isLoading:g==="loading",isSuccess:g==="success",isError:g==="error",isIdle:g==="idle",data:E,dataUpdatedAt:_,error:p,errorUpdatedAt:f,failureCount:y.fetchFailureCount,isFetched:y.dataUpdateCount>0||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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ys.apply(this,arguments)}var er,Ac=er||(er={});Ac.Pop="POP";Ac.Push="PUSH";Ac.Replace="REPLACE";var Dm=function(e){return e};function Fm(e){e.preventDefault(),e.returnValue=""}function Im(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(n){return n!==t})}},call:function(t){e.forEach(function(n){return n&&n(t)})}}}function fb(){return Math.random().toString(36).substr(2,8)}function yi(e){var t=e.pathname,n=e.search;return e=e.hash,(t===void 0?"/":t)+(n===void 0?"":n)+(e===void 0?"":e)}function kn(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n)),n=e.indexOf("?"),0<=n&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function db(e){function t(){var f=kn(l.location.hash.substr(1)),h=f.pathname,g=f.search;f=f.hash;var w=c.state||{};return[w.idx,Dm({pathname:h===void 0?"/":h,search:g===void 0?"":g,hash:f===void 0?"":f,state:w.usr||null,key:w.key||"default"})]}function n(){if(v)p.call(v),v=null;else{var f=er.Pop,h=t(),g=h[0];if(h=h[1],p.length){if(g!=null){var w=m-g;w&&(v={action:f,location:h,retry:function(){u(-1*w)}},u(w))}}else i(f)}}function r(f){var h=document.querySelector("base"),g="";return h&&h.getAttribute("href")&&(h=l.location.href,g=h.indexOf("#"),g=g===-1?h:h.slice(0,g)),g+"#"+(typeof f=="string"?f:yi(f))}function o(f,h){return h===void 0&&(h=null),Dm(ys({pathname:y.pathname,hash:"",search:""},typeof f=="string"?kn(f):f,{state:h,key:fb()}))}function i(f){d=f,f=t(),m=f[0],y=f[1],_.call({action:d,location:y})}function a(f,h){function g(){a(f,h)}var w=er.Push,x=o(f,h);if(!p.length||(p.call({action:w,location:x,retry:g}),!1)){var E=[{usr:x.state,key:x.key,idx:m+1},r(x)];x=E[0],E=E[1];try{c.pushState(x,"",E)}catch{l.location.assign(E)}i(w)}}function s(f,h){function g(){s(f,h)}var w=er.Replace,x=o(f,h);p.length&&(p.call({action:w,location:x,retry:g}),1)||(x=[{usr:x.state,key:x.key,idx:m},r(x)],c.replaceState(x[0],"",x[1]),i(w))}function u(f){c.go(f)}e===void 0&&(e={}),e=e.window;var l=e===void 0?document.defaultView:e,c=l.history,v=null;l.addEventListener("popstate",n),l.addEventListener("hashchange",function(){var f=t()[1];yi(f)!==yi(y)&&n()});var d=er.Pop;e=t();var m=e[0],y=e[1],_=Im(),p=Im();return m==null&&(m=0,c.replaceState(ys({},c.state,{idx:m}),"")),{get action(){return d},get location(){return y},createHref:r,push:a,replace:s,go:u,back:function(){u(-1)},forward:function(){u(1)},listen:function(f){return _.push(f)},block:function(f){var h=p.push(f);return p.length===1&&l.addEventListener("beforeunload",Fm),function(){h(),p.length||l.removeEventListener("beforeunload",Fm)}}}}/**
|
|
* React Router 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 Tn(e,t){if(!e)throw new Error(t)}const Mc=$.exports.createContext(null),Dc=$.exports.createContext(null),wi=$.exports.createContext({outlet:null,matches:[]});function pb(e){return gb()}function hb(e){let{basename:t="/",children:n=null,location:r,navigationType:o=er.Pop,navigator:i,static:a=!1}=e;Si()&&Tn(!1);let s=Fb(t),u=$.exports.useMemo(()=>({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<i.length;++s)a=kb(i[s],e,o);return a}function Um(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{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<o.length;++u){let l=o[u],c=u===o.length-1,v=a==="/"?n:n.slice(a.length)||"/",d=Pb({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},v);if(!d)return null;Object.assign(i,d.params);let m=r[l.childrenIndex];s.push({params:i,pathname:Pn([a,d.pathname]),pathnameBase:Pn([a,d.pathnameBase]),route:m}),d.pathnameBase!=="/"&&(a=Pn([a,d.pathnameBase])),r=m.children}return s}function Tb(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,o)=>$.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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(this,arguments)}function Ub(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=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<H;++W){var K=O.charCodeAt(W);D=(D<<5)-D+K|0}return D},v=function(R){return R-=R>>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<<R},y=function(R,D){return v(R&D-1)},_=function(R,D,W,H){var K=H;if(!R){var re=H.length;K=new Array(re);for(var ee=0;ee<re;++ee)K[ee]=H[ee]}return K[D]=W,K},p=function(R,D,W){var H=W.length-1,K=0,re=0,ee=W;if(R)K=re=D;else for(ee=new Array(H);K<D;)ee[re++]=W[K++];for(++K;K<=H;)ee[re++]=W[K++];return R&&(ee.length=H),ee},f=function(R,D,W,H){var K=H.length;if(R){for(var re=K;re>=D;)H[re--]=H[re];return H[D]=W,H}for(var ee=0,te=0,ce=new Array(K+1);ee<D;)ce[te++]=H[ee++];for(ce[D]=W;ee<K;)ce[++te]=H[ee++];return ce},h=1,g=2,w=3,x=4,E={__hamt_isEmpty:!0},L=function(R){return R===E||R&&R.__hamt_isEmpty},V=function(R,D,W,H){return{type:h,edit:R,hash:D,key:W,value:H,_modify:P}},F=function(R,D,W){return{type:g,edit:R,hash:D,children:W,_modify:I}},G=function(R,D,W){return{type:w,edit:R,mask:D,children:W,_modify:J}},Y=function(R,D,W){return{type:x,edit:R,size:D,children:W,_modify:k}},ie=function(R){return R===E||R.type===h||R.type===g},Z=function(R,D,W,H,K){for(var re=[],ee=H,te=0,ce=0;ee;++ce)ee&1&&(re[ce]=K[te++]),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;te<ce;++te)if(te!==W){var Oe=H[te];Oe&&!L(Oe)&&(K[re++]=Oe,ee|=1<<te)}return G(R,ee,K)},C=function O(R,D,W,H,K,re){if(W===K)return F(R,W,[re,H]);var ee=d(D,W),te=d(D,K);return G(R,m(ee)|m(te),ee===te?[O(R,D+r,W,H,K,re)]:ee<te?[H,re]:[re,H])},U=function(R,D,W,H,K,re,ee,te){for(var ce=K.length,Oe=0;Oe<ce;++Oe){var et=K[Oe];if(W(ee,et.key)){var Ue=et.value,dt=re(Ue);return dt===Ue?K:dt===u?(--te.value,p(R,Oe,K)):_(R,Oe,V(D,H,ee,dt),K)}}var bt=re();return bt===u?K:(++te.value,_(R,ce,V(D,H,ee,bt),K))},b=function(R,D){return R===D.edit},P=function(R,D,W,H,K,re,ee){if(D(re,this.key)){var te=H(this.value);return te===this.value?this:te===u?(--ee.value,E):b(R,this)?(this.value=te,this):V(R,K,re,te)}var ce=H();return ce===u?this:(++ee.value,C(R,W,this.hash,this,K,V(R,K,re,ce)))},I=function(R,D,W,H,K,re,ee){if(K===this.hash){var te=b(R,this),ce=U(te,R,D,this.hash,this.children,H,re,ee);return ce===this.children?this:ce.length>1?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<ce;++te){var Oe=ee[te];if(re(D,Oe.key))return Oe.value}return O}case w:{var et=d(K,R),Ue=m(et);if(H.mask&Ue){H=H.children[y(H.mask,Ue)],K+=r;break}return O}case x:{if(H=H.children[d(K,R)],H){K+=r;break}return O}default:return O}};N.prototype.tryGetHash=function(O,R,D){return X(O,R,D,this)};var le=n.tryGet=function(O,R,D){return X(O,D._config.hash(R),R,D)};N.prototype.tryGet=function(O,R){return le(O,R,this)};var he=n.getHash=function(O,R,D){return X(void 0,O,R,D)};N.prototype.getHash=function(O,R){return he(O,R,this)},n.get=function(O,R){return X(void 0,R._config.hash(O),O,R)},N.prototype.get=function(O,R){return le(R,O,this)};var Te=n.has=function(O,R,D){return X(u,O,R,D)!==u};N.prototype.hasHash=function(O,R){return Te(O,R,this)};var T=n.has=function(O,R){return Te(R._config.hash(O),O,R)};N.prototype.has=function(O){return T(O,this)};var M=function(R,D){return R===D};n.make=function(O){return new N(0,0,{keyEq:O&&O.keyEq||M,hash:O&&O.hash||c},E,0)},n.empty=n.make();var A=n.isEmpty=function(O){return O&&!!L(O._root)};N.prototype.isEmpty=function(){return A(this)};var q=n.modifyHash=function(O,R,D,W){var H={value:W._size},K=W._root._modify(W._editable?W._edit:NaN,W._config.keyEq,0,O,R,D,H);return W.setTree(K,H.value)};N.prototype.modifyHash=function(O,R,D){return q(D,O,R,this)};var z=n.modify=function(O,R,D){return q(O,D._config.hash(R),R,D)};N.prototype.modify=function(O,R){return z(R,O,this)};var ae=n.setHash=function(O,R,D,W){return q(l(D),O,R,W)};N.prototype.setHash=function(O,R,D){return ae(O,R,D,this)};var pe=n.set=function(O,R,D){return ae(D._config.hash(O),O,R,D)};N.prototype.set=function(O,R){return pe(O,R,this)};var we=l(u),Me=n.removeHash=function(O,R,D){return q(we,O,R,D)};N.prototype.removeHash=N.prototype.deleteHash=function(O,R){return Me(O,R,this)};var Pe=n.remove=function(O,R){return Me(R._config.hash(O),O,R)};N.prototype.remove=N.prototype.delete=function(O){return Pe(O,this)};var Le=n.beginMutation=function(O){return new N(O._editable+1,O._edit+1,O._config,O._root,O._size)};N.prototype.beginMutation=function(){return Le(this)};var De=n.endMutation=function(O){return O._editable=O._editable&&O._editable-1,O};N.prototype.endMutation=function(){return De(this)};var oo=n.mutate=function(O,R){var D=Le(R);return O(D),De(D)};N.prototype.mutate=function(O){return oo(O,this)};var At=function(R){return R&&_t(R[0],R[1],R[2],R[3],R[4])},_t=function(R,D,W,H,K){for(;W<R;){var re=D[W++];if(re&&!L(re))return at(re,H,[R,D,W,H,K])}return At(K)},at=function(R,D,W){switch(R.type){case h:return{value:D(R),rest:W};case g:case x:case w:var H=R.children;return _t(H.length,H,0,D,W);default:return At(W)}},Ii={done:!0};function au(O){this.v=O}au.prototype.next=function(){if(!this.v)return Ii;var O=this.v;return this.v=At(O.rest),O},au.prototype[Symbol.iterator]=function(){return this};var su=function(R,D){return new au(at(R._root,D))},Ky=function(R){return[R.key,R.value]},Gy=n.entries=function(O){return su(O,Ky)};N.prototype.entries=N.prototype[Symbol.iterator]=function(){return Gy(this)};var Xy=function(R){return R.key},Yy=n.keys=function(O){return su(O,Xy)};N.prototype.keys=function(){return Yy(this)};var Zy=function(R){return R.value},Jy=n.values=N.prototype.values=function(O){return su(O,Zy)};N.prototype.values=function(){return Jy(this)};var ld=n.fold=function(O,R,D){var W=D._root;if(W.type===h)return O(R,W.value,W.key);for(var H=[W.children],K=void 0;K=H.pop();)for(var re=0,ee=K.length;re<ee;){var te=K[re++];te&&te.type&&(te.type===h?R=O(R,te.value,te.key):H.push(te.children))}return R};N.prototype.fold=function(O,R){return ld(O,R,this)};var e0=n.forEach=function(O,R){return ld(function(D,W,H){return O(W,H,R)},null,R)};N.prototype.forEach=function(O){return e0(O,this)};var t0=n.count=function(O){return O._size};N.prototype.count=function(){return t0(this)},Object.defineProperty(N.prototype,"size",{get:N.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class xE{constructor(t){ue(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return zc(this)}toMap(){return new Map(this._map)}}class Bc{constructor(t){if(ue(this,"_hamt",CE.empty.beginMutation()),t instanceof Bc){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,r]of t.entries())this._hamt.set(n,r)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return zc(this)}toMap(){return new Map(this._hamt)}}function zc(e){return Se("recoil_hamt_2020")?new Bc(e):new xE(e)}var kE={persistentMap:zc},TE=kE.persistentMap,PE=Object.freeze({__proto__:null,persistentMap:TE});function LE(e,...t){const n=new Set;e:for(const r of e){for(const o of t)if(o.has(r))continue e;n.add(r)}return n}var Cs=LE;function NE(e,t){const n=new Map;return e.forEach((r,o)=>{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:"<not captured>",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 <RecoilRoot> 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(),"<component name not available>"}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<r;n++)if(e[n]!==t[n])return!1;return!0}var AO=NO;const{useEffect:MO,useRef:DO}=B;function FO(e){const t=DO();return MO(()=>{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;n<e.length;n++){const r=e[n].keys();let o;for(;!(o=r.next()).done;)t.set(o.value,e[n].get(o.value))}return t}var f2=c2;const{batchUpdates:d2}=Ls,{DEFAULT_VALUE:p2,getNode:zg,nodes:h2}=Je,{useStoreRef:cf}=Jt,{AbstractRecoilValue:v2,setRecoilValueLoadable:m2}=Zt,{SUSPENSE_TIMEOUT_MS:g2}=ir,{Snapshot:XT,cloneSnapshot:Fs}=Ri,{isSSR:Wg}=Gc,{useCallback:Is,useEffect:Hg,useRef:y2,useState:w2}=B;function $s(e){const t=cf();Hg(()=>t.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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mf.apply(this,arguments)}function rk(e,t){if(e==null)return{};var n=ok(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(this,arguments)}function ik(e,t){if(e==null)return{};var n=ak(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sf.apply(this,arguments)}function sk(e,t){if(e==null)return{};var n=uk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}function lk(e,t){if(e==null)return{};var n=ck(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rf.apply(this,arguments)}function fk(e,t){if(e==null)return{};var n=dk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cf.apply(this,arguments)}function pk(e,t){if(e==null)return{};var n=hk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kf.apply(this,arguments)}function vk(e,t){if(e==null)return{};var n=mk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(this,arguments)}function gk(e,t){if(e==null)return{};var n=yk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nf.apply(this,arguments)}function wk(e,t){if(e==null)return{};var n=Sk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mf.apply(this,arguments)}function _k(e,t){if(e==null)return{};var n=bk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(this,arguments)}function Ek(e,t){if(e==null)return{};var n=Rk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$f.apply(this,arguments)}function Ok(e,t){if(e==null)return{};var n=Ck(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=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<r.length;i++)o=r[i],!(t.indexOf(o)>=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;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function to(e){return!!e&&!!e[lt]}function ur(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Mk}(e)||Array.isArray(e)||!!e[Oy]||!!e.constructor[Oy]||Vf(e)||Bf(e))}function Ai(e,t,n){n===void 0&&(n=!1),no(e)===0?(n?Object.keys:ed)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function no(e){var t=e[lt];return t?t.i>3?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;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Wf(e,t){return t===void 0&&(t=!1),Hf(e)||to(e)||!ur(e)||(no(e)>1&&(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<l;v++)c[v-1]=arguments[v];return r.produceWithPatches(u,function(d){return o.apply(void 0,[d].concat(c))})}:[r.produce(o,i,function(u,l){a=u,s=l}),a,s];var a,s},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){ur(n)||Lt(8),to(n)&&(n=Lk(n));var r=yy(this),o=Zf(this,n,void 0);return o[lt].C=!0,Qf(r),o},t.finishDraft=function(n,r){var o=n&&n[lt],i=o.A;return qf(i,r),Kf(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!Ey&&Lt(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=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;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function Bk(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?jk:r,i=n.maxSize,a=i===void 0?1:i,s=n.resultEqualityCheck,u=Vk(o),l=a===1?$k(u):Uk(a,u);function c(){var v=l.get(arguments);if(v===Zs){if(v=e.apply(null,arguments),s){var d=l.getEntries(),m=d.find(function(y){return s(y.value,v)});m&&(v=m.value)}l.put(arguments,v)}return v}return c.clearCache=function(){return l.clear()},c}function zk(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function Wk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var l=0,c,v={memoizeOptions:void 0},d=s.pop();if(typeof d=="object"&&(v=d,d=s.pop()),typeof d!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof d+"]");var m=v,y=m.memoizeOptions,_=y===void 0?n:y,p=Array.isArray(_)?_:[_],f=zk(s),h=e.apply(void 0,[function(){return l++,d.apply(null,arguments)}].concat(p)),g=e(function(){for(var w=[],x=f.length,E=0;E<x;E++)w.push(f[E].apply(null,arguments));return c=h.apply(null,w),c});return Object.assign(g,{resultFunc:d,memoizedResultFunc:h,dependencies:f,lastResult:function(){return c},recomputations:function(){return l},resetRecomputations:function(){return l=0}}),g};return o}var vP=Wk(Bk);function Cy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Cy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mP(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Cy(t))&&(r&&(r+=" "),r+=n);return r}function xy(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Di=xy()?$.exports.useLayoutEffect:$.exports.useEffect,td=!1,Hk=0,ky=function(){return++Hk};function qk(e){var t=e||(td?ky():null),n=$.exports.useState(t),r=n[0],o=n[1];return Di(function(){r===null&&o(ky())},[]),$.exports.useEffect(function(){td===!1&&(td=!0)},[]),r!=null?String(r):void 0}function nd(e){return xy()?e?e.ownerDocument:document:null}function Qk(e){var t,n,r=nd(e),o=r.defaultView||window;return r?{width:(t=r.documentElement.clientWidth)!=null?t:o.innerWidth,height:(n=r.documentElement.clientHeight)!=null?n:o.innerHeight}:{width:0,height:0}}function Ty(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r!=null}).join("--")}function Kk(e){return typeof e=="boolean"}function Py(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function Ly(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gk(e,t){if(!!e){if(typeof e=="string")return Ly(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ly(e,t)}}function Xk(e,t){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Gk(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=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<e;n++)t[n]=arguments[n];return $.exports.useCallback(function(r){for(var o=Xk(t),i;!(i=o()).done;){var a=i.value;Yk(a,r)}},t)}function Nn(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}function Zk(){var e=$.exports.useState(Object.create(null)),t=e[1];return $.exports.useCallback(function(){t(Object.create(null))},[])}var Jk=function(t){var n=t.children,r=t.type,o=r===void 0?"reach-portal":r,i=t.containerRef,a=$.exports.useRef(null),s=$.exports.useRef(null),u=Zk();return Di(function(){if(!!a.current){var l=a.current.ownerDocument,c=(i==null?void 0:i.current)||l.body;return s.current=l==null?void 0:l.createElement(o),c.appendChild(s.current),u(),function(){s.current&&c&&c.removeChild(s.current)}}},[o,u,i]),s.current?Yi.exports.createPortal(n,s.current):$.exports.createElement("span",{ref:a})};function Js(){return Js=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(this,arguments)}function eT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}function eu(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=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:i<t.left+n.width,bottom:a<t.bottom+n.height+r,left:t.left-n.width<0},u=s.right&&!s.left,l=s.bottom&&!s.top;return{left:u?t.right-n.width+window.pageXOffset+"px":t.left+window.pageXOffset+"px",top:l?t.top-r-n.height+window.pageYOffset+"px":t.top+r+t.height+window.pageYOffset+"px"}};function CT(e){var t=e.disabled,n=e.isVisible,r=e.ref;$.exports.useEffect(function(){if(!(typeof window!="undefined"&&"PointerEvent"in window)||!t||!n)return;var o=nd(r.current);function i(a){!n||a.target instanceof Element&&a.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||Nt({type:me.GlobalMouseMove})}return o.addEventListener("mousemove",i),function(){o.removeEventListener("mousemove",i)}},[t,n,r])}function Nt(e){var t=xT(St,e),n=t.value,r=t.context,o=t.changed;o&&(St={value:n,context:r},hT())}function xT(e,t){var n=rd.states[e.value],r=n&&n.on&&n.on[t.type];if(!r)return Mn({},e,{changed:!1});n&&n.leave&&n.leave(e.context,t),t.type;var o=eu(t,cT),i=Mn({},St.context,o),a=typeof r=="string"?r:r.target,s=rd.states[a];return s&&s.enter&&s.enter(e.context,t),{value:a,context:i,changed:!0}}function Dy(e,t){return St.context.id===e&&(t?St.value===ge.Visible:St.value===ge.Visible||St.value===ge.LeavingVisible)}var gP=ST,kT={exports:{}},ou={};/** @license React v16.6.1
|
|
* react-cache.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.
|
|
*/Object.defineProperty(ou,"__esModule",{value:!0});var Fy=$.exports,TT=Eu.exports,PT=Fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Iy(e,t){var n=PT.current;if(n===null)throw Error("react-cache: read and preload may only be called from within a component's render. They are not supported in event handlers or lifecycle methods.");return n.readContext(e,t)}function LT(e){return e}var sd=function(e){function t(){a===!1&&i>r&&(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<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dn.apply(this,arguments)},AT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function By(e){return e&&e.map(function(t,n){return B.createElement(t.tag,Dn({key:n},t.attr),By(t.child))})}function ro(e){return function(t){return B.createElement(MT,Dn({attr:Dn({},e.attr)},t),By(e.child))}}function MT(e){var t=function(n){var r=e.attr,o=e.size,i=e.title,a=AT(e,["attr","size","title"]),s=o||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),B.createElement("svg",Dn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:u,style:Dn(Dn({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&B.createElement("title",null,i),e.children)};return Vy!==void 0?B.createElement(Vy.Consumer,null,function(n){return t(n)}):t(jy)}function yP(e){return ro({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#3F51B5",points:"42,37 6,37 6,25 16,10 30,17 42,6"}},{tag:"polygon",attr:{fill:"#00BCD4",points:"42,42 6,42 6,32 16,24 30,26 42,17"}}]})(e)}function wP(e){return ro({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#90CAF9",points:"40,45 8,45 8,3 30,3 40,13"}},{tag:"polygon",attr:{fill:"#E1F5FE",points:"38.5,14 29,14 29,4.5"}},{tag:"g",attr:{fill:"#1976D2"},child:[{tag:"rect",attr:{x:"16",y:"21",width:"17",height:"2"}},{tag:"rect",attr:{x:"16",y:"25",width:"13",height:"2"}},{tag:"rect",attr:{x:"16",y:"29",width:"17",height:"2"}},{tag:"rect",attr:{x:"16",y:"33",width:"13",height:"2"}}]}]})(e)}function SP(e){return ro({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#7CB342",d:"M24,4C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4z"}},{tag:"path",attr:{fill:"#0277BD",d:"M45,24c0,11.7-9.5,21-21,21S3,35.7,3,24S12.3,3,24,3S45,12.3,45,24z M23.8,33.7c0-0.4-0.2-0.6-0.6-0.8 c-1.3-0.4-2.5-0.4-3.6-1.5c-0.2-0.4-0.2-0.8-0.4-1.3c-0.4-0.4-1.5-0.6-2.1-0.8c-0.8,0-1.7,0-2.7,0c-0.4,0-1.1,0-1.5,0 c-0.6-0.2-1.1-1.1-1.5-1.7c0-0.2,0-0.6-0.4-0.6c-0.4-0.2-0.8,0.2-1.3,0c-0.2-0.2-0.2-0.4-0.2-0.6c0-0.6,0.4-1.3,0.8-1.7 c0.6-0.4,1.3,0.2,1.9,0.2c0.2,0,0.2,0,0.4,0.2c0.6,0.2,0.8,1,0.8,1.7c0,0.2,0,0.4,0,0.4c0,0.2,0.2,0.2,0.4,0.2 c0.2-1.1,0.2-2.1,0.4-3.2c0-1.3,1.3-2.5,2.3-2.9c0.4-0.2,0.6,0.2,1.1,0c1.3-0.4,4.4-1.7,3.8-3.4c-0.4-1.5-1.7-2.9-3.4-2.7 c-0.4,0.2-0.6,0.4-1,0.6c-0.6,0.4-1.9,1.7-2.5,1.7c-1.1-0.2-1.1-1.7-0.8-2.3c0.2-0.8,2.1-3.6,3.4-3.1c0.2,0.2,0.6,0.6,0.8,0.8 c0.4,0.2,1.1,0.2,1.7,0.2c0.2,0,0.4,0,0.6-0.2c0.2-0.2,0.2-0.2,0.2-0.4c0-0.6-0.6-1.3-1-1.7c-0.4-0.4-1.1-0.8-1.7-1.1 c-2.1-0.6-5.5,0.2-7.1,1.7s-2.9,4-3.8,6.1c-0.4,1.3-0.8,2.9-1,4.4c-0.2,1-0.4,1.9,0.2,2.9c0.6,1.3,1.9,2.5,3.2,3.4 c0.8,0.6,2.5,0.6,3.4,1.7c0.6,0.8,0.4,1.9,0.4,2.9c0,1.3,0.8,2.3,1.3,3.4c0.2,0.6,0.4,1.5,0.6,2.1c0,0.2,0.2,1.5,0.2,1.7 c1.3,0.6,2.3,1.3,3.8,1.7c0.2,0,1-1.3,1-1.5c0.6-0.6,1.1-1.5,1.7-1.9c0.4-0.2,0.8-0.4,1.3-0.8c0.4-0.4,0.6-1.3,0.8-1.9 C23.8,35.1,24,34.3,23.8,33.7z M24.2,14.3c0.2,0,0.4-0.2,0.8-0.4c0.6-0.4,1.3-1.1,1.9-1.5c0.6-0.4,1.3-1.1,1.7-1.5 c0.6-0.4,1.1-1.3,1.3-1.9c0.2-0.4,0.8-1.3,0.6-1.9c-0.2-0.4-1.3-0.6-1.7-0.8c-1.7-0.4-3.1-0.6-4.8-0.6c-0.6,0-1.5,0.2-1.7,0.8 c-0.2,1.1,0.6,0.8,1.5,1.1c0,0,0.2,1.7,0.2,1.9c0.2,1-0.4,1.7-0.4,2.7c0,0.6,0,1.7,0.4,2.1L24.2,14.3z M41.8,29 c0.2-0.4,0.2-1.1,0.4-1.5c0.2-1,0.2-2.1,0.2-3.1c0-2.1-0.2-4.2-0.8-6.1c-0.4-0.6-0.6-1.3-0.8-1.9c-0.4-1.1-1-2.1-1.9-2.9 c-0.8-1.1-1.9-4-3.8-3.1c-0.6,0.2-1,1-1.5,1.5c-0.4,0.6-0.8,1.3-1.3,1.9c-0.2,0.2-0.4,0.6-0.2,0.8c0,0.2,0.2,0.2,0.4,0.2 c0.4,0.2,0.6,0.2,1,0.4c0.2,0,0.4,0.2,0.2,0.4c0,0,0,0.2-0.2,0.2c-1,1.1-2.1,1.9-3.1,2.9c-0.2,0.2-0.4,0.6-0.4,0.8 c0,0.2,0.2,0.2,0.2,0.4c0,0.2-0.2,0.2-0.4,0.4c-0.4,0.2-0.8,0.4-1.1,0.6c-0.2,0.4,0,1.1-0.2,1.5c-0.2,1.1-0.8,1.9-1.3,2.9 c-0.4,0.6-0.6,1.3-1,1.9c0,0.8-0.2,1.5,0.2,2.1c1,1.5,2.9,0.6,4.4,1.3c0.4,0.2,0.8,0.2,1.1,0.6c0.6,0.6,0.6,1.7,0.8,2.3 c0.2,0.8,0.4,1.7,0.8,2.5c0.2,1,0.6,2.1,0.8,2.9c1.9-1.5,3.6-3.1,4.8-5.2C40.6,32.4,41.2,30.7,41.8,29z"}}]})(e)}function _P(e){return ro({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"g",attr:{fill:"#1976D2"},child:[{tag:"path",attr:{d:"M38,13h-3c-5.5,0-10,4.5-10,10s4.5,10,10,10h3c5.5,0,10-4.5,10-10S43.5,13,38,13z M38,29h-3 c-3.3,0-6-2.7-6-6s2.7-6,6-6h3c3.3,0,6,2.7,6,6S41.3,29,38,29z"}},{tag:"path",attr:{d:"M13,13h-3C4.5,13,0,17.5,0,23s4.5,10,10,10h3c5.5,0,10-4.5,10-10S18.5,13,13,13z M13,29h-3 c-3.3,0-6-2.7-6-6s2.7-6,6-6h3c3.3,0,6,2.7,6,6S16.3,29,13,29z"}}]},{tag:"path",attr:{fill:"#42A5F5",d:"M33,21H15c-1.1,0-2,0.9-2,2s0.9,2,2,2h18c1.1,0,2-0.9,2-2S34.1,21,33,21z"}}]})(e)}function bP(e){return ro({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"rect",attr:{x:"16.7",y:"1.6",transform:"matrix(-.707 -.707 .707 -.707 24 57.941)",fill:"#FFA000",width:"14.6",height:"44.8"}},{tag:"g",attr:{fill:"#9E6400"},child:[{tag:"rect",attr:{x:"17.9",y:"20.2",transform:"matrix(-.707 -.707 .707 -.707 21.177 51.125)",width:"6.6",height:"2"}},{tag:"rect",attr:{x:"22.3",y:"15.2",transform:"matrix(-.707 -.707 .707 -.707 29.833 44.71)",width:"3.7",height:"2"}},{tag:"rect",attr:{x:"25.9",y:"12.2",transform:"matrix(-.707 -.707 .707 -.707 40.49 43.125)",width:"6.6",height:"2"}},{tag:"rect",attr:{x:"31.2",y:"6.3",transform:"matrix(.707 -.707 .707 .707 3.643 25.147)",width:"2",height:"3.7"}},{tag:"rect",attr:{x:"6.3",y:"31.2",transform:"matrix(-.707 -.707 .707 -.707 -8.794 60.71)",width:"3.7",height:"2"}},{tag:"rect",attr:{x:"9.9",y:"28.2",transform:"matrix(-.707 -.707 .707 -.707 1.863 59.125)",width:"6.6",height:"2"}},{tag:"rect",attr:{x:"14.3",y:"23.2",transform:"matrix(-.707 -.707 .707 -.707 10.52 52.71)",width:"3.7",height:"2"}}]}]})(e)}function EP(e){return ro({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#607D8B",d:"M39.6,27.2c0.1-0.7,0.2-1.4,0.2-2.2s-0.1-1.5-0.2-2.2l4.5-3.2c0.4-0.3,0.6-0.9,0.3-1.4L40,10.8 c-0.3-0.5-0.8-0.7-1.3-0.4l-5,2.3c-1.2-0.9-2.4-1.6-3.8-2.2l-0.5-5.5c-0.1-0.5-0.5-0.9-1-0.9h-8.6c-0.5,0-1,0.4-1,0.9l-0.5,5.5 c-1.4,0.6-2.7,1.3-3.8,2.2l-5-2.3c-0.5-0.2-1.1,0-1.3,0.4l-4.3,7.4c-0.3,0.5-0.1,1.1,0.3,1.4l4.5,3.2c-0.1,0.7-0.2,1.4-0.2,2.2 s0.1,1.5,0.2,2.2L4,30.4c-0.4,0.3-0.6,0.9-0.3,1.4L8,39.2c0.3,0.5,0.8,0.7,1.3,0.4l5-2.3c1.2,0.9,2.4,1.6,3.8,2.2l0.5,5.5 c0.1,0.5,0.5,0.9,1,0.9h8.6c0.5,0,1-0.4,1-0.9l0.5-5.5c1.4-0.6,2.7-1.3,3.8-2.2l5,2.3c0.5,0.2,1.1,0,1.3-0.4l4.3-7.4 c0.3-0.5,0.1-1.1-0.3-1.4L39.6,27.2z M24,35c-5.5,0-10-4.5-10-10c0-5.5,4.5-10,10-10c5.5,0,10,4.5,10,10C34,30.5,29.5,35,24,35z"}},{tag:"path",attr:{fill:"#455A64",d:"M24,13c-6.6,0-12,5.4-12,12c0,6.6,5.4,12,12,12s12-5.4,12-12C36,18.4,30.6,13,24,13z M24,30 c-2.8,0-5-2.2-5-5c0-2.8,2.2-5,5-5s5,2.2,5,5C29,27.8,26.8,30,24,30z"}}]})(e)}var zy={exports:{}},ud={};Object.defineProperty(ud,"__esModule",{value:!0});var ft=$.exports;function Wy(){return(Wy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var DT=ft.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},ft.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),FT=ft.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},ft.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function Hy(e){if(e.length===7)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function qy(e,t,n,r,o){return function(i,a,s,u,l){var c=(i-s)/(a-s);if(c===0)return u;if(c===1)return l;for(var v="#",d=1;d<6;d+=2){var m=parseInt(u.substr(d,2),16),y=parseInt(l.substr(d,2),16),_=Math.round((1-c)*m+c*y).toString(16);_.length===1&&(_="0"+_),v+=_}return v}(e,t,n,Hy(r),Hy(o))}var Qy=function(e){function t(n){e.call(this,n);var r=n.height,o=n.width,i=n.checked;this.t=n.handleDiameter||r-2,this.i=Math.max(o-r,o-(r+this.t)/2),this.o=Math.max(0,(r-this.t)/2),this.state={h:i?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.componentDidMount=function(){this.W=!0},t.prototype.componentDidUpdate=function(n){n.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},t.prototype.componentWillUnmount=function(){this.W=!1},t.prototype.I=function(n){this.H.focus(),this.setState({R:n,j:!0,B:Date.now()})},t.prototype.L=function(n){var r=this.state,o=r.R,i=r.h,a=(this.props.checked?this.i:this.o)+n-o;r.N||n===o||this.setState({N:!0});var s=Math.min(this.i,Math.max(this.o,a));s!==i&&this.setState({h:s})},t.prototype.U=function(n){var r=this.state,o=r.h,i=r.N,a=r.B,s=this.props.checked,u=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var l=Date.now()-a;(!i||l<250||s&&o<=u||!s&&o>=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};
|