From 4e02c6e12d6dc69b1e69fce524c494791aa7a123 Mon Sep 17 00:00:00 2001 From: HarelM Date: Sun, 7 Sep 2025 10:06:13 +0000 Subject: [PATCH] deploy: 4d5c74f4ee0b19118afefa30bc3869d7be9d6ed8 --- .../{index-DvAEUNsS.js => index-DRoHSTNS.js} | 108 +++++++++--------- ...-DvAEUNsS.js.map => index-DRoHSTNS.js.map} | 2 +- assets/index-Dx15ns3x.css | 1 + assets/index-egN5o-fX.css | 1 - index.html | 4 +- 5 files changed, 58 insertions(+), 58 deletions(-) rename assets/{index-DvAEUNsS.js => index-DRoHSTNS.js} (89%) rename assets/{index-DvAEUNsS.js.map => index-DRoHSTNS.js.map} (64%) create mode 100644 assets/index-Dx15ns3x.css delete mode 100644 assets/index-egN5o-fX.css diff --git a/assets/index-DvAEUNsS.js b/assets/index-DRoHSTNS.js similarity index 89% rename from assets/index-DvAEUNsS.js rename to assets/index-DRoHSTNS.js index b07986b8..ae5f4f9b 100644 --- a/assets/index-DvAEUNsS.js +++ b/assets/index-DRoHSTNS.js @@ -1,4 +1,4 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function Gl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function fB(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var $3={exports:{}},xv={},V3={exports:{}},hs={},jI;function Cj(){if(jI)return hs;jI=1;/** +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function Gl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function pB(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var $3={exports:{}},xv={},V3={exports:{}},hs={},WI;function bj(){if(WI)return hs;WI=1;/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function R(Ie){return Ie===null||typeof Ie!="object"?null:(Ie=B&&Ie[B]||Ie["@@iterator"],typeof Ie=="function"?Ie:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,N={};function W(Ie,$e,gt){this.props=Ie,this.context=$e,this.refs=N,this.updater=gt||P}W.prototype.isReactComponent={},W.prototype.setState=function(Ie,$e){if(typeof Ie!="object"&&typeof Ie!="function"&&Ie!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ie,$e,"setState")},W.prototype.forceUpdate=function(Ie){this.updater.enqueueForceUpdate(this,Ie,"forceUpdate")};function X(){}X.prototype=W.prototype;function $(Ie,$e,gt){this.props=Ie,this.context=$e,this.refs=N,this.updater=gt||P}var re=$.prototype=new X;re.constructor=$,U(re,W.prototype),re.isPureReactComponent=!0;var te=Array.isArray,V=Object.prototype.hasOwnProperty,ne={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function le(Ie,$e,gt){var Dt,ut={},Rt=null,St=null;if($e!=null)for(Dt in $e.ref!==void 0&&(St=$e.ref),$e.key!==void 0&&(Rt=""+$e.key),$e)V.call($e,Dt)&&!G.hasOwnProperty(Dt)&&(ut[Dt]=$e[Dt]);var Ke=arguments.length-2;if(Ke===1)ut.children=gt;else if(1=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function wj(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function d2(){return d2=Object.assign?Object.assign.bind():function(n){for(var e=1;eur.createElement(e.tag,f2({key:t},e.attr),cF(e.child)))}function rA(n){return e=>ur.createElement(Oj,d2({attr:f2({},n.attr)},e),cF(n.child))}function Oj(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=Mj(n,xj),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),ur.createElement("svg",d2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:f2(f2({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&ur.createElement("title",null,s),n.children)};return Ey!==void 0?ur.createElement(Ey.Consumer,null,t=>e(t)):e(uF)}var sb={},H3={exports:{}},ad={},Z3={exports:{}},X3={};/** + */var YI;function xj(){if(YI)return xv;YI=1;var n=tl(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(o,f,C){var x,B={},R=null,P=null;C!==void 0&&(R=""+C),f.key!==void 0&&(R=""+f.key),f.ref!==void 0&&(P=f.ref);for(x in f)r.call(f,x)&&!s.hasOwnProperty(x)&&(B[x]=f[x]);if(o&&o.defaultProps)for(x in f=o.defaultProps,f)B[x]===void 0&&(B[x]=f[x]);return{$$typeof:e,type:o,key:R,ref:P,props:B,_owner:i.current}}return xv.Fragment=t,xv.jsx=l,xv.jsxs=l,xv}var qI;function Mj(){return qI||(qI=1,$3.exports=xj()),$3.exports}var oe=Mj(),nr=tl();const ur=Gl(nr);var cF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ey=ur.createContext&&ur.createContext(cF),wj=["attr","size","title"];function Sj(n,e){if(n==null)return{};var t=Ej(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Ej(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function d2(){return d2=Object.assign?Object.assign.bind():function(n){for(var e=1;eur.createElement(e.tag,f2({key:t},e.attr),hF(e.child)))}function rA(n){return e=>ur.createElement(Tj,d2({attr:f2({},n.attr)},e),hF(n.child))}function Tj(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=Sj(n,wj),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),ur.createElement("svg",d2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:f2(f2({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&ur.createElement("title",null,s),n.children)};return Ey!==void 0?ur.createElement(Ey.Consumer,null,t=>e(t)):e(cF)}var sb={},H3={exports:{}},ad={},Z3={exports:{}},X3={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $I;function Ij(){return $I||($I=1,function(n){function e(it,nt){var Ge=it.length;it.push(nt);e:for(;0>>1,$e=it[Ie];if(0>>1;Iei(ut,Ge))Rt<$e&&0>i(St,ut)?(it[Ie]=St,it[Rt]=Ge,Ie=Rt):(it[Ie]=ut,it[Dt]=Ge,Ie=Dt);else if(Rt<$e&&0>i(St,Ge))it[Ie]=St,it[Rt]=Ge,Ie=Rt;else break e}}return nt}function i(it,nt){var Ge=it.sortIndex-nt.sortIndex;return Ge!==0?Ge:it.id-nt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var f=[],C=[],x=1,B=null,R=3,P=!1,U=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(it){for(var nt=t(C);nt!==null;){if(nt.callback===null)r(C);else if(nt.startTime<=it)r(C),nt.sortIndex=nt.expirationTime,e(f,nt);else break;nt=t(C)}}function te(it){if(N=!1,re(it),!U)if(t(f)!==null)U=!0,rt(V);else{var nt=t(C);nt!==null&&Ct(te,nt.startTime-it)}}function V(it,nt){U=!1,N&&(N=!1,X(le),le=-1),P=!0;var Ge=R;try{for(re(nt),B=t(f);B!==null&&(!(B.expirationTime>nt)||it&&!we());){var Ie=B.callback;if(typeof Ie=="function"){B.callback=null,R=B.priorityLevel;var $e=Ie(B.expirationTime<=nt);nt=n.unstable_now(),typeof $e=="function"?B.callback=$e:B===t(f)&&r(f),re(nt)}else r(f);B=t(f)}if(B!==null)var gt=!0;else{var Dt=t(C);Dt!==null&&Ct(te,Dt.startTime-nt),gt=!1}return gt}finally{B=null,R=Ge,P=!1}}var ne=!1,G=null,le=-1,fe=5,pe=-1;function we(){return!(n.unstable_now()-peit||125Ie?(it.sortIndex=Ge,e(C,it),t(f)===null&&it===t(C)&&(N?(X(le),le=-1):N=!0,Ct(te,Ge-Ie))):(it.sortIndex=$e,e(f,it),U||P||(U=!0,rt(V))),it},n.unstable_shouldYield=we,n.unstable_wrapCallback=function(it){var nt=R;return function(){var Ge=R;R=nt;try{return it.apply(this,arguments)}finally{R=Ge}}}}(X3)),X3}var VI;function Tj(){return VI||(VI=1,Z3.exports=Ij()),Z3.exports}/** + */var VI;function kj(){return VI||(VI=1,function(n){function e(it,nt){var Ge=it.length;it.push(nt);e:for(;0>>1,$e=it[Ie];if(0>>1;Iei(ut,Ge))Rt<$e&&0>i(St,ut)?(it[Ie]=St,it[Rt]=Ge,Ie=Rt):(it[Ie]=ut,it[Dt]=Ge,Ie=Dt);else if(Rt<$e&&0>i(St,Ge))it[Ie]=St,it[Rt]=Ge,Ie=Rt;else break e}}return nt}function i(it,nt){var Ge=it.sortIndex-nt.sortIndex;return Ge!==0?Ge:it.id-nt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var f=[],C=[],x=1,B=null,R=3,P=!1,U=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(it){for(var nt=t(C);nt!==null;){if(nt.callback===null)r(C);else if(nt.startTime<=it)r(C),nt.sortIndex=nt.expirationTime,e(f,nt);else break;nt=t(C)}}function te(it){if(N=!1,re(it),!U)if(t(f)!==null)U=!0,rt(V);else{var nt=t(C);nt!==null&&Ct(te,nt.startTime-it)}}function V(it,nt){U=!1,N&&(N=!1,X(le),le=-1),P=!0;var Ge=R;try{for(re(nt),B=t(f);B!==null&&(!(B.expirationTime>nt)||it&&!we());){var Ie=B.callback;if(typeof Ie=="function"){B.callback=null,R=B.priorityLevel;var $e=Ie(B.expirationTime<=nt);nt=n.unstable_now(),typeof $e=="function"?B.callback=$e:B===t(f)&&r(f),re(nt)}else r(f);B=t(f)}if(B!==null)var gt=!0;else{var Dt=t(C);Dt!==null&&Ct(te,Dt.startTime-nt),gt=!1}return gt}finally{B=null,R=Ge,P=!1}}var ne=!1,G=null,le=-1,fe=5,pe=-1;function we(){return!(n.unstable_now()-peit||125Ie?(it.sortIndex=Ge,e(C,it),t(f)===null&&it===t(C)&&(N?(X(le),le=-1):N=!0,Ct(te,Ge-Ie))):(it.sortIndex=$e,e(f,it),U||P||(U=!0,rt(V))),it},n.unstable_shouldYield=we,n.unstable_wrapCallback=function(it){var nt=R;return function(){var Ge=R;R=nt;try{return it.apply(this,arguments)}finally{R=Ge}}}}(X3)),X3}var HI;function Pj(){return HI||(HI=1,Z3.exports=kj()),Z3.exports}/** * @license React * react-dom.production.min.js * @@ -30,28 +30,28 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var HI;function kj(){if(HI)return ad;HI=1;var n=tl(),e=Tj();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,K=1;K"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,C=/^[: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]*$/,x={},B={};function R(m){return f.call(B,m)?!0:f.call(x,m)?!1:C.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,K,Q){if(K!==null&&K.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:K!==null?!K.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function U(m,_,K,Q){if(_===null||typeof _>"u"||P(m,_,K,Q))return!0;if(Q)return!1;if(K!==null)switch(K.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,K,Q,se,ye,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=se,this.mustUseProperty=K,this.propertyName=m,this.type=_,this.sanitizeURL=ye,this.removeEmptyString=tt}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){W[m]=new N(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];W[_]=new N(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){W[m]=new N(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){W[m]=new N(m,2,!1,m,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(m){W[m]=new N(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){W[m]=new N(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){W[m]=new N(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){W[m]=new N(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){W[m]=new N(m,5,!1,m.toLowerCase(),null,!1,!1)});var X=/[\-:]([a-z])/g;function $(m){return m[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(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!1,!1)}),W.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!0,!0)});function re(m,_,K,Q){var se=W.hasOwnProperty(_)?W[_]:null;(se!==null?se.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N")&&(U(_,K,se,Q)&&(K=null),Q||se===null?R(_)&&(K===null?m.removeAttribute(_):m.setAttribute(_,""+K)):se.mustUseProperty?m[se.propertyName]=K===null?se.type===3?!1:"":K:(_=se.attributeName,Q=se.attributeNamespace,K===null?m.removeAttribute(_):(se=se.type,K=se===3||se===4&&K===!0?"":""+K,Q?m.setAttributeNS(Q,_,K):m.setAttribute(_,K))))}var te=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),ne=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),we=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),Ct=Symbol.for("react.offscreen"),it=Symbol.iterator;function nt(m){return m===null||typeof m!="object"?null:(m=it&&m[it]||m["@@iterator"],typeof m=="function"?m:null)}var Ge=Object.assign,Ie;function $e(m){if(Ie===void 0)try{throw Error()}catch(K){var _=K.stack.trim().match(/\n( *(at )?)/);Ie=_&&_[1]||""}return` + */var ZI;function Rj(){if(ZI)return ad;ZI=1;var n=tl(),e=Pj();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,K=1;K"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,C=/^[: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]*$/,x={},B={};function R(m){return f.call(B,m)?!0:f.call(x,m)?!1:C.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,K,Q){if(K!==null&&K.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:K!==null?!K.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function U(m,_,K,Q){if(_===null||typeof _>"u"||P(m,_,K,Q))return!0;if(Q)return!1;if(K!==null)switch(K.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,K,Q,se,ye,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=se,this.mustUseProperty=K,this.propertyName=m,this.type=_,this.sanitizeURL=ye,this.removeEmptyString=tt}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){W[m]=new N(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];W[_]=new N(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){W[m]=new N(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){W[m]=new N(m,2,!1,m,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(m){W[m]=new N(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){W[m]=new N(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){W[m]=new N(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){W[m]=new N(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){W[m]=new N(m,5,!1,m.toLowerCase(),null,!1,!1)});var X=/[\-:]([a-z])/g;function $(m){return m[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(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!1,!1)}),W.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!0,!0)});function re(m,_,K,Q){var se=W.hasOwnProperty(_)?W[_]:null;(se!==null?se.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N")&&(U(_,K,se,Q)&&(K=null),Q||se===null?R(_)&&(K===null?m.removeAttribute(_):m.setAttribute(_,""+K)):se.mustUseProperty?m[se.propertyName]=K===null?se.type===3?!1:"":K:(_=se.attributeName,Q=se.attributeNamespace,K===null?m.removeAttribute(_):(se=se.type,K=se===3||se===4&&K===!0?"":""+K,Q?m.setAttributeNS(Q,_,K):m.setAttribute(_,K))))}var te=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),ne=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),we=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),Ct=Symbol.for("react.offscreen"),it=Symbol.iterator;function nt(m){return m===null||typeof m!="object"?null:(m=it&&m[it]||m["@@iterator"],typeof m=="function"?m:null)}var Ge=Object.assign,Ie;function $e(m){if(Ie===void 0)try{throw Error()}catch(K){var _=K.stack.trim().match(/\n( *(at )?)/);Ie=_&&_[1]||""}return` `+Ie+m}var gt=!1;function Dt(m,_){if(!m||gt)return"";gt=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Mn){var Q=Mn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Mn){Q=Mn}m.call(_.prototype)}else{try{throw Error()}catch(Mn){Q=Mn}m()}}catch(Mn){if(Mn&&Q&&typeof Mn.stack=="string"){for(var se=Mn.stack.split(` `),ye=Q.stack.split(` `),tt=se.length-1,Ot=ye.length-1;1<=tt&&0<=Ot&&se[tt]!==ye[Ot];)Ot--;for(;1<=tt&&0<=Ot;tt--,Ot--)if(se[tt]!==ye[Ot]){if(tt!==1||Ot!==1)do if(tt--,Ot--,0>Ot||se[tt]!==ye[Ot]){var Qt=` `+se[tt].replace(" at new "," at ");return m.displayName&&Qt.includes("")&&(Qt=Qt.replace("",m.displayName)),Qt}while(1<=tt&&0<=Ot);break}}}finally{gt=!1,Error.prepareStackTrace=K}return(m=m?m.displayName||m.name:"")?$e(m):""}function ut(m){switch(m.tag){case 5:return $e(m.type);case 16:return $e("Lazy");case 13:return $e("Suspense");case 19:return $e("SuspenseList");case 0:case 2:case 15:return m=Dt(m.type,!1),m;case 11:return m=Dt(m.type.render,!1),m;case 1:return m=Dt(m.type,!0),m;default:return""}}function Rt(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case G:return"Fragment";case ne:return"Portal";case fe:return"Profiler";case le:return"StrictMode";case xe:return"Suspense";case je:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case we:return(m.displayName||"Context")+".Consumer";case pe:return(m._context.displayName||"Context")+".Provider";case Se:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case Me:return _=m.displayName||null,_!==null?_:Rt(m.type)||"Memo";case rt:_=m._payload,m=m._init;try{return Rt(m(_))}catch{}}return null}function St(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rt(_);case 8:return _===le?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function Ke(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Pe(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Re(m){var _=Pe(m)?"checked":"value",K=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof K<"u"&&typeof K.get=="function"&&typeof K.set=="function"){var se=K.get,ye=K.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return se.call(this)},set:function(tt){Q=""+tt,ye.call(this,tt)}}),Object.defineProperty(m,_,{enumerable:K.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function Ye(m){m._valueTracker||(m._valueTracker=Re(m))}function vt(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var K=_.getValue(),Q="";return m&&(Q=Pe(m)?m.checked?"true":"false":m.value),m=Q,m!==K?(_.setValue(m),!0):!1}function yt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Et(m,_){var K=_.checked;return Ge({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:K??m._wrapperState.initialChecked})}function Zt(m,_){var K=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;K=Ke(_.value!=null?_.value:K),m._wrapperState={initialChecked:Q,initialValue:K,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Ut(m,_){_=_.checked,_!=null&&re(m,"checked",_,!1)}function An(m,_){Ut(m,_);var K=Ke(_.value),Q=_.type;if(K!=null)Q==="number"?(K===0&&m.value===""||m.value!=K)&&(m.value=""+K):m.value!==""+K&&(m.value=""+K);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?Vt(m,_.type,K):_.hasOwnProperty("defaultValue")&&Vt(m,_.type,Ke(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function hr(m,_,K){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,K||_===m.value||(m.value=_),m.defaultValue=_}K=m.name,K!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,K!==""&&(m.name=K)}function Vt(m,_,K){(_!=="number"||yt(m.ownerDocument)!==m)&&(K==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+K&&(m.defaultValue=""+K))}var Vn=Array.isArray;function Pn(m,_,K,Q){if(m=m.options,_){_={};for(var se=0;se"+_.valueOf().toString()+"",_=he.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;_.firstChild;)m.appendChild(_.firstChild)}});function et(m,_){if(_){var K=m.firstChild;if(K&&K===m.lastChild&&K.nodeType===3){K.nodeValue=_;return}}m.textContent=_}var bt={animationIterationCount:!0,aspectRatio:!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},Yt=["Webkit","ms","Moz","O"];Object.keys(bt).forEach(function(m){Yt.forEach(function(_){_=_+m.charAt(0).toUpperCase()+m.substring(1),bt[_]=bt[m]})});function Jt(m,_,K){return _==null||typeof _=="boolean"||_===""?"":K||typeof _!="number"||_===0||bt.hasOwnProperty(m)&&bt[m]?(""+_).trim():_+"px"}function ir(m,_){m=m.style;for(var K in _)if(_.hasOwnProperty(K)){var Q=K.indexOf("--")===0,se=Jt(K,_[K],Q);K==="float"&&(K="cssFloat"),Q?m.setProperty(K,se):m[K]=se}}var Xe=Ge({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 ae(m,_){if(_){if(Xe[m]&&(_.children!=null||_.dangerouslySetInnerHTML!=null))throw Error(t(137,m));if(_.dangerouslySetInnerHTML!=null){if(_.children!=null)throw Error(t(60));if(typeof _.dangerouslySetInnerHTML!="object"||!("__html"in _.dangerouslySetInnerHTML))throw Error(t(61))}if(_.style!=null&&typeof _.style!="object")throw Error(t(62))}}function ve(m,_){if(m.indexOf("-")===-1)return typeof _.is=="string";switch(m){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}}var p=null;function Ne(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var Ve=null,Te=null,lt=null;function ct(m){if(m=Ro(m)){if(typeof Ve!="function")throw Error(t(280));var _=m.stateNode;_&&(_=Bs(_),Ve(m.stateNode,m.type,_))}}function Ft(m){Te?lt?lt.push(m):lt=[m]:Te=m}function jt(){if(Te){var m=Te,_=lt;if(lt=Te=null,ct(m),_)for(m=0;m<_.length;m++)ct(_[m])}}function Gt(m,_){return m(_)}function nn(){}var On=!1;function Rn(m,_,K){if(On)return m(_,K);On=!0;try{return Gt(m,_,K)}finally{On=!1,(Te!==null||lt!==null)&&(nn(),jt())}}function dr(m,_){var K=m.stateNode;if(K===null)return null;var Q=Bs(K);if(Q===null)return null;K=Q[_];e:switch(_){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Q=!Q.disabled)||(m=m.type,Q=!(m==="button"||m==="input"||m==="select"||m==="textarea")),m=!Q;break e;default:m=!1}if(m)return null;if(K&&typeof K!="function")throw Error(t(231,_,typeof K));return K}var Tr=!1;if(o)try{var or={};Object.defineProperty(or,"passive",{get:function(){Tr=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Tr=!1}function on(m,_,K,Q,se,ye,tt,Ot,Qt){var Mn=Array.prototype.slice.call(arguments,3);try{_.apply(K,Mn)}catch(sr){this.onError(sr)}}var ti=!1,li=null,jr=!1,Fr=null,wn={onError:function(m){ti=!0,li=m}};function Dr(m,_,K,Q,se,ye,tt,Ot,Qt){ti=!1,li=null,on.apply(wn,arguments)}function ui(m,_,K,Q,se,ye,tt,Ot,Qt){if(Dr.apply(this,arguments),ti){if(ti){var Mn=li;ti=!1,li=null}else throw Error(t(198));jr||(jr=!0,Fr=Mn)}}function Pi(m){var _=m,K=m;if(m.alternate)for(;_.return;)_=_.return;else{m=_;do _=m,(_.flags&4098)!==0&&(K=_.return),m=_.return;while(m)}return _.tag===3?K:null}function yi(m){if(m.tag===13){var _=m.memoizedState;if(_===null&&(m=m.alternate,m!==null&&(_=m.memoizedState)),_!==null)return _.dehydrated}return null}function As(m){if(Pi(m)!==m)throw Error(t(188))}function qr(m){var _=m.alternate;if(!_){if(_=Pi(m),_===null)throw Error(t(188));return _!==m?null:m}for(var K=m,Q=_;;){var se=K.return;if(se===null)break;var ye=se.alternate;if(ye===null){if(Q=se.return,Q!==null){K=Q;continue}break}if(se.child===ye.child){for(ye=se.child;ye;){if(ye===K)return As(se),m;if(ye===Q)return As(se),_;ye=ye.sibling}throw Error(t(188))}if(K.return!==Q.return)K=se,Q=ye;else{for(var tt=!1,Ot=se.child;Ot;){if(Ot===K){tt=!0,K=se,Q=ye;break}if(Ot===Q){tt=!0,Q=se,K=ye;break}Ot=Ot.sibling}if(!tt){for(Ot=ye.child;Ot;){if(Ot===K){tt=!0,K=ye,Q=se;break}if(Ot===Q){tt=!0,Q=ye,K=se;break}Ot=Ot.sibling}if(!tt)throw Error(t(189))}}if(K.alternate!==Q)throw Error(t(190))}if(K.tag!==3)throw Error(t(188));return K.stateNode.current===K?m:_}function _s(m){return m=qr(m),m!==null?La(m):null}function La(m){if(m.tag===5||m.tag===6)return m;for(m=m.child;m!==null;){var _=La(m);if(_!==null)return _;m=m.sibling}return null}var da=e.unstable_scheduleCallback,No=e.unstable_cancelCallback,zs=e.unstable_shouldYield,hl=e.unstable_requestPaint,ci=e.unstable_now,oa=e.unstable_getCurrentPriorityLevel,bo=e.unstable_ImmediatePriority,lo=e.unstable_UserBlockingPriority,Er=e.unstable_NormalPriority,wa=e.unstable_LowPriority,qo=e.unstable_IdlePriority,Jo=null,qe=null;function xt(m){if(qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Jo,m,void 0,(m.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:gr,jn=Math.log,fn=Math.LN2;function gr(m){return m>>>=0,m===0?32:31-(jn(m)/fn|0)|0}var Qi=64,Io=4194304;function fs(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function fa(m,_){var K=m.pendingLanes;if(K===0)return 0;var Q=0,se=m.suspendedLanes,ye=m.pingedLanes,tt=K&268435455;if(tt!==0){var Ot=tt&~se;Ot!==0?Q=fs(Ot):(ye&=tt,ye!==0&&(Q=fs(ye)))}else tt=K&~se,tt!==0?Q=fs(tt):ye!==0&&(Q=fs(ye));if(Q===0)return 0;if(_!==0&&_!==Q&&(_&se)===0&&(se=Q&-Q,ye=_&-_,se>=ye||se===16&&(ye&4194240)!==0))return _;if((Q&4)!==0&&(Q|=K&16),_=m.entangledLanes,_!==0)for(m=m.entanglements,_&=Q;0<_;)K=31-_n(_),se=1<K;K++)_.push(m);return _}function Ua(m,_,K){m.pendingLanes|=_,_!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,_=31-_n(_),m[_]=K}function JA(m,_){var K=m.pendingLanes&~_;m.pendingLanes=_,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=_,m.mutableReadLanes&=_,m.entangledLanes&=_,_=m.entanglements;var Q=m.eventTimes;for(m=m.expirationTimes;0=Ml),Cd=" ",_d=!1;function fl(m,_){switch(m){case"keyup":return OA.indexOf(_.keyCode)!==-1;case"keydown":return _.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rc(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var Dc=!1;function ju(m,_){switch(m){case"compositionend":return Rc(_);case"keypress":return _.which!==32?null:(_d=!0,Cd);case"textInput":return m=_.data,m===Cd&&_d?null:m;default:return null}}function qf(m,_){if(Dc)return m==="compositionend"||!Zh&&fl(m,_)?(m=xo(),Yi=ni=Rr=null,Dc=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(_.ctrlKey||_.altKey||_.metaKey)||_.ctrlKey&&_.altKey){if(_.char&&1<_.char.length)return _.char;if(_.which)return String.fromCharCode(_.which)}return null;case"compositionend":return bh&&_.locale!=="ko"?null:_.data;default:return null}}var hf={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 bd(m){var _=m&&m.nodeName&&m.nodeName.toLowerCase();return _==="input"?!!hf[m.type]:_==="textarea"}function xd(m,_,K,Q){Ft(Q),_=fc(_,"onChange"),0<_.length&&(K=new Ns("onChange","change",null,K,Q),m.push({event:K,listeners:_}))}var rl=null,pl=null;function $f(m){Sd(m,0)}function xh(m){var _=ai(m);if(vt(_))return m}function Kp(m,_){if(m==="change")return _}var so=!1;if(o){var Ba;if(o){var Mh="oninput"in document;if(!Mh){var Md=document.createElement("div");Md.setAttribute("oninput","return;"),Mh=typeof Md.oninput=="function"}Ba=Mh}else Ba=!1;so=Ba&&(!document.documentMode||9=_)return{node:K,offset:_-m};m=Q}e:{for(;K;){if(K.nextSibling){K=K.nextSibling;break e}K=K.parentNode}K=void 0}K=Ri(K)}}function ma(m,_){return m&&_?m===_?!0:m&&m.nodeType===3?!1:_&&_.nodeType===3?ma(m,_.parentNode):"contains"in m?m.contains(_):m.compareDocumentPosition?!!(m.compareDocumentPosition(_)&16):!1:!1}function es(){for(var m=window,_=yt();_ instanceof m.HTMLIFrameElement;){try{var K=typeof _.contentWindow.location.href=="string"}catch{K=!1}if(K)m=_.contentWindow;else break;_=yt(m.document)}return _}function cc(m){var _=m&&m.nodeName&&m.nodeName.toLowerCase();return _&&(_==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||_==="textarea"||m.contentEditable==="true")}function pf(m){var _=es(),K=m.focusedElem,Q=m.selectionRange;if(_!==K&&K&&K.ownerDocument&&ma(K.ownerDocument.documentElement,K)){if(Q!==null&&cc(K)){if(_=Q.start,m=Q.end,m===void 0&&(m=_),"selectionStart"in K)K.selectionStart=_,K.selectionEnd=Math.min(m,K.value.length);else if(m=(_=K.ownerDocument||document)&&_.defaultView||window,m.getSelection){m=m.getSelection();var se=K.textContent.length,ye=Math.min(Q.start,se);Q=Q.end===void 0?ye:Math.min(Q.end,se),!m.extend&&ye>Q&&(se=Q,Q=ye,ye=se),se=Go(K,ye);var tt=Go(K,Q);se&&tt&&(m.rangeCount!==1||m.anchorNode!==se.node||m.anchorOffset!==se.offset||m.focusNode!==tt.node||m.focusOffset!==tt.offset)&&(_=_.createRange(),_.setStart(se.node,se.offset),m.removeAllRanges(),ye>Q?(m.addRange(_),m.extend(tt.node,tt.offset)):(_.setEnd(tt.node,tt.offset),m.addRange(_)))}}for(_=[],m=K;m=m.parentNode;)m.nodeType===1&&_.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;K<_.length;K++)m=_[K],m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}var IA=o&&"documentMode"in document&&11>=document.documentMode,lA=null,yu=null,ja=null,ga=!1;function ih(m,_,K){var Q=K.window===K?K.document:K.nodeType===9?K:K.ownerDocument;ga||lA==null||lA!==yt(Q)||(Q=lA,"selectionStart"in Q&&cc(Q)?Q={start:Q.selectionStart,end:Q.selectionEnd}:(Q=(Q.ownerDocument&&Q.ownerDocument.defaultView||window).getSelection(),Q={anchorNode:Q.anchorNode,anchorOffset:Q.anchorOffset,focusNode:Q.focusNode,focusOffset:Q.focusOffset}),ja&&Lr(ja,Q)||(ja=Q,Q=fc(yu,"onSelect"),0qu||(m.current=js[qu],js[qu]=null,qu--)}function Os(m,_){qu++,js[qu]=m.current,m.current=_}var nu={},Ya=il(nu),gl=il(!1),yl=nu;function $u(m,_){var K=m.type.contextTypes;if(!K)return nu;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var se={},ye;for(ye in K)se[ye]=_[ye];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=se),se}function Bl(m){return m=m.childContextTypes,m!=null}function Oa(){Ps(gl),Ps(Ya)}function ru(m,_,K){if(Ya.current!==nu)throw Error(t(168));Os(Ya,_),Os(gl,K)}function uh(m,_,K){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return K;Q=Q.getChildContext();for(var se in Q)if(!(se in _))throw Error(t(108,St(m)||"Unknown",se));return Ge({},K,Q)}function Js(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||nu,yl=Ya.current,Os(Ya,m),Os(gl,gl.current),!0}function ch(m,_,K){var Q=m.stateNode;if(!Q)throw Error(t(169));K?(m=uh(m,_,yl),Q.__reactInternalMemoizedMergedChildContext=m,Ps(gl),Ps(Ya),Os(Ya,m)):Ps(gl),Os(gl,K)}var Yl=null,gf=!1,hh=!1;function iu(m){Yl===null?Yl=[m]:Yl.push(m)}function gc(m){gf=!0,iu(m)}function ou(){if(!hh&&Yl!==null){hh=!0;var m=0,_=bi;try{var K=Yl;for(bi=1;m>=tt,se-=tt,RA=1<<32-_n(_)+se|K<qi?(jA=wi,wi=null):jA=wi.sibling;var Ms=ar(un,wi,pn[qi],Cr);if(Ms===null){wi===null&&(wi=jA);break}m&&wi&&Ms.alternate===null&&_(un,wi),Xt=ye(Ms,Xt,qi),ki===null?pi=Ms:ki.sibling=Ms,ki=Ms,wi=jA}if(qi===pn.length)return K(un,wi),gs&&yc(un,qi),pi;if(wi===null){for(;qiqi?(jA=wi,wi=null):jA=wi.sibling;var jd=ar(un,wi,Ms.value,Cr);if(jd===null){wi===null&&(wi=jA);break}m&&wi&&jd.alternate===null&&_(un,wi),Xt=ye(jd,Xt,qi),ki===null?pi=jd:ki.sibling=jd,ki=jd,wi=jA}if(Ms.done)return K(un,wi),gs&&yc(un,qi),pi;if(wi===null){for(;!Ms.done;qi++,Ms=pn.next())Ms=yr(un,Ms.value,Cr),Ms!==null&&(Xt=ye(Ms,Xt,qi),ki===null?pi=Ms:ki.sibling=Ms,ki=Ms);return gs&&yc(un,qi),pi}for(wi=Q(un,wi);!Ms.done;qi++,Ms=pn.next())Ms=Wr(wi,un,qi,Ms.value,Cr),Ms!==null&&(m&&Ms.alternate!==null&&wi.delete(Ms.key===null?qi:Ms.key),Xt=ye(Ms,Xt,qi),ki===null?pi=Ms:ki.sibling=Ms,ki=Ms);return m&&wi.forEach(function(iv){return _(un,iv)}),gs&&yc(un,qi),pi}function Al(un,Xt,pn,Cr){if(typeof pn=="object"&&pn!==null&&pn.type===G&&pn.key===null&&(pn=pn.props.children),typeof pn=="object"&&pn!==null){switch(pn.$$typeof){case V:e:{for(var pi=pn.key,ki=Xt;ki!==null;){if(ki.key===pi){if(pi=pn.type,pi===G){if(ki.tag===7){K(un,ki.sibling),Xt=se(ki,pn.props.children),Xt.return=un,un=Xt;break e}}else if(ki.elementType===pi||typeof pi=="object"&&pi!==null&&pi.$$typeof===rt&&Il(pi)===ki.type){K(un,ki.sibling),Xt=se(ki,pn.props),Xt.ref=ed(un,ki,pn),Xt.return=un,un=Xt;break e}K(un,ki);break}else _(un,ki);ki=ki.sibling}pn.type===G?(Xt=np(pn.props.children,un.mode,Cr,pn.key),Xt.return=un,un=Xt):(Cr=Wp(pn.type,pn.key,pn.props,null,un.mode,Cr),Cr.ref=ed(un,Xt,pn),Cr.return=un,un=Cr)}return tt(un);case ne:e:{for(ki=pn.key;Xt!==null;){if(Xt.key===ki)if(Xt.tag===4&&Xt.stateNode.containerInfo===pn.containerInfo&&Xt.stateNode.implementation===pn.implementation){K(un,Xt.sibling),Xt=se(Xt,pn.children||[]),Xt.return=un,un=Xt;break e}else{K(un,Xt);break}else _(un,Xt);Xt=Xt.sibling}Xt=i1(pn,un.mode,Cr),Xt.return=un,un=Xt}return tt(un);case rt:return ki=pn._init,Al(un,Xt,ki(pn._payload),Cr)}if(Vn(pn))return ii(un,Xt,pn,Cr);if(nt(pn))return hi(un,Xt,pn,Cr);Oh(un,pn)}return typeof pn=="string"&&pn!==""||typeof pn=="number"?(pn=""+pn,Xt!==null&&Xt.tag===6?(K(un,Xt.sibling),Xt=se(Xt,pn),Xt.return=un,un=Xt):(K(un,Xt),Xt=r1(pn,un.mode,Cr),Xt.return=un,un=Xt),tt(un)):K(un,Xt)}return Al}var vr=Zu(!0),ri=Zu(!1),bc=il(null),Tl=null,Xu=null,Ws=null;function Bu(){Ws=Xu=Tl=null}function ss(m){var _=bc.current;Ps(bc),m._currentValue=_}function Ia(m,_,K){for(;m!==null;){var Q=m.alternate;if((m.childLanes&_)!==_?(m.childLanes|=_,Q!==null&&(Q.childLanes|=_)):Q!==null&&(Q.childLanes&_)!==_&&(Q.childLanes|=_),m===K)break;m=m.return}}function dA(m,_){Tl=m,Ws=Xu=null,m=m.dependencies,m!==null&&m.firstContext!==null&&((m.lanes&_)!==0&&(Jl=!0),m.firstContext=null)}function Do(m){var _=m._currentValue;if(Ws!==m)if(m={context:m,memoizedValue:_,next:null},Xu===null){if(Tl===null)throw Error(t(308));Xu=m,Tl.dependencies={lanes:0,firstContext:m}}else Xu=Xu.next=m;return _}var as=null;function su(m){as===null?as=[m]:as.push(m)}function Ju(m,_,K,Q){var se=_.interleaved;return se===null?(K.next=K,su(_)):(K.next=se.next,se.next=K),_.interleaved=K,KA(m,Q)}function KA(m,_){m.lanes|=_;var K=m.alternate;for(K!==null&&(K.lanes|=_),K=m,m=m.return;m!==null;)m.childLanes|=_,K=m.alternate,K!==null&&(K.childLanes|=_),K=m,m=m.return;return K.tag===3?K.stateNode:null}var sl=!1;function Ih(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gc(m,_){m=m.updateQueue,_.updateQueue===m&&(_.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function fA(m,_){return{eventTime:m,lane:_,tag:0,payload:null,callback:null,next:null}}function kl(m,_,K){var Q=m.updateQueue;if(Q===null)return null;if(Q=Q.shared,(xi&2)!==0){var se=Q.pending;return se===null?_.next=_:(_.next=se.next,se.next=_),Q.pending=_,KA(m,K)}return se=Q.interleaved,se===null?(_.next=_,su(Q)):(_.next=se.next,se.next=_),Q.interleaved=_,KA(m,K)}function O(m,_,K){if(_=_.updateQueue,_!==null&&(_=_.shared,(K&4194240)!==0)){var Q=_.lanes;Q&=m.pendingLanes,K|=Q,_.lanes=K,Sa(m,K)}}function a(m,_){var K=m.updateQueue,Q=m.alternate;if(Q!==null&&(Q=Q.updateQueue,K===Q)){var se=null,ye=null;if(K=K.firstBaseUpdate,K!==null){do{var tt={eventTime:K.eventTime,lane:K.lane,tag:K.tag,payload:K.payload,callback:K.callback,next:null};ye===null?se=ye=tt:ye=ye.next=tt,K=K.next}while(K!==null);ye===null?se=ye=_:ye=ye.next=_}else se=ye=_;K={baseState:Q.baseState,firstBaseUpdate:se,lastBaseUpdate:ye,shared:Q.shared,effects:Q.effects},m.updateQueue=K;return}m=K.lastBaseUpdate,m===null?K.firstBaseUpdate=_:m.next=_,K.lastBaseUpdate=_}function c(m,_,K,Q){var se=m.updateQueue;sl=!1;var ye=se.firstBaseUpdate,tt=se.lastBaseUpdate,Ot=se.shared.pending;if(Ot!==null){se.shared.pending=null;var Qt=Ot,Mn=Qt.next;Qt.next=null,tt===null?ye=Mn:tt.next=Mn,tt=Qt;var sr=m.alternate;sr!==null&&(sr=sr.updateQueue,Ot=sr.lastBaseUpdate,Ot!==tt&&(Ot===null?sr.firstBaseUpdate=Mn:Ot.next=Mn,sr.lastBaseUpdate=Qt))}if(ye!==null){var yr=se.baseState;tt=0,sr=Mn=Qt=null,Ot=ye;do{var ar=Ot.lane,Wr=Ot.eventTime;if((Q&ar)===ar){sr!==null&&(sr=sr.next={eventTime:Wr,lane:0,tag:Ot.tag,payload:Ot.payload,callback:Ot.callback,next:null});e:{var ii=m,hi=Ot;switch(ar=_,Wr=K,hi.tag){case 1:if(ii=hi.payload,typeof ii=="function"){yr=ii.call(Wr,yr,ar);break e}yr=ii;break e;case 3:ii.flags=ii.flags&-65537|128;case 0:if(ii=hi.payload,ar=typeof ii=="function"?ii.call(Wr,yr,ar):ii,ar==null)break e;yr=Ge({},yr,ar);break e;case 2:sl=!0}}Ot.callback!==null&&Ot.lane!==0&&(m.flags|=64,ar=se.effects,ar===null?se.effects=[Ot]:ar.push(Ot))}else Wr={eventTime:Wr,lane:ar,tag:Ot.tag,payload:Ot.payload,callback:Ot.callback,next:null},sr===null?(Mn=sr=Wr,Qt=yr):sr=sr.next=Wr,tt|=ar;if(Ot=Ot.next,Ot===null){if(Ot=se.shared.pending,Ot===null)break;ar=Ot,Ot=ar.next,ar.next=null,se.lastBaseUpdate=ar,se.shared.pending=null}}while(!0);if(sr===null&&(Qt=yr),se.baseState=Qt,se.firstBaseUpdate=Mn,se.lastBaseUpdate=sr,_=se.shared.interleaved,_!==null){se=_;do tt|=se.lane,se=se.next;while(se!==_)}else ye===null&&(se.shared.lanes=0);GA|=tt,m.lanes=tt,m.memoizedState=yr}}function v(m,_,K){if(m=_.effects,_.effects=null,m!==null)for(_=0;_K?K:4,m(!0);var Q=wt.transition;wt.transition={};try{m(!1),_()}finally{bi=K,wt.transition=Q}}function ys(){return Br().memoizedState}function Cf(m,_,K){var Q=Sf(m);if(K={lane:Q,action:K,hasEagerState:!1,eagerState:null,next:null},Od(m))gA(_,K);else if(K=Ju(m,_,K,Q),K!==null){var se=nc();ph(K,m,Q,se),LA(K,_,Q)}}function Bd(m,_,K){var Q=Sf(m),se={lane:Q,action:K,hasEagerState:!1,eagerState:null,next:null};if(Od(m))gA(_,se);else{var ye=m.alternate;if(m.lanes===0&&(ye===null||ye.lanes===0)&&(ye=_.lastRenderedReducer,ye!==null))try{var tt=_.lastRenderedState,Ot=ye(tt,K);if(se.hasEagerState=!0,se.eagerState=Ot,dn(Ot,tt)){var Qt=_.interleaved;Qt===null?(se.next=se,su(_)):(se.next=Qt.next,Qt.next=se),_.interleaved=se;return}}catch{}finally{}K=Ju(m,_,se,Q),K!==null&&(se=nc(),ph(K,m,Q,se),LA(K,_,Q))}}function Od(m){var _=m.alternate;return m===Mt||_!==null&&_===Mt}function gA(m,_){sn=zt=!0;var K=m.pending;K===null?_.next=_:(_.next=K.next,K.next=_),m.pending=_}function LA(m,_,K){if((K&4194240)!==0){var Q=_.lanes;Q&=m.pendingLanes,K|=Q,_.lanes=K,Sa(m,K)}}var Wc={readContext:Do,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},Iu={readContext:Do,useCallback:function(m,_){return kn().memoizedState=[m,_===void 0?null:_],m},useContext:Do,useEffect:Ou,useImperativeHandle:function(m,_,K){return K=K!=null?K.concat([m]):null,Hl(4194308,4,mA.bind(null,_,m),K)},useLayoutEffect:function(m,_){return Hl(4194308,4,m,_)},useInsertionEffect:function(m,_){return Hl(4,2,m,_)},useMemo:function(m,_){var K=kn();return _=_===void 0?null:_,m=m(),K.memoizedState=[m,_],m},useReducer:function(m,_,K){var Q=kn();return _=K!==void 0?K(_):_,Q.memoizedState=Q.baseState=_,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:_},Q.queue=m,m=m.dispatch=Cf.bind(null,Mt,m),[Q.memoizedState,m]},useRef:function(m){var _=kn();return m={current:m},_.memoizedState=m},useState:Ca,useDebugValue:Xl,useDeferredValue:function(m){return kn().memoizedState=m},useTransition:function(){var m=Ca(!1),_=m[0];return m=Pl.bind(null,m[1]),kn().memoizedState=m,[_,m]},useMutableSource:function(){},useSyncExternalStore:function(m,_,K){var Q=Mt,se=kn();if(gs){if(K===void 0)throw Error(t(407));K=K()}else{if(K=_(),Qo===null)throw Error(t(349));(Tt&30)!==0||Rs(Q,_,K)}se.memoizedState=K;var ye={value:K,getSnapshot:_};return se.queue=ye,Ou(ji.bind(null,Q,ye,m),[m]),Q.flags|=2048,ao(9,ho.bind(null,Q,ye,K,_),void 0,null),K},useId:function(){var m=kn(),_=Qo.identifierPrefix;if(gs){var K=Ti,Q=RA;K=(Q&~(1<<32-_n(Q)-1)).toString(32)+K,_=":"+_+"R"+K,K=bn++,0<\/script>",m=m.removeChild(m.firstChild)):typeof Q.is=="string"?m=tt.createElement(K,{is:Q.is}):(m=tt.createElement(K),K==="select"&&(tt=m,Q.multiple?tt.multiple=!0:Q.size&&(tt.size=Q.size))):m=tt.createElementNS(m,K),m[wu]=_,m[El]=Q,vl(m,_,!1,!1),_.stateNode=m;e:{switch(tt=ve(K,Q),K){case"dialog":us("cancel",m),us("close",m),se=Q;break;case"iframe":case"object":case"embed":us("load",m),se=Q;break;case"video":case"audio":for(se=0;seLd&&(_.flags|=128,Q=!0,Zf(ye,!1),_.lanes=4194304)}else{if(!Q)if(m=He(tt),m!==null){if(_.flags|=128,Q=!0,K=m.updateQueue,K!==null&&(_.updateQueue=K,_.flags|=4),Zf(ye,!0),ye.tail===null&&ye.tailMode==="hidden"&&!tt.alternate&&!gs)return CA(_),null}else 2*ci()-ye.renderingStartTime>Ld&&K!==1073741824&&(_.flags|=128,Q=!0,Zf(ye,!1),_.lanes=4194304);ye.isBackwards?(tt.sibling=_.child,_.child=tt):(K=ye.last,K!==null?K.sibling=tt:_.child=tt,ye.last=tt)}return ye.tail!==null?(_=ye.tail,ye.rendering=_,ye.tail=_.sibling,ye.renderingStartTime=ci(),_.sibling=null,K=ze.current,Os(ze,Q?K&1|2:K&1),_):(CA(_),null);case 22:case 23:return e1(),Q=_.memoizedState!==null,m!==null&&m.memoizedState!==null!==Q&&(_.flags|=8192),Q&&(_.mode&1)!==0?(xs&1073741824)!==0&&(CA(_),_.subtreeFlags&6&&(_.flags|=8192)):CA(_),null;case 24:return null;case 25:return null}throw Error(t(156,_.tag))}function u(m,_){switch(Nc(_),_.tag){case 1:return Bl(_.type)&&Oa(),m=_.flags,m&65536?(_.flags=m&-65537|128,_):null;case 3:return de(),Ps(gl),Ps(Ya),dt(),m=_.flags,(m&65536)!==0&&(m&128)===0?(_.flags=m&-65537|128,_):null;case 5:return Be(_),null;case 13:if(Ps(ze),m=_.memoizedState,m!==null&&m.dehydrated!==null){if(_.alternate===null)throw Error(t(340));Eu()}return m=_.flags,m&65536?(_.flags=m&-65537|128,_):null;case 19:return Ps(ze),null;case 4:return de(),null;case 10:return ss(_.type._context),null;case 22:case 23:return e1(),null;case 24:return null;default:return null}}var g=!1,E=!1,S=typeof WeakSet=="function"?WeakSet:Set,D=null;function H(m,_){var K=m.ref;if(K!==null)if(typeof K=="function")try{K(null)}catch(Q){Va(m,_,Q)}else K.current=null}function ce(m,_,K){try{K()}catch(Q){Va(m,_,Q)}}var _e=!1;function ke(m,_){if(lh=Ee,m=es(),cc(m)){if("selectionStart"in m)var K={start:m.selectionStart,end:m.selectionEnd};else e:{K=(K=m.ownerDocument)&&K.defaultView||window;var Q=K.getSelection&&K.getSelection();if(Q&&Q.rangeCount!==0){K=Q.anchorNode;var se=Q.anchorOffset,ye=Q.focusNode;Q=Q.focusOffset;try{K.nodeType,ye.nodeType}catch{K=null;break e}var tt=0,Ot=-1,Qt=-1,Mn=0,sr=0,yr=m,ar=null;t:for(;;){for(var Wr;yr!==K||se!==0&&yr.nodeType!==3||(Ot=tt+se),yr!==ye||Q!==0&&yr.nodeType!==3||(Qt=tt+Q),yr.nodeType===3&&(tt+=yr.nodeValue.length),(Wr=yr.firstChild)!==null;)ar=yr,yr=Wr;for(;;){if(yr===m)break t;if(ar===K&&++Mn===se&&(Ot=tt),ar===ye&&++sr===Q&&(Qt=tt),(Wr=yr.nextSibling)!==null)break;yr=ar,ar=yr.parentNode}yr=Wr}K=Ot===-1||Qt===-1?null:{start:Ot,end:Qt}}else K=null}K=K||{start:0,end:0}}else K=null;for(PA={focusedElem:m,selectionRange:K},Ee=!1,D=_;D!==null;)if(_=D,m=_.child,(_.subtreeFlags&1028)!==0&&m!==null)m.return=_,D=m;else for(;D!==null;){_=D;try{var ii=_.alternate;if((_.flags&1024)!==0)switch(_.tag){case 0:case 11:case 15:break;case 1:if(ii!==null){var hi=ii.memoizedProps,Al=ii.memoizedState,un=_.stateNode,Xt=un.getSnapshotBeforeUpdate(_.elementType===_.type?hi:ta(_.type,hi),Al);un.__reactInternalSnapshotBeforeUpdate=Xt}break;case 3:var pn=_.stateNode.containerInfo;pn.nodeType===1?pn.textContent="":pn.nodeType===9&&pn.documentElement&&pn.removeChild(pn.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Cr){Va(_,_.return,Cr)}if(m=_.sibling,m!==null){m.return=_.return,D=m;break}D=_.return}return ii=_e,_e=!1,ii}function Ue(m,_,K){var Q=_.updateQueue;if(Q=Q!==null?Q.lastEffect:null,Q!==null){var se=Q=Q.next;do{if((se.tag&m)===m){var ye=se.destroy;se.destroy=void 0,ye!==void 0&&ce(_,K,ye)}se=se.next}while(se!==Q)}}function mt(m,_){if(_=_.updateQueue,_=_!==null?_.lastEffect:null,_!==null){var K=_=_.next;do{if((K.tag&m)===m){var Q=K.create;K.destroy=Q()}K=K.next}while(K!==_)}}function Bt(m){var _=m.ref;if(_!==null){var K=m.stateNode;switch(m.tag){case 5:m=K;break;default:m=K}typeof _=="function"?_(m):_.current=m}}function tn(m){var _=m.alternate;_!==null&&(m.alternate=null,tn(_)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(_=m.stateNode,_!==null&&(delete _[wu],delete _[El],delete _[Ah],delete _[ot],delete _[Eh])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function qt(m){return m.tag===5||m.tag===3||m.tag===4}function xn(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||qt(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function Fn(m,_,K){var Q=m.tag;if(Q===5||Q===6)m=m.stateNode,_?K.nodeType===8?K.parentNode.insertBefore(m,_):K.insertBefore(m,_):(K.nodeType===8?(_=K.parentNode,_.insertBefore(m,K)):(_=K,_.appendChild(m)),K=K._reactRootContainer,K!=null||_.onclick!==null||(_.onclick=Qu));else if(Q!==4&&(m=m.child,m!==null))for(Fn(m,_,K),m=m.sibling;m!==null;)Fn(m,_,K),m=m.sibling}function Kn(m,_,K){var Q=m.tag;if(Q===5||Q===6)m=m.stateNode,_?K.insertBefore(m,_):K.appendChild(m);else if(Q!==4&&(m=m.child,m!==null))for(Kn(m,_,K),m=m.sibling;m!==null;)Kn(m,_,K),m=m.sibling}var Hn=null,br=!1;function fr(m,_,K){for(K=K.child;K!==null;)Pr(m,_,K),K=K.sibling}function Pr(m,_,K){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Jo,K)}catch{}switch(K.tag){case 5:E||H(K,_);case 6:var Q=Hn,se=br;Hn=null,fr(m,_,K),Hn=Q,br=se,Hn!==null&&(br?(m=Hn,K=K.stateNode,m.nodeType===8?m.parentNode.removeChild(K):m.removeChild(K)):Hn.removeChild(K.stateNode));break;case 18:Hn!==null&&(br?(m=Hn,K=K.stateNode,m.nodeType===8?Yu(m.parentNode,K):m.nodeType===1&&Yu(m,K),to(m)):Yu(Hn,K.stateNode));break;case 4:Q=Hn,se=br,Hn=K.stateNode.containerInfo,br=!0,fr(m,_,K),Hn=Q,br=se;break;case 0:case 11:case 14:case 15:if(!E&&(Q=K.updateQueue,Q!==null&&(Q=Q.lastEffect,Q!==null))){se=Q=Q.next;do{var ye=se,tt=ye.destroy;ye=ye.tag,tt!==void 0&&((ye&2)!==0||(ye&4)!==0)&&ce(K,_,tt),se=se.next}while(se!==Q)}fr(m,_,K);break;case 1:if(!E&&(H(K,_),Q=K.stateNode,typeof Q.componentWillUnmount=="function"))try{Q.props=K.memoizedProps,Q.state=K.memoizedState,Q.componentWillUnmount()}catch(Ot){Va(K,_,Ot)}fr(m,_,K);break;case 21:fr(m,_,K);break;case 22:K.mode&1?(E=(Q=E)||K.memoizedState!==null,fr(m,_,K),E=Q):fr(m,_,K);break;default:fr(m,_,K)}}function Jr(m){var _=m.updateQueue;if(_!==null){m.updateQueue=null;var K=m.stateNode;K===null&&(K=m.stateNode=new S),_.forEach(function(Q){var se=fg.bind(null,m,Q);K.has(Q)||(K.add(Q),Q.then(se,se))})}}function zr(m,_){var K=_.deletions;if(K!==null)for(var Q=0;Qse&&(se=tt),Q&=~ye}if(Q=se,Q=ci()-Q,Q=(120>Q?120:480>Q?480:1080>Q?1080:1920>Q?1920:3e3>Q?3e3:4320>Q?4320:1960*NA(Q/1960))-Q,10m?16:m,zd===null)var Q=!1;else{if(m=zd,zd=null,_A=0,(xi&6)!==0)throw Error(t(331));var se=xi;for(xi|=4,D=m.current;D!==null;){var ye=D,tt=ye.child;if((D.flags&16)!==0){var Ot=ye.deletions;if(Ot!==null){for(var Qt=0;Qtci()-Mf?tp(m,0):xc|=K),rc(m,_)}function dg(m,_){_===0&&((m.mode&1)===0?_=1:(_=Io,Io<<=1,(Io&130023424)===0&&(Io=4194304)));var K=nc();m=KA(m,_),m!==null&&(Ua(m,_,K),rc(m,K))}function Em(m){var _=m.memoizedState,K=0;_!==null&&(K=_.retryLane),dg(m,K)}function fg(m,_){var K=0;switch(m.tag){case 13:var Q=m.stateNode,se=m.memoizedState;se!==null&&(K=se.retryLane);break;case 19:Q=m.stateNode;break;default:throw Error(t(314))}Q!==null&&Q.delete(_),dg(m,K)}var n0;n0=function(m,_,K){if(m!==null)if(m.memoizedProps!==_.pendingProps||gl.current)Jl=!0;else{if((m.lanes&K)===0&&(_.flags&128)===0)return Jl=!1,zp(m,_,K);Jl=(m.flags&131072)!==0}else Jl=!1,gs&&(_.flags&1048576)!==0&&yf(_,Ol,_.index);switch(_.lanes=0,_.tag){case 2:var Q=_.type;zA(m,_),m=_.pendingProps;var se=$u(_,Ya.current);dA(_,K),se=Ar(null,_,Q,m,se,K);var ye=cr();return _.flags|=1,typeof se=="object"&&se!==null&&typeof se.render=="function"&&se.$$typeof===void 0?(_.tag=1,_.memoizedState=null,_.updateQueue=null,Bl(Q)?(ye=!0,Js(_)):ye=!1,_.memoizedState=se.state!==null&&se.state!==void 0?se.state:null,Ih(_),se.updater=Tu,_.stateNode=se,se._reactInternals=_,Fp(_,Q,m,K),_=Pd(null,_,Q,!0,ye,K)):(_.tag=0,gs&&ye&&Vu(_),Rl(null,_,se,K),_=_.child),_;case 16:Q=_.elementType;e:{switch(zA(m,_),m=_.pendingProps,se=Q._init,Q=se(Q._payload),_.type=Q,se=_.tag=pg(Q),m=ta(Q,m),se){case 0:_=fh(null,_,Q,m,K);break e;case 1:_=UA(null,_,Q,m,K);break e;case 11:_=ym(null,_,Q,m,K);break e;case 14:_=Up(null,_,Q,ta(Q.type,m),K);break e}throw Error(t(306,Q,""))}return _;case 0:return Q=_.type,se=_.pendingProps,se=_.elementType===Q?se:ta(Q,se),fh(m,_,Q,se,K);case 1:return Q=_.type,se=_.pendingProps,se=_.elementType===Q?se:ta(Q,se),UA(m,_,Q,se,K);case 3:e:{if(Hf(_),m===null)throw Error(t(387));Q=_.pendingProps,ye=_.memoizedState,se=ye.element,Gc(m,_),c(_,Q,null,K);var tt=_.memoizedState;if(Q=tt.element,ye.isDehydrated)if(ye={element:Q,isDehydrated:!1,cache:tt.cache,pendingSuspenseBoundaries:tt.pendingSuspenseBoundaries,transitions:tt.transitions},_.updateQueue.baseState=ye,_.memoizedState=ye,_.flags&256){se=ku(Error(t(423)),_),_=Qc(m,_,Q,K,se);break e}else if(Q!==se){se=ku(Error(t(424)),_),_=Qc(m,_,Q,K,se);break e}else for(va=Qa(_.stateNode.containerInfo.firstChild),ol=_,gs=!0,$l=null,K=ri(_,null,Q,K),_.child=K;K;)K.flags=K.flags&-3|4096,K=K.sibling;else{if(Eu(),Q===se){_=vA(m,_,K);break e}Rl(m,_,Q,K)}_=_.child}return _;case 5:return Oe(_),m===null&&hA(_),Q=_.type,se=_.pendingProps,ye=m!==null?m.memoizedProps:null,tt=se.children,pc(Q,se)?tt=null:ye!==null&&pc(Q,ye)&&(_.flags|=32),Ph(m,_),Rl(m,_,tt,K),_.child;case 6:return m===null&&hA(_),null;case 13:return Dd(m,_,K);case 4:return Ae(_,_.stateNode.containerInfo),Q=_.pendingProps,m===null?_.child=vr(_,null,Q,K):Rl(m,_,Q,K),_.child;case 11:return Q=_.type,se=_.pendingProps,se=_.elementType===Q?se:ta(Q,se),ym(m,_,Q,se,K);case 7:return Rl(m,_,_.pendingProps,K),_.child;case 8:return Rl(m,_,_.pendingProps.children,K),_.child;case 12:return Rl(m,_,_.pendingProps.children,K),_.child;case 10:e:{if(Q=_.type._context,se=_.pendingProps,ye=_.memoizedProps,tt=se.value,Os(bc,Q._currentValue),Q._currentValue=tt,ye!==null)if(dn(ye.value,tt)){if(ye.children===se.children&&!gl.current){_=vA(m,_,K);break e}}else for(ye=_.child,ye!==null&&(ye.return=_);ye!==null;){var Ot=ye.dependencies;if(Ot!==null){tt=ye.child;for(var Qt=Ot.firstContext;Qt!==null;){if(Qt.context===Q){if(ye.tag===1){Qt=fA(-1,K&-K),Qt.tag=2;var Mn=ye.updateQueue;if(Mn!==null){Mn=Mn.shared;var sr=Mn.pending;sr===null?Qt.next=Qt:(Qt.next=sr.next,sr.next=Qt),Mn.pending=Qt}}ye.lanes|=K,Qt=ye.alternate,Qt!==null&&(Qt.lanes|=K),Ia(ye.return,K,_),Ot.lanes|=K;break}Qt=Qt.next}}else if(ye.tag===10)tt=ye.type===_.type?null:ye.child;else if(ye.tag===18){if(tt=ye.return,tt===null)throw Error(t(341));tt.lanes|=K,Ot=tt.alternate,Ot!==null&&(Ot.lanes|=K),Ia(tt,K,_),tt=ye.sibling}else tt=ye.child;if(tt!==null)tt.return=ye;else for(tt=ye;tt!==null;){if(tt===_){tt=null;break}if(ye=tt.sibling,ye!==null){ye.return=tt.return,tt=ye;break}tt=tt.return}ye=tt}Rl(m,_,se.children,K),_=_.child}return _;case 9:return se=_.type,Q=_.pendingProps.children,dA(_,K),se=Do(se),Q=Q(se),_.flags|=1,Rl(m,_,Q,K),_.child;case 14:return Q=_.type,se=ta(Q,_.pendingProps),se=ta(Q.type,se),Up(m,_,Q,se,K);case 15:return wo(m,_,_.type,_.pendingProps,K);case 17:return Q=_.type,se=_.pendingProps,se=_.elementType===Q?se:ta(Q,se),zA(m,_),_.tag=1,Bl(Q)?(m=!0,Js(_)):m=!1,dA(_,K),td(_,Q,se),Fp(_,Q,se,K),Pd(null,_,Q,!0,m,K);case 19:return tc(m,_,K);case 22:return vm(m,_,K)}throw Error(t(156,_.tag))};function n1(m,_){return da(m,_)}function Dl(m,_,K,Q){this.tag=m,this.key=K,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mc(m,_,K,Q){return new Dl(m,_,K,Q)}function r0(m){return m=m.prototype,!(!m||!m.isReactComponent)}function pg(m){if(typeof m=="function")return r0(m)?1:0;if(m!=null){if(m=m.$$typeof,m===Se)return 11;if(m===Me)return 14}return 2}function qc(m,_){var K=m.alternate;return K===null?(K=Mc(m.tag,_,m.key,m.mode),K.elementType=m.elementType,K.type=m.type,K.stateNode=m.stateNode,K.alternate=m,m.alternate=K):(K.pendingProps=_,K.type=m.type,K.flags=0,K.subtreeFlags=0,K.deletions=null),K.flags=m.flags&14680064,K.childLanes=m.childLanes,K.lanes=m.lanes,K.child=m.child,K.memoizedProps=m.memoizedProps,K.memoizedState=m.memoizedState,K.updateQueue=m.updateQueue,_=m.dependencies,K.dependencies=_===null?null:{lanes:_.lanes,firstContext:_.firstContext},K.sibling=m.sibling,K.index=m.index,K.ref=m.ref,K}function Wp(m,_,K,Q,se,ye){var tt=2;if(Q=m,typeof m=="function")r0(m)&&(tt=1);else if(typeof m=="string")tt=5;else e:switch(m){case G:return np(K.children,se,ye,_);case le:tt=8,se|=8;break;case fe:return m=Mc(12,K,_,se|2),m.elementType=fe,m.lanes=ye,m;case xe:return m=Mc(13,K,_,se),m.elementType=xe,m.lanes=ye,m;case je:return m=Mc(19,K,_,se),m.elementType=je,m.lanes=ye,m;case Ct:return i0(K,se,ye,_);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case pe:tt=10;break e;case we:tt=9;break e;case Se:tt=11;break e;case Me:tt=14;break e;case rt:tt=16,Q=null;break e}throw Error(t(130,m==null?m:typeof m,""))}return _=Mc(tt,K,_,se),_.elementType=m,_.type=Q,_.lanes=ye,_}function np(m,_,K,Q){return m=Mc(7,m,Q,_),m.lanes=K,m}function i0(m,_,K,Q){return m=Mc(22,m,Q,_),m.elementType=Ct,m.lanes=K,m.stateNode={isHidden:!1},m}function r1(m,_,K){return m=Mc(6,m,null,_),m.lanes=K,m}function i1(m,_,K){return _=Mc(4,m.children!==null?m.children:[],m.key,_),_.lanes=K,_.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},_}function mg(m,_,K,Q,se){this.tag=_,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nl(0),this.expirationTimes=nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nl(0),this.identifierPrefix=Q,this.onRecoverableError=se,this.mutableSourceEagerHydrationData=null}function Au(m,_,K,Q,se,ye,tt,Ot,Qt){return m=new mg(m,_,K,Ot,Qt),_===1?(_=1,ye===!0&&(_|=8)):_=0,ye=Mc(3,null,null,_),m.current=ye,ye.stateNode=m,ye.memoizedState={element:Q,isDehydrated:K,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ih(ye),m}function o1(m,_,K){var Q=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),H3.exports=kj(),H3.exports}var XI;function Pj(){if(XI)return sb;XI=1;var n=Ax();return sb.createRoot=n.createRoot,sb.hydrateRoot=n.hydrateRoot,sb}var Rj=Pj();const Dj="modulepreload",Kj=function(n){return"/maputnik/"+n},JI={},wg=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){let C=function(x){return Promise.all(x.map(B=>Promise.resolve(B).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};var l=C;document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),f=o?.nonce||o?.getAttribute("nonce");i=C(t.map(x=>{if(x=Kj(x),x in JI)return;JI[x]=!0;const B=x.endsWith(".css"),R=B?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${R}`))return;const P=document.createElement("link");if(P.rel=B?"stylesheet":Dj,B||(P.as="script"),P.crossOrigin="",P.href=x,f&&P.setAttribute("nonce",f),document.head.appendChild(P),B)return new Promise((U,N)=>{P.addEventListener("load",U),P.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${x}`)))})}))}function s(o){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=o,window.dispatchEvent(f),!f.defaultPrevented)throw o}return i.then(o=>{for(const f of o||[])f.status==="rejected"&&s(f.reason);return e().catch(s)})},Fj=(n,e,t)=>{const r=n[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Bo=n=>typeof n=="string",Mv=()=>{let n,e;const t=new Promise((r,i)=>{n=r,e=i});return t.resolve=n,t.reject=e,t},e8=n=>n==null?"":""+n,Lj=(n,e,t)=>{n.forEach(r=>{e[r]&&(t[r]=e[r])})},Uj=/###/g,t8=n=>n&&n.indexOf("###")>-1?n.replace(Uj,"."):n,n8=n=>!n||Bo(n),iC=(n,e,t)=>{const r=Bo(e)?e.split("."):e;let i=0;for(;i{const{obj:r,k:i}=iC(n,e,Object);if(r!==void 0||e.length===1){r[i]=t;return}let s=e[e.length-1],l=e.slice(0,e.length-1),o=iC(n,l,Object);for(;o.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),o=iC(n,l,Object),o?.obj&&typeof o.obj[`${o.k}.${s}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=t},zj=(n,e,t,r)=>{const{obj:i,k:s}=iC(n,e,Object);i[s]=i[s]||[],i[s].push(t)},p2=(n,e)=>{const{obj:t,k:r}=iC(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},Nj=(n,e,t)=>{const r=p2(n,t);return r!==void 0?r:p2(e,t)},hF=(n,e,t)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in n?Bo(n[r])||n[r]instanceof String||Bo(e[r])||e[r]instanceof String?t&&(n[r]=e[r]):hF(n[r],e[r],t):n[r]=e[r]);return n},Sg=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Gj={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const jj=n=>Bo(n)?n.replace(/[&<>"'\/]/g,e=>Gj[e]):n;class Wj{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const Qj=[" ",",","?","!",";"],Yj=new Wj(20),qj=(n,e,t)=>{e=e||"",t=t||"";const r=Qj.filter(l=>e.indexOf(l)<0&&t.indexOf(l)<0);if(r.length===0)return!0;const i=Yj.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!i.test(n);if(!s){const l=n.indexOf(t);l>0&&!i.test(n.substring(0,l))&&(s=!0)}return s},XE=(n,e,t=".")=>{if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const r=e.split(t);let i=n;for(let s=0;s-1&&fn?.replace("_","-"),$j={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console?.[n]?.apply?.(console,e)}};class m2{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||$j,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(Bo(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new m2(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new m2(this.logger,e)}}var tm=new m2;class ux{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(t)||0;this.observers[r].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([i,s])=>{for(let l=0;l{for(let l=0;l-1&&this.options.ns.splice(t,1)}getResource(e,t,r,i={}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],r&&(Array.isArray(r)?o.push(...r):Bo(r)&&s?o.push(...r.split(s)):o.push(r)));const f=p2(this.data,o);return!f&&!t&&!r&&e.indexOf(".")>-1&&(e=o[0],t=o[1],r=o.slice(2).join(".")),f||!l||!Bo(r)?f:XE(this.data?.[e]?.[t],r,s)}addResource(e,t,r,i,s={silent:!1}){const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[e,t];r&&(o=o.concat(l?r.split(l):r)),e.indexOf(".")>-1&&(o=e.split("."),i=t,t=o[1]),this.addNamespaces(t),r8(this.data,o,i),s.silent||this.emit("added",e,t,r,i)}addResources(e,t,r,i={silent:!1}){for(const s in r)(Bo(r[s])||Array.isArray(r[s]))&&this.addResource(e,t,s,r[s],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,i,s,l={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),i=r,r=t,t=o[1]),this.addNamespaces(t);let f=p2(this.data,o)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?hF(f,r,s):f={...f,...r},r8(this.data,o,f),l.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var dF={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,r,i){return n.forEach(s=>{e=this.processors[s]?.process(e,t,r,i)??e}),e}};const o8={},s8=n=>!Bo(n)&&typeof n!="boolean"&&typeof n!="number";class g2 extends ux{constructor(e,t={}){super(),Lj(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=tm.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};return e==null?!1:this.resolve(e,r)?.res!==void 0}extractFromKey(e,t){let r=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const l=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!qj(e,r,i);if(l&&!o){const f=e.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:e,namespaces:Bo(s)?[s]:s};const C=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(C[0])>-1)&&(s=C.shift()),e=C.join(i)}return{key:e,namespaces:Bo(s)?[s]:s}}translate(e,t,r){let i=typeof t=="object"?{...t}:t;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(i={...i}),i||(i={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:f}=this.extractFromKey(e[e.length-1],i),C=f[f.length-1];let x=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;x===void 0&&(x=":");const B=i.lng||this.language,R=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(B?.toLowerCase()==="cimode")return R?s?{res:`${C}${x}${o}`,usedKey:o,exactUsedKey:o,usedLng:B,usedNS:C,usedParams:this.getUsedParamsDetails(i)}:`${C}${x}${o}`:s?{res:o,usedKey:o,exactUsedKey:o,usedLng:B,usedNS:C,usedParams:this.getUsedParamsDetails(i)}:o;const P=this.resolve(e,i);let U=P?.res;const N=P?.usedKey||o,W=P?.exactUsedKey||o,X=["[object Number]","[object Function]","[object RegExp]"],$=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,re=!this.i18nFormat||this.i18nFormat.handleAsObject,te=i.count!==void 0&&!Bo(i.count),V=g2.hasDefaultValue(i),ne=te?this.pluralResolver.getSuffix(B,i.count,i):"",G=i.ordinal&&te?this.pluralResolver.getSuffix(B,i.count,{ordinal:!1}):"",le=te&&!i.ordinal&&i.count===0,fe=le&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${ne}`]||i[`defaultValue${G}`]||i.defaultValue;let pe=U;re&&!U&&V&&(pe=fe);const we=s8(pe),Se=Object.prototype.toString.apply(pe);if(re&&pe&&we&&X.indexOf(Se)<0&&!(Bo($)&&Array.isArray(pe))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const xe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(N,pe,{...i,ns:f}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(P.res=xe,P.usedParams=this.getUsedParamsDetails(i),P):xe}if(l){const xe=Array.isArray(pe),je=xe?[]:{},Me=xe?W:N;for(const rt in pe)if(Object.prototype.hasOwnProperty.call(pe,rt)){const Ct=`${Me}${l}${rt}`;V&&!U?je[rt]=this.translate(Ct,{...i,defaultValue:s8(fe)?fe[rt]:void 0,joinArrays:!1,ns:f}):je[rt]=this.translate(Ct,{...i,joinArrays:!1,ns:f}),je[rt]===Ct&&(je[rt]=pe[rt])}U=je}}else if(re&&Bo($)&&Array.isArray(U))U=U.join($),U&&(U=this.extendTranslation(U,e,i,r));else{let xe=!1,je=!1;!this.isValidLookup(U)&&V&&(xe=!0,U=fe),this.isValidLookup(U)||(je=!0,U=o);const rt=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&je?void 0:U,Ct=V&&fe!==U&&this.options.updateMissing;if(je||xe||Ct){if(this.logger.log(Ct?"updateKey":"missingKey",B,C,o,Ct?fe:U),l){const Ie=this.resolve(o,{...i,keySeparator:!1});Ie&&Ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let it=[];const nt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&nt&&nt[0])for(let Ie=0;Ie{const Dt=V&>!==U?gt:rt;this.options.missingKeyHandler?this.options.missingKeyHandler(Ie,C,$e,Dt,Ct,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Ie,C,$e,Dt,Ct,i),this.emit("missingKey",Ie,C,$e,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&te?it.forEach(Ie=>{const $e=this.pluralResolver.getSuffixes(Ie,i);le&&i[`defaultValue${this.options.pluralSeparator}zero`]&&$e.indexOf(`${this.options.pluralSeparator}zero`)<0&&$e.push(`${this.options.pluralSeparator}zero`),$e.forEach(gt=>{Ge([Ie],o+gt,i[`defaultValue${gt}`]||fe)})}):Ge(it,o,fe))}U=this.extendTranslation(U,e,i,P,r),je&&U===o&&this.options.appendNamespaceToMissingKey&&(U=`${C}${x}${o}`),(je||xe)&&this.options.parseMissingKeyHandler&&(U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${C}${x}${o}`:o,xe?U:void 0,i))}return s?(P.res=U,P.usedParams=this.getUsedParamsDetails(i),P):U}extendTranslation(e,t,r,i,s){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Bo(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let C;if(f){const B=e.match(this.interpolator.nestingRegexp);C=B&&B.length}let x=r.replace&&!Bo(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),e=this.interpolator.interpolate(e,x,r.lng||this.language||i.usedLng,r),f){const B=e.match(this.interpolator.nestingRegexp),R=B&&B.length;Cs?.[0]===B[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${B[0]} in key: ${t[0]}`),null):this.translate(...B,t),r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,o=Bo(l)?[l]:l;return e!=null&&o?.length&&r.applyPostProcessor!==!1&&(e=dF.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,i,s,l,o;return Bo(e)&&(e=[e]),e.forEach(f=>{if(this.isValidLookup(r))return;const C=this.extractFromKey(f,t),x=C.key;i=x;let B=C.namespaces;this.options.fallbackNS&&(B=B.concat(this.options.fallbackNS));const R=t.count!==void 0&&!Bo(t.count),P=R&&!t.ordinal&&t.count===0,U=t.context!==void 0&&(Bo(t.context)||typeof t.context=="number")&&t.context!=="",N=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);B.forEach(W=>{this.isValidLookup(r)||(o=W,!o8[`${N[0]}-${W}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(o8[`${N[0]}-${W}`]=!0,this.logger.warn(`key "${i}" for languages "${N.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),N.forEach(X=>{if(this.isValidLookup(r))return;l=X;const $=[x];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys($,x,X,W,t);else{let te;R&&(te=this.pluralResolver.getSuffix(X,t.count,t));const V=`${this.options.pluralSeparator}zero`,ne=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(R&&(t.ordinal&&te.indexOf(ne)===0&&$.push(x+te.replace(ne,this.options.pluralSeparator)),$.push(x+te),P&&$.push(x+V)),U){const G=`${x}${this.options.contextSeparator||"_"}${t.context}`;$.push(G),R&&(t.ordinal&&te.indexOf(ne)===0&&$.push(G+te.replace(ne,this.options.pluralSeparator)),$.push(G+te),P&&$.push(G+V))}}let re;for(;re=$.pop();)this.isValidLookup(r)||(s=re,r=this.getResource(X,W,re,t))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:l,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Bo(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of t)delete i[s]}return i}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&e[r]!==void 0)return!0;return!1}}class a8{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tm.create("languageUtils")}getScriptPartFromCode(e){if(e=CC(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=CC(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Bo(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(r=>{if(t)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(r=>{if(t)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return t=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(l=>{if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&(l.indexOf("-")>0&&s.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===s||l.indexOf(s)===0&&s.length>1))return l})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),Bo(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),i=[],s=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return Bo(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):Bo(e)&&s(this.formatLanguageCode(e)),r.forEach(l=>{i.indexOf(l)<0&&s(this.formatLanguageCode(l))}),i}}const l8={zero:0,one:1,two:2,few:3,many:4,other:5},A8={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Vj{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=tm.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=CC(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let l;try{l=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),A8;if(!e.match(/-|_/))return A8;const f=this.languageUtils.getLanguagePartFromCode(e);l=this.getRule(f,t)}return this.pluralRulesCache[s]=l,l}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(i=>`${t}${i}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>l8[i]-l8[s]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,t,r={}){const i=this.getRule(e,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const u8=(n,e,t,r=".",i=!0)=>{let s=Nj(n,e,t);return!s&&i&&Bo(t)&&(s=XE(n,t,r),s===void 0&&(s=XE(e,t,r))),s},J3=n=>n.replace(/\$/g,"$$$$");class Hj{constructor(e={}){this.logger=tm.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(t=>t),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:l,suffix:o,suffixEscaped:f,formatSeparator:C,unescapeSuffix:x,unescapePrefix:B,nestingPrefix:R,nestingPrefixEscaped:P,nestingSuffix:U,nestingSuffixEscaped:N,nestingOptionsSeparator:W,maxReplaces:X,alwaysFormat:$}=e.interpolation;this.escape=t!==void 0?t:jj,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Sg(s):l||"{{",this.suffix=o?Sg(o):f||"}}",this.formatSeparator=C||",",this.unescapePrefix=x?"":B||"-",this.unescapeSuffix=this.unescapePrefix?"":x||"",this.nestingPrefix=R?Sg(R):P||Sg("$t("),this.nestingSuffix=U?Sg(U):N||Sg(")"),this.nestingOptionsSeparator=W||",",this.maxReplaces=X||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,r)=>t?.source===r?(t.lastIndex=0,t):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let s,l,o;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},C=P=>{if(P.indexOf(this.formatSeparator)<0){const X=u8(t,f,P,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(X,void 0,r,{...i,...t,interpolationkey:P}):X}const U=P.split(this.formatSeparator),N=U.shift().trim(),W=U.join(this.formatSeparator).trim();return this.format(u8(t,f,N,this.options.keySeparator,this.options.ignoreJSONStructure),W,r,{...i,...t,interpolationkey:N})};this.resetRegExp();const x=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,B=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:P=>J3(P)},{regex:this.regexp,safeValue:P=>this.escapeValue?J3(this.escape(P)):J3(P)}].forEach(P=>{for(o=0;s=P.regex.exec(e);){const U=s[1].trim();if(l=C(U),l===void 0)if(typeof x=="function"){const W=x(e,s,i);l=Bo(W)?W:""}else if(i&&Object.prototype.hasOwnProperty.call(i,U))l="";else if(B){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${U} for interpolating ${e}`),l="";else!Bo(l)&&!this.useRawValueToEscape&&(l=e8(l));const N=P.safeValue(l);if(e=e.replace(s[0],N),B?(P.regex.lastIndex+=l.length,P.regex.lastIndex-=s[0].length):P.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,r={}){let i,s,l;const o=(f,C)=>{const x=this.nestingOptionsSeparator;if(f.indexOf(x)<0)return f;const B=f.split(new RegExp(`${x}[ ]*{`));let R=`{${B[1]}`;f=B[0],R=this.interpolate(R,l);const P=R.match(/'/g),U=R.match(/"/g);((P?.length??0)%2===0&&!U||U.length%2!==0)&&(R=R.replace(/'/g,'"'));try{l=JSON.parse(R),C&&(l={...C,...l})}catch(N){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,N),`${f}${x}${R}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,f};for(;i=this.nestingRegexp.exec(e);){let f=[];l={...r},l=l.replace&&!Bo(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const C=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(C!==-1&&(f=i[1].slice(C).split(this.formatSeparator).map(x=>x.trim()).filter(Boolean),i[1]=i[1].slice(0,C)),s=t(o.call(this,i[1].trim(),l),l),s&&i[0]===e&&!Bo(s))return s;Bo(s)||(s=e8(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),f.length&&(s=f.reduce((x,B)=>this.format(x,B,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const Zj=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const r=n.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(l=>{if(l){const[o,...f]=l.split(":"),C=f.join(":").trim().replace(/^'+|'+$/g,""),x=o.trim();t[x]||(t[x]=C),C==="false"&&(t[x]=!1),C==="true"&&(t[x]=!0),isNaN(C)||(t[x]=parseInt(C,10))}})}return{formatName:e,formatOptions:t}},c8=n=>{const e={};return(t,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const l=r+JSON.stringify(s);let o=e[l];return o||(o=n(CC(r),i),e[l]=o),o(t)}},Xj=n=>(e,t,r)=>n(CC(t),r)(e);class Jj{constructor(e={}){this.logger=tm.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?c8:Xj;this.formats={number:r((i,s)=>{const l=new Intl.NumberFormat(i,{...s});return o=>l.format(o)}),currency:r((i,s)=>{const l=new Intl.NumberFormat(i,{...s,style:"currency"});return o=>l.format(o)}),datetime:r((i,s)=>{const l=new Intl.DateTimeFormat(i,{...s});return o=>l.format(o)}),relativetime:r((i,s)=>{const l=new Intl.RelativeTimeFormat(i,{...s});return o=>l.format(o,s.range||"day")}),list:r((i,s)=>{const l=new Intl.ListFormat(i,{...s});return o=>l.format(o)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=c8(t)}format(e,t,r,i={}){const s=t.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){const o=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,f)=>{const{formatName:C,formatOptions:x}=Zj(f);if(this.formats[C]){let B=o;try{const R=i?.formatParams?.[i.interpolationkey]||{},P=R.locale||R.lng||i.locale||i.lng||r;B=this.formats[C](o,P,{...x,...i,...R})}catch(R){this.logger.warn(R)}return B}else this.logger.warn(`there was no format function for ${C}`);return o},e)}}const eW=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class tW extends ux{constructor(e,t,r,i={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=tm.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(e,t,r,i){const s={},l={},o={},f={};return e.forEach(C=>{let x=!0;t.forEach(B=>{const R=`${C}|${B}`;!r.reload&&this.store.hasResourceBundle(C,B)?this.state[R]=2:this.state[R]<0||(this.state[R]===1?l[R]===void 0&&(l[R]=!0):(this.state[R]=1,x=!1,l[R]===void 0&&(l[R]=!0),s[R]===void 0&&(s[R]=!0),f[B]===void 0&&(f[B]=!0)))}),x||(o[C]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(f)}}loaded(e,t,r){const i=e.split("|"),s=i[0],l=i[1];t&&this.emit("failedLoading",s,l,t),!t&&r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const o={};this.queue.forEach(f=>{zj(f.loaded,[s],l),eW(f,e),t&&f.errors.push(t),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(C=>{o[C]||(o[C]={});const x=f.loaded[C];x.length&&x.forEach(B=>{o[C][B]===void 0&&(o[C][B]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(f=>!f.done)}read(e,t,r,i=0,s=this.retryTimeout,l){if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:s,callback:l});return}this.readingCalls++;const o=(C,x)=>{if(this.readingCalls--,this.waitingReads.length>0){const B=this.waitingReads.shift();this.read(B.lng,B.ns,B.fcName,B.tried,B.wait,B.callback)}if(C&&x&&i{this.read.call(this,e,t,r,i+1,s*2,l)},s);return}l(C,x)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const C=f(e,t);C&&typeof C.then=="function"?C.then(x=>o(null,x)).catch(o):o(null,C)}catch(C){o(C)}return}return f(e,t,o)}prepareLoading(e,t,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Bo(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Bo(t)&&(t=[t]);const s=this.queueLoad(e,t,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(l,o)=>{l&&this.logger.warn(`${t}loading namespace ${s} for language ${i} failed`,l),!l&&o&&this.logger.log(`${t}loaded namespace ${s} for language ${i}`,o),this.loaded(e,l,o)})}saveMissing(e,t,r,i,s,l={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const f={...l,isUpdate:s},C=this.backend.create.bind(this.backend);if(C.length<6)try{let x;C.length===5?x=C(e,t,r,i,f):x=C(e,t,r,i),x&&typeof x.then=="function"?x.then(B=>o(null,B)).catch(o):o(null,x)}catch(x){o(x)}else C(e,t,r,i,o,f)}!e||!e[0]||this.store.addResource(e[0],t,r,i)}}}const h8=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),Bo(n[1])&&(e.defaultValue=n[1]),Bo(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(r=>{e[r]=t[r]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),d8=n=>(Bo(n.ns)&&(n.ns=[n.ns]),Bo(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),Bo(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs?.indexOf?.("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n),ab=()=>{},nW=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class _C extends ux{constructor(e={},t){if(super(),this.options=d8(e),this.services={},this.logger=tm,this.modules={external:[]},nW(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(Bo(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=h8();this.options={...r,...this.options,...d8(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const i=C=>C?typeof C=="function"?new C:C:null;if(!this.options.isClone){this.modules.logger?tm.init(i(this.modules.logger),this.options):tm.init(null,this.options);let C;this.modules.formatter?C=this.modules.formatter:C=Jj;const x=new a8(this.options);this.store=new i8(this.options.resources,this.options);const B=this.services;B.logger=tm,B.resourceStore=this.store,B.languageUtils=x,B.pluralResolver=new Vj(x,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),C&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(B.formatter=i(C),B.formatter.init&&B.formatter.init(B,this.options),this.options.interpolation.format=B.formatter.format.bind(B.formatter)),B.interpolator=new Hj(this.options),B.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},B.backendConnector=new tW(i(this.modules.backend),B.resourceStore,B,this.options),B.backendConnector.on("*",(P,...U)=>{this.emit(P,...U)}),this.modules.languageDetector&&(B.languageDetector=i(this.modules.languageDetector),B.languageDetector.init&&B.languageDetector.init(B,this.options.detection,this.options)),this.modules.i18nFormat&&(B.i18nFormat=i(this.modules.i18nFormat),B.i18nFormat.init&&B.i18nFormat.init(this)),this.translator=new g2(this.services,this.options),this.translator.on("*",(P,...U)=>{this.emit(P,...U)}),this.modules.external.forEach(P=>{P.init&&P.init(this)})}if(this.format=this.options.interpolation.format,t||(t=ab),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const C=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);C.length>0&&C[0]!=="dev"&&(this.options.lng=C[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(C=>{this[C]=(...x)=>this.store[C](...x)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(C=>{this[C]=(...x)=>(this.store[C](...x),this)});const o=Mv(),f=()=>{const C=(x,B)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(B),t(x,B)};if(this.languages&&!this.isInitialized)return C(null,this.t.bind(this));this.changeLanguage(this.options.lng,C)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),o}loadResources(e,t=ab){let r=t;const i=Bo(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(C=>{C!=="cimode"&&s.indexOf(C)<0&&s.push(C)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),this.options.preload?.forEach?.(o=>l(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(o)})}else r(null)}reloadResources(e,t,r){const i=Mv();return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=ab),this.services.backendConnector.reload(e,t,s=>{i.resolve(),r(s)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&dF.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=Mv();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},s=(o,f)=>{f?this.isLanguageChangingTo===e&&(i(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,r.resolve((...C)=>this.t(...C)),t&&t(o,(...C)=>this.t(...C))},l=o=>{!e&&!o&&this.services.languageDetector&&(o=[]);const f=Bo(o)?o:o&&o[0],C=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Bo(o)?[o]:o);C&&(this.language||i(C),this.translator.language||this.translator.changeLanguage(C),this.services.languageDetector?.cacheUserLanguage?.(C)),this.loadResources(C,x=>{s(x,C)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),r}getFixedT(e,t,r){const i=(s,l,...o)=>{let f;typeof l!="object"?f=this.options.overloadTranslationOptionHandler([s,l].concat(o)):f={...l},f.lng=f.lng||i.lng,f.lngs=f.lngs||i.lngs,f.ns=f.ns||i.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||i.keyPrefix);const C=this.options.keySeparator||".";let x;return f.keyPrefix&&Array.isArray(s)?x=s.map(B=>`${f.keyPrefix}${C}${B}`):x=f.keyPrefix?`${f.keyPrefix}${C}${s}`:s,this.t(x,f)};return Bo(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(o,f)=>{const C=this.services.backendConnector.state[`${o}|${f}`];return C===-1||C===0||C===2};if(t.precheck){const o=t.precheck(this,l);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,e)&&(!i||l(s,e)))}loadNamespaces(e,t){const r=Mv();return this.options.ns?(Bo(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),t&&t(i)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=Mv();Bo(e)&&(e=[e]);const i=this.options.preload||[],s=e.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=i.concat(s),this.loadResources(l=>{r.resolve(),t&&t(l)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const i=new Intl.Locale(e);if(i&&i.getTextInfo){const s=i.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new a8(h8());return e.toLowerCase().indexOf("-latn")>1?"ltr":t.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new _C(e,t)}cloneInstance(e={},t=ab){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new _C(i);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const o=Object.keys(this.store.data).reduce((f,C)=>(f[C]={...this.store.data[C]},f[C]=Object.keys(f[C]).reduce((x,B)=>(x[B]={...f[C][B]},x),f[C]),f),{});s.store=new i8(o,i),s.services.resourceStore=s.store}return s.translator=new g2(s.services,i),s.translator.on("*",(o,...f)=>{s.emit(o,...f)}),s.init(i,t),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const th=_C.createInstance();th.createInstance=_C.createInstance;th.createInstance;th.dir;th.init;th.loadResources;th.reloadResources;th.use;th.changeLanguage;th.getFixedT;th.t;th.exists;th.setDefaultNamespace;th.hasLoadedNamespace;th.loadNamespaces;th.loadLanguages;const{slice:rW,forEach:iW}=[];function oW(n){return iW.call(rW.call(arguments,1),e=>{if(e)for(const t in e)n[t]===void 0&&(n[t]=e[t])}),n}function sW(n){return typeof n!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(n))}const f8=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,aW=function(n,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(e);let s=`${n}=${i}`;if(r.maxAge>0){const l=r.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(l)}`}if(r.domain){if(!f8.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!f8.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},p8={create(n,e,t,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+t*60*1e3)),r&&(i.domain=r),document.cookie=aW(n,e,i)},read(n){const e=`${n}=`,t=document.cookie.split(";");for(let r=0;r-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let l=0;l0&&s[l].substring(0,o)===e&&(t=s[l].substring(o+1))}}return t}},uW={name:"hash",lookup(n){let{lookupHash:e,lookupFromHashIndex:t}=n,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const s=i.substring(1);if(e){const l=s.split("&");for(let o=0;o0&&l[o].substring(0,f)===e&&(r=l[o].substring(f+1))}}if(r)return r;if(!r&&t>-1){const l=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof t=="number"?t:0]?.replace("/",""):void 0}}}return r}};let Eg=null;const m8=()=>{if(Eg!==null)return Eg;try{if(Eg=typeof window<"u"&&window.localStorage!==null,!Eg)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{Eg=!1}return Eg};var cW={name:"localStorage",lookup(n){let{lookupLocalStorage:e}=n;if(e&&m8())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupLocalStorage:t}=e;t&&m8()&&window.localStorage.setItem(t,n)}};let Bg=null;const g8=()=>{if(Bg!==null)return Bg;try{if(Bg=typeof window<"u"&&window.sessionStorage!==null,!Bg)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{Bg=!1}return Bg};var hW={name:"sessionStorage",lookup(n){let{lookupSessionStorage:e}=n;if(e&&g8())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupSessionStorage:t}=e;t&&g8()&&window.sessionStorage.setItem(t,n)}},dW={name:"navigator",lookup(n){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:r,language:i}=navigator;if(t)for(let s=0;s0?e:void 0}},fW={name:"htmlTag",lookup(n){let{htmlTag:e}=n,t;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(t=r.getAttribute("lang")),t}},pW={name:"path",lookup(n){let{lookupFromPathIndex:e}=n;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?t[typeof e=="number"?e:0]?.replace("/",""):void 0}},mW={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:e}=n;const t=typeof e=="number"?e+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[t]}};let fF=!1;try{document.cookie,fF=!0}catch{}const pF=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];fF||pF.splice(1,1);const gW=()=>({order:pF,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class mF{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=oW(t,this.options||{},gW()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(lW),this.addDetector(AW),this.addDetector(cW),this.addDetector(hW),this.addDetector(dW),this.addDetector(fW),this.addDetector(pW),this.addDetector(mW),this.addDetector(uW)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(t=t.concat(i))}}),t=t.filter(r=>r!=null&&!sW(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}mF.type="languageDetector";var yW=function(e){return{type:"backend",init:function(r,i,s){},read:function(r,i,s){if(typeof e=="function"){if(e.length<3){try{var l=e(r,i);l&&typeof l.then=="function"?l.then(function(o){return s(null,o&&o.default||o)}).catch(s):s(null,l)}catch(o){s(o)}return}e(r,i,s);return}s(null,e&&e[r]&&e[r][i])}}},e4,y8;function vW(){return y8||(y8=1,e4={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),e4}var CW=vW();const _W=Gl(CW);var bW=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function v8(n){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=n.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(_W[t[1]]||n.charAt(n.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=n.indexOf("-->");return{type:"comment",comment:r!==-1?n.slice(4,r):""}}for(var i=new RegExp(bW),s=null;(s=i.exec(n))!==null;)if(s[0].trim())if(s[1]){var l=s[1].trim(),o=[l,""];l.indexOf("=")>-1&&(o=l.split("=")),e.attrs[o[0]]=o[1],i.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var xW=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,MW=/^\s*$/,wW=Object.create(null);function gF(n,e){switch(e.type){case"text":return n+e.content;case"tag":return n+="<"+e.name+(e.attrs?function(t){var r=[];for(var i in t)r.push(i+'="'+t[i]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?n:n+e.children.reduce(gF,"")+"";case"comment":return n+""}}var SW={parse:function(n,e){e||(e={}),e.components||(e.components=wW);var t,r=[],i=[],s=-1,l=!1;if(n.indexOf("<")!==0){var o=n.indexOf("<");r.push({type:"text",content:o===-1?n:n.substring(0,o)})}return n.replace(xW,function(f,C){if(l){if(f!=="")return;l=!1}var x,B=f.charAt(1)!=="/",R=f.startsWith("");return{type:"comment",comment:r!==-1?n.slice(4,r):""}}for(var i=new RegExp(wW),s=null;(s=i.exec(n))!==null;)if(s[0].trim())if(s[1]){var l=s[1].trim(),o=[l,""];l.indexOf("=")>-1&&(o=l.split("=")),e.attrs[o[0]]=o[1],i.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var SW=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,EW=/^\s*$/,BW=Object.create(null);function vF(n,e){switch(e.type){case"text":return n+e.content;case"tag":return n+="<"+e.name+(e.attrs?function(t){var r=[];for(var i in t)r.push(i+'="'+t[i]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?n:n+e.children.reduce(vF,"")+"";case"comment":return n+""}}var OW={parse:function(n,e){e||(e={}),e.components||(e.components=BW);var t,r=[],i=[],s=-1,l=!1;if(n.indexOf("<")!==0){var o=n.indexOf("<");r.push({type:"text",content:o===-1?n:n.substring(0,o)})}return n.replace(SW,function(f,C){if(l){if(f!=="")return;l=!1}var x,B=f.charAt(1)!=="/",R=f.startsWith("