PageSourceSearch

https://vasaloppet.se/wp-content/themes/vasaloppet/theme/assets/CUAYqQZn.js?ver=1.0.0

js vasaloppet.se collected 2026-10-02 05:50:06 UTC 214,536 bytes, 317 lines download raw bytes

1var ql=Object.defineProperty;var Gs=t=>{throw TypeError(t)};var Hl=(t,e,n)=>e in t?ql(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ys=(t,e,n)=>Hl(t,typeof e!="symbol"?e+"":e,n),Or=(t,e,n)=>e.has(t)||Gs("Cannot "+n);var h=(t,e,n)=>(Or(t,e,"read from private field"),n?n.call(t):e.get(t)),L=(t,e,n)=>e.has(t)?Gs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),E=(t,e,n,r)=>(Or(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),$=(t,e,n)=>(Or(t,e,"access private method"),n);var Mn=(t,e,n,r)=>({set _(s){E(t,e,s,n)},get _(){return h(t,e,r)}});var Ln,F,Do,ht,Xs,Io,Uo,Mo,bs,Ur,Mr,jo,_n={},qo=[],Bl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,An=Array.isArray;function Ie(t,e){for(var n in e)t[n]=e[n];return t}function ws(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Y(t,e,n){var r,s,i,o={};for(i in e)i=="key"?r=e[i]:i=="ref"?s=e[i]:o[i]=e[i];if(arguments.length>2&&(o.children=arguments.length>3?Ln.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)o[i]===void 0&&(o[i]=t.defaultProps[i]);return gn(t,o,r,s,null)}function gn(t,e,n,r,s){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Do,__i:-1,__u:0};return s==null&&F.vnode!=null&&F.vnode(i),i}function Ho(){return{current:null}}function de(t){return t.children}function Ee(t,e){this.props=t,this.context=e}function Xt(t,e){if(e==null)return t.__?Xt(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?Xt(t):null}function Bo(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Bo(t)}}function jr(t){(!t.__d&&(t.__d=!0)&&ht.push(t)&&!nr.__r++||Xs!=F.debounceRendering)&&((Xs=F.debounceRendering)||Io)(nr)}function nr(){for(var t,e,n,r,s,i,o,a=1;ht.length;)ht.length>a&&ht.sort(Uo),t=ht.shift(),a=ht.length,t.__d&&(n=void 0,s=(r=(e=t).__v).__e,i=[],o=[],e.__P&&((n=Ie({},r)).__v=r.__v+1,F.vnode&&F.vnode(n),Ss(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[s]:null,i,s??Xt(r),!!(32&r.__u),o),n.__v=r.__v,n.__.__k[n.__i]=n,Ko(i,n,o),n.__e!=s&&Bo(n)));nr.__r=0}function Vo(t,e,n,r,s,i,o,a,l,c,f){var u,g,m,d,p,y,w=r&&r.__k||qo,S=e.length;for(l=Vl(n,e,w,l,S),u=0;u<S;u++)(m=n.__k[u])!=null&&(g=m.__i==-1?_n:w[m.__i]||_n,m.__i=u,y=Ss(t,m,g,s,i,o,a,l,c,f),d=m.__e,m.ref&&g.ref!=m.ref&&(g.ref&&xs(g.ref,null,m),f.push(m.ref,m.__c||d,m)),p==null&&d!=null&&(p=d),4&m.__u||g.__k===m.__k?l=zo(m,l,t):typeof m.type=="function"&&y!==void 0?l=y:d&&(l=d.nextSibling),m.__u&=-7);return n.__e=p,l}function Vl(t,e,n,r,s){var i,o,a,l,c,f=n.length,u=f,g=0;for(t.__k=new Array(s),i=0;i<s;i++)(o=e[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=i+g,(o=t.__k[i]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?gn(null,o,null,null,null):An(o)?gn(de,{children:o},null,null,null):o.constructor==null&&o.__b>0?gn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=t,o.__b=t.__b+1,a=null,(c=o.__i=zl(o,n,l,u))!=-1&&(u--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(s>f?g--:s<f&&g++),typeof o.type!="function"&&(o.__u|=4)):c!=l&&(c==l-1?g--:c==l+1?g++:(c>l?g--:g++,o.__u|=4))):t.__k[i]=null;if(u)for(i=0;i<f;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Xt(a)),Wo(a,a));return r}function zo(t,e,n){var r,s;if(typeof t.type=="function"){for(r=t.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=t,e=zo(r[s],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=Xt(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Ke(t,e){return e=e||[],t==null||typeof t=="boolean"||(An(t)?t.some(function(n){Ke(n,e)}):e.push(t)),e}function zl(t,e,n,r){var s,i,o=t.key,a=t.type,l=e[n];if(l===null&&t.key==null||l&&o==l.key&&a==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(s=n-1,i=n+1;s>=0||i<e.length;){if(s>
vendor: 3,015 bytes, line 1
1=0){if((l=e[s])&&(2&l.__u)==0&&o==l.key&&a==l.type)return s;s--}if(i<e.length){if((l=e[i])&&(2&l.__u)==0&&o==l.key&&a==l.type)return i;i++}}return-1}function Zs(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Bl.test(e)?n:n+"px"}function jn(t,e,n,r,s){var i,o;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Zs(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||Zs(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")i=e!=(e=e.replace(Mo,"$1")),o=e.toLowerCase(),e=o in t||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=bs,t.addEventListener(e,i?Mr:Ur,i)):t.removeEventListener(e,i?Mr:Ur,i);else{if(s=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function ei(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=bs++;else if(e.t<n.u)return;return n(F.event?F.event(e):e)}}}function Ss(t,e,n,r,s,i,o,a,l,c){var f,u,g,m,d,p,y,w,S,x,C,v,O,P,T,R,k,D=e.type;if(e.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=e.__e=n.__e]),(f=F.__b)&&f(e);e:if(typeof D=="function")try{if(w=e.props,S="prototype"in D&&D.prototype.render,x=(f=D.contextType)&&r[f.__c],C=f?x?x.props.value:f.__:r,n.__c?y=(u=e.__c=n.__c).__=u.__E:(S?e.__c=u=new D(w,C):(e.__c=u=new Ee(w,C),u.constructor=D,u.render=Ql),x&&x.sub(u),u.props=w,u.state||(u.state={}),u.context=C,u.__n=r,g=u.__d=!0,u.__h=[],u._sb=[]),S&&u.__s==null&&(u.__s=u.state),S&&D.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ie({},u.__s)),Ie(u.__s,D.getDerivedStateFromProps(w,u.__s))),m=u.props,d=u.state,u.__v=e,g)S&&D.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),S&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(S&&D.getDerivedStateFromProps==null&&w!==m&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(w,C),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(w,u.__s,C)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(J){J&&(J.__=e)}),v=0;v<u._sb.length;v++)u.__h.push(u._sb[v]);u._sb=[],u.__h.length&&o.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(w,u.__s,C),S&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(m,d,p)})}if(u.context=C,u.props=w,u.__P=t,u.__e=!1,O=F.__r,P=0,S){for(u.state=u.__s,u.__d=!1,O&&O(e),f=u.render(u.props,u.state,u.context),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[]}else do u.__d=!1,O&&O(e),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++P<25);u.state=u.__s,u.getChildContext!=null&&(r=Ie(Ie({}
vendor: 4,801 bytes, line 1
1,r),u.getChildContext())),S&&!g&&u.getSnapshotBeforeUpdate!=null&&(p=u.getSnapshotBeforeUpdate(m,d)),R=f,f!=null&&f.type===de&&f.key==null&&(R=Qo(f.props.children)),a=Vo(t,An(R)?R:[R],e,n,r,s,i,o,a,l,c),u.base=e.__e,e.__u&=-161,u.__h.length&&o.push(u),y&&(u.__E=u.__=null)}catch(J){if(e.__v=null,l||i!=null)if(J.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,e.__e=a}else for(k=i.length;k--;)ws(i[k]);else e.__e=n.__e,e.__k=n.__k;F.__e(J,e,n)}else i==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=Kl(n.__e,e,n,r,s,i,o,l,c);return(f=F.diffed)&&f(e),128&e.__u?void 0:a}function Ko(t,e,n){for(var r=0;r<n.length;r++)xs(n[r],n[++r],n[++r]);F.__c&&F.__c(e,t),t.some(function(s){try{t=s.__h,s.__h=[],t.some(function(i){i.call(s)})}catch(i){F.__e(i,s.__v)}})}function Qo(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:An(t)?t.map(Qo):Ie({},t)}function Kl(t,e,n,r,s,i,o,a,l){var c,f,u,g,m,d,p,y=n.props,w=e.props,S=e.type;if(S=="svg"?s="http://www.w3.org/2000/svg":S=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((m=i[c])&&"setAttribute"in m==!!S&&(S?m.localName==S:m.nodeType==3)){t=m,i[c]=null;break}}if(t==null){if(S==null)return document.createTextNode(w);t=document.createElementNS(s,S,w.is&&w),a&&(F.__m&&F.__m(e,i),a=!1),i=null}if(S==null)y===w||a&&t.data==w||(t.data=w);else{if(i=i&&Ln.call(t.childNodes),y=n.props||_n,!a&&i!=null)for(y={},c=0;c<t.attributes.length;c++)y[(m=t.attributes[c]).name]=m.value;for(c in y)if(m=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=m;else if(!(c in w)){if(c=="value"&&"defaultValue"in w||c=="checked"&&"defaultChecked"in w)continue;jn(t,c,null,m,s)}}for(c in w)m=w[c],c=="children"?g=m:c=="dangerouslySetInnerHTML"?f=m:c=="value"?d=m:c=="checked"?p=m:a&&typeof m!="function"||y[c]===m||jn(t,c,m,y[c],s);if(f)a||u&&(f.__html==u.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(u&&(t.innerHTML=""),Vo(e.type=="template"?t.content:t,An(g)?g:[g],e,n,r,S=="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,o,i?i[0]:n.__k&&Xt(n,0),a,l),i!=null)for(c=i.length;c--;)ws(i[c]);a||(c="value",S=="progress"&&d==null?t.removeAttribute("value"):d!=null&&(d!==t[c]||S=="progress"&&!d||S=="option"&&d!=y[c])&&jn(t,c,d,y[c],s),c="checked",p!=null&&p!=t[c]&&jn(t,c,p,y[c],s))}return t}function xs(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(s){F.__e(s,n)}}function Wo(t,e,n){var r,s;if(F.unmount&&F.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||xs(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){F.__e(i,e)}r.base=r.__P=null}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&Wo(r[s],e,n||typeof t.type!="function");n||ws(t.__e),t.__c=t.__=t.__e=void 0}function Ql(t,e,n){return this.constructor(t,n)}function Zt(t,e,n){var r,s,i,o;e==document&&(e=document.documentElement),F.__&&F.__(t,e),s=(r=typeof n=="function")?null:n&&n.__k||e.__k,i=[],o=[],Ss(e,t=(!r&&n||e).__k=Y(de,null,[t]),s||_n,_n,e.namespaceURI,!r&&n?[n]:s?null:e.firstChild?Ln.call(e.childNodes):null,i,!r&&n?n:s?s.__e:e.firstChild,r,o),Ko(i,t,o)}function Jo(t,e){Zt(t,e,Jo)}function Go(t,e,n){var r,s,i,o,a=Ie({},t.props);for(i in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)i=="key"?r=e[i]:i=="ref"?s=e[i]:a[i]=e[i]===void 0&&o!=null?o[i]:e[i];return arguments.length>2&&(a.children=arguments.length>3?Ln.call(arguments,2):n),gn(t.type,a,r||t.key,s||t.ref,null)}function ct(t){function e(n){var r,s;return this.getChildContext||(r=new Set,(s={})[e.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(o){o.__e=!0,jr(o)})},this.sub=function(i){r.add(i);var o=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),o&&o.call(i)}}),n.children}return e.__c="__cC"+jo++,e.__=t,e.Provider=e.__l=(e.Consumer=function(n,r){return n.children(r)}).contextType=e,e}Ln=qo.slice,F={__e:function(t,e,n,r){for(var s,i,o;e=e.__;)if((s=e.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(t)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,r||{}),o=s.__d),o)return s.__E=s}catch(a){t=a}throw t}},Do=0,Ee.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ie({},this.state),typeof t=="function"&&(t=t(Ie({},n),this.props)),t&&Ie(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),jr(this))},Ee.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),jr(this))},Ee.prototype.render=de,ht=[],Io=typeof Promise=="function"?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Uo=function(t,e){return t.__v.__b-e.__v.__b},nr.__r=0,Mo=/(PointerCapture)$|Capture$/i,bs=0,Ur=ei(!1),Mr=ei(!0),jo=0;var Wl=0;function _(t,e,n,r,s,i){e||(e={});var o,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?o=e[a]:l[a]=e[a];var c={type:t,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wl,__i:-1,__u:0,__source:s,__self:i};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)l[a]===void 0&&(l[a]=o[a]);return F.vnode&&F.vnode(c),c}var rn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ot=typeof window>"u"||"Deno"in globalThis;function fe(){}function Jl(t,e){return typeof t=="function"?t(e):t}function qr(t){return typeof t=="number"&&t>=0&&t!==1/0}function Yo(t,e){return Math.max(t+(e||0)-Date.now(),0)}function lt(t,e){return typeof t=="function"?t(e):t}function Oe(t,e){return typeof t=="function"?t(e):t}function ti(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==Cs(o,e.options))return!1}else if(!vn(e.queryKey,o))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function ni(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(Et(e.options.mutationKey)!==Et(i))return!1}else if(!vn(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function Cs(t,e){return((e==null?void 0:e.queryKeyHashFn)||Et)(t)}function Et(t){return JSON.stringify(t,(e,n)=>Hr(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function vn(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>vn(t[n],e[n])):!1}function Xo(t,e){if(t===e)return t;const n=ri(t)&&ri(e);if(n||Hr(t)&&Hr(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let f=0;f<o;f++){const u=n?f:i[f];(!n&&l.has(u)||n)&&t[u]===void 0&&e[u]===void 0?(a[u]=void 0,c++):(a[u]=Xo(t[u],e[u]),a[u]===t[u]&&t[u]!==void 0&&c++)}return s===o&&c===s?t:a}return e}function rr(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function ri(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Hr(t){if(!si(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!si(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function si(t){return Object.prototype.toString.call(t)==="[object Object]"}function Gl(t){return new Promise(e=>{setTimeout(e,t)})}function Br(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Xo(t,e):e}function Yl(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Xl(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Os=Symbol();function Zo(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Os?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ea(t,e){return typeof t=="function"?t(...e):!!t}var mt,Ye,Mt,Co,Zl=(Co=class extends rn{constructor(){super();L(this,mt);L(this,Ye);L(this,Mt);E(this,Mt,e=>{if(!Ot&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){h(this,Ye)||this.setEventListener(h(this,Mt))}onUnsubscribe(){var e;this.hasListeners()||((e=h(this,Ye))==null||e.call(this),E(this,Ye,void 0))}setEventListener(e){var n;E(this,Mt,e),(n=h(this,Ye))==null||n.call(this),E(this,Ye,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){h(this,mt)!==e&&(E(this,mt,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,897 bytes, line 1
1this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof h(this,mt)=="boolean"?h(this,mt):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},mt=new WeakMap,Ye=new WeakMap,Mt=new WeakMap,Co),Es=new Zl,jt,Xe,qt,Oo,ec=(Oo=class extends rn{constructor(){super();L(this,jt,!0);L(this,Xe);L(this,qt);E(this,qt,e=>{if(!Ot&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){h(this,Xe)||this.setEventListener(h(this,qt))}onUnsubscribe(){var e;this.hasListeners()||((e=h(this,Xe))==null||e.call(this),E(this,Xe,void 0))}setEventListener(e){var n;E(this,qt,e),(n=h(this,Xe))==null||n.call(this),E(this,Xe,e(this.setOnline.bind(this)))}setOnline(e){h(this,jt)!==e&&(E(this,jt,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return h(this,jt)}},jt=new WeakMap,Xe=new WeakMap,qt=new WeakMap,Oo),sr=new ec;function Vr(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function tc(t){return Math.min(1e3*2**t,3e4)}function ta(t){return(t??"online")==="online"?sr.isOnline():!0}var na=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Er(t){return t instanceof na}function ra(t){let e=!1,n=0,r=!1,s;const i=Vr(),o=p=>{var y;r||(g(new na(p)),(y=t.abort)==null||y.call(t))},a=()=>{e=!0},l=()=>{e=!1},c=()=>Es.isFocused()&&(t.networkMode==="always"||sr.isOnline())&&t.canRun(),f=()=>ta(t.networkMode)&&t.canRun(),u=p=>{var y;r||(r=!0,(y=t.onSuccess)==null||y.call(t,p),s==null||s(),i.resolve(p))},g=p=>{var y;r||(r=!0,(y=t.onError)==null||y.call(t,p),s==null||s(),i.reject(p))},m=()=>new Promise(p=>{var y;s=w=>{(r||c())&&p(w)},(y=t.onPause)==null||y.call(t)}).then(()=>{var p;s=void 0,r||(p=t.onContinue)==null||p.call(t)}),d=()=>{if(r)return;let p;const y=n===0?t.initialPromise:void 0;try{p=y??t.fn()}catch(w){p=Promise.reject(w)}Promise.resolve(p).then(u).catch(w=>{var O;if(r)return;const S=t.retry??(Ot?0:3),x=t.retryDelay??tc,C=typeof x=="function"?x(n,w):x,v=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,w);if(e||!v){g(w);return}n++,(O=t.onFail)==null||O.call(t,n,w),Gl(C).then(()=>c()?void 0:m()).then(()=>{e?g(w):d()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:f,start:()=>(f()?d():m().then(d),i)}}var nc=t=>setTimeout(t,0);function rc(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=nc;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var G=rc(),gt,Eo,sa=(Eo=class{constructor(){L(this,gt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qr(this.gcTime)&&E(this,gt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ot?1/0:5*60*1e3))}clearGcTimeout(){h(this,gt)&&(clearTimeout(h(this,gt)),E(this,gt,void 0))}},gt=new WeakMap,Eo),Ht,Bt,we,yt,se,Pn,_t,xe,He,Po,sc=(Po=class extends sa{constructor(e){super();L(this,xe);L(this,Ht);L(this,Bt);L(this,we);L(this,yt);L(this,se);L(this,Pn);L(this,_t);E(this,_t,!1),E(this,Pn,e.defaultOptions),this.setOptions(e.options),this.observers=[],E(this,yt,e.client),E(this,we,h(this,yt).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,E(this,Ht,ic(this.options)),this.state=e.state??h(this,Ht),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=h(this,se))==null?void 0:e.promise}setOptions(e){this.options={...h(this,Pn),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&h(this,we).remove(this)}setData(e,n){const r=Br(this.state.data,e,this.options);return $(this,xe,He).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){$(this,xe,He).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=h(this,se))==null?void 0:r.promise;return(s=h(this,se))==null||s.cancel(e),n?n.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(h(this,Ht))}isActive(){return this.observers.some(e=>Oe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Os||this.state.dataUpdateCount+this.state.errorUpdate
1Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>lt(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Yo(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=h(this,se))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=h(this,se))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),h(this,we).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(h(this,se)&&(h(this,_t)?h(this,se).cancel({revert:!0}):h(this,se).cancelRetry()),this.scheduleGc()),h(this,we).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,xe,He).call(this,{type:"invalidate"})}fetch(e,n){var c,f,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(h(this,se))return h(this,se).continueRetry(),h(this,se).promise}if(e&&this.setOptions(e),!this.options.queryFn){const g=this.observers.find(m=>m.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,s=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(E(this,_t,!0),r.signal)})},i=()=>{const g=Zo(this.options,n),d=(()=>{const p={client:h(this,yt),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return E(this,_t,!1),this.options.persister?this.options.persister(g,d,this):g(d)},a=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:h(this,yt),state:this.state,fetchFn:i};return s(g),g})();(c=this.options.behavior)==null||c.onFetch(a,this),E(this,Bt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&$(this,xe,He).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const l=g=>{var m,d,p,y;Er(g)&&g.silent||$(this,xe,He).call(this,{type:"error",error:g}),Er(g)||((d=(m=h(this,we).config).onError)==null||d.call(m,g,this),(y=(p=h(this,we).config).onSettled)==null||y.call(p,this.state.data,g,this)),this.scheduleGc()};return E(this,se,ra({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var m,d,p,y;if(g===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(w){l(w);return}(d=(m=h(this,we).config).onSuccess)==null||d.call(m,g,this),(y=(p=h(this,we).config).onSettled)==null||y.call(p,g,this.state.error,this),this.scheduleGc()},onError:l,onFail:(g,m)=>{$(this,xe,He).call(this,{type:"failed",failureCount:g,error:m})},onPause:()=>{$(this,xe,He).call(this,{type:"pause"})},onContinue:()=>{$(this,xe,He).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),h(this,se).start()}},Ht=new WeakMap,Bt=new WeakMap,we=new WeakMap,yt=new WeakMap,se=new WeakMap,Pn=new WeakMap,_t=new WeakMap,xe=new WeakSet,He=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ia(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return Er(s)&&s.revert&&h(this,Bt)?{...h(this,Bt),fetchStatus:"idle"}
vendor: 5,083 bytes, line 1
1:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),G.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),h(this,we).notify({query:this,type:"updated",action:e})})},Po);function ia(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ta(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ic(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ae,Ro,oc=(Ro=class extends rn{constructor(e={}){super();L(this,Ae);this.config=e,E(this,Ae,new Map)}build(e,n,r){const s=n.queryKey,i=n.queryHash??Cs(s,n);let o=this.get(i);return o||(o=new sc({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){h(this,Ae).has(e.queryHash)||(h(this,Ae).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=h(this,Ae).get(e.queryHash);n&&(e.destroy(),n===e&&h(this,Ae).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){G.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return h(this,Ae).get(e)}getAll(){return[...h(this,Ae).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ti(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>ti(e,r)):n}notify(e){G.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){G.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){G.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ae=new WeakMap,Ro),Ne,ce,vt,Fe,Ge,ko,ac=(ko=class extends sa{constructor(e){super();L(this,Fe);L(this,Ne);L(this,ce);L(this,vt);this.mutationId=e.mutationId,E(this,ce,e.mutationCache),E(this,Ne,[]),this.state=e.state||oa(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){h(this,Ne).includes(e)||(h(this,Ne).push(e),this.clearGcTimeout(),h(this,ce).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){E(this,Ne,h(this,Ne).filter(n=>n!==e)),this.scheduleGc(),h(this,ce).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){h(this,Ne).length||(this.state.status==="pending"?this.scheduleGc():h(this,ce).remove(this))}continue(){var e;return((e=h(this,vt))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,l,c,f,u,g,m,d,p,y,w,S,x,C,v,O,P,T;const n=()=>{$(this,Fe,Ge).call(this,{type:"continue"})};E(this,vt,ra({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(R,k)=>{$(this,Fe,Ge).call(this,{type:"failed",failureCount:R,error:k})},onPause:()=>{$(this,Fe,Ge).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>h(this,ce).canRun(this)}));const r=this.state.status==="pending",s=!h(this,vt).canStart();try{if(r)n();else{$(this,Fe,Ge).call(this,{type:"pending",variables:e,isPaused:s}),await((o=(i=h(this,ce).config).onMutate)==null?void 0:o.call(i,e,this));const k=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));k!==this.state.context&&$(this,Fe,Ge).call(this,{type:"pending",context:k,variables:e,isPaused:s})}const R=await h(this,vt).start();return await((f=(c=h(this,ce).config).onSuccess)==null?void 0:f.call(c,R,e,this.state.context,this)),await((g=(u=this.options).onSuccess)==null?void 0:g.call(u,R,e,this.state.context)),await((d=(m=h(this,ce).config).onSettled)==null?void 0:d.call(m,R,null,this.state.variables,this.state.context,this)),await((y=(p=this.options).onSettled)==null?void 0:y.call(p,R,null,e,this.state.context)),$(this,Fe,Ge).call(this,{type:"success",data:R}),R}catch(R){try{throw await((S=(w=h(this,ce).config).onError)==null?void 0:S.call(w,R,e,this.state.context,this)),await((C=(x=this.options).onError)==null?void 0:C.call(x,R,e,this.state.context)),await((O=(v=h(this,ce).config).onSettled)==null?void 0:O.call(v,void 0,R,this.state.variables,this.state.context,this)),await((T=(P=this.options).onSettled)==null?void 0:T.call(P,void 0,R,e,this.state.context)),R}finally{$(this,Fe,Ge).call(this,{type:"error",error:R})}}finally{h(this,ce).runNext(this)}}},Ne=new WeakMap,ce=new WeakMap,vt=new WeakMap,Fe=new WeakSet,Ge=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
1case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),G.batch(()=>{h(this,Ne).forEach(r=>{r.onMutationUpdate(e)}),h(this,ce).notify({mutation:this,type:"updated",action:e})})},ko);function oa(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ve,Ce,Rn,To,lc=(To=class extends rn{constructor(e={}){super();L(this,Ve);L(this,Ce);L(this,Rn);this.config=e,E(this,Ve,new Set),E(this,Ce,new Map),E(this,Rn,0)}build(e,n,r){const s=new ac({mutationCache:this,mutationId:++Mn(this,Rn)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){h(this,Ve).add(e);const n=qn(e);if(typeof n=="string"){const r=h(this,Ce).get(n);r?r.push(e):h(this,Ce).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(h(this,Ve).delete(e)){const n=qn(e);if(typeof n=="string"){const r=h(this,Ce).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&h(this,Ce).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=qn(e);if(typeof n=="string"){const r=h(this,Ce).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=qn(e);if(typeof n=="string"){const s=(r=h(this,Ce).get(n))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){G.batch(()=>{h(this,Ve).forEach(e=>{this.notify({type:"removed",mutation:e})}),h(this,Ve).clear(),h(this,Ce).clear()})}getAll(){return Array.from(h(this,Ve))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ni(n,r))}findAll(e={}){return this.getAll().filter(n=>ni(e,n))}notify(e){G.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return G.batch(()=>Promise.all(e.map(n=>n.continue().catch(fe))))}},Ve=new WeakMap,Ce=new WeakMap,Rn=new WeakMap,To);function qn(t){var e;return(e=t.options.scope)==null?void 0:e.id}function ii(t){return{onFetch:(e,n)=>{var f,u,g,m,d;const r=e.options,s=(g=(u=(f=e.fetchOptions)==null?void 0:f.meta)==null?void 0:u.fetchMore)==null?void 0:g.direction,i=((m=e.state.data)==null?void 0:m.pages)||[],o=((d=e.state.data)==null?void 0:d.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let p=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},w=Zo(e.options,e.fetchOptions),S=async(x,C,v)=>{if(p)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const P=(()=>{const D={client:e.client,queryKey:e.queryKey,pageParam:C,direction:v?"backward":"forward",meta:e.options.meta};return y(D),D})(),T=await w(P),{maxPages:R}=e.options,k=v?Xl:Yl;return{pages:k(x.pages,T,R),pageParams:k(x.pageParams,C,R)}};if(s&&i.length){const x=s==="backward",C=x?cc:oi,v={pages:i,pageParams:o},O=C(r,v);a=await S(v,O,x)}else{const x=t??i.length;do{const C=l===0?o[0]??r.initialPageParam:oi(r,a);if(l>0&&C==null)break;a=await S(a,C),l++}while(l<x)}return a};e.options.persister?e.fetchFn=()=>{var p,y;return(y=(p=e.options).persister)==null?void 0:y.call(p,c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=c}}}function oi(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function cc(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var z,Ze,et,Vt,zt,tt,Kt,Qt,Lo,uc=(Lo=class{constructor(t={}){L(this,z);L(this,Ze);L(this,et);L(this,Vt);L(this,zt);L(this,tt);L(this,Kt);L(this,Qt);E(this,z,t.queryCache||new oc),E(this,Ze,t.mutationCache||new lc),E(this,et,t.defaultOptions||{}),E(this,Vt,new Map),E(this,zt,new Map),E(this,tt,0)}mount(){Mn(this,tt)._++,h(this,tt)===1&&(E(this,Kt,Es.subscribe(async t=>{t&&(await this.resumePausedMutations(),h(this,z).onFocus())})),E(this,Qt,sr.subscribe(async t=>{t&&(await this.resumePausedMutations(),h(this,z).onOnline())})))}unmount(){var t,e;Mn(this,tt)._--,h(this,tt)===0&&((t=h(this,Kt))==null||t.call(this),E(this,Kt,void 0),(e=h(this,Qt))==null||e.call(this),E(this,Qt,void 0))}isFetching(t){return h(this,z).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return h(this,Ze).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=h(this,z).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=h(this,z).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(lt(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return h(this,z).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=h(this,z).get(r.queryHash),i=s==null?void 0:s.state.data,o=Jl(e,i);if(o!==void 0)return h(this,z).build(this,r).setData(o,{...n,manual:!0})}
vendor: 12,924 bytes, line 1
1setQueriesData(t,e,n){return G.batch(()=>h(this,z).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=h(this,z).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=h(this,z);G.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=h(this,z);return G.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=G.batch(()=>h(this,z).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(t,e={}){return G.batch(()=>(h(this,z).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=G.batch(()=>h(this,z).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(fe)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=h(this,z).build(this,e);return n.isStaleByTime(lt(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(fe).catch(fe)}fetchInfiniteQuery(t){return t.behavior=ii(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(fe).catch(fe)}ensureInfiniteQueryData(t){return t.behavior=ii(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return sr.isOnline()?h(this,Ze).resumePausedMutations():Promise.resolve()}getQueryCache(){return h(this,z)}getMutationCache(){return h(this,Ze)}getDefaultOptions(){return h(this,et)}setDefaultOptions(t){E(this,et,t)}setQueryDefaults(t,e){h(this,Vt).set(Et(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...h(this,Vt).values()],n={};return e.forEach(r=>{vn(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){h(this,zt).set(Et(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...h(this,zt).values()],n={};return e.forEach(r=>{vn(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...h(this,et).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Cs(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Os&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...h(this,et).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){h(this,z).clear(),h(this,Ze).clear()}},z=new WeakMap,Ze=new WeakMap,et=new WeakMap,Vt=new WeakMap,zt=new WeakMap,tt=new WeakMap,Kt=new WeakMap,Qt=new WeakMap,Lo),he,I,kn,ue,bt,Wt,nt,rt,Tn,Jt,Gt,wt,St,st,Yt,q,mn,zr,Kr,Qr,Wr,Jr,Gr,Yr,aa,Ao,fc=(Ao=class extends rn{constructor(e,n){super();L(this,q);L(this,he);L(this,I);L(this,kn);L(this,ue);L(this,bt);L(this,Wt);L(this,nt);L(this,rt);L(this,Tn);L(this,Jt);L(this,Gt);L(this,wt);L(this,St);L(this,st);L(this,Yt,new Set);this.options=n,E(this,he,e),E(this,rt,null),E(this,nt,Vr()),this.options.experimental_prefetchInRender||h(this,nt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(h(this,I).addObserver(this),ai(h(this,I),this.options)?$(this,q,mn).call(this):this.updateResult(),$(this,q,Wr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xr(h(this,I),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xr(h(this,I),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,q,Jr).call(this),$(this,q,Gr).call(this),h(this,I).removeObserver(this)}setOptions(e){const n=this.options,r=h(this,I);if(this.options=h(this,he).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oe(this.options.enabled,h(this,I))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,q,Yr).call(this),h(this,I).setOptions(this.options),n._defaulted&&!rr(this.options,n)&&h(this,he).getQueryCache().notify({type:"observerOptionsUpdated",query:h(this,I),observer:this});const s=this.hasListeners();s&&li(h(this,I),r,this.options,n)&&$(this,q,mn).call(this),this.updateResult(),s&&(h(this,I)!==r||Oe(this.options.enabled,h(this,I))!==Oe(n.enabled,h(this,I))||lt(this.options.staleTime,h(this,I))!==lt(n.staleTime,h(this,I)))&&$(this,q,zr).call(this);const i=$(this,q,Kr).call(this);s&&(h(this,I)!==r||Oe(this.options.enabled,h(this,I))!==Oe(n.enabled,h(this,I))||i!==h(this,st))&&$(this,q,Qr).call(this,i)}getOptimisticResult(e){const n=h(this,he).getQueryCache().build(h(this,he),e),r=this.createResult(n,e);return hc(this,r)&&(E(this,ue,r),E(this,Wt,this.options),E(this,bt,h(this,I).state)),r}getCurrentResult(){return h(this,ue)}trackResult(e,n){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(e){h(this,Yt).add(e)}getCurrentQuery(){return h(this,I)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=h(this,he).defaultQueryOptions(e),r=h(this,he).getQueryCache().build(h(this,he),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return $(this,q,mn).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),h(this,ue)))}createResult(e,n){var R;const r=h(this,I),s=this.options,i=h(this,ue),o=h(this,bt),a=h(this,Wt),c=e!==r?e.state:h(this,kn),{state:f}=e;let u={...f},g=!1,m;if(n._optimisticResults){const k=this.hasListeners(),D=!k&&ai(e,n),J=k&&li(e,r,n,s);(D||J)&&(u={...u,...ia(f.data,e.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:d,errorUpdatedAt:p,status:y}=u;m=u.data;let w=!1;if(n.placeholderData!==void 0&&m===void 0&&y==="pending"){let k;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(k=i.data,w=!0):k=typeof n.placeholderData=="function"?n.placeholderData((R=h(this,Gt))==null?void 0:R.state.data,h(this,Gt)):n.placeholderData,k!==void 0&&(y="success",m=Br(i==null?void 0:i.data,k,n),g=!0)}if(n.select&&m!==void 0&&!w)if(i&&m===(o==null?void 0:o.data)&&n.select===h(this,Tn))m=h(this,Jt);else try{E(this,Tn,n.select),m=n.select(m),m=Br(i==null?void 0:i.data,m,n),E(this,Jt,m),E(this,rt,null)}catch(k){E(this,rt,k)}h(this,rt)&&(d=h(this,rt),m=h(this,Jt),p=Date.now(),y="error");const S=u.fetchStatus==="fetching",x=y==="pending",C=y==="error",v=x&&S,O=m!==void 0,T={status:y,fetchStatus:u.fetchStatus,isPending:x,isSuccess:y==="success",isError:C,isInitialLoading:v,isLoading:v,data:m,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!x,isLoadingError:C&&!O,isPaused:u.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:C&&O,isStale:Ps(e,n),refetch:this.refetch,promise:h(this,nt)};if(this.options.experimental_prefetchInRender){const k=X=>{T.status==="error"?X.reject(T.error):T.data!==void 0&&X.resolve(T.data)},D=()=>{const X=E(this,nt,T.promise=Vr());k(X)},J=h(this,nt);switch(J.status){case"pending":e.queryHash===r.queryHash&&k(J);break;case"fulfilled":(T.status==="error"||T.data!==J.value)&&D();break;case"rejected":(T.status!=="error"||T.error!==J.reason)&&D();break}}return T}updateResult(){const e=h(this,ue),n=this.createResult(h(this,I),this.options);if(E(this,bt,h(this,I).state),E(this,Wt,this.options),h(this,bt).data!==void 0&&E(this,Gt,h(this,I)),rr(n,e))return;E(this,ue,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!h(this,Yt).size)return!0;const o=new Set(i??h(this,Yt));return this.options.throwOnError&&o.add("error"),Object.keys(h(this,ue)).some(a=>{const l=a;return h(this,ue)[l]!==e[l]&&o.has(l)})};$(this,q,aa).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,q,Wr).call(this)}},he=new WeakMap,I=new WeakMap,kn=new WeakMap,ue=new WeakMap,bt=new WeakMap,Wt=new WeakMap,nt=new WeakMap,rt=new WeakMap,Tn=new WeakMap,Jt=new WeakMap,Gt=new WeakMap,wt=new WeakMap,St=new WeakMap,st=new WeakMap,Yt=new WeakMap,q=new WeakSet,mn=function(e){$(this,q,Yr).call(this);let n=h(this,I).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(fe)),n},zr=function(){$(this,q,Jr).call(this);const e=lt(this.options.staleTime,h(this,I));if(Ot||h(this,ue).isStale||!qr(e))return;const r=Yo(h(this,ue).dataUpdatedAt,e)+1;E(this,wt,setTimeout(()=>{h(this,ue).isStale||this.updateResult()},r))},Kr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(h(this,I)):this.options.refetchInterval)??!1},Qr=function(e){$(this,q,Gr).call(this),E(this,st,e),!(Ot||Oe(this.options.enabled,h(this,I))===!1||!qr(h(this,st))||h(this,st)===0)&&E(this,St,setInterval(()=>{(this.options.refetchIntervalInBackground||Es.isFocused())&&$(this,q,mn).call(this)},h(this,st)))},Wr=function(){$(this,q,zr).call(this),$(this,q,Qr).call(this,$(this,q,Kr).call(this))},Jr=function(){h(this,wt)&&(clearTimeout(h(this,wt)),E(this,wt,void 0))},Gr=function(){h(this,St)&&(clearInterval(h(this,St)),E(this,St,void 0))},Yr=function(){const e=h(this,he).getQueryCache().build(h(this,he),this.options);if(e===h(this,I))return;const n=h(this,I);E(this,I,e),E(this,kn,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},aa=function(e){G.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(h(this,ue))}),h(this,he).getQueryCache().notify({query:h(this,I),type:"observerResultsUpdated"})})},Ao);function dc(t,e){return Oe(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function ai(t,e){return dc(t,e)||t.state.data!==void 0&&Xr(t,e,e.refetchOnMount)}function Xr(t,e,n){if(Oe(e.enabled,t)!==!1&&lt(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Ps(t,e)}return!1}function li(t,e,n,r){return(t!==e||Oe(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Ps(t,n)}function Ps(t,e){return Oe(e.enabled,t)!==!1&&t.isStaleByTime(lt(e.staleTime,t))}function hc(t,e){return!rr(t.getCurrentResult(),e)}var it,ot,pe,ze,Qe,Qn,Zr,No,pc=(No=class extends rn{constructor(e,n){super();L(this,Qe);L(this,it);L(this,ot);L(this,pe);L(this,ze);E(this,it,e),this.setOptions(n),this.bindMethods(),$(this,Qe,Qn).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var r;const n=this.options;this.options=h(this,it).defaultMutationOptions(e),rr(this.options,n)||h(this,it).getMutationCache().notify({type:"observerOptionsUpdated",mutation:h(this,pe),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Et(n.mutationKey)!==Et(this.options.mutationKey)?this.reset():((r=h(this,pe))==null?void 0:r.state.status)==="pending"&&h(this,pe).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=h(this,pe))==null||e.removeObserver(this)}onMutationUpdate(e){$(this,Qe,Qn).call(this),$(this,Qe,Zr).call(this,e)}getCurrentResult(){return h(this,ot)}reset(){var e;(e=h(this,pe))==null||e.removeObserver(this),E(this,pe,void 0),$(this,Qe,Qn).call(this),$(this,Qe,Zr).call(this)}mutate(e,n){var r;return E(this,ze,n),(r=h(this,pe))==null||r.removeObserver(this),E(this,pe,h(this,it).getMutationCache().build(h(this,it),this.options)),h(this,pe).addObserver(this),h(this,pe).execute(e)}},it=new WeakMap,ot=new WeakMap,pe=new WeakMap,ze=new WeakMap,Qe=new WeakSet,Qn=function(){var n;const e=((n=h(this,pe))==null?void 0:n.state)??oa();E(this,ot,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},Zr=function(e){G.batch(()=>{var n,r,s,i,o,a,l,c;if(h(this,ze)&&this.hasListeners()){const f=h(this,ot).variables,u=h(this,ot).context;(e==null?void 0:e.type)==="success"?((r=(n=h(this,ze)).onSuccess)==null||r.call(n,e.data,f,u),(i=(s=h(this,ze)).onSettled)==null||i.call(s,e.data,null,f,u)):(e==null?void 0:e.type)==="error"&&((a=(o=h(this,ze)).onError)==null||a.call(o,e.error,f,u),(c=(l=h(this,ze)).onSettled)==null||c.call(l,void 0,e.error,f,u))}
vendor: 5,124 bytes, line 1
1this.listeners.forEach(f=>{f(h(this,ot))})})},No),We,H,Pr,ci,en=0,la=[],V=F,ui=V.__b,fi=V.__r,di=V.diffed,hi=V.__c,pi=V.unmount,mi=V.__;function kt(t,e){V.__h&&V.__h(H,t,en||e),en=0;var n=H.__H||(H.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function te(t){return en=1,dr(ca,t)}function dr(t,e,n){var r=kt(We++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):ca(void 0,e),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=H,!H.__f)){var s=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(g){return!!g.__c});if(f.every(function(g){return!g.__N}))return!i||i.call(this,a,l,c);var u=r.__c.props!==a;return f.forEach(function(g){if(g.__N){var m=g.__[0];g.__=g.__N,g.__N=void 0,m!==g.__[0]&&(u=!0)}}),i&&i.call(this,a,l,c)||u};H.__f=!0;var i=H.shouldComponentUpdate,o=H.componentWillUpdate;H.componentWillUpdate=function(a,l,c){if(this.__e){var f=i;i=void 0,s(a,l,c),i=f}o&&o.call(this,a,l,c)},H.shouldComponentUpdate=s}return r.__N||r.__}function Q(t,e){var n=kt(We++,3);!V.__s&&Ls(n.__H,e)&&(n.__=t,n.u=e,H.__H.__h.push(n))}function sn(t,e){var n=kt(We++,4);!V.__s&&Ls(n.__H,e)&&(n.__=t,n.u=e,H.__h.push(n))}function ie(t){return en=5,on(function(){return{current:t}},[])}function Rs(t,e,n){en=6,sn(function(){if(typeof t=="function"){var r=t(e());return function(){t(null),r&&typeof r=="function"&&r()}}if(t)return t.current=e(),function(){return t.current=null}},n==null?n:n.concat(t))}function on(t,e){var n=kt(We++,7);return Ls(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Pt(t,e){return en=8,on(function(){return t},e)}function je(t){var e=H.context[t.__c],n=kt(We++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(H)),e.props.value):t.__}function ks(t,e){V.useDebugValue&&V.useDebugValue(e?e(t):t)}function mc(t){var e=kt(We++,10),n=te();return e.__=t,H.componentDidCatch||(H.componentDidCatch=function(r,s){e.__&&e.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ts(){var t=kt(We++,11);if(!t.__){for(var e=H.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function gc(){for(var t;t=la.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Wn),t.__H.__h.forEach(es),t.__H.__h=[]}catch(e){t.__H.__h=[],V.__e(e,t.__v)}}V.__b=function(t){H=null,ui&&ui(t)},V.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),mi&&mi(t,e)},V.__r=function(t){fi&&fi(t),We=0;var e=(H=t.__c).__H;e&&(Pr===H?(e.__h=[],H.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.forEach(Wn),e.__h.forEach(es),e.__h=[],We=0)),Pr=H},V.diffed=function(t){di&&di(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(la.push(e)!==1&&ci===V.requestAnimationFrame||((ci=V.requestAnimationFrame)||yc)(gc)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Pr=H=null},V.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Wn),n.__h=n.__h.filter(function(r){return!r.__||es(r)})}catch(r){e.some(function(s){s.__h&&(s.__h=[])}),e=[],V.__e(r,n.__v)}}),hi&&hi(t,e)},V.unmount=function(t){pi&&pi(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Wn(r)}catch(s){e=s}}),n.__H=void 0,e&&V.__e(e,n.__v))};var gi=typeof requestAnimationFrame=="function";function yc(t){var e,n=function(){clearTimeout(r),gi&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);gi&&(e=requestAnimationFrame(n))}function Wn(t){var e=H,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),H=e}function es(t){var e=H;t.__c=t.__(),H=e}function Ls(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function ca(t,e){return typeof e=="function"?e(t):e}function ua(t,e){for(var n in e)t[n]=e[n];return t}function ts(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Nn(t,e){var n=e(),r=te({t:{__:n,u:e}}),s=r[0].t,i=r[1];return sn(function(){s.__=n,s.u=e,Rr(s)&&i({t:s})},[t,n,e]),Q(function(){return Rr(s)&&i({t:s}),t(function(){Rr(s)&&i({t:s})})},[t]),n}function Rr(t){var e,n,r=t.u,s=t.__;try{var i=r();return!((e=s)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}function As(t){t()}function Ns(t){return t}function Fs(){return[!1,As]}var $s=sn;function ir(t,e){this.props=t,this.context=e}function fa(t,e){function n(s){var i=this.props.ref,o=i==s.ref;return!o&&i&&(i.call?i(null):i.current=null),e?!e(this.props,s)||!o:ts(this.props,s)}function r(s){return this.shouldComponentUpdate=n,Y(t,s)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ir.prototype=new Ee).isPureReactComponent=!0,ir.prototype.shouldComponentUpdate=function(t,e){return ts(this.props,t)||ts(this.state,e)};var yi=F.__b;F.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),yi&&yi(t)};var _c=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ds(t){function e(n){var r=ua({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=_c,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var _i=function(t,e){return t==null?null:Ke(Ke(t).map(e))}
vendor: 4,241 bytes, line 1
1,da={map:_i,forEach:_i,count:function(t){return t?Ke(t).length:0},only:function(t){var e=Ke(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Ke},vc=F.__e;F.__e=function(t,e,n,r){if(t.then){for(var s,i=e;i=i.__;)if((s=i.__c)&&s.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),s.__c(t,e)}vc(t,e,n,r)};var vi=F.unmount;function ha(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=ua({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return ha(r,e,n)})),t}function pa(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return pa(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function It(){this.__u=0,this.o=null,this.__b=null}function ma(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function ga(t){var e,n,r;function s(i){if(e||(e=t()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw e;return Y(n,i)}return s.displayName="Lazy",s.__f=!0,s}function Dt(){this.i=null,this.l=null}F.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),vi&&vi(t)},(It.prototype=new Ee).__c=function(t,e){var n=e.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var s=ma(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=pa(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(o,o)},It.prototype.componentWillUnmount=function(){this.o=[]},It.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ha(this.__b,n,r.__O=r.__P)}this.__b=null}var s=e.__a&&Y(de,null,t.fallback);return s&&(s.__u&=-33),[Y(de,null,e.__a?null:t.children),s]};var bi=function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}};function bc(t){return this.getChildContext=function(){return t.context},t.children}function wc(t){var e=this,n=t.h;if(e.componentWillUnmount=function(){Zt(null,e.v),e.v=null,e.h=null},e.h&&e.h!==n&&e.componentWillUnmount(),!e.v){for(var r=e.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;e.h=n,e.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(s,i){this.childNodes.push(s),e.h.insertBefore(s,i)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),e.h.removeChild(s)}}}Zt(Y(bc,{context:e.context},t.__v),e.v)}function ya(t,e){var n=Y(wc,{__v:t,h:e});return n.containerInfo=e,n}(Dt.prototype=new Ee).__a=function(t){var e=this,n=ma(e.__v),r=e.l.get(t);return r[0]++,function(s){var i=function(){e.props.revealOrder?(r.push(s),bi(e,t,r)):s()};n?n(i):i()}},Dt.prototype.render=function(t){this.i=null,this.l=new Map;var e=Ke(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},Dt.prototype.componentDidUpdate=Dt.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){bi(t,n,e)})};var _a=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Sc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Cc=/[A-Z0-9]/g,Oc=typeof document<"u",Ec=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function va(t,e,n){return e.__k==null&&(e.textContent=""),Zt(t,e),typeof n=="function"&&n(),t?t.__c:null}function ba(t,e,n){return Jo(t,e),typeof n=="function"&&n(),t?t.__c:null}Ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Ee.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]}
1,set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var wi=F.event;function Pc(){}function Rc(){return this.cancelBubble}function kc(){return this.defaultPrevented}F.event=function(t){return wi&&(t=wi(t)),t.persist=Pc,t.isPropagationStopped=Rc,t.isDefaultPrevented=kc,t.nativeEvent=t};var Is,Tc={enumerable:!1,configurable:!0,get:function(){return this.class}},Si=F.vnode;F.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,s={},i=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||Oc&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ec(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":xc.test(o)&&(o=l):l=o="oninput":i&&Sc.test(o)?o=o.replace(Cc,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[o=l]&&(o="oninputCapture"),s[o]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=Ke(n.children).forEach(function(c){c.props.selected=s.value.indexOf(c.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=Ke(n.children).forEach(function(c){c.props.selected=s.multiple?s.defaultValue.indexOf(c.props.value)!=-1:s.defaultValue==c.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",Tc)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),e.props=s}(t),t.$$typeof=_a,Si&&Si(t)};var xi=F.__r;F.__r=function(t){xi&&xi(t),Is=t.__c};var Ci=F.diffed;F.diffed=function(t){Ci&&Ci(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),Is=null};var wa={ReactCurrentDispatcher:{current:{readContext:function(t){return Is.__n[t.__c].props.value},useCallback:Pt,useContext:je,useDebugValue:ks,useDeferredValue:Ns,useEffect:Q,useId:Ts,useImperativeHandle:Rs,useInsertionEffect:$s,useLayoutEffect:sn,useMemo:on,useReducer:dr,useRef:ie,useState:te,useSyncExternalStore:Nn,useTransition:Fs}}},Lc="18.3.1";function Sa(t){return Y.bind(null,t)}function Fn(t){return!!t&&t.$$typeof===_a}function xa(t){return Fn(t)&&t.type===de}function Ca(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Oa(t){return Fn(t)?Go.apply(null,arguments):t}function Ea(t){return!!t.__k&&(Zt(null,t),!0)}function Pa(t){return t&&(t.base||t.nodeType===1&&t)||null}var Ra=function(t,e){return t(e)},ka=function(t,e){return t(e)},Ta=de,La=Fn,Ac={useState:te,useId:Ts,useReducer:dr,useEffect:Q,useLayoutEffect:sn,useInsertionEffect:$s,useTransition:Fs,useDeferredValue:Ns,useSyncExternalStore:Nn,startTransition:As,useRef:ie,useImperativeHandle:Rs,useMemo:on,useCallback:Pt,useContext:je,useDebugValue:ks,version:"18.3.1",Children:da,render:va,hydrate:ba,unmountComponentAtNode:Ea,createPortal:ya,createElement:Y,createContext:ct,createFactory:Sa,cloneElement:Oa,createRef:Ho,Fragment:de,isValidElement:Fn,isElement:La,isFragment:xa,isMemo:Ca,findDOMNode:Pa,Component:Ee,PureComponent:ir,memo:fa,forwardRef:Ds,flushSync:ka,unstable_batchedUpdates:Ra,StrictMode:Ta,Suspense:It,SuspenseList:Dt,lazy:ga,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wa};const ns=Object.freeze(Object.defineProperty({__proto__:null,Children:da,Component:Ee,Fragment:de,PureComponent:ir,StrictMode:Ta,Suspense:It,SuspenseList:Dt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wa,cloneElement:Oa,createContext:ct,createElement:Y,createFactory:Sa,createPortal:ya,createRef:Ho,default:Ac,findDOMNode:Pa,flushSync:ka,forwardRef:Ds,hydrate:ba,isElement:La,isFragment:xa,isMemo:Ca,isValidElement:Fn,lazy:ga,memo:fa,render:va,startTransition:As,unmountComponentAtNode:Ea,unstable_batchedUpdates:Ra,useCallback:Pt,useContext:je,useDebugValue:ks,useDeferredValue:Ns,useEffect:Q,useErrorBoundary:mc,useId:Ts,useImperativeHandle:Rs,useInsertionEffect:$s,useLayoutEffect:sn,useMemo:on,useReducer:dr,useRef:ie,useState:te,useSyncExternalStore:Nn,useTransition:Fs,version:Lc},Symbol.toStringTag,{value:"Module"}));var Aa=ct(void 0),ut=t=>{const e=je(Aa);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Nc=({client:t,children:e})=>(Q(()=>(t.mount(),()=>{t.unmount()}),[t]),_(Aa.Provider,{value:t,children:e})),Na=ct(!1),Fc=()=>je(Na);Na.Provider;function $c(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Dc=ct($c()),Ic=()=>je(Dc),Uc=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOn
1Mount=!1))},Mc=t=>{Q(()=>{t.clearReset()},[t])},jc=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:s})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(s&&t.data===void 0||ea(n,[t.error,r])),qc=t=>{if(t.suspense){const e=r=>r==="static"?r:Math.max(r??1e3,1e3),n=t.staleTime;t.staleTime=typeof n=="function"?(...r)=>e(n(...r)):e(n),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Hc=(t,e)=>t.isLoading&&t.isFetching&&!e,Bc=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Oi=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Vc(t,e,n){var u,g,m,d,p;const r=Fc(),s=Ic(),i=ut(),o=i.defaultQueryOptions(t);(g=(u=i.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||g.call(u,o),o._optimisticResults=r?"isRestoring":"optimistic",qc(o),Uc(o,s),Mc(s);const a=!i.getQueryCache().get(o.queryHash),[l]=te(()=>new e(i,o)),c=l.getOptimisticResult(o),f=!r&&t.subscribed!==!1;if(Nn(Pt(y=>{const w=f?l.subscribe(G.batchCalls(y)):fe;return l.updateResult(),w},[l,f]),()=>l.getCurrentResult()),Q(()=>{l.setOptions(o)},[o,l]),Bc(o,c))throw Oi(o,l,s);if(jc({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((d=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||d.call(m,o,c),o.experimental_prefetchInRender&&!Ot&&Hc(c,r)){const y=a?Oi(o,l,s):(p=i.getQueryCache().get(o.queryHash))==null?void 0:p.promise;y==null||y.catch(fe).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function Tt(t,e){return Vc(t,fc)}function kr(t,e){const n=ut(),[r]=te(()=>new pc(n,t));Q(()=>{r.setOptions(t)},[r,t]);const s=Nn(Pt(o=>r.subscribe(G.batchCalls(o)),[r]),()=>r.getCurrentResult()),i=Pt((o,a)=>{r.mutate(o,a).catch(fe)},[r]);if(s.error&&ea(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}const A=t=>typeof t=="string",dn=()=>{let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n},Ei=t=>t==null?"":""+t,zc=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},Kc=/###/g,Pi=t=>t&&t.indexOf("###")>-1?t.replace(Kc,"."):t,Ri=t=>!t||A(t),yn=(t,e,n)=>{const r=A(e)?e.split("."):e;let s=0;for(;s<r.length-1;){if(Ri(t))return{};const i=Pi(r[s]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++s}return Ri(t)?{}:{obj:t,k:Pi(r[s])}},ki=(t,e,n)=>{const{obj:r,k:s}=yn(t,e,Object);if(r!==void 0||e.length===1){r[s]=n;return}let i=e[e.length-1],o=e.slice(0,e.length-1),a=yn(t,o,Object);for(;a.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),a=yn(t,o,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Qc=(t,e,n,r)=>{const{obj:s,k:i}=yn(t,e,Object);s[i]=s[i]||[],s[i].push(n)},or=(t,e)=>{const{obj:n,k:r}=yn(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Wc=(t,e,n)=>{const r=or(t,n);return r!==void 0?r:or(e,n)},Fa=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?A(t[r])||t[r]instanceof String||A(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):Fa(t[r],e[r],n):t[r]=e[r]);return t},Nt=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Jc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Gc=t=>A(t)?t.replace(/[&<>"'\/]/g,e=>Jc[e]):t;class Yc{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;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 Xc=[" ",",","?","!",";"],Zc=new Yc(20),eu=(t,e,n)=>{e=e||"",n=n||"";const r=Xc.filter(o=>e.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=Zc.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(t);if(!i){const o=t.indexOf(n);o>0&&!s.test(t.substring(0,o))&&(i=!0)}return i},rs=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let s=t;for(let i=0;i<r.length;){if(!s||typeof s!="object")return;let o,a="";for(let l=i;l<r.length;++l)if(l!==i&&(a+=n),a+=r[l],o=s[a],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;i+=l-i+1;break}s=o}return s},bn=t=>t==null?void 0:t.replace("_","-"),tu={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var n,r;(r=(n=console==null?void 0:console[t])==null?void 0:n.apply)==null||r.call(n,console,e)}};class ar{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||tu,this.options=n,this.debug=n.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)}
vendor: 1,930 bytes, line 1
1forward(e,n,r,s){return s&&!this.debug?null:(A(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new ar(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new ar(this.logger,e)}}var Ue=new ar;class hr{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s.apply(s,[e,...n])})}}class Ti extends hr{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,s={}){var c,f;const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],r&&(Array.isArray(r)?a.push(...r):A(r)&&i?a.push(...r.split(i)):a.push(r)));const l=or(this.data,a);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=a[0],n=a[1],r=a.slice(2).join(".")),l||!o||!A(r)?l:rs((f=(c=this.data)==null?void 0:c[e])==null?void 0:f[n],r,i)}addResource(e,n,r,s,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,n];r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>
vendor: 1,776 bytes, line 1
1-1&&(a=e.split("."),s=n,n=a[1]),this.addNamespaces(n),ki(this.data,a,s),i.silent||this.emit("added",e,n,r,s)}addResources(e,n,r,s={silent:!1}){for(const i in r)(A(r[i])||Array.isArray(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});s.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,s,i,o={silent:!1,skipCopy:!1}){let a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=or(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?Fa(l,r,i):l={...l,...r},ki(this.data,a,l),o.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var $a={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,s){return t.forEach(i=>{var o;e=((o=this.processors[i])==null?void 0:o.process(e,n,r,s))??e}),e}};const Da=Symbol("i18next/PATH_KEY");function nu(){const t=[],e=Object.create(null);let n;return e.get=(r,s)=>{var i;return(i=n==null?void 0:n.revoke)==null||i.call(n),s===Da?t:(t.push(s),n=Proxy.revocable(r,e),n.proxy)},Proxy.revocable(Object.create(null),e).proxy}function ss(t,e){const{[Da]:n}=t(nu());return n.join((e==null?void 0:e.keySeparator)??".")}const Li={},Ai=t=>!A(t)&&typeof t!="boolean"&&typeof t!="number";class lr extends hr{constructor(e,n={}){super(),zc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ue.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const s=this.resolve(e,r);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!eu(e,r,s);if(o&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:A(i)?[i]:i};const c=e.split(r);(r!==s||r===s&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(s)}return{key:e,namespaces:A(i)?[i]:i}}translate(e,n,r){let s=typeof n=="object"?{...n}:n;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),e==null)return"";typeof e=="function"&&(e=ss(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]);const i=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],s),c=l[l.length-1];let f=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const u=s.lng||this.language,g=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode")return g?i?{res:`${c}${f}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(s)}:`${c}${f}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(s)}:a;const m=this.resolve(e,s);let d=m==null?void 0:m.res;const p=(m==null?void 0:m.usedKey)||a,y=(m==null?void 0:m.exactUsedKey)||a,w=["[object Number]","[object Function]","[object RegExp]"],S=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,C=s.count!==void 0&&!A(s.count),v=lr.hasDefaultValue(s),O=C?this.pluralResolver.getSuffix(u,s.count,s):"",P=s.ordinal&&C?this.pluralResolver.getSuffix(u,s.count,{ordinal:!1}):"",T=C&&!s.ordinal&&s.count===0,R=T&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${O}`]||s[`defaultValue${P}`]||s.defaultValue;let k=d;x&&!d&&v&&(k=R);const D=Ai(k),J=Object.prototype.toString.apply(k);if(x&&k&&D&&w.indexOf(J)<0&&!(A(S)&&Array.isArray(k))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const X=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,k,{...s,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(m.res=X,m.usedParams=this.getUsedParamsDetails(s),m):X}if(o){const X=Array.isArray(k),ae=X?[]:{},Un=X?y:p;for(const be in k)if(Object.prototype.hasOwnProperty.call(k,be)){const Z=`${Un}${o}${be}`;v&&!d?ae[be]=this.translate(Z,{...s,defaultValue:Ai(R)?R[be]:void 0,joinArrays:!1,ns:l}):ae[be]=this.translate(Z,{...s,joinArrays:!1,ns:l}),ae[be]===Z&&(ae[be]=k[be])}d=ae}}else if(x&&A(S)&&Array.isArray(d))d=d.join(S),d&&(d=this.extendTranslation(d,e,s,r));else{let X=!1,ae=!1;!this.isValidLookup(d)&&v&&(X=!0,d=R),this.isValidLookup(d)||(ae=!0,d=a);const be=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ae?void 0:d,Z=v&&R!==d&&this.options.updateMissing;if(ae||X||Z){if(this.logger.log(Z?"updateKey":"missingKey",u,c,a,Z?R:d),o){const le=this.resolve(a,{...s,keySeparator:!1});le&&le.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 Se=[];const Te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Te&&Te[0])for(let le=0;le<Te.length;le++)Se.push(Te[le]);else this.options.saveMissingTo==="all"?Se=this.languageUtils.toResolveHierarchy(s.lng||this.language):Se.push(s.lng||this.language);const un=(le,qe,Je)=>{var fn;const At=v&&Je!==d?Je:be;this.options.missingKeyHandler?this.options.missingKeyHandler(le,c,qe,At,Z,s):(fn=this.backendConnector)!=null&&fn.saveMissing&&this.backendConnector.saveMissing(le,c,qe,At,Z,s),this.emit
vendor: 26,677 bytes, line 1
1("missingKey",le,c,qe,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?Se.forEach(le=>{const qe=this.pluralResolver.getSuffixes(le,s);T&&s[`defaultValue${this.options.pluralSeparator}zero`]&&qe.indexOf(`${this.options.pluralSeparator}zero`)<0&&qe.push(`${this.options.pluralSeparator}zero`),qe.forEach(Je=>{un([le],a+Je,s[`defaultValue${Je}`]||R)})}):un(Se,a,R))}d=this.extendTranslation(d,e,s,m,r),ae&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${c}${f}${a}`),(ae||X)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${f}${a}`:a,X?d:void 0,s))}return i?(m.res=d,m.usedParams=this.getUsedParamsDetails(s),m):d}extendTranslation(e,n,r,s,i){var l,c;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=A(e)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(f){const m=e.match(this.interpolator.nestingRegexp);u=m&&m.length}let g=r.replace&&!A(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,r.lng||this.language||s.usedLng,r),f){const m=e.match(this.interpolator.nestingRegexp),d=m&&m.length;u<d&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...m)=>(i==null?void 0:i[0])===m[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):this.translate(...m,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,a=A(o)?[o]:o;return e!=null&&(a!=null&&a.length)&&r.applyPostProcessor!==!1&&(e=$a.handle(a,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,s,i,o,a;return A(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),f=c.key;s=f;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const g=n.count!==void 0&&!A(n.count),m=g&&!n.ordinal&&n.count===0,d=n.context!==void 0&&(A(n.context)||typeof n.context=="number")&&n.context!=="",p=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(y=>{var w,S;this.isValidLookup(r)||(a=y,!Li[`${p[0]}-${y}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((S=this.utils)!=null&&S.hasLoadedNamespace(a))&&(Li[`${p[0]}-${y}`]=!0,this.logger.warn(`key "${s}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),p.forEach(x=>{var O;if(this.isValidLookup(r))return;o=x;const C=[f];if((O=this.i18nFormat)!=null&&O.addLookupKeys)this.i18nFormat.addLookupKeys(C,f,x,y,n);else{let P;g&&(P=this.pluralResolver.getSuffix(x,n.count,n));const T=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(n.ordinal&&P.indexOf(R)===0&&C.push(f+P.replace(R,this.options.pluralSeparator)),C.push(f+P),m&&C.push(f+T)),d){const k=`${f}${this.options.contextSeparator||"_"}${n.context}`;C.push(k),g&&(n.ordinal&&P.indexOf(R)===0&&C.push(k+P.replace(R,this.options.pluralSeparator)),C.push(k+P),m&&C.push(k+T))}}let v;for(;v=C.pop();)this.isValidLookup(r)||(i=v,r=this.getResource(x,y,v,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,s={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,n,r,s):this.resourceStore.getResource(e,n,r,s)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!A(e.replace);let s=r?e.replace:e;if(r&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class Ni{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ue.create("languageUtils")}getScriptPartFromCode(e){if(e=bn(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=bn(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(A(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(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 n;return e.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const s=this.getScriptPartFromCode(r);if(this.isSupportedCode(s))return n=s;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),A(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return A(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):A(e)&&i(this.formatLanguageCode(e)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}const Fi={zero:0,one:1,two:2,few:3,many:4,other:5},$i={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ru{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Ue.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=bn(e==="dev"?"en":e),s=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),$i;if(!e.match(/-|_/))return $i;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,n)}return this.pluralRulesCache[i]=o,o}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(s=>`${n}${s}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((s,i)=>Fi[s]-Fi[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,n,r={}){const s=this.getRule(e,r);return s?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const Di=(t,e,n,r=".",s=!0)=>{let i=Wc(t,e,n);return!i&&s&&A(n)&&(i=rs(t,n,r),i===void 0&&(i=rs(e,n,r))),i},Tr=t=>t.replace(/\$/g,"$$$$");class su{constructor(e={}){var n;this.logger=Ue.create("interpolator"),this.options=e,this.format=((n=e==null?void 0:e.interpolation)==null?void 0:n.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:g,nestingPrefixEscaped:m,nestingSuffix:d,nestingSuffixEscaped:p,nestingOptionsSeparator:y,maxReplaces:w,alwaysFormat:S}=e.interpolation;this.escape=n!==void 0?n:Gc,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?Nt(i):o||"{{",this.suffix=a?Nt(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=g?Nt(g):m||Nt("$t("),this.nestingSuffix=d?Nt(d):p||Nt(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=w||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):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,n,r,s){var m;let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=d=>{if(d.indexOf(this.formatSeparator)<0){const S=Di(n,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...s,...n,interpolationkey:d}):S}const p=d.split(this.formatSeparator),y=p.shift().trim(),w=p.join(this.formatSeparator).trim();return this.format(Di(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...s,...n,interpolationkey:y})};this.resetRegExp();const f=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((m=s==null?void 0:s.interpolation)==null?void 0:m.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>Tr(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?Tr(this.escape(d)):Tr(d)}].forEach(d=>{for(a=0;i=d.regex.exec(e);){const p=i[1].trim();if(o=c(p),o===void 0)if(typeof f=="function"){const w=f(e,i,s);o=A(w)?w:""}else if(s&&Object.prototype.hasOwnProperty.call(s,p))o="";else if(u){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),o="";else!A(o)&&!this.useRawValueToEscape&&(o=Ei(o));const y=d.safeValue(o);if(e=e.replace(i[0],y),u?(d.regex.lastIndex+=o.length,d.regex.lastIndex-=i[0].length):d.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n,r={}){let s,i,o;const a=(l,c)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const u=l.split(new RegExp(`${f}[ ]*{`));let g=`{${u[1]}`;l=u[0],g=this.interpolate(g,o);const m=g.match(/'/g),d=g.match(/"/g);(((m==null?void 0:m.length)??0)%2===0&&!d||d.length%2!==0)&&(g=g.replace(/'/g,'"'));try{o=JSON.parse(g),c&&(o={...c,...o})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,p),`${l}${f}${g}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;s=this.nestingRegexp.exec(e);){let l=[];o={...r},o=o.replace&&!A(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const c=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(c!==-1&&(l=s[1].slice(c).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),s[1]=s[1].slice(0,c)),i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===e&&!A(i))return i;A(i)||(i=Ei(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),l.length&&(i=l.reduce((f,u)=>this.format(f,u,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const iu=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);e==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(o){const[a,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),f=a.trim();n[f]||(n[f]=c),c==="false"&&(n[f]=!1),c==="true"&&(n[f]=!0),isNaN(c)||(n[f]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},Ii=t=>{const e={};return(n,r,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const o=r+JSON.stringify(i);let a=e[o];return a||(a=t(bn(r),s),e[o]=a),a(n)}},ou=t=>(e,n,r)=>t(bn(n),r)(e);class au{constructor(e={}){this.logger=Ue.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Ii:ou;this.formats={number:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i});return a=>o.format(a)}),currency:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i,style:"currency"});return a=>o.format(a)}),datetime:r((s,i)=>{const o=new Intl.DateTimeFormat(s,{...i});return a=>o.format(a)}),relativetime:r((s,i)=>{const o=new Intl.RelativeTimeFormat(s,{...i});return a=>o.format(a,i.range||"day")}),list:r((s,i)=>{const o=new Intl.ListFormat(s,{...i});return a=>o.format(a)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Ii(n)}format(e,n,r,s={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{var u;const{formatName:c,formatOptions:f}=iu(l);if(this.formats[c]){let g=a;try{const m=((u=s==null?void 0:s.formatParams)==null?void 0:u[s.interpolationkey])||{},d=m.locale||m.lng||s.locale||s.lng||r;g=this.formats[c](a,d,{...f,...s,...m})}catch(m){this.logger.warn(m)}return g}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const lu=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class cu extends hr{constructor(e,n,r,s={}){var i,o;super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Ue.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(o=(i=this.backend)==null?void 0:i.init)==null||o.call(i,r,s.backend,s)}queueLoad(e,n,r,s){const i={},o={},a={},l={};return e.forEach(c=>{let f=!0;n.forEach(u=>{const g=`${c}|${u}`;!r.reload&&this.store.hasResourceBundle(c,u)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?o[g]===void 0&&(o[g]=!0):(this.state[g]=1,f=!1,o[g]===void 0&&(o[g]=!0),i[g]===void 0&&(i[g]=!0),l[u]===void 0&&(l[u]=!0)))}),f||(a[c]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const s=e.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),!n&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const a={};this.queue.forEach(l=>{Qc(l.loaded,[i],o),lu(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const f=l.loaded[c];f.length&&f.forEach(u=>{a[c][u]===void 0&&(a[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r,s=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,s+1,i*2,o)},i);return}o(c,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(f=>a(null,f)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();A(e)&&(e=this.languageUtils.toResolveHierarchy(e)),A(n)&&(n=[n]);const i=this.queueLoad(e,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(e,o,a)})}saveMissing(e,n,r,s,i,o={},a=()=>{}){var l,c,f,u,g;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((u=(f=this.services)==null?void 0:f.utils)!=null&&u.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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((g=this.backend)!=null&&g.create){const m={...o,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let p;d.length===5?p=d(e,n,r,s,m):p=d(e,n,r,s),p&&typeof p.then=="function"?p.then(y=>a(null,y)).catch(a):a(null,p)}catch(p){a(p)}else d(e,n,r,s,a,m)}!e||!e[0]||this.store.addResource(e[0],n,r,s)}}}const Ui=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),A(t[1])&&(e.defaultValue=t[1]),A(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Mi=t=>{var e,n;return A(t.ns)&&(t.ns=[t.ns]),A(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),A(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((n=(e=t.supportedLngs)==null?void 0:e.indexOf)==null?void 0:n.call(e,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},Hn=()=>{},uu=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class wn extends hr{constructor(e={},n){if(super(),this.options=Mi(e),this.services={},this.logger=Ue,this.modules={external:[]},uu(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(A(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=Ui();this.options={...r,...this.options,...Mi(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 s=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Ue.init(s(this.modules.logger),this.options):Ue.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=au;const f=new Ni(this.options);this.store=new Ti(this.options.resources,this.options);const u=this.services;u.logger=Ue,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new ru(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("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)&&(u.formatter=s(c),u.formatter.init&&u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new su(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new cu(s(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(m,...d)=>{this.emit(m,...d)}),this.modules.languageDetector&&(u.languageDetector=s(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=s(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new lr(this.services,this.options),this.translator.on("*",(m,...d)=>{this.emit(m,...d)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Hn),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]=(...f)=>this.store[c](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...f)=>(this.store[c](...f),this)});const a=dn(),l=()=>{const c=(f,u)=>{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),a.resolve(u),n(f,u)};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?l():setTimeout(l,0),a}loadResources(e,n=Hn){var i,o;let r=n;const s=A(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(o=(i=this.options.preload)==null?void 0:i.forEach)==null||o.call(i,c=>l(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(e,n,r){const s=dn();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Hn),this.services.backendConnector.reload(e,n,i=>{s.resolve(),r(i)}),s}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"&&$a.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 n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-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,n){this.isLanguageChangingTo=e;const r=dn();
vendor: 2,135 bytes, line 1
1this.emit("languageChanging",e);const s=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,l)=>{l?this.isLanguageChangingTo===e&&(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(a,(...c)=>this.t(...c))},o=a=>{var f,u;!e&&!a&&this.services.languageDetector&&(a=[]);const l=A(a)?a:a&&a[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(A(a)?[a]:a);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),(u=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||u.call(f,c)),this.loadResources(c,g=>{i(g,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,n,r){const s=(i,o,...a)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([i,o].concat(a)):l={...o},l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||s.keyPrefix);const c=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(i)?f=i.map(u=>(typeof u=="function"&&(u=ss(u,{...this.options,...o})),`${l.keyPrefix}${c}${u}`)):(typeof i=="function"&&(i=ss(i,{...this.options,...o})),f=l.keyPrefix?`${l.keyPrefix}${c}${i}`:i),this.t(f,l)};return A(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(...e){var n;return(n=this.translator)==null?void 0:n.translate(...e)}exists(...e){var n;return(n=this.translator)==null?void 0:n.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
vendor: 4,578 bytes, line 1
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}loadNamespaces(e,n){const r=dn();return this.options.ns?(A(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=dn();A(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["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=((i=this.services)==null?void 0:i.languageUtils)||new Ni(Ui());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){return new wn(e,n)}cloneInstance(e={},n=Hn){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new wn(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const a=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((f,u)=>(f[u]={...l[c][u]},f),l[c]),l),{});i.store=new Ti(a,s),i.services.resourceStore=i.store}return i.translator=new lr(i.services,s),i.translator.on("*",(a,...l)=>{i.emit(a,...l)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ne=wn.createInstance();ne.createInstance=wn.createInstance;ne.createInstance;ne.dir;ne.init;ne.loadResources;ne.reloadResources;ne.use;ne.changeLanguage;ne.getFixedT;ne.t;ne.exists;ne.setDefaultNamespace;ne.hasLoadedNamespace;ne.loadNamespaces;ne.loadLanguages;function fu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function du(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}const hu=(t,e,n,r)=>{var i,o,a,l;const s=[n,{code:e,...r||{}}];if((o=(i=t==null?void 0:t.services)==null?void 0:i.logger)!=null&&o.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);xt(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(l=(a=t==null?void 0:t.services)==null?void 0:a.logger)!=null&&l.warn?t.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},ji={},is=(t,e,n,r)=>{xt(n)&&ji[n]||(xt(n)&&(ji[n]=new Date),hu(t,e,n,r))},Ia=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},os=(t,e,n)=>{t.loadNamespaces(e,Ia(t,n))},qi=(t,e,n,r)=>{if(xt(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return os(t,n,r);
1n.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(e,Ia(t,r))},pu=(t,e,n={})=>!e.languages||!e.languages.length?(is(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,t))return!1}}),xt=t=>typeof t=="string",mu=t=>typeof t=="object"&&t!==null,gu=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,yu={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},_u=t=>yu[t],vu=t=>t.replace(gu,_u);let as={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:vu};const bu=(t={})=>{as={...as,...t}},wu=()=>as;let Ua;const Su=t=>{Ua=t},xu=()=>Ua,Cu={type:"3rdParty",init(t){bu(t.options.react),Su(t)}},Ma=ct();class Ou{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Eu=(t,e)=>{const n=ie();return Q(()=>{n.current=t},[t,e]),n.current},ja=(t,e,n,r)=>t.getFixedT(e,n,r),Pu=(t,e,n,r)=>Pt(ja(t,e,n,r),[t,e,n,r]),Re=(t,e={})=>{var C,v,O,P;const{i18n:n}=e,{i18n:r,defaultNS:s}=je(Ma)||{},i=n||r||xu();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Ou),!i){is(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const T=(k,D)=>xt(D)?D:mu(D)&&xt(D.defaultValue)?D.defaultValue:Array.isArray(k)?k[k.length-1]:k,R=[T,{},!1];return R.t=T,R.i18n={},R.ready=!1,R}(C=i.options.react)!=null&&C.wait&&is(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...wu(),...i.options.react,...e},{useSuspense:a,keyPrefix:l}=o;let c=s||((v=i.options)==null?void 0:v.defaultNS);c=xt(c)?[c]:c||["translation"],(P=(O=i.reportNamespaces).addUsedNamespaces)==null||P.call(O,c);const f=(i.isInitialized||i.initializedStoreOnce)&&c.every(T=>pu(T,i,o)),u=Pu(i,e.lng||null,o.nsMode==="fallback"?c:c[0],l),g=()=>u,m=()=>ja(i,e.lng||null,o.nsMode==="fallback"?c:c[0],l),[d,p]=te(g);let y=c.join();e.lng&&(y=`${e.lng}${y}`);const w=Eu(y),S=ie(!0);Q(()=>{const{bindI18n:T,bindI18nStore:R}=o;S.current=!0,!f&&!a&&(e.lng?qi(i,e.lng,c,()=>{S.current&&p(m)}):os(i,c,()=>{S.current&&p(m)})),f&&w&&w!==y&&S.current&&p(m);const k=()=>{S.current&&p(m)};return T&&(i==null||i.on(T,k)),R&&(i==null||i.store.on(R,k)),()=>{S.current=!1,i&&T&&(T==null||T.split(" ").forEach(D=>i.off(D,k))),R&&i&&R.split(" ").forEach(D=>i.store.off(D,k))}},[i,y]),Q(()=>{S.current&&f&&p(g)},[i,l,f]);const x=[d,i,f];if(x.t=d,x.i18n=i,x.ready=f,f||!f&&!a)return x;throw new Promise(T=>{e.lng?qi(i,e.lng,c,()=>T()):os(i,c,()=>T())})};function Ru({i18n:t,defaultNS:e,children:n}){const r=on(()=>({i18n:t,defaultNS:e}),[t,e]);return Y(Ma.Provider,{value:r},n)}function ku(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Tu(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Lu=function(){function t(n){var r=this;this._insertTag=function(s){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,i),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Tu(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ku(s);try{i.insertRule(r,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++}
vendor: 7,315 bytes, line 1
1,e.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},t}(),re="-ms-",cr="-moz-",U="-webkit-",qa="comm",Us="rule",Ms="decl",Au="@import",Ha="@keyframes",Nu="@layer",Fu=Math.abs,pr=String.fromCharCode,$u=Object.assign;function Du(t,e){return ee(t,0)^45?(((e<<2^ee(t,0))<<2^ee(t,1))<<2^ee(t,2))<<2^ee(t,3):0}function Ba(t){return t.trim()}function Iu(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,n){return t.replace(e,n)}function ls(t,e){return t.indexOf(e)}function ee(t,e){return t.charCodeAt(e)|0}function Sn(t,e,n){return t.slice(e,n)}function $e(t){return t.length}function js(t){return t.length}function Bn(t,e){return e.push(t),t}function Uu(t,e){return t.map(e).join("")}var mr=1,tn=1,Va=0,ye=0,W=0,an="";function gr(t,e,n,r,s,i,o){return{value:t,root:e,parent:n,type:r,props:s,children:i,line:mr,column:tn,length:o,return:""}}function hn(t,e){return $u(gr("",null,null,"",null,null,0),t,{length:-t.length},e)}function Mu(){return W}function ju(){return W=ye>0?ee(an,--ye):0,tn--,W===10&&(tn=1,mr--),W}function ve(){return W=ye<Va?ee(an,ye++):0,tn++,W===10&&(tn=1,mr++),W}function Me(){return ee(an,ye)}function Jn(){return ye}function $n(t,e){return Sn(an,t,e)}function xn(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function za(t){return mr=tn=1,Va=$e(an=t),ye=0,[]}function Ka(t){return an="",t}function Gn(t){return Ba($n(ye-1,cs(t===91?t+2:t===40?t+1:t)))}function qu(t){for(;(W=Me())&&W<33;)ve();return xn(t)>2||xn(W)>3?"":" "}function Hu(t,e){for(;--e&&ve()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return $n(t,Jn()+(e<6&&Me()==32&&ve()==32))}function cs(t){for(;ve();)switch(W){case t:return ye;case 34:case 39:t!==34&&t!==39&&cs(W);break;case 40:t===41&&cs(t);break;case 92:ve();break}return ye}function Bu(t,e){for(;ve()&&t+W!==57;)if(t+W===84&&Me()===47)break;return"/*"+$n(e,ye-1)+"*"+pr(t===47?t:ve())}function Vu(t){for(;!xn(Me());)ve();return $n(t,ye)}function zu(t){return Ka(Yn("",null,null,null,[""],t=za(t),0,[0],t))}function Yn(t,e,n,r,s,i,o,a,l){for(var c=0,f=0,u=o,g=0,m=0,d=0,p=1,y=1,w=1,S=0,x="",C=s,v=i,O=r,P=x;y;)switch(d=S,S=ve()){case 40:if(d!=108&&ee(P,u-1)==58){ls(P+=M(Gn(S),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:P+=Gn(S);break;case 9:case 10:case 13:case 32:P+=qu(d);break;case 92:P+=Hu(Jn()-1,7);continue;case 47:switch(Me()){case 42:case 47:Bn(Ku(Bu(ve(),Jn()),e,n),l);break;default:P+="/"}break;case 123*p:a[c++]=$e(P)*w;case 125*p:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+f:w==-1&&(P=M(P,/\f/g,"")),m>0&&$e(P)-u&&Bn(m>32?Bi(P+";",r,n,u-1):Bi(M(P," ","")+";",r,n,u-2),l);break;case 59:P+=";";default:if(Bn(O=Hi(P,e,n,c,f,s,a,x,C=[],v=[],u),i),S===123)if(f===0)Yn(P,e,O,O,C,i,u,a,v);else switch(g===99&&ee(P,3)===110?100:g){case 100:case 108:case 109:case 115:Yn(t,O,O,r&&Bn(Hi(t,O,O,0,0,s,a,x,s,C=[],u),v),s,v,u,a,r?C:v);break;default:Yn(P,O,O,O,[""],v,0,a,v)}}c=f=m=0,p=w=1,x=P="",u=o;break;case 58:u=1+$e(P),m=d;default:if(p<1){if(S==123)--p;else if(S==125&&p++==0&&ju()==125)continue}switch(P+=pr(S),S*p){case 38:w=f>0?1:(P+="\f",-1);break;case 44:a[c++]=($e(P)-1)*w,w=1;break;case 64:Me()===45&&(P+=Gn(ve())),g=Me(),f=u=$e(x=P+=Vu(Jn())),S++;break;case 45:d===45&&$e(P)==2&&(p=0)}}return i}function Hi(t,e,n,r,s,i,o,a,l,c,f){for(var u=s-1,g=s===0?i:[""],m=js(g),d=0,p=0,y=0;d<r;++d)for(var w=0,S=Sn(t,u+1,u=Fu(p=o[d])),x=t;w<m;++w)(x=Ba(p>0?g[w]+" "+S:M(S,/&\f/g,g[w])))&&(l[y++]=x);return gr(t,e,n,s===0?Us:a,l,c,f)}function Ku(t,e,n){return gr(t,e,n,qa,pr(Mu()),Sn(t,2,-2),0)}function Bi(t,e,n,r){return gr(t,e,n,Ms,Sn(t,0,r),Sn(t,r+1,-1),r)}function Ut(t,e){for(var n="",r=js(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function Qu(t,e,n,r){switch(t.type){case Nu:if(t.children.length)break;case Au:case Ms:return t.return=t.return||t.value;case qa:return"";case Ha:return t.return=t.value+"{"+Ut(t.children,r)+"}";case Us:t.value=t.props.join(",")}return $e(n=Ut(t.children,r))?t.return=t.value+"{"+n+"}":""}function Wu(t){var e=js(t);return function(n,r,s,i){for(var o="",a=0;a<e;a++)o+=t[a](n,r,s,i)||"";return o}}function Ju(t){return function(e){e.root||(e=e.return)&&t(e)}}function Qa(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Gu=function(e,n,r){for(var s=0,i=0;s=i,i=Me(),s===38&&i===12&&(n[r]=1),!xn(i);)ve();return $n(e,ye)},Yu=function(e,n){var r=-1,s=44;do switch(xn(s)){case 0:s===38&&Me()===12&&(n[r]=1),e[r]+=Gu(ye-1,n,r);break;case 2:e[r]+=Gn(s);break;case 4:if(s===44){e[++r]=Me()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=pr(s)}while(s=ve());return e},Xu=function(e,n){return Ka(Yu(za(e),n))},Vi=new WeakMap,Zu=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Vi.get(r))&&!s){Vi.set(e,!0);for(var i=[],o=Xu(n,i),a=r.props,l=0,c=0;l<o.length;l++)for(var f=0;f<a.length;f++,c++)e.props[c]=i[l]?o[l].replace(/&\f/g,a[f]):a[f]+" "+o[l]}}},ef=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Wa(t,e){switch(Du(t,e)){case 5103:return U+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return U+t+cr+t+re+t+t;case 6828:case 4268:return U+t+re+t+t;case 6165:return U+t+re+"flex-"+t+t;case 5187:return U+t+M(t,/(\w+).+(:[^]+)/,U+"box-$1$2"+re+"flex-$1$2")+t;case 5443:return U+t+re+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return U+t+re+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return U+t+re+M(t,"shrink","negative")+t;case 5292:return U+t+re+M(t,"basis","preferred-size")+t;case 6060:return U+"box-"+M(t,"-grow","")+U+t+re+M(t,"grow","positive")+t;case 4554:return U+M(t,/([^-])(transform)/g,"$1"+U+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,U+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($e(t)-1-e>6)switch(ee(t,e+1)){case 109:if(ee(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+cr+(ee(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ls(t,"stretch")?Wa(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ee(t,e+1)!==115)break;case 6444:switch(ee(t,$e(t)-3-(~ls(t,"!important")&&10))){case 107:return M(t,":",":"+U)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(ee(t,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+re+"$2box$3")+t}break;case 5936:switch(ee(t,e+11)){case 114:return U+t+re+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 5,242 bytes, lines 1-8
1case 108:return U+t+re+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return U+t+re+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return U+t+re+t+t}return t}var tf=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case Ms:e.return=Wa(e.value,e.length);break;case Ha:return Ut([hn(e,{value:M(e.value,"@","@"+U)})],s);case Us:if(e.length)return Uu(e.props,function(i){switch(Iu(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ut([hn(e,{props:[M(i,/:(read-\w+)/,":"+cr+"$1")]})],s);case"::placeholder":return Ut([hn(e,{props:[M(i,/:(plac\w+)/,":"+U+"input-$1")]}),hn(e,{props:[M(i,/:(plac\w+)/,":"+cr+"$1")]}),hn(e,{props:[M(i,/:(plac\w+)/,re+"input-$1")]})],s)}return""})}},nf=[tf],rf=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var s=e.stylisPlugins||nf,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),w=1;w<y.length;w++)i[y[w]]=!0;a.push(p)});var l,c=[Zu,ef];{var f,u=[Qu,Ju(function(p){f.insert(p)})],g=Wu(c.concat(s,u)),m=function(y){return Ut(zu(y),g)};l=function(y,w,S,x){f=S,m(y?y+"{"+w.styles+"}":w.styles),x&&(d.inserted[w.name]=!0)}}var d={key:n,sheet:new Lu({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return d.sheet.hydrate(a),d};function us(){return us=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},us.apply(null,arguments)}var Lr={exports:{}},j={};/** @license React v16.13.1
2 * react-is.production.min.js
3 *
4 * Copyright (c) Facebook, Inc. and its affiliates.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the root directory of this source tree.
8 */var zi;function sf(){if(zi)return j;zi=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x(v){if(typeof v=="object"&&v!==null){var O=v.$$typeof;switch(O){case e:switch(v=v.type,v){case l:case c:case r:case i:case s:case u:return v;default:switch(v=v&&v.$$typeof,v){case a:case f:case d:case m:case o:return v;default:return O}}case n:return O}}}function C(v){return x(v)===c}return j.AsyncMode=l,j.ConcurrentMode=c,j.ContextConsumer=a,j.ContextProvider=o,j.Element=e,j.ForwardRef=f,j.Fragment=r,j.Lazy=d,j.Memo=m,j.Portal=n,j.Profiler=i,j.StrictMode=s,j.Suspense=u,j.isAsyncMode=function(v){return C(v)||x(v)===l},j.isConcurrentMode=C,j.isContextConsumer=function(v){return x(v)===a},j.isContextProvider=function(v){return x(v)===o},j.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},j.isForwardRef=function(v){return x(v)===f},j.isFragment=function(v){return x(v)===r},j.isLazy=function(v){return x(v)===d},j.isMemo=function(v){return x(v)===m},j.isPortal=function(v){return x(v)===n},j.isProfiler=function(v){return x(v)===i},j.isStrictMode=function(v){return x(v)===s},j.isSuspense=function(v){return x(v)===u},j.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===c||v===i||v===s||v===u||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===m||v.$$typeof===o||v.$$typeof===a||v.$$typeof===f||v.$$typeof===y||v.$$typeof===w||v.$$typeof===S||v.$$typeof===p)},j.typeOf=x,j}var Ki;function of(){return Ki||(Ki=1,Lr.exports=sf()),Lr.exports}var Ar,Qi;function af(){if(Qi)return Ar;Qi=1;var t=of(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[t.ForwardRef]=r,i[t.Memo]=s;function o(d){return t.isMemo(d)?s:i[d.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,g=Object.prototype;function m(d,p,y){if(typeof p!="string"){if(g){var w=u(p);w&&w!==g&&m(d,w,y)}var S=l(p);c&&(S=S.concat(c(p)));for(var x=o(d),C=o(p),v=0;v<S.length;++v){var O=S[v];
vendor: 5,964 bytes, line 8
8if(!n[O]&&!(y&&y[O])&&!(C&&C[O])&&!(x&&x[O])){var P=f(p,O);try{a(d,O,P)}catch{}}}}return d}return Ar=m,Ar}af();var lf=!0;function Ja(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):s&&(r+=s+" ")}),r}var qs=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||lf===!1)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},Ga=function(e,n,r){qs(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+s:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function cf(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var uf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ff=/[A-Z]|^ms/g,df=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ya=function(e){return e.charCodeAt(1)===45},Wi=function(e){return e!=null&&typeof e!="boolean"},Nr=Qa(function(t){return Ya(t)?t:t.replace(ff,"-$&").toLowerCase()}),Ji=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(df,function(r,s,i){return De={name:s,styles:i,next:De},s})}return uf[e]!==1&&!Ya(e)&&typeof n=="number"&&n!==0?n+"px":n};function Cn(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return De={name:s.name,styles:s.styles,next:De},s.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)De={name:o.name,styles:o.styles,next:De},o=o.next;var a=i.styles+";";return a}return hf(t,e,n)}case"function":{if(t!==void 0){var l=De,c=n(t);return De=l,Cn(t,e,c)}break}}var f=n;if(e==null)return f;var u=e[f];return u!==void 0?u:f}function hf(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Cn(t,e,n[s])+";";else for(var i in n){var o=n[i];if(typeof o!="object"){var a=o;e!=null&&e[a]!==void 0?r+=i+"{"+e[a]+"}":Wi(a)&&(r+=Nr(i)+":"+Ji(i,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var l=0;l<o.length;l++)Wi(o[l])&&(r+=Nr(i)+":"+Ji(i,o[l])+";");else{var c=Cn(t,e,o);switch(i){case"animation":case"animationName":{r+=Nr(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var Gi=/label:\s*([^\s;{]+)\s*(;|$)/g,De;function Hs(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,s="";De=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,s+=Cn(n,e,i);else{var o=i;s+=o[0]}for(var a=1;a<t.length;a++)if(s+=Cn(n,e,t[a]),r){var l=i;s+=l[a]}Gi.lastIndex=0;for(var c="",f;(f=Gi.exec(s))!==null;)c+="-"+f[1];var u=cf(s)+c;return{name:u,styles:s,next:De}}var pf=function(e){return e()},mf=ns.useInsertionEffect?ns.useInsertionEffect:!1,Xa=mf||pf,Za=ct(typeof HTMLElement<"u"?rf({key:"css"}):null);Za.Provider;var el=function(e){return Ds(function(n,r){var s=je(Za);return e(n,s,r)})},tl=ct({}),Bs={}.hasOwnProperty,fs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gf=function(e,n){var r={};for(var s in n)Bs.call(n,s)&&(r[s]=n[s]);return r[fs]=e,r},yf=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return qs(n,r,s),Xa(function(){return Ga(n,r,s)}),null},_f=el(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[fs],i=[r],o="";typeof t.className=="string"?o=Ja(e.registered,i,t.className):t.className!=null&&(o=t.className+" ");var a=Hs(i,void 0,je(tl));o+=e.key+"-"+a.name;var l={};for(var c in t)Bs.call(t,c)&&c!=="css"&&c!==fs&&(l[c]=t[c]);return l.className=o,n&&(l.ref=n),Y(de,null,Y(yf,{cache:e,serialized:a,isStringTag:typeof s=="string"}),Y(s,l))}),vf=_f,Yi=function(e,n){var r=arguments;if(n==null||!Bs.call(n,"css"))return Y.apply(void 0,r);var s=r.length,i=new Array(s);i[0]=vf,i[1]=gf(e,n);for(var o=2;o<s;o++)i[o]=r[o];return Y.apply(null,i)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Yi||(Yi={}));function Vs(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Hs(e)}var bf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
8ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wf=Qa(function(t){return bf.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Sf=wf,xf=function(e){return e!=="theme"},Xi=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Sf:xf},Zi=function(e,n,r){var s;if(n){var i=n.shouldForwardProp;s=e.__emotion_forwardProp&&i?function(o){return e.__emotion_forwardProp(o)&&i(o)}:i}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},Cf=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return qs(n,r,s),Xa(function(){return Ga(n,r,s)}),null},Of=function t(e,n){var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,i,o;n!==void 0&&(i=n.label,o=n.target);var a=Zi(e,n,r),l=a||Xi(s),c=!l("as");return function(){var f=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)u.push.apply(u,f);else{var g=f[0];u.push(g[0]);for(var m=f.length,d=1;d<m;d++)u.push(f[d],g[d])}var p=el(function(y,w,S){var x=c&&y.as||s,C="",v=[],O=y;if(y.theme==null){O={};for(var P in y)O[P]=y[P];O.theme=je(tl)}typeof y.className=="string"?C=Ja(w.registered,v,y.className):y.className!=null&&(C=y.className+" ");var T=Hs(u.concat(v),w.registered,O);C+=w.key+"-"+T.name,o!==void 0&&(C+=" "+o);var R=c&&a===void 0?Xi(x):l,k={};for(var D in y)c&&D==="as"||R(D)&&(k[D]=y[D]);return k.className=C,S&&(k.ref=S),Y(de,null,Y(Cf,{cache:w,serialized:T,isStringTag:typeof x=="str
8ing"}),Y(x,k))});return p.displayName=i!==void 0?i:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",p.defaultProps=e.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=u,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return"."+o}}),p.withComponent=function(y,w){var S=t(y,us({},n,w,{shouldForwardProp:Zi(p,w,!0)}));return S.apply(void 0,u)},p}},Ef=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],B=Of.bind(null);Ef.forEach(function(t){B[t]=B(t)});const nl=(t,e,n)=>{t[e]=n},rl=t=>t==null||t===""?!0:Array.isArray(t)&&t.length===0,Pf=t=>t,sl=t=>{if(!t)return null;const e={};return Object.keys(t).forEach(n=>{const r=t[n];rl(r)||nl(e,n,r)}),Object.keys(e).length>0?e:null},il=(t,e={})=>sl({...t??{},...e}),Rf=t=>t.isEmpty??rl,kf=nl,ol=t=>Object.entries(t),Tf=t=>t instanceof URLSearchParams?new URLSearchParams(t):typeof t=="string"?new URLSearchParams(t):new URLSearchParams(window.location.search),Lf=t=>t instanceof URL?new URL(t.toString()):typeof t=="string"?new URL(t,window.location.href):new URL(window.location.href),Af=(t,e)=>t.getAll(e).map(n=>n.trim()).filter(n=>n.length>0),Nf=t=>{if(t==null)return[];if(Array.isArray(t))return t.map(e=>e.trim()).filter(e=>e.length>0);if(typeof t=="string"){const e=t.trim();return e?[e]:[]}return[]},Ff=(t,e,n)=>{const r=n.param??e,[s,...i]=Af(t,r);if(!s)return;const o=[s,...i];return n.parse(o,t)},$f=(t,e,n,r)=>{const s=r.param??n;t.searchParams.delete(s);const i=e==null?void 0:e[n];i!==void 0&&(Rf(r)(i)||Nf(r.serialize(i,e)).forEach(o=>t.searchParams.append(s,o)))},Df=t=>{const{config:e,search:n}=t,r=Tf(n),s={};return ol(e).forEach(([i,o])=>{const a=Ff(r,i,o);a!==void 0&&kf(s,i,a)}),s},If=(t,e)=>{const{config:n,url:r}=e,s=Lf(r);return ol(n).forEach(([i,o])=>{$f(s,t,i,o)}),s},Uf=(t,e)=>{const{history:n="push"}=e,r=If(t,e),s=`${window.location.pathname}${window.location.search}${window.location.hash}`,i=`${r.pathname}${r.search}${r.hash}`;if(s===i)return;const o=n==="replace"?"replaceState":"pushState";window.history[o](window.history.state,"",i)},Mf=t=>{const{config:e,initialState:n,mergeState:r=il,search:s}=t,i=Df({config:e,search:s}
8);return r(n,i)},jf=t=>{const{config:e,initialState:n,enabled:r=!0,mergeState:s=il,history:i="push"}=t,o=ie(e),a=ie(n??null),l=ie(r),c=ie(s),f=ie(i),u=ie(!1),g=ie(!1);Q(()=>{o.current=e},[e]),Q(()=>{a.current=n??null},[n]),Q(()=>{l.current=r},[r]),Q(()=>{c.current=s},[s]),Q(()=>{f.current=i},[i]);const m=()=>l.current?Mf({config:o.current,initialState:a.current,mergeState:c.current}):a.current,[d,p]=te(()=>m());return Q(()=>{if(!r)return;const y=()=>{g.current=!0,p(m())};return window.addEventListener("popstate",y),()=>{window.removeEventListener("popstate",y)}},[r]),Q(()=>{if(l.current){if(!u.current){u.current=!0;return}if(g.current){g.current=!1;return}Uf(d,{config:o.current,history:f.current})}},[d]),{state:d,setState:p}},qf=t=>t[0],eo=t=>t.length===1?t[0]:t,Hf=t=>t??void 0,to=t=>t??void 0;function al(t,e){return function(){return t.apply(e,arguments)}}const{toString:Bf}=Object.prototype,{getPrototypeOf:zs}=Object,{iterator:yr,toStringTag:ll}=Symbol,_r=(t=>e=>{const n=Bf.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ke=t=>(t=t.toLowerCase(),e=>_r(e)===t),vr=t=>e=>typeof e===t,{isArray:ln}=Array,On=vr("undefined");function Vf(t){return t!==null&&!On(t)&&t.constructor!==null&&!On(t.constructor)&&me(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const cl=ke("ArrayBuffer");function zf(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cl(t.buffer),e}const Kf=vr("string"),me=vr("function"),ul=vr("number"),br=t=>t!==null&&typeof t=="object",Qf=t=>t===!0||t===!1,Xn=t=>{if(_r(t)!=="object")return!1;const e=zs(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(ll in t)&&!(yr in t)},Wf=ke("Date"),Jf=ke("File"),Gf=ke("Blob"),Yf=ke("FileList"),Xf=t=>br(t)&&me(t.pipe),Zf=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||me(t.append)&&((e=_r(t))==="formdata"||e==="object"&&me(t.toString)&&t.toString()==="[object FormData]"))},ed=ke("URLSearchParams"),[td,nd,rd,sd]=["ReadableStream","Request","Response","Headers"].map(ke),id=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ln(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function fl(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dl=t=>!On(t)&&t!==pt;function ds(){const{caseless:t}=dl(this)&&this||{},e={},n=(r,s)=>{const i=t&&fl(e,s)||s;Xn(e[i])&&Xn(r)?e[i]=ds(e[i],r):Xn(r)?e[i]=ds({},r):ln(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Dn(arguments[r],n);return e}const od=(t,e,n,{allOwnKeys:r}={})=>(Dn(e,(s,i)=>{n&&me(s)?t[i]=al(s,n):t[i]=s},{allOwnKeys:r}),t),ad=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ld=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},cd=(t,e,n,r)=>{let s,i,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&zs(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ud=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},fd=t=>{if(!t)return null;if(ln(t))return t;let e=t.length;if(!ul(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},dd=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&zs(Uint8Array)),hd=(t,e)=>{const r=(t&&t[yr]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},pd=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},md=ke("HTMLFormElement"),gd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),no=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),yd=ke("RegExp"),hl=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Dn(n,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(r[i]=o||s)}),Object.defineProperties(t,r)},_d=t=>{hl(t,(e,n)=>{if(me(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(me(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vd=(t,e)=>{const n={},r=s=>
vendor: 4,078 bytes, line 8
8{s.forEach(i=>{n[i]=!0})};return ln(t)?r(t):r(String(t).split(e)),n},bd=()=>{},wd=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Sd(t){return!!(t&&me(t.append)&&t[ll]==="FormData"&&t[yr])}const xd=t=>{const e=new Array(10),n=(r,s)=>{if(br(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=ln(r)?[]:{};return Dn(r,(o,a)=>{const l=n(o,s+1);!On(l)&&(i[a]=l)}),e[s]=void 0,i}}return r};return n(t,0)},Cd=ke("AsyncFunction"),Od=t=>t&&(br(t)||me(t))&&me(t.then)&&me(t.catch),pl=((t,e)=>t?setImmediate:e?((n,r)=>(pt.addEventListener("message",({source:s,data:i})=>{s===pt&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),pt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",me(pt.postMessage)),Ed=typeof queueMicrotask<"u"?queueMicrotask.bind(pt):typeof process<"u"&&process.nextTick||pl,Pd=t=>t!=null&&me(t[yr]),b={isArray:ln,isArrayBuffer:cl,isBuffer:Vf,isFormData:Zf,isArrayBufferView:zf,isString:Kf,isNumber:ul,isBoolean:Qf,isObject:br,isPlainObject:Xn,isReadableStream:td,isRequest:nd,isResponse:rd,isHeaders:sd,isUndefined:On,isDate:Wf,isFile:Jf,isBlob:Gf,isRegExp:yd,isFunction:me,isStream:Xf,isURLSearchParams:ed,isTypedArray:dd,isFileList:Yf,forEach:Dn,merge:ds,extend:od,trim:id,stripBOM:ad,inherits:ld,toFlatObject:cd,kindOf:_r,kindOfTest:ke,endsWith:ud,toArray:fd,forEachEntry:hd,matchAll:pd,isHTMLForm:md,hasOwnProperty:no,hasOwnProp:no,reduceDescriptors:hl,freezeMethods:_d,toObjectSet:vd,toCamelCase:gd,noop:bd,toFiniteNumber:wd,findKey:fl,global:pt,isContextDefined:dl,isSpecCompliantForm:Sd,toJSONObject:xd,isAsyncFn:Cd,isThenable:Od,setImmediate:pl,asap:Ed,isIterable:Pd};function N(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}b.inherits(N,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.status}}});const ml=N.prototype,gl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{gl[t]={value:t}});Object.defineProperties(N,gl);Object.defineProperty(ml,"isAxiosError",{value:!0});N.from=(t,e,n,r,s,i)=>{const o=Object.create(ml);return b.toFlatObject(t,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),N.call(o,t.message,e,n,r,s),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Rd=null;function hs(t){return b.isPlainObject(t)||b.isArray(t)}function yl(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function ro(t,e,n){return t?t.concat(e).map(function(s,i){return s=yl(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function kd(t){return b.isArray(t)&&!t.some(hs)}const Td=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function wr(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!b.isUndefined(y[p])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(s))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(b.isDate(d))return d.toISOString();if(b.isBoolean(d))return d.toString();if(!l&&b.isBlob(d))throw new N("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(d)||b.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,p,y){let w=d;if(d&&!y&&typeof d=="object"){if(b.endsWith(p,"{}"))p=r?p:p.slice(0,-2),d=JSON.stringify(d);else if(b.isArray(d)&&kd(d)||(b.isFileList(d)||b.endsWith(p,"[]"))&&(w=b.toArray(d)))return p=yl(p),w.forEac
vendor: 2,666 bytes, line 8
8h(function(x,C){!(b.isUndefined(x)||x===null)&&e.append(o===!0?ro([p],C,i):o===null?p:p+"[]",c(x))}),!1}return hs(d)?!0:(e.append(ro(y,p,i),c(d)),!1)}const u=[],g=Object.assign(Td,{defaultVisitor:f,convertValue:c,isVisitable:hs});function m(d,p){if(!b.isUndefined(d)){if(u.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(d),b.forEach(d,function(w,S){(!(b.isUndefined(w)||w===null)&&s.call(e,w,b.isString(S)?S.trim():S,p,g))===!0&&m(w,p?p.concat(S):[S])}),u.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return m(t),e}function so(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Ks(t,e){this._pairs=[],t&&wr(t,this,e)}const _l=Ks.prototype;_l.append=function(e,n){this._pairs.push([e,n])};_l.toString=function(e){const n=e?function(r){return e.call(this,r,so)}:so;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ld(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vl(t,e,n){if(!e)return t;const r=n&&n.encode||Ld;b.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(e,n):i=b.isURLSearchParams(e)?e.toString():new Ks(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class io{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const bl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ad=typeof URLSearchParams<"u"?URLSearchParams:Ks,Nd=typeof FormData<"u"?FormData:null,Fd=typeof Blob<"u"?Blob:null,$d={isBrowser:!0,classes:{URLSearchParams:Ad,FormData:Nd,Blob:Fd},protocols:["http","https","file","blob","url","data"]},Qs=typeof window<"u"&&typeof document<"u",ps=typeof navigator=="object"&&navigator||void 0,Dd=Qs&&(!ps||["ReactNative","NativeScript","NS"].indexOf(ps.product)<0),Id=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ud=Qs&&window.location.href||"http://localhost",Md=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qs,hasStandardBrowserEnv:Dd,hasStandardBrowserWebWorkerEnv:Id,navigator:ps,origin:Ud},Symbol.toStringTag,{value:"Module"})),oe={...Md,...$d};
vendor: 5,978 bytes, lines 8-10
8function jd(t,e){return wr(t,new oe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return oe.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function qd(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Hd(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function wl(t){function e(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=n.length;return o=!o&&b.isArray(s)?s.length:o,l?(b.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!b.isObject(s[o]))&&(s[o]=[]),e(n,r,s[o],i)&&b.isArray(s[o])&&(s[o]=Hd(s[o])),!a)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,s)=>{e(qd(r),s,n,0)}),n}return null}function Bd(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const In={transitional:bl,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=b.isObject(e);if(i&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return s?JSON.stringify(wl(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return jd(e,this.formSerializer).toString();if((a=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return wr(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Bd(e)):e}],transformResponse:[function(e){const n=this.transitional||In.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.isString(e)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?N.from(a,N.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oe.classes.FormData,Blob:oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{In.headers[t]={}});const Vd=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zd=t=>{const e={};let n,r,s;return t&&t.split(`
9`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||e[n]&&Vd[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},oo=Symbol("internals");function pn(t){return t&&String(t).trim().toLowerCase()}function Zn(t){return t===!1||t==null?t:b.isArray(t)?t.map(Zn):String(t)}function Kd(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Qd=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Fr(t,e,n,r,s){if(b.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function Wd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Jd(t,e){const n=b.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,o){return this[r].call(this,e,s,i,o)},configurable:!0})})}let ge=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(a,l,c){const f=pn(l);if(!f)throw new Error("header name must be a non-empty string");const u=b.findKey(s,f);(!u||s[u]===void 0||c===!0||c===void 0&&s[u]!==!1)&&(s[u||l]=Zn(a))}const o=(a,l)=>b.forEach(a,(c,f)=>i(c,f,l));if(b.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(b.isString(e)&&(e=e.trim())&&!Qd(e))o(zd(e),n);else if(b.isObject(e)&&b.isIterable(e)){let a={},l,c;for(const f of e){if(!b.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[c=f[0]]=(l=a[c])?b.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(a,n)}else e!=null&&i(n,e,r);return this}get(e,n){if(e=pn(e),e){const r=b.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Kd(s);if(b.isFunction(n))return n.call(this,s,r);if(b.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=pn(e),e){const r=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Fr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(o){if(o=pn(o),o){const a=b.findKey(r,o);a&&(!n||Fr(r,r[a],a,n))&&(delete r[a],s=!0)}}return b.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||Fr(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return b.forEach(this,(s,i)=>{const o=b.findKey(r,i);if(o){n[o]=Zn(s),delete n[i];return}const a=e?Wd(i):String(i).trim();a!==i&&delete n[i],n[a]=Zn(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return b.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&b.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
10`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);
vendor: 4,459 bytes, line 10
10return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[oo]=this[oo]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=pn(o);r[a]||(Jd(s,o),r[a]=!0)}return b.isArray(e)?e.forEach(i):i(e),this}};ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(ge.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});b.freezeMethods(ge);function $r(t,e){const n=this||In,r=e||n,s=ge.from(r.headers);let i=r.data;return b.forEach(t,function(a){i=a.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function Sl(t){return!!(t&&t.__CANCEL__)}function cn(t,e,n){N.call(this,t??"canceled",N.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(cn,N,{__CANCEL__:!0});function xl(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new N("Request failed with status code "+n.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Gd(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Yd(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),f=r[i];o||(o=c),n[s]=l,r[s]=c;let u=i,g=0;for(;u!==s;)g+=n[u++],u=u%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),c-o<e)return;const m=f&&c-f;return m?Math.round(g*1e3/m):void 0}}function Xd(t,e){let n=0,r=1e3/e,s,i;const o=(c,f=Date.now())=>{n=f,s=null,i&&(clearTimeout(i),i=null),t.apply(null,c)};return[(...c)=>{const f=Date.now(),u=f-n;u>=r?o(c,f):(s=c,i||(i=setTimeout(()=>{i=null,o(s)},r-u)))},()=>s&&o(s)]}const ur=(t,e,n=3)=>{let r=0;const s=Yd(50,250);return Xd(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-r,c=s(l),f=o<=a;r=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&f?(a-o)/c:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(u)},n)},ao=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},lo=t=>(...e)=>b.asap(()=>t(...e)),Zd=oe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,oe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(oe.origin),oe.navigator&&/(msie|trident)/i.test(oe.navigator.userAgent)):()=>!0,eh=oe.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const o=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),b.isString(r)&&o.push("path="+r),b.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function th(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function nh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Cl(t,e,n){let r=!th(e);return t&&(r||n==!1)?nh(t,e):e}const co=t=>t instanceof ge?{...t}:t;function Rt(t,e){e=e||{};const n={};function r(c,f,u,g){return b.isPlainObject(c)&&b.isPlainObject(f)?b.merge.call({caseless:g},c,f):b.isPlainObject(f)?b.merge({},f):b.isArray(f)?f.slice():f}function s(c,f,u,g){if(b.isUndefined(f)){if(!b.isUndefined(c))return r(void 0,c,u,g)}else return r(c,f,u,g)}function i(c,f){if(!b.isUndefined(f))return r(void 0,f)}function o(c,f){if(b.isUndefined(f)){if(!b.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function a(c,f,u){if(u in e)return r(c,f);if(u in t)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,f,u)=>s(co(c),co(f),u,!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(f){const u=l[f]||s,g=u(t[f],e[f],f);b.isUndefined(g)&&u!==a||(n[f]=g)}),n}const Ol=t=>{const e=Rt({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=e;e.headers=o=ge.from(o),e.url=vl(Cl(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;
vendor: 4,171 bytes, line 10
10if(b.isFormData(n)){if(oe.hasStandardBrowserEnv||oe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...f]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...f].join("; "))}}if(oe.hasStandardBrowserEnv&&(r&&b.isFunction(r)&&(r=r(e)),r||r!==!1&&Zd(e.url))){const c=s&&i&&eh.read(i);c&&o.set(s,c)}return e},rh=typeof XMLHttpRequest<"u",sh=rh&&function(t){return new Promise(function(n,r){const s=Ol(t);let i=s.data;const o=ge.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=s,f,u,g,m,d;function p(){m&&m(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function w(){if(!y)return;const x=ge.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:x,config:t,request:y};xl(function(P){n(P),p()},function(P){r(P),p()},v),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(w)},y.onabort=function(){y&&(r(new N("Request aborted",N.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new N("Network Error",N.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let C=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const v=s.transitional||bl;s.timeoutErrorMessage&&(C=s.timeoutErrorMessage),r(new N(C,v.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,t,y)),y=null},i===void 0&&o.setContentType(null),"setRequestHeader"in y&&b.forEach(o.toJSON(),function(C,v){y.setRequestHeader(v,C)}),b.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),a&&a!=="json"&&(y.responseType=s.responseType),c&&([g,d]=ur(c,!0),y.addEventListener("progress",g)),l&&y.upload&&([u,m]=ur(l),y.upload.addEventListener("progress",u),y.upload.addEventListener("loadend",m)),(s.cancelToken||s.signal)&&(f=x=>{y&&(r(!x||x.type?new cn(null,t,y):x),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const S=Gd(s.url);if(S&&oe.protocols.indexOf(S)===-1){r(new N("Unsupported protocol "+S+":",N.ERR_BAD_REQUEST,t));return}y.send(i||null)})},ih=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const i=function(c){if(!s){s=!0,a();const f=c instanceof Error?c:this.reason;r.abort(f instanceof N?f:new cn(f instanceof Error?f.message:f))}};let o=e&&setTimeout(()=>{o=null,i(new N(`timeout ${e} of ms exceeded`,N.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>b.asap(a),l}},oh=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},ah=async function*(t,e){for await(const n of lh(t))yield*oh(n,e)},lh=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},uo=(t,e,n,r)=>{const s=ah(t,e);let i=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:f}=await s.next();if(c){a(),l.close();return}let u=f.byteLength;if(n){let g=i+=u;n(g)}l.enqueue(new Uint8Array(f))}catch(c){throw a(c),c}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Sr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",El=Sr&&typeof ReadableStream=="function",ch=Sr&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Pl=(t,...e)=>{try{return!!t(...e)}catch{return!1}},uh=El&&Pl(()=>{let t=!1;const e=new Request(oe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),fo=64*1024,ms=El&&Pl(()=>
vendor: 1,139 bytes, line 10
10b.isReadableStream(new Response("").body)),fr={stream:ms&&(t=>t.body)};Sr&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!fr[e]&&(fr[e]=b.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new N(`Response type '${e}' is not supported`,N.ERR_NOT_SUPPORT,r)})})})(new Response);const fh=async t=>{if(t==null)return 0;if(b.isBlob(t))return t.size;if(b.isSpecCompliantForm(t))return(await new Request(oe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(b.isArrayBufferView(t)||b.isArrayBuffer(t))return t.byteLength;if(b.isURLSearchParams(t)&&(t=t+""),b.isString(t))return(await ch(t)).byteLength},dh=async(t,e)=>{const n=b.toFiniteNumber(t.getContentLength());return n??fh(e)},hh=Sr&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:f,withCredentials:u="same-origin",fetchOptions:g}=Ol(t);c=c?(c+"").toLowerCase():"text";let m=ih([s,i&&i.toAbortSignal()],o),d;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(l&&uh&&n!=="get"&&n!=="head"&&(y=await dh(f,r))!==0){let v=new Request(e,{method:"POST",body:r,duplex:"half"}),O;
vendor: 7,251 bytes, lines 10-13
10if(b.isFormData(r)&&(O=v.headers.get("content-type"))&&f.setContentType(O),v.body){const[P,T]=ao(y,ur(lo(l)));r=uo(v.body,fo,P,T)}}b.isString(u)||(u=u?"include":"omit");const w="credentials"in Request.prototype;d=new Request(e,{...g,signal:m,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:w?u:void 0});let S=await fetch(d,g);const x=ms&&(c==="stream"||c==="response");if(ms&&(a||x&&p)){const v={};["status","statusText","headers"].forEach(R=>{v[R]=S[R]});const O=b.toFiniteNumber(S.headers.get("content-length")),[P,T]=a&&ao(O,ur(lo(a),!0))||[];S=new Response(uo(S.body,fo,P,()=>{T&&T(),p&&p()}),v)}c=c||"text";let C=await fr[b.findKey(fr,c)||"text"](S,t);return!x&&p&&p(),await new Promise((v,O)=>{xl(v,O,{data:C,headers:ge.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:d})})}catch(w){throw p&&p(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new N("Network Error",N.ERR_NETWORK,t,d),{cause:w.cause||w}):N.from(w,w&&w.code,t,d)}}),gs={http:Rd,xhr:sh,fetch:hh};b.forEach(gs,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ho=t=>`- ${t}`,ph=t=>b.isFunction(t)||t===null||t===!1,Rl={getAdapter:t=>{t=b.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i<e;i++){n=t[i];let o;if(r=n,!ph(n)&&(r=gs[(o=String(n)).toLowerCase()],r===void 0))throw new N(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+i]=r}if(!r){const i=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
11`+i.map(ho).join(`
12`):" "+ho(i[0]):"as no adapter specified";throw new N("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:gs};function Dr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new cn(null,t)}function po(t){return Dr(t),t.headers=ge.from(t.headers),t.data=$r.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Rl.getAdapter(t.adapter||In.adapter)(t).then(function(r){return Dr(t),r.data=$r.call(t,t.transformResponse,r),r.headers=ge.from(r.headers),r},function(r){return Sl(r)||(Dr(t),r&&r.response&&(r.response.data=$r.call(t,t.transformResponse,r.response),r.response.headers=ge.from(r.response.headers))),Promise.reject(r)})}const kl="1.10.0",xr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{xr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const mo={};xr.transitional=function(e,n,r){function s(i,o){return"[Axios v"+kl+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new N(s(o," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!mo[o]&&(mo[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};xr.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function mh(t,e,n){if(typeof t!="object")throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],o=e[i];if(o){const a=t[i],l=a===void 0||o(a,i,t);if(l!==!0)throw new N("option "+i+" must be "+l,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+i,N.ERR_BAD_OPTION)}}const er={assertOptions:mh,validators:xr},Le=er.validators;let Ct=class{constructor(e){this.defaults=e||{},this.interceptors={request:new io,response:new io}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
13`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Rt(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&er.assertOptions(r,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),s!=null&&(b.isFunction(s)?n.paramsSerializer={serialize:s}:er.assertOptions(s,{encode:Le.function,serialize:Le.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),er.assertOptions(n,{baseUrl:Le.spelling("baseURL"),withXsrfToken:Le.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&b.merge(i.common,i[n.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=ge.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let f,u=0,g;if(!l){const d=[po.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),g=d.length,f=Promise.resolve(n);u<g;)f=f.then(d[u++],d[u++]);return f}g=a.length;let m=n;for(u=0;u<g;){const d=a[u++],p=a[u++];try{m=d(m)}catch(y){p.call(this,y);break}}try{f=po.call(this,m)}catch(d){return Promise.reject(d)}for(u=0,g=c.length;u<g;)f=f.then(c[u++],c[u++]);return f}getUri(e){e=Rt(this.defaults,e);const n=Cl(e.baseURL,e.url,e.allowAbsoluteUrls);return vl(n,e.params,e.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(e){Ct.prototype[e]=function(n,r){return this.request(Rt(r||{},{method:e,url:n,data:(r||{}).data}))}});b.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,a){return this.request(Rt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ct.prototype[e]=n(),Ct.prototype[e+"Form"]=n(!0)});let gh=class Tl{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,a){r.reason||(r.reason=new cn(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Tl(function(s){e=s}),cancel:e}}};function yh(t){return function(n){return t.apply(null,n)}}function _h(t){return b.isObject(t)&&t.isAxiosError===!0}const ys={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
13alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ys).forEach(([t,e])=>{ys[e]=t});function Ll(t){const e=new Ct(t),n=al(Ct.prototype.request,e);return b.extend(n,Ct.prototype,e,{allOwnKeys:!0}),b.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return Ll(Rt(t,s))},n}const K=Ll(In);K.Axios=Ct;K.CanceledError=cn;K.CancelToken=gh;K.isCancel=Sl;K.VERSION=kl;K.toFormData=wr;K.AxiosError=N;K.Cancel=K.CanceledError;K.all=function(e){return Promise.all(e)};K.spread=yh;K.isAxiosError=_h;K.mergeConfig=Rt;K.AxiosHeaders=ge;K.formToJSON=t=>wl(b.isHTMLForm(t)?new FormData(t):t);K.getAdapter=Rl.getAdapter;K.HttpStatusCode=ys;K.default=K;const{Axios:Yp,AxiosError:Xp,CanceledError:Zp,isCancel:em,CancelToken:tm,VERSION:nm,all:rm,Cancel:sm,isAxiosError:im,spread:om,toFormData:am,AxiosHeaders:lm,HttpStatusCode:cm,formToJSON:um,getAdapter:fm,mergeConfig:dm}=K;class En{constructor(e){this.instance=e}static create(e,n={}){const r=K.create({baseURL:e,...n});return new En(r)._initResponseInterceptor()}_initResponseInterceptor(){return this.instance.interceptors.response.use(e=>e,e=>Promise.reject(e)),this}getAuthToken(){const e=this.instance.defaults.headers.common.Authorization;return typeof e=="string"?e.replace("Bearer ",""):null}setAuthToken(e){this.instance.defaults.headers.common.Authorization=`${e}`}removeAuthToken(){delete this.instance.defaults.headers.common.Authorization}async get(e,n={}){return(await this.instance.get(e,n)).data}async post(e,n,r={}){return(await this.instance.post(e,n,r)).data}async put(e,n,r={}){return(await this.instance.put(e,n,r)).data}async delete(e,n={}){return(await this.instance.delete(e,n)).data}}var Fo;const Ws=En.create((Fo=window==null?void 0:window.__VasaloppetGlobalVariables)==null?void 0:Fo.siteRestUrl),vh=Pf({category:{parse:eo,serialize:to},sport_category:{parse:eo,serialize:to},from_date:{parse:qf,serialize:Hf}}),_s=["calendar"],bh=(t,e=!1)=>{const{state:n,setState:r}=jf({initialState:t??null,enabled:e,config:vh,history:"push"}),s=sl(n),i=s?JSON.stringify(s):null,o=i?[..._s,"events",i]:[..._s,"events"];return{query:Tt({queryKey:o,queryFn:l=>{const c=l.client.getQueryData(l.queryKey);return c||Ws.get("/calendar/events",{params:s??void 0})}}),filter:n,setFilter:r}},wh=()=>{const t=[..._s,"options"];return{optionsQuery:Tt({queryKey:t,queryFn:n=>{const r=n.client.getQueryData(n.queryKey);return r||Ws.get("/calendar/options")}})}},Sh=({children:t})=>_("div",{class:"breakdance",children:t}),Pe=t=>{const{children:e,variant:n="primary",...r}=t;let{className:s}=t;const i={className:`button-atom button-atom--${n}`};return s?s+=` ${i.className}`:s=i.className,r.className=s,_("button",{...r,children:_("span",{className:"button-atom__text",children:e})})};function tr(t){const{onChange:e,name:n,value:r,options:s,defaultOption:i,className:o}=t;return _("select",{name:n,value:r??"",onChange:l=>{const c=l.target;e(c.value)},className:o,children:[i&&_("option",{value:"",children:i}),s.map(l=>_("option",{value:l.value,children:l.name},l.key))]})}const go=t=>{if(t)return Array.isArray(t)?t.length===1?t[0]:void 0:t};function xh(t){var g,m,d;
13const{filter:e,setFilter:n,showFilterControls:r}=t,[s,i]=te(r??!1),{optionsQuery:o}=wh(),a=go(e==null?void 0:e.category),l=go(e==null?void 0:e.sport_category),c=ie(null),f=()=>{var p,y,w;(w=(y=(p=c==null?void 0:c.current)==null?void 0:p.closest(".vasaloppet-calendar"))==null?void 0:y.querySelector(".vasaloppet-calendar__months"))==null||w.scrollIntoView({behavior:"smooth"})},{t:u}=Re();return _(Ch,{className:"vasaloppet-calendar__filters",ref:c,children:[!r&&_(Oh,{className:"vasaloppet-calendar__filters-header",children:[_(Pe,{className:"vasaloppet-calendar__filters-toggle",onClick:()=>i(!s),"aria-expanded":s,variant:"secondary",children:u(s?"Calendar.filters.hideFilters":"Calendar.filters.showFilters")}),_(Pe,{onClick:f,variant:"secondary",children:u("Calendar.filters.scrollToEvents")})]}),s&&_("div",{className:"breakdance-form",children:[_("div",{className:"breakdance-form-field breakdance-form-field--select",children:_(tr,{name:"category",value:a,onChange:p=>n({...e,category:p||void 0}),options:((g=o.data)==null?void 0:g.category)||[],defaultOption:u("Calendar.filters.allCategories"),className:"breakdance-form-field__input"})}),_("div",{className:"breakdance-form-field breakdance-form-field--select",children:_(tr,{name:"sport_category",value:l,onChange:p=>n({...e,sport_category:p||void 0}),options:((m=o.data)==null?void 0:m.sport_category)||[],defaultOption:u("Calendar.filters.allSportCategories"),className:"breakdance-form-field__input"})}),_("div",{className:"breakdance-form-field breakdance-form-field--select",children:_(tr,{name:"from_date",value:(e==null?void 0:e.from_date)||"",onChange:p=>n({...e,from_date:p||void 0}),options:((d=o.data)==null?void 0:d.from_date)||[],defaultOption:u("Calendar.filters.allDates"),className:"breakdance-form-field__input"})})]})]})}const Ch=B.div`
14	display: flex;
15	flex-direction: column;
16	gap: 1rem;
17
18	@media (min-width: 768px) {
19		.breakdance-form-field {
20			grid-column: span 4;
21		}
22	}
23`,Oh=B.header`
24	display: flex;
25	justify-content: flex-end;
26	gap: 1rem;
27`,Eh=t=>{try{return new URL(t,window.location.href).origin!==window.location.origin}catch{return!1}};function Ph(t){const{href:e,children:n,className:r,target:s,rel:i}=t,o=Eh(e);return _("a",{href:e,className:r,target:o?"_blank":s,rel:o?"noopener noreferrer":i,children:n})}const Vn=t=>!t||t==="00:00:00"?!1:/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(t),zn=t=>{if(!t)return"";const[e,n]=t.split(":");return`${e}:${n}`};function Rh(t){const{data:e}=t,{calendar:n}=e,{hide_event_times:r,start_datetime:s,start_date:i,start_time:o,end_date:a,end_time:l}=n||{},c="vasaloppet-calendar-event__time";return r||!s?null:i!==a?_("time",{className:c,dateTime:s,children:`${i}${Vn(o)?" kl. "+zn(o):""} - ${a} ${Vn(l)?" kl. "+zn(l):""}`}):Vn(o)?_("time",{className:c,dateTime:s,children:["kl. ",zn(o),Vn(l)?" – "+zn(l):""]}):null}function kh(t){const{data:e,settings:n}=t,{post_content:r}=e||{},{calendar:s}=e,{title:i,taxonomies:o,highlighted:a,link:l}=s||{},{category:c,sport_category:f}=o||{};return e?_(Th,{className:"vasaloppet-calendar-event",highlighted:a,children:[_(Lh,{className:"vasaloppet-calendar-event__title",children:l?_(Ph,{href:l,children:i}):i}),r&&_("div",{className:"vasaloppet-calendar-event__content",dangerouslySetInnerHTML:{__html:r}}),_(Rh,{data:e}),n!=null&&n.hide_event_category_labels||!c.length&&!f.length?null:_(Ah,{className:"vasaloppet-calendar-event__categories",children:[...c,...f].map(u=>_(Nh,{className:"vasaloppet-calendar-event__category vl-text-xs",children:_("span",{children:u.name})},u.term_id))})]}):null}const Th=B.div`
28	display: flex;
29	flex-direction: column;
30	gap: 0.5rem;
31
32	&:not(:first-child) {
33		border-top: 1px solid rgba(0, 0, 0, 0.15);
34		padding-top: 1rem;
35	}
36
37	.vasaloppet-calendar-event__title {
38		font-size: 1em;
39		margin: 0;
40	}
41
42	${({highlighted:t})=>t&&Vs`
43			background-color: var(--vl-color-yellow);
44			padding: 1rem;
45			border-radius: var(--vl-border-radius-base);
46		`}
47`,Lh=B.h4`
48	&.vasaloppet-calendar-event__title {
49		font-weight: 600;
50	}
51
52	a {
53		&,
54		&:hover {
55			color: inherit;
56		}
57
58		&:hover {
59			text-decoration: underline;
60		}
61	}
62`,Ah=B.ul`
63	list-style: none;
64	padding: 0;
65	margin: 0;
66	display: flex;
67	flex-wrap: wrap;
68	align-items: center;
69`,Nh=B.li`
70	display: flex;
71	align-items: center;
72
73	&:after {
74		content: '';
75		display: inline-block;
76		width: 0.25rem;
77		height: 0.25rem;
78		background-color: currentColor;
79		border-radius: 50%;
80		margin-left: 0.5rem;
81		margin-right: 0.5rem;
82	}
83
84	&:last-of-type:after {
85		display: none;
86	}
87`;function Fh(t){const{data:e,date:n,monthData:r,settings:s}=t,{events:i}=e||{};if(!e)return null;const o=n?n.slice(-2):null,a=o?parseInt(o,10):null;return _($h,{className:"vasaloppet-calendar-day",children:[_(Dh,{className:"vasaloppet-calendar-day__header",children:_(Ih,{className:"vasaloppet-calendar-day__date-wrapper",dateTime:n,children:[_(Uh,{
87className:"vasaloppet-calendar-day__date-number",children:a}),_(Mh,{className:"vasaloppet-calendar-day__date-title",children:s!=null&&s.hide_month_names?r.labels.short:e.labels.short})]})}),_(jh,{className:"vasaloppet-calendar-day__events",children:i.map(l=>_(kh,{data:l,settings:s},l.ID))})]})}const $h=B.div`
88	display: grid;
89	grid-template-columns: repeat(12, 1fr);
90	gap: 1rem;
91
92	border-top: 1px solid rgba(0, 0, 0, 0.15);
93	padding-top: 1rem;
94`,Dh=B.header`
95	grid-column: span 2;
96`,Ih=B.time`
97	align-items: center;
98	line-height: 1;
99	display: flex;
100	flex-direction: column;
101`,Uh=B.span`
102	font-size: 2.25rem;
103	font-weight: 600;
104`,Mh=B.span`
105	text-transform: uppercase;
106	letter-spacing: 0.05em;
107	font-size: 0.875em;
108	font-weight: 500;
109`,jh=B.div`
110	grid-column: span 10;
111	display: flex;
112	flex-direction: column;
113	gap: 1rem;
114`;function qh(t){const{data:e,settings:n}=t,{items:r}=e;return _(Hh,{className:"vasaloppet-calendar-month",children:[!(n!=null&&n.hide_month_names)&&_(Bh,{className:"vasaloppet-calendar-month__header",children:_(Vh,{className:"vasaloppet-calendar-month__title",children:e.labels.long})}),_(zh,{className:"vasaloppet-calendar-month__days",children:Object.entries(r).map(([s,i])=>_(Fh,{date:s,data:i,monthData:e,settings:n},s))})]})}const Hh=B.div`
115	display: flex;
116	flex-direction: column;
117	gap: 1rem;
118`,Bh=B.header`
119	display: flex;
120	flex-direction: column;
121	gap: 1rem;
122
123	.vasaloppet-calendar-month__title {
124		margin: 0;
125	}
126`,Vh=B.h3``,zh=B.div`
127	display: flex;
128	flex-direction: column;
129	gap: 2rem;
130`;function Kh({children:t}){return _(Qh,{className:"vasaloppet-calendar-year",children:_("h3",{className:"vl-text-base",children:t})})}const Qh=B.div`
131	background-color: var(--vl-color-yellow);
132    padding: 0.5rem 1rem;
133    text-align: center;
134    border-top-left-radius: var(--vl-border-radius-base);
135    border-top-right-radius: var(--vl-border-radius-base);
136    
137	h3 {
138		margin: 0;
139		font-weight: 600!important;
140	}
141
142	&:not(:first-of-type) {
143		margin-top: 3rem;
144	}
145`;function Wh(t){const{defaultProps:e}=t,{settings:n}=e||{},{query:r,filter:s,setFilter:i}=bh(e==null?void 0:e.filters,(n==null?void 0:n.use_query_params)===!0),[o,a]=te(r.data),{t:l}=Re(),c=o?Object.entries(o):[],f=new Date().getFullYear();let u=null;return Q(()=>{r.isLoading||a(r.data)},[r.data,r.isLoading]),_(Jh,{className:"vasaloppet-calendar",isLoading:r.isLoading,children:[!(n!=null&&n.hide_filters)&&_(xh,{filter:s,setFilter:i,showFilterControls:n==null?void 0:n.show_filter_controls}),o&&Object.keys(o).length!==0?_(Gh,{className:"vasaloppet-calendar__months",children:c.map(([g,m],d)=>{const[p]=g.split("-"),w=p!==u&&(d>0||p!==String(f));return u=p,_(de,{children:[w&&_(Kh,{children:p},p),_(qh,{data:m,settings:n},g)]})})}):_(Yh,{className:`vasaloppet-calendar__status
146					${r.isLoading?"loading":""}
147					${r.isError?"error":""}
148					${!r.isLoading&&!r.data?"no-events":""}
149				`,children:[r.isLoading&&_("p",{children:l("Calendar.status.loading")}),r.isError&&_("p",{children:l("Calendar.status.error")}),!r.isLoading&&c&&c.length===0?_("p",{children:l("Calendar.status.noEvents")}):null]})]})}const Jh=B.div`
150	display: flex;
151	flex-direction: column;
152	gap: 2rem;
153	transition: opacity 0.2s;
154
155	${({isLoading:t})=>t&&Vs`
156			opacity: 0.5;
157			pointer-events: none;
158		`}
159`,Gh=B.div`
160	display: flex;
161	flex-direction: column;
162	gap: 2rem;
163`,Yh=B.div`
164	text-align: center;
165	opacity: 0.75;
166`;function Ir(t){const{name:e,value:n,onChange:r,options:s,defaultOption:i}=t;return _("div",{className:"breakdance-form-field breakdance-form-field--select",children:_(tr,{name:e,value:n,onChange:o=>r(o||""),options:s,defaultOption:i,className:"breakdance-form-field__input"})})}function Xh(t){var S,x,C;const{t:e}=Re(),{defaultProps:n}=t,{terms:r,selected:s,baseUrl:i}=n||{},[o,a]=te(((S=s.sport_category)==null?void 0:S.length)===1?s.sport_category[0]:""),[l,c]=te(((x=s.guides_category)==null?void 0:x.length)===1?s.guides_category[0]:""),[f,u]=te(((C=s.audience_category)==null?void 0:C.length)===1?s.audience_category[0]:""),[g,m]=te(!1),d=r.find(v=>v.name==="sport_category"),p=r.find(v=>v.name==="guides_category"),y=r.find(v=>
166v.name==="audience_category"),w=(v,O,P)=>{const T=v?`${v}/`:"",R=new URL(i+T,window.location.origin);R.search="",O&&R.searchParams.set("category",O),P&&R.searchParams.set("audience",P);const k=R.toString();k!==window.location.href&&(m(!0),window.location.href=k)};return _(Zh,{isNavigating:g,className:"vasaloppet-guides-filters",children:_("div",{className:"breakdance-form",children:[d&&_(Ir,{name:"sport_category",value:o,onChange:v=>{a(v),w(v,l,f)},options:d.items,defaultOption:o?void 0:e("GuidesFilters.filters.allSportCategories")}),p&&_(Ir,{name:"guides_category",value:l,onChange:v=>{c(v),w(o,v,f)},options:p.items,defaultOption:e("GuidesFilters.filters.allCategories")}),y&&_(Ir,{name:"audience_category",value:f,onChange:v=>{u(v),w(o,l,v)},options:y.items,defaultOption:e("GuidesFilters.filters.allAudiences")})]})})}const Zh=B.div`
167	opacity: ${t=>t.isNavigating?.5:1};
168	transition: opacity 0.2s;
169	pointer-events: ${t=>t.isNavigating?"none":"auto"};
170	display: flex;
171	flex-direction: column;
172	gap: 1rem;
173
174	@media (min-width: 768px) {
175		.breakdance-form-field {
176			grid-column: span 4;
177		}
178	}
179`,Be=class Be{constructor(e,n){this.siteHttpClient=e,this.externalHttpClient=n}static getInstance(e){var n;if(!Be.instance&&((n=window==null?void 0:window.__VasaloppetGlobalVariables)!=null&&n.siteRestUrl)){const r=En.create(window.__VasaloppetGlobalVariables.siteRestUrl),s=En.create(window.__VasaloppetGlobalVariables.externalRestUrl);Be.instance=new Be(r,s)}return e&&(Be.instance.siteHttpClient.setAuthToken(e),Be.instance.externalHttpClient.setAuthToken(e)),Be.instance}getAccessToken(){return this.siteHttpClient.getAuthToken()}setAccessToken(e){this.siteHttpClient.setAuthToken(e),this.externalHttpClient.setAuthToken(e)}removeAccessToken(){this.siteHttpClient.removeAuthToken(),this.externalHttpClient.removeAuthToken()}ensureAccessToken(){if(!this.siteHttpClient.getAuthToken())throw new Error("Access token is not set. Please authenticate first.")}async createOtp(e){return await this.siteHttpClient.post("minasidor/otp/create",e)}async verifyOtp(e){return await this.siteHttpClient.post("minasidor/otp/verify",e)}async getProfiles(){return this.ensureAccessToken(),await this.siteHttpClient.get("minasidor/profiles")}async getProfile(e){return this.ensureAccessToken(),await this.siteHttpClient.get(`minasidor/profile/${e}`)}async getProfileRaces(e){return this.ensureAccessToken(),await this.externalHttpClient.get(`minasidor/profile/${e}/races`)}async getProfileTickets(e){return this.ensureAccessToken(),await this.externalHttpClient.get(`minasidor/profile/${e}/tickets`)}};Ys(Be,"instance");let vs=Be;var $o;const at=vs.getInstance((($o=window==null?void 0:window.__VasaloppetAuthData)==null?void 0:$o.accessToken)||null),nn=(t,e)=>{const n=["auth",t],r=i=>{e.setQueryData(n,i)};return[Tt({queryKey:n,queryFn:()=>{var o;const i=e.getQueryData(n);return t==="accessToken"&&i&&at.setAccessToken(i),i||((o=window.__VasaloppetAuthData)==null?void 0:o[t])||null},initialData:()=>{var i;return((i=window.__VasaloppetAuthData)==null?void 0:i[t])||null}}),r]},ep=t=>{const e=["auth","profiles"],n=s=>{t.setQueryData(e,s)};return[Tt({queryKey:e,queryFn:()=>at.getProfiles()}),n]},Lt=t=>{const e=["auth","profile"],n=s=>{t.setQueryData(e,s)};return[Tt({queryKey:e,queryFn:()=>{var i;const s=t.getQueryData(e);return s||((i=window.__VasaloppetAuthData)==null?void 0:i.profileInformation)||null},initialData:()=>{var s;return((s=window.__VasaloppetAuthData)==null?void 0:s.profileInformation)||null}}),n]},Al=({name:t,fetcher:e,queryClient:n})=>{const[{data:r}]=Lt(n),s=r==null?void 0:r.id;return Tt({queryKey:["auth","profile",s,t],queryFn:()=>e(s),enabled:!!s})},Nl=t=>Al({name:"races",fetcher:e=>at.getProfileRaces(e),queryClient:t}),Fl=t=>Al({name:"tickets",fetcher:e=>at.getProfileTickets(e),queryClient:t}),tp=t=>{const e=["auth","login"],[,n]=nn("accessToken",t),[,r]=nn("refreshToken",t),[,s]=Lt(t);return{createOtp:()=>kr({mutationKey:[...e,"otp","create"],mutationFn:l=>at.createOtp(l)}),verifyOtp:()=>kr({mutationKey:[...e,"otp","verify"],mutationFn:l=>at.verifyOtp(l),onSuccess:l=>{l!=null&&l.accessToken&&(at.setAccessToken(l.accessToken),n(l.accessToken)),l!=null&&l.refreshToken&&r(l.refreshToken)}}),selectProfile:()=>kr({mutationKey:[...e,"profile","select"],mutationFn:l=>at.getProfile(l),onSuccess:l=>{l!=null&&l.profile&&s(l.profile)}})}};function np({handler:t,onSuccess:e,onAbort:n}){const{t:r}=Re(),s=ie(null);return _(Js,{ref:s,onSubmit:i=>{i.preventDefault();const a=new FormData(s.current).get("email");if(!a){console.error("Email is required");return}t.mutate({email:a},{onSuccess:()=>{e(a)},onError:l=>{console.error("Error creating OTP:",l)}})},children:[_("label",{htmlFor:"email",children:[r("LoginForm.yourEmail"),":"]}),_("input",{type:"email",name:"email",required:!0}),_(Pe,{type:"submit",children:r("LoginForm.sendLinkToEmail")}),_(Pe,{variant:"secondary",type:"button",onClick:n,children:r("LoginForm.abort")})]})}const Js=B.form`
180	display: flex;
181	flex-direction: column;
182	gap: 1rem;
183`;function $l(t){const{t:e}=Re(),n=ut(),[r]=nn("accessToken",n),[s]=Lt(n),i=Nl(n);if(!r.data)return _("p",{children:"Du är inte inloggad"});if(s.isLoading||i.isLoading)return _("p",{children:"Ett ögonblick..."});if(!i.data)return _("p",{children:"Ingen profil vald"});const{races:o}=i.data;return _("div",{children:[_("h2",{children:e("ProfileRaces.title")}),o.length>0?_("ul",{children:o.map(a=>_("li",{children:a.title},a.productId))}):_("p",{children:"Inga lopp hittades för denna profil."})]})}function Dl(t){const e=ut(),[n]=nn("accessToken",e),[r]=Lt(e),s=Fl(e);if(!n.data)return _("p",{children:"Du är inte inloggad"});if(r.isLoading||s.isLoading)return _("p",{children:"Ett ögonblick..."});if(!s.data)return _("p",{children:"Det finns inga biljetter för denna profil."});const{tickets:i}=s.data;return _("div",{children:[_("h2",{children:"Dina biljetter"}),i.length>0?_("ul",{children:i.map(o=>_("li",{children:o.product},o.id))}):_("p",{children:"Inga biljetter hittades för denna profil."})]})}function rp(){const{t}=Re(),e=ut(),[n]=Lt(e);return Nl(e),Fl(e),n.isLoading?_("p",{children:t("LoginForm.loadingProfiles")}):_("div",{children:[_("h1",{children:t("LoginForm.loggedIn")}),n.data&&_("div",{children:[_("p",{children:`${n.data.firstName} ${n.data.lastName}`}),_("p",{children:[t("LoginForm.email"),": ",n.data.email]}),_("p",{children:[t("LoginForm.vasaId"),": ",n.data.vasaId]}),_("p",{children:_("a",{href:"/?logout=1",children:t("LoginForm.logout")})})]}),_($l,{}),_(Dl,{})]})}function sp({handler:t,onSuccess:e,onAbort:n}){const{t:r}=Re(),s=ie(null);return _(Js,{ref:s,onSubmit:i=>{i.preventDefault();const a=new FormData(s.current).get("phone");if(!a){console.error("Phone number is required");return}t.mutate({phone:a},{onSuccess:()=>{console.log("OTP created successfully for phone:",a),e(a)},onError:l=>{console.error("Error creating OTP:",l)}})},children:[_("label",{htmlFor:"phone",children:r("LoginForm.yourPhone")}),_("input",{type:"tel",name:"phone",required:!0}),_(Pe,{type:"submit",children:r("LoginForm.sendLinkToPhone")}),_(Pe,{variant:"secondary",type:"button",onClick:n,children:r("LoginForm.abort")})]})}function ip({onSelect:t}){const{t:e}=Re();return _(op,{children:[_(Pe,{onClick:()=>t("email"),children:e("LoginForm.loginWithEmail")}),_(Pe,{onClick:()=>t("phone"),children:e("LoginForm.loginWithPhone")})]})}const op=B.div`
184	display: flex;
185	flex-direction: column;
186	gap: 1rem;
187`;function ap({handler:t,onAbort:e}){var i,o;const{t:n}
187=Re(),r=ut(),[s]=ep(r);return s.isLoading?_("p",{children:n("LoginForm.loadingProfiles")}):s.isError?_("p",{children:n("LoginForm.errorLoadingProfiles",{error:s.error.message})}):!s.data||((i=s.data)==null?void 0:i.profiles.length)===0?_("div",{children:[_("p",{children:n("LoginForm.noProfilesFound")}),_(Pe,{onClick:a=>{a.preventDefault(),e()},children:"Avbryt och återgå"})]}):_("div",{children:[_("h1",{children:n("LoginForm.selectProfile")}),_("ul",{children:(o=s.data)==null?void 0:o.profiles.map(a=>_("li",{children:[_("a",{href:"#",onClick:l=>{l.preventDefault(),t.mutate(a.id)},children:[a.firstName," ",a.lastName]}),_("div",{children:a.vasaId})]},a.id))})]})}function lp({handler:t,method:e,value:n,onAbort:r}){const{t:s}=Re(),i=ie(null);return _(Js,{ref:i,onSubmit:o=>{o.preventDefault();const l=new FormData(i.current).get("code");t.mutate({[e]:n,code:l},{onError:c=>{console.error("Error verifying OTP:",c)}})},children:[_("label",{htmlFor:"otp",children:s("LoginForm.enterCodeSentTo")}),_("input",{type:"text",name:"code",required:!0}),_(Pe,{type:"submit",children:s("LoginForm.verify")}),_(Pe,{variant:"secondary",type:"button",onClick:r,children:s("LoginForm.abort")})]})}function cp(t){const{defaultProps:e}=t,n=ut(),[r]=nn("accessToken",n),[s]=Lt(n),[i,o]=te(),[a,l]=te(void 0),{createOtp:c,verifyOtp:f,selectProfile:u}=tp(n),g=c(),m=f(),d=u();return _(Sh,{children:_(up,{pending:g.isPending||m.isPending||d.isPending,children:r.data?_("div",{children:[s.data&&_(rp,{}),_(ap,{handler:d,onAbort:()=>{o(void 0),l(void 0),window.location.href="./?logout=1"}})]}):_(de,{children:[!i&&_(ip,{onSelect:o}),i==="email"&&!a&&_(np,{handler:g,onSuccess:p=>{l(p)},onAbort:()=>o(void 0)}),i==="phone"&&!a&&_(sp,{handler:g,onSuccess:p=>{l(p)},onAbort:()=>o(void 0)}),i&&a&&_(lp,{handler:m,method:i,value:a,onAbort:()=>{o(void 0),l(void 0)}})]})})})}const up=B.form`
188	transition: opacity 0.2s;
189
190	${({pending:t})=>t&&Vs`
191			opacity: 0.75;
192			pointer-events: none;
193		`}
194`;function fp(t){const{defaultProps:e}=t,n=ut(),[r]=Lt(n),[s]=nn("accessToken",n),{t:i}=Re();return _(dp,{children:[r.data?_("div",{className:"logged-in",children:[_("div",{className:"logged-in__avatar",children:[_("span",{role:"img",className:"emoji-neutral",children:"😊"}),_("span",{role:"img",className:"emoji-positive",children:"😄"})]}),_("div",{className:"logged-in__user",children:[_("a",{href:"./mina-sidor",className:"logged-in__name",children:[r.data.firstName," ",r.data.lastName]}),_("a",{href:"./?logout=1",className:"logged-in__logout",children:i("LoginOutbutton.logout")})]})]}):s.data?_(de,{children:[_("strong",{children:i("LoginOutbutton.choseProfile")}),_("a",{href:"./?logout=1",children:i("LoginOutbutton.logout")})]}):_("a",{href:"./",children:i("LoginOutbutton.login")}),e==null?void 0:e.children]})}const dp=B.div`
195	display: flex;
196	flex-direction: column;
197
198	.logged-in {
199		display: flex;
200		align-items: center;
201		vertical-align: middle;
202		justify-content: center;
203		flex-wrap: wrap;
204		gap: 0.5rem;
205		&__avatar {
206			width: 3rem;
207			height: 3rem;
208			border-radius: 50%;
209			background-color: #ffa31833;
210			display: flex;
211			align-items: center;
212			justify-content: center;
213			font-size: 2rem;
214			pointer-events: none;
215			user-select: none;
216			transition: transform 0.3s ease-in-out;
217		}
218		&__name {
219			font-weight: 600;
220			text-decoration: none;
221			color: currentColor;
222		}
223		&__user {
224			display: flex;
225			flex-direction: column;
226		}
227		&__logout {
228			font-size: 0.875rem;
229		}
230
231		.emoji-positive {
232			display: none;
233		}
234		&:hover {
235			.logged-in__avatar {
236				transform: rotate(360deg);
237			}
238			.emoji-neutral {
239				display: none;
240			}
241			.emoji-positive {
242				display: inline;
243			}
244		}
245	}
246`;var Kn={};const hp=du(ns);var yo;function pp(){if(yo)return Kn;yo=1;function t(i){if(typeof window>"u")return;const o=document.createElement("style");return o.setAttribute("type","text/css"),o.innerHTML=i,document.head.appendChild(o),i}Object.defineProperty(Kn,"__esModule",{value:!0});var e=hp;function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var r=n(e);t(`.rfm-marquee-container {
247  overflow-x: hidden;
248  display: flex;
249  flex-direction: row;
250  position: relative;
251  width: var(--width);
252  transform: var(--transform);
253}
254.rfm-marquee-container:hover div {
255  animation-play-state: var(--pause-on-hover);
256}
257.rfm-marquee-container:active div {
258  animation-play-state: var(--pause-on-click);
259}
260
261.rfm-overlay {
262  position: absolute;
263  width: 100%;
264  height: 100%;
265}
266.rfm-overlay::before, .rfm-overlay::after {
267  background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));
268  content: "";
269  height: 100%;
270  position: absolute;
271  width: var(--gradient-width);
272  z-index: 2;
273  pointer-events: none;
274  touch-action: none;
275}
276.rfm-overlay::after {
277  right: 0;
278  top: 0;
279  transform: rotateZ(180deg);
280}
281.rfm-overlay::before {
282  left: 0;
283  top: 0;
284}
285
286.rfm-marquee {
287  flex: 0 0 auto;
288  min-width: var(--min-width);
289  z-index: 1;
290  display: flex;
291  flex-direction: row;
292  align-items: center;
293  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);
294  animation-play-state: var(--play);
295  animation-delay: var(--delay);
296  animation-direction: var(--direction);
297}
298@keyframes scroll {
299  0% {
300    transform: translateX(0%);
301  }
302  100% {
303    transform: translateX(-100%);
304  }
305}
306
307.rfm-initial-child-container {
308  flex: 0 0 auto;
309  display: flex;
310  min-width: auto;
311  flex-direction: row;
312  align-items: center;
313}
314
315.rfm-child {
316  transform: var(--transform);
317}`);const s=e.forwardRef(function({style:o={},className:a="",autoFill:l=!1,play:c=!0,pauseOnHover:f=!1,pauseOnClick:u=!1,direction:g="left",speed:m=50,delay:d=0,loop:p=0,gradient:y=!1,gradientColor:w="white",gradientWidth:S=200,onFinish:x,onCycleComplete:C,onMount:v,children:O},P){const[T,R]=e.useState(0),[k,D]=e.useState(0),[J,X]=e.useState(1),[ae,Un]=e.useState(!1),be=e.useRef(null),Z=P||be,Se=e.useRef(null),Te=e.useCallback(()=>{if(Se.current&&Z.current){const _e=Z.current.getBoundingClientRect(),Cr=Se.current.getBoundingClientRect();let ft=_e.width,dt=Cr.width;(g==="up"||g==="down")&&(ft=_e.height,dt=Cr.height),X(l&&ft&&dt&&dt<ft?Math.ceil(ft/dt):1),R(ft),D(dt)}},[l,Z,g]);e.useEffect(()=>{if(ae&&(Te(),Se.current&&Z.current)){const _e=new ResizeObserver(()=>Te());return _e.observe(Z.current),_e.observe(Se.current),()=>{_e&&_e.disconnect()}}},[Te,Z,ae]),e.useEffect(()=>{Te()},[Te,O]),e.useEffect(()=>{Un(!0)},[]),e.useEffect(()=>{typeof v=="function"&&v()},[]);const un=e.useMemo(()=>l?k*J/m:k<T?T/m:k/m,[l,T,k,J,m]),le=e.useMemo(()=>Object.assign(Object.assign({},o),{"--pause-on-hover":!c||f?"paused":"running","--pause-on-click":!c||f&&!u||u?"paused":"running","--width":g==="up"||g==="down"?"100vh":"100%","--transform":g==="up"?"rotate(-90deg)":g==="down"?"rotate(90deg)":"none"}),[o,c,f,u,g]),qe=e.useMemo(()=>({"--gradient-color":w,"--gradient-width":typeof S=="number"?`${S}px`:S}),[w,S]),Je=e.useMemo(()=>({"--play":c?"running":"paused","--direction":g==="left"?"normal":"reverse","--duration":`${un}s`,"--delay":`${d}s`,"--iteration-count":p?`${p}`:"infinite","--min-width":l?"auto":"100%"}),[c,g,un,d,p,l]),At=e.useMemo(()=>({"--transform":g==="up"?"rotate(90deg)":g==="down"?"rotate(-90deg)":"none"}),[g]),fn=e.useCallback(_e=>[...Array(Number.isFinite(_e)&&_e>=0?_e:0)].map((Cr,ft)=>r.default.createElement(e.Fragment,{key:ft},e.Children.map(O,dt=>r.default.createElement("div",{style:At,className:"rfm-child"},dt)))),[At,O]);return ae?r.default.createElement("div",{ref:Z,style:le,className:"rfm-marquee-container "+a},y&&r.default.createElement("div",{style:qe,className:"rfm-overlay"}),r.default.createElement("div",{className:"rfm-marquee",style:Je,onAnimationIteration:C,onAnimationEnd:x},r.default.createElement("div",{className:"rfm-initial-child-container",ref:Se},e.Children.map(O,_e=>r.default.createElement("div",{style:At,className:"rfm-child"},_e))),fn(J-1)),r.default.createElement("div",{className:"rfm-marquee",style:Je},fn(J))):null});return Kn.default=s,Kn}var mp=pp();const _o=fu(mp),gp=()=>({queryKey:["site-message"],queryFn:()=>Ws.get("/site-message"),staleTime:1/0,refetchInterval:20*1e3,refetchOnWindowFocus:!0}),yp=()=>({query:Tt(gp())});function _p(){const{query:t}=yp();if(Q(()=>
317{if(!t.data||!t.data.message){document.body.classList.remove("vl-site-message-active");return}return document.body.classList.add("vl-site-message-active"),()=>{document.body.classList.remove("vl-site-message-active")}},[t.data]),!t.data||!t.data.message)return null;const{message:e,severity:n,link:r}=t.data;return r&&r.url?_("a",{href:r.url,target:r.target,className:`vl-site-message__content vl-site-message__content--${n}`,children:_(_o,{className:"vl-site-message__marquee",pauseOnHover:!0,children:_("div",{dangerouslySetInnerHTML:{__html:e}})})}):_("div",{className:`vl-site-message__content vl-site-message__content--${n}`,children:_(_o,{className:"vl-site-message__marquee",pauseOnHover:!0,children:_("div",{dangerouslySetInnerHTML:{__html:e}})})})}const{slice:vp,forEach:bp}=[];function wp(t){return bp.call(vp.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function Sp(t){return typeof t!="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(n=>n.test(t))}const vo=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,xp=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},s=encodeURIComponent(e);let i=`${t}=${s}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!vo.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!vo.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invali
317d");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},bo={create(t,e,n,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+n*60*1e3)),r&&(s.domain=r),document.cookie=xp(t,e,s)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let s=n[r];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var Cp={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return bo.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:s,cookieOptions:i}=e;n&&typeof document<"u"&&bo.create(n,t,r,s,i)}},Op={name:"querystring",lookup(t){var r;let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:s}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(s=window.location.hash.substring(window.location.hash.indexOf("?")));const o=s.substring(1).split("&");for(let a=0;a<o.length;a++){const l=o[a].indexOf("=");l>0&&o[a].substring(0,l)===e&&(n=o[a].substring(l+1))}}return n}},Ep={name:"hash",lookup(t){var s;let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(e){const a=o.split("&");for(let l=0;l<a.length;l++){const c=a[l].indexOf("=");c>0&&a[l].substring(0,c)===e&&(r=a[l].substring(c+1))}}if(r)return r;if(!r&&n>-1){const a=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?(s=a[typeof n=="number"?n:0])==null?void 0:s.replace("/",""):void 0}}}return r}};let Ft=null;const wo=()=>{if(Ft!==null)return Ft;try{if(Ft=typeof window<"u"&&window.localStorage!==null,!Ft)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Ft=!1}return Ft};var Pp={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&wo())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&wo()&&window.localStorage.setItem(n,t)}};let $t=null;const So=()=>{if($t!==null)return $t;try{if($t=typeof window<"u"&&window.sessionStorage!==null,!$t)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{$t=!1}return $t};var Rp={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&So())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&So()&&window.sessionStorage.setItem(n,t)}},kp={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:s}=navigator;if(n)for(let i=0;i<n.length;i++)e.push(n[i]);r&&e.push(r),s&&e.push(s)}return e.length>0?e:void 0}},Tp={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Lp={name:"path",lookup(t){var s;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(s=n[typeof e=="number"?e:0])==null?void 0:s.replace("/",""):void 0}},Ap={name:"subdomain",lookup(t){var s,i;let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&((i=(s=window.location)==null?void 0:s.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let Il=!1;try{document.cookie,Il=!0}catch{}const Ul=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Il||Ul.splice(1,1);const Np=()=>({order:Ul,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class Ml{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=wp(n,this.options||{},Np()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=s=>s.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Cp),this.addDetector(Op),this.addDetector(Pp),this.addDetector(Rp),this.addDetector(kp),this.addDetector(Tp),this.addDetector(Lp),this.addDetector(Ap),this.addDetector(Ep)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(r=>{if(this.detectors[r]){let s=this.detectors[r].lookup(this.options);s&&typeof s=="string"&&(s=[s]),s&&(n=n.concat(s))}}),n=n.filter(r=>r!=null&&!Sp(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}
317cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}Ml.type="languageDetector";const Fp={loginWithEmail:"Login with email",loginWithPhone:"Login with phone",sendLinkToEmail:"Send link to email address",sendLinkToPhone:"Send link to phone",yourEmail:"Your email address:",yourPhone:"Your phone number:",enterCodeSentTo:"Enter your verification code",abort:"Abort and go back",verify:"Verify",noProfilesFound:"No profiles found.",loadingProfiles:"Loading profiles...",errorLoadingProfiles:"Error loading profiles: {{error}}",selectProfile:"Select a profile",loggedIn:"Logged in",email:"Email",vasaId:"VasaID",logout:"Logout"},$p={choseProfile:"Almost logged in, choose a profile",login:"Login",logout:"Logout"},Dp={title:"Your Races"},Ip={filters:{allSportCategories:"Choose sport",allCategories:"All guides & tips",allAudiences:"All audiences"}},Up={filters:{showFilters:"Show filters",hideFilters:"Hide filters",scrollToEvents:"Scroll down to see events",allCategories:"All categories",allSportCategories:"All sports",allDates:"From today"},status:{loading:"Loading...",error:"Error loading calendar data.",noEvents:"No calendar events found."}},Mp={LoginForm:Fp,LoginOutbutton:$p,ProfileRaces:Dp,GuidesFilters:Ip,Calendar:Up},jp={loginWithEmail:"Logga in med e-post",loginWithPhone:"Logga in med telefon",sendLinkToEmail:"Skicka länk till e-postadress",sendLinkToPhone:"Skicka kod till telefonnummer",yourEmail:"Din e-postadress:",yourPhone:"Ditt telefonnummer:",enterCodeSentTo:"Ange din verifieringskod",abort:"Avbryt och återgå",verify:"Verifiera",noProfilesFound:"Inga profiler hittades.",loadingProfiles:"Hämtar profiler...",errorLoadingProfiles:"Fel vid inläsning av profiler: {{error}}",selectProfile:"Välj en profil",loggedIn:"Inloggad",email:"E-post",vasaId:"VasaID",logout:"Logga ut"},qp={choseProfile:"Nästan inloggad, välj en profil",login:"Logga in",logout:"Logga ut"},Hp={title:"Dina lopp"},Bp={filters:{allSportCategories:"Välj disciplin",allCategories:"Alla guider & tips",allAudiences:"Deltagare & publik"}},Vp={filters:{showFilters:"Visa filter",hideFilters:"Dölj filter",scrollToEvents:"Scrolla ner för att se evenemang",allCategories:"Alla kategorier",allSportCategories:"Alla discipliner",allDates:"Från idag"},status:{loading:"Hämtar kalenderdata...",error:"Fel vid inläsning av kalenderdata.",noEvents:"Inga kalenderhändelser hittades."}},zp={LoginForm:jp,LoginOutbutton:qp,ProfileRaces:Hp,GuidesFilters:Bp,Calendar:Vp};function Kp(){try{window.localStorage.removeItem("i18nextLng")}catch{}return ne.use(Ml).use(Cu).init({fallbackLng:"sv",supportedLngs:["en","sv"],defaultNS:"common",resources:{en:{common:Mp},sv:{common:zp}},debug:!1,react:{useSuspense:!0},detection:{order:["htmlTag","querystring","navigator"],lookupQuerystring:"lang",caches:[]},load:"languageOnly"})}const jl=window.queryClient||new uc;window.queryClient=jl;const xo={calendar:_(Wh,{}),"guides-filters":_(Xh,{}),login:_(cp,{}),"login-out-button":_(fp,{}),"profile-races":_($l,{}),"profile-tickets":_(Dl,{}),"site-message":_(_p,{})};async function Qp(){await Kp(),document.addEventListener("mountPreactComponents",()=>{document.querySelectorAll("[data-preact]").forEach(t=>{const e=t.getAttribute("data-preact");if(e&&xo[e]){const n=t.getAttribute("data-preact-props")?JSON.parse(t.getAttribute("data-preact-props")):void 0;Zt(_(Ru,{i18n:ne,children:_(It,{fallback:null,children:_(Nc,{client:jl,children:Go(xo[e],{defaultProps:n})})})}),t)}})}),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{document.dispatchEvent(new Event("mountPreactComponents"))}):document.dispatchEvent(new Event("mountPreactComponents"))}Qp();

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