const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/react-Ca1Iu9qz.js","assets/custom-media-element-Ce0vsE-t.js","assets/mixin-Cp5RyXal.js","assets/react-CpDyoesV.js","assets/index-DWDWqxJH.js"])))=>i.map(i=>d[i]);
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();var ha=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Of={exports:{}},fl={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ay;function Px(){if(ay)return fl;ay=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function i(r,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var p in l)p!=="key"&&(c[p]=l[p])}else c=l;return l=c.ref,{$$typeof:t,type:r,key:d,ref:l!==void 0?l:null,props:c}}return fl.Fragment=e,fl.jsx=i,fl.jsxs=i,fl}var ry;function Bx(){return ry||(ry=1,Of.exports=Px()),Of.exports}var g=Bx(),Rf={exports:{}},Ne={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sy;function zx(){if(sy)return Ne;sy=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;function w(_){return _===null||typeof _!="object"?null:(_=b&&_[b]||_["@@iterator"],typeof _=="function"?_:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,I={};function G(_,K,se){this.props=_,this.context=K,this.refs=I,this.updater=se||x}G.prototype.isReactComponent={},G.prototype.setState=function(_,K){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,K,"setState")},G.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function E(){}E.prototype=G.prototype;function L(_,K,se){this.props=_,this.context=K,this.refs=I,this.updater=se||x}var k=L.prototype=new E;k.constructor=L,T(k,G.prototype),k.isPureReactComponent=!0;var Y=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},A=Object.prototype.hasOwnProperty;function X(_,K,se,ne,de,Me){return se=Me.ref,{$$typeof:t,type:_,key:K,ref:se!==void 0?se:null,props:Me}}function $(_,K){return X(_.type,K,void 0,void 0,void 0,_.props)}function F(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function J(_){var K={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(se){return K[se]})}var ie=/\/+/g;function ae(_,K){return typeof _=="object"&&_!==null&&_.key!=null?J(""+_.key):K.toString(36)}function oe(){}function pe(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(oe,oe):(_.status="pending",_.then(function(K){_.status==="pending"&&(_.status="fulfilled",_.value=K)},function(K){_.status==="pending"&&(_.status="rejected",_.reason=K)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function be(_,K,se,ne,de){var Me=typeof _;(Me==="undefined"||Me==="boolean")&&(_=null);var ve=!1;if(_===null)ve=!0;else switch(Me){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(_.$$typeof){case t:case e:ve=!0;break;case v:return ve=_._init,be(ve(_._payload),K,se,ne,de)}}if(ve)return de=de(_),ve=ne===""?"."+ae(_,0):ne,Y(de)?(se="",ve!=null&&(se=ve.replace(ie,"$&/")+"/"),be(de,K,se,"",function(at){return at})):de!=null&&(F(de)&&(de=$(de,se+(de.key==null||_&&_.key===de.key?"":(""+de.key).replace(ie,"$&/")+"/")+ve)),K.push(de)),1;ve=0;var ke=ne===""?".":ne+":";if(Y(_))for(var ye=0;ye<_.length;ye++)ne=_[ye],Me=ke+ae(ne,ye),ve+=be(ne,K,se,Me,de);else if(ye=w(_),typeof ye=="function")for(_=ye.call(_),ye=0;!(ne=_.next()).done;)ne=ne.value,Me=ke+ae(ne,ye++),ve+=be(ne,K,se,Me,de);else if(Me==="object"){if(typeof _.then=="function")return be(pe(_),K,se,ne,de);throw K=String(_),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ve}function M(_,K,se){if(_==null)return _;var ne=[],de=0;return be(_,ne,"","",function(Me){return K.call(se,Me,de++)}),ne}function Z(_){if(_._status===-1){var K=_._result;K=K(),K.then(function(se){(_._status===0||_._status===-1)&&(_._status=1,_._result=se)},function(se){(_._status===0||_._status===-1)&&(_._status=2,_._result=se)}),_._status===-1&&(_._status=0,_._result=K)}if(_._status===1)return _._result.default;throw _._result}var re=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function ce(){}return Ne.Children={map:M,forEach:function(_,K,se){M(_,function(){K.apply(this,arguments)},se)},count:function(_){var K=0;return M(_,function(){K++}),K},toArray:function(_){return M(_,function(K){return K})||[]},only:function(_){if(!F(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Ne.Component=G,Ne.Fragment=i,Ne.Profiler=l,Ne.PureComponent=L,Ne.StrictMode=r,Ne.Suspense=h,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(_){return D.H.useMemoCache(_)}},Ne.cache=function(_){return function(){return _.apply(null,arguments)}},Ne.cloneElement=function(_,K,se){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var ne=T({},_.props),de=_.key,Me=void 0;if(K!=null)for(ve in K.ref!==void 0&&(Me=void 0),K.key!==void 0&&(de=""+K.key),K)!A.call(K,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&K.ref===void 0||(ne[ve]=K[ve]);var ve=arguments.length-2;if(ve===1)ne.children=se;else if(1<ve){for(var ke=Array(ve),ye=0;ye<ve;ye++)ke[ye]=arguments[ye+2];ne.children=ke}return X(_.type,de,void 0,void 0,Me,ne)},Ne.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:c,_context:_},_},Ne.createElement=function(_,K,se){var ne,de={},Me=null;if(K!=null)for(ne in K.key!==void 0&&(Me=""+K.key),K)A.call(K,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(de[ne]=K[ne]);var ve=arguments.length-2;if(ve===1)de.children=se;else if(1<ve){for(var ke=Array(ve),ye=0;ye<ve;ye++)ke[ye]=arguments[ye+2];de.children=ke}if(_&&_.defaultProps)for(ne in ve=_.defaultProps,ve)de[ne]===void 0&&(de[ne]=ve[ne]);return X(_,Me,void 0,void 0,null,de)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(_){return{$$typeof:p,render:_}},Ne.isValidElement=F,Ne.lazy=function(_){return{$$typeof:v,_payload:{_status:-1,_result:_},_init:Z}},Ne.memo=function(_,K){return{$$typeof:m,type:_,compare:K===void 0?null:K}},Ne.startTransition=function(_){var K=D.T,se={};D.T=se;try{var ne=_(),de=D.S;de!==null&&de(se,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(ce,re)}catch(Me){re(Me)}finally{D.T=K}},Ne.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Ne.use=function(_){return D.H.use(_)},Ne.useActionState=function(_,K,se){return D.H.useActionState(_,K,se)},Ne.useCallback=function(_,K){return D.H.useCallback(_,K)},Ne.useContext=function(_){return D.H.useContext(_)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(_,K){return D.H.useDeferredValue(_,K)},Ne.useEffect=function(_,K,se){var ne=D.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(_,K)},Ne.useId=function(){return D.H.useId()},Ne.useImperativeHandle=function(_,K,se){return D.H.useImperativeHandle(_,K,se)},Ne.useInsertionEffect=function(_,K){return D.H.useInsertionEffect(_,K)},Ne.useLayoutEffect=function(_,K){return D.H.useLayoutEffect(_,K)},Ne.useMemo=function(_,K){return D.H.useMemo(_,K)},Ne.useOptimistic=function(_,K){return D.H.useOptimistic(_,K)},Ne.useReducer=function(_,K,se){return D.H.useReducer(_,K,se)},Ne.useRef=function(_){return D.H.useRef(_)},Ne.useState=function(_){return D.H.useState(_)},Ne.useSyncExternalStore=function(_,K,se){return D.H.useSyncExternalStore(_,K,se)},Ne.useTransition=function(){return D.H.useTransition()},Ne.version="19.1.0",Ne}var ly;function Lh(){return ly||(ly=1,Rf.exports=zx()),Rf.exports}var N=Lh();const ze=iu(N);var Mf={exports:{}},hl={},Nf={exports:{}},kf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oy;function Ux(){return oy||(oy=1,function(t){function e(M,Z){var re=M.length;M.push(Z);e:for(;0<re;){var ce=re-1>>>1,_=M[ce];if(0<l(_,Z))M[ce]=Z,M[re]=_,re=ce;else break e}}function i(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var Z=M[0],re=M.pop();if(re!==Z){M[0]=re;e:for(var ce=0,_=M.length,K=_>>>1;ce<K;){var se=2*(ce+1)-1,ne=M[se],de=se+1,Me=M[de];if(0>l(ne,re))de<_&&0>l(Me,ne)?(M[ce]=Me,M[de]=re,ce=de):(M[ce]=ne,M[se]=re,ce=se);else if(de<_&&0>l(Me,re))M[ce]=Me,M[de]=re,ce=de;else break e}}return Z}function l(M,Z){var re=M.sortIndex-Z.sortIndex;return re!==0?re:M.id-Z.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();t.unstable_now=function(){return d.now()-p}}var h=[],m=[],v=1,b=null,w=3,x=!1,T=!1,I=!1,G=!1,E=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function Y(M){for(var Z=i(m);Z!==null;){if(Z.callback===null)r(m);else if(Z.startTime<=M)r(m),Z.sortIndex=Z.expirationTime,e(h,Z);else break;Z=i(m)}}function D(M){if(I=!1,Y(M),!T)if(i(h)!==null)T=!0,A||(A=!0,ae());else{var Z=i(m);Z!==null&&be(D,Z.startTime-M)}}var A=!1,X=-1,$=5,F=-1;function J(){return G?!0:!(t.unstable_now()-F<$)}function ie(){if(G=!1,A){var M=t.unstable_now();F=M;var Z=!0;try{e:{T=!1,I&&(I=!1,L(X),X=-1),x=!0;var re=w;try{t:{for(Y(M),b=i(h);b!==null&&!(b.expirationTime>M&&J());){var ce=b.callback;if(typeof ce=="function"){b.callback=null,w=b.priorityLevel;var _=ce(b.expirationTime<=M);if(M=t.unstable_now(),typeof _=="function"){b.callback=_,Y(M),Z=!0;break t}b===i(h)&&r(h),Y(M)}else r(h);b=i(h)}if(b!==null)Z=!0;else{var K=i(m);K!==null&&be(D,K.startTime-M),Z=!1}}break e}finally{b=null,w=re,x=!1}Z=void 0}}finally{Z?ae():A=!1}}}var ae;if(typeof k=="function")ae=function(){k(ie)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,pe=oe.port2;oe.port1.onmessage=ie,ae=function(){pe.postMessage(null)}}else ae=function(){E(ie,0)};function be(M,Z){X=E(function(){M(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_next=function(M){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var re=w;w=Z;try{return M()}finally{w=re}},t.unstable_requestPaint=function(){G=!0},t.unstable_runWithPriority=function(M,Z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var re=w;w=M;try{return Z()}finally{w=re}},t.unstable_scheduleCallback=function(M,Z,re){var ce=t.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ce+re:ce):re=ce,M){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=re+_,M={id:v++,callback:Z,priorityLevel:M,startTime:re,expirationTime:_,sortIndex:-1},re>ce?(M.sortIndex=re,e(m,M),i(h)===null&&M===i(m)&&(I?(L(X),X=-1):I=!0,be(D,re-ce))):(M.sortIndex=_,e(h,M),T||x||(T=!0,A||(A=!0,ae()))),M},t.unstable_shouldYield=J,t.unstable_wrapCallback=function(M){var Z=w;return function(){var re=w;w=Z;try{return M.apply(this,arguments)}finally{w=re}}}}(kf)),kf}var cy;function Hx(){return cy||(cy=1,Nf.exports=Ux()),Nf.exports}var Df={exports:{}},Dt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var uy;function Vx(){if(uy)return Dt;uy=1;var t=Lh();function e(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(e(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(h,m,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:b==null?null:""+b,children:h,containerInfo:m,implementation:v}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Dt.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(e(299));return c(h,m,null,v)},Dt.flushSync=function(h){var m=d.T,v=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=m,r.p=v,r.d.f()}},Dt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},Dt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Dt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,b=p(v,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:x}):v==="script"&&r.d.X(h,{crossOrigin:b,integrity:w,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Dt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},Dt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=p(v,m.crossOrigin);r.d.L(h,v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Dt.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=p(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},Dt.requestFormReset=function(h){r.d.r(h)},Dt.unstable_batchedUpdates=function(h,m){return h(m)},Dt.useFormState=function(h,m,v){return d.H.useFormState(h,m,v)},Dt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Dt.version="19.1.0",Dt}var dy;function cb(){if(dy)return Df.exports;dy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Df.exports=Vx(),Df.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fy;function Gx(){if(fy)return hl;fy=1;var t=Hx(),e=Lh(),i=cb();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(s=a.return),n=a.return;while(n)}return a.tag===3?s:null}function d(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(c(n)!==n)throw Error(r(188))}function h(n){var a=n.alternate;if(!a){if(a=c(n),a===null)throw Error(r(188));return a!==n?null:n}for(var s=n,o=a;;){var u=s.return;if(u===null)break;var f=u.alternate;if(f===null){if(o=u.return,o!==null){s=o;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===s)return p(u),n;if(f===o)return p(u),a;f=f.sibling}throw Error(r(188))}if(s.return!==o.return)s=u,o=f;else{for(var y=!1,S=u.child;S;){if(S===s){y=!0,s=u,o=f;break}if(S===o){y=!0,o=u,s=f;break}S=S.sibling}if(!y){for(S=f.child;S;){if(S===s){y=!0,s=f,o=u;break}if(S===o){y=!0,o=f,s=u;break}S=S.sibling}if(!y)throw Error(r(189))}}if(s.alternate!==o)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:a}function m(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=m(n),a!==null)return a;n=n.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),k=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ae(n){return n===null||typeof n!="object"?null:(n=ie&&n[ie]||n["@@iterator"],typeof n=="function"?n:null)}var oe=Symbol.for("react.client.reference");function pe(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===oe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case T:return"Fragment";case G:return"Profiler";case I:return"StrictMode";case D:return"Suspense";case A:return"SuspenseList";case F:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case k:return(n.displayName||"Context")+".Provider";case L:return(n._context.displayName||"Context")+".Consumer";case Y:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case X:return a=n.displayName||null,a!==null?a:pe(n.type)||"Memo";case $:a=n._payload,n=n._init;try{return pe(n(a))}catch{}}return null}var be=Array.isArray,M=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ce=[],_=-1;function K(n){return{current:n}}function se(n){0>_||(n.current=ce[_],ce[_]=null,_--)}function ne(n,a){_++,ce[_]=n.current,n.current=a}var de=K(null),Me=K(null),ve=K(null),ke=K(null);function ye(n,a){switch(ne(ve,a),ne(Me,n),ne(de,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?kv(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=kv(a),n=Dv(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}se(de),ne(de,n)}function at(){se(de),se(Me),se(ve)}function We(n){n.memoizedState!==null&&ne(ke,n);var a=de.current,s=Dv(a,n.type);a!==s&&(ne(Me,n),ne(de,s))}function Vt(n){Me.current===n&&(se(de),se(Me)),ke.current===n&&(se(ke),ll._currentValue=re)}var hr=Object.prototype.hasOwnProperty,ps=t.unstable_scheduleCallback,Mn=t.unstable_cancelCallback,bu=t.unstable_shouldYield,Su=t.unstable_requestPaint,Jt=t.unstable_now,Eu=t.unstable_getCurrentPriorityLevel,Wl=t.unstable_ImmediatePriority,Ql=t.unstable_UserBlockingPriority,pr=t.unstable_NormalPriority,ai=t.unstable_LowPriority,ji=t.unstable_IdlePriority,Zl=t.log,ms=t.unstable_setDisableYieldValue,Gt=null,ot=null;function Nn(n){if(typeof Zl=="function"&&ms(n),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Gt,n)}catch{}}var _t=Math.clz32?Math.clz32:Jl,xu=Math.log,Gn=Math.LN2;function Jl(n){return n>>>=0,n===0?32:31-(xu(n)/Gn|0)|0}var xa=256,Ta=4194304;function ri(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Aa(n,a,s){var o=n.pendingLanes;if(o===0)return 0;var u=0,f=n.suspendedLanes,y=n.pingedLanes;n=n.warmLanes;var S=o&134217727;return S!==0?(o=S&~f,o!==0?u=ri(o):(y&=S,y!==0?u=ri(y):s||(s=S&~n,s!==0&&(u=ri(s))))):(S=o&~f,S!==0?u=ri(S):y!==0?u=ri(y):s||(s=o&~n,s!==0&&(u=ri(s)))),u===0?0:a!==0&&a!==u&&(a&f)===0&&(f=u&-u,s=a&-a,f>=s||f===32&&(s&4194048)!==0)?a:u}function qn(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function eo(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var n=xa;return xa<<=1,(xa&4194048)===0&&(xa=256),n}function to(){var n=Ta;return Ta<<=1,(Ta&62914560)===0&&(Ta=4194304),n}function gr(n){for(var a=[],s=0;31>s;s++)a.push(n);return a}function Ca(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function no(n,a,s,o,u,f){var y=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var S=n.entanglements,C=n.expirationTimes,z=n.hiddenUpdates;for(s=y&~s;0<s;){var W=31-_t(s),ee=1<<W;S[W]=0,C[W]=-1;var U=z[W];if(U!==null)for(z[W]=null,W=0;W<U.length;W++){var H=U[W];H!==null&&(H.lane&=-536870913)}s&=~ee}o!==0&&_a(n,o,0),f!==0&&u===0&&n.tag!==0&&(n.suspendedLanes|=f&~(y&~a))}function _a(n,a,s){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-_t(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|s&4194090}function Oa(n,a){var s=n.entangledLanes|=a;for(n=n.entanglements;s;){var o=31-_t(s),u=1<<o;u&a|n[o]&a&&(n[o]|=a),s&=~u}}function gs(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function vs(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function O(){var n=Z.p;return n!==0?n:(n=window.event,n===void 0?32:Zv(n.type))}function P(n,a){var s=Z.p;try{return Z.p=n,a()}finally{Z.p=s}}var V=Math.random().toString(36).slice(2),te="__reactFiber$"+V,le="__reactProps$"+V,he="__reactContainer$"+V,Ee="__reactEvents$"+V,ue="__reactListeners$"+V,we="__reactHandles$"+V,me="__reactResources$"+V,Ce="__reactMarker$"+V;function _e(n){delete n[te],delete n[le],delete n[Ee],delete n[ue],delete n[we]}function Re(n){var a=n[te];if(a)return a;for(var s=n.parentNode;s;){if(a=s[he]||s[te]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(n=Pv(n);n!==null;){if(s=n[te])return s;n=Pv(n)}return a}n=s,s=n.parentNode}return null}function Ve(n){if(n=n[te]||n[he]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function rt(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function ct(n){var a=n[me];return a||(a=n[me]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ge(n){n[Ce]=!0}var Ue=new Set,Li={};function jt(n,a){mn(n,a),mn(n+"Capture",a)}function mn(n,a){for(Li[n]=a,n=0;n<a.length;n++)Ue.add(a[n])}var qt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Pi={},Bi={};function ys(n){return hr.call(Bi,n)?!0:hr.call(Pi,n)?!1:qt.test(n)?Bi[n]=!0:(Pi[n]=!0,!1)}function gn(n,a,s){if(ys(a))if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+s)}}function si(n,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+s)}}function Ie(n,a,s,o){if(o===null)n.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(a,s,""+o)}}var Nt,kn;function Dn(n){if(Nt===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);Nt=a&&a[1]||"",kn=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Nt+n+kn}var Ra=!1;function st(n,a){if(!n||Ra)return"";Ra=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(H){var U=H}Reflect.construct(n,[],ee)}else{try{ee.call()}catch(H){U=H}n.call(ee.prototype)}}else{try{throw Error()}catch(H){U=H}(ee=n())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),y=f[0],S=f[1];if(y&&S){var C=y.split(`
`),z=S.split(`
`);for(u=o=0;o<C.length&&!C[o].includes("DetermineComponentFrameRoot");)o++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(o===C.length||u===z.length)for(o=C.length-1,u=z.length-1;1<=o&&0<=u&&C[o]!==z[u];)u--;for(;1<=o&&0<=u;o--,u--)if(C[o]!==z[u]){if(o!==1||u!==1)do if(o--,u--,0>u||C[o]!==z[u]){var W=`
`+C[o].replace(" at new "," at ");return n.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",n.displayName)),W}while(1<=o&&0<=u);break}}}finally{Ra=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?Dn(s):""}function zi(n){switch(n.tag){case 26:case 27:case 5:return Dn(n.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 15:return st(n.type,!1);case 11:return st(n.type.render,!1);case 1:return st(n.type,!0);case 31:return Dn("Activity");default:return""}}function ws(n){try{var a="";do a+=zi(n),n=n.return;while(n);return a}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}function Yt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function _p(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function kE(n){var a=_p(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),o=""+n[a];if(!n.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,f=s.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return u.call(this)},set:function(y){o=""+y,f.call(this,y)}}),Object.defineProperty(n,a,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function io(n){n._valueTracker||(n._valueTracker=kE(n))}function Op(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var s=a.getValue(),o="";return n&&(o=_p(n)?n.checked?"true":"false":n.value),n=o,n!==s?(a.setValue(n),!0):!1}function ao(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var DE=/[\n"\\]/g;function vn(n){return n.replace(DE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Tu(n,a,s,o,u,f,y,S){n.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?n.type=y:n.removeAttribute("type"),a!=null?y==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Yt(a)):n.value!==""+Yt(a)&&(n.value=""+Yt(a)):y!=="submit"&&y!=="reset"||n.removeAttribute("value"),a!=null?Au(n,y,Yt(a)):s!=null?Au(n,y,Yt(s)):o!=null&&n.removeAttribute("value"),u==null&&f!=null&&(n.defaultChecked=!!f),u!=null&&(n.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+Yt(S):n.removeAttribute("name")}function Rp(n,a,s,o,u,f,y,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(n.type=f),a!=null||s!=null){if(!(f!=="submit"&&f!=="reset"||a!=null))return;s=s!=null?""+Yt(s):"",a=a!=null?""+Yt(a):s,S||a===n.value||(n.value=a),n.defaultValue=a}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=S?n.checked:!!o,n.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.name=y)}function Au(n,a,s){a==="number"&&ao(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function vr(n,a,s,o){if(n=n.options,a){a={};for(var u=0;u<s.length;u++)a["$"+s[u]]=!0;for(s=0;s<n.length;s++)u=a.hasOwnProperty("$"+n[s].value),n[s].selected!==u&&(n[s].selected=u),u&&o&&(n[s].defaultSelected=!0)}else{for(s=""+Yt(s),a=null,u=0;u<n.length;u++){if(n[u].value===s){n[u].selected=!0,o&&(n[u].defaultSelected=!0);return}a!==null||n[u].disabled||(a=n[u])}a!==null&&(a.selected=!0)}}function Mp(n,a,s){if(a!=null&&(a=""+Yt(a),a!==n.value&&(n.value=a),s==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=s!=null?""+Yt(s):""}function Np(n,a,s,o){if(a==null){if(o!=null){if(s!=null)throw Error(r(92));if(be(o)){if(1<o.length)throw Error(r(93));o=o[0]}s=o}s==null&&(s=""),a=s}s=Yt(a),n.defaultValue=s,o=n.textContent,o===s&&o!==""&&o!==null&&(n.value=o)}function yr(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=a;return}}n.textContent=a}var IE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function kp(n,a,s){var o=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?o?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":o?n.setProperty(a,s):typeof s!="number"||s===0||IE.has(a)?a==="float"?n.cssFloat=s:n[a]=(""+s).trim():n[a]=s+"px"}function Dp(n,a,s){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,s!=null){for(var o in s)!s.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var u in a)o=a[u],a.hasOwnProperty(u)&&s[u]!==o&&kp(n,u,o)}else for(var f in a)a.hasOwnProperty(f)&&kp(n,f,a[f])}function Cu(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),LE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ro(n){return LE.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var _u=null;function Ou(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var wr=null,br=null;function Ip(n){var a=Ve(n);if(a&&(n=a.stateNode)){var s=n[le]||null;e:switch(n=a.stateNode,a.type){case"input":if(Tu(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+vn(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var o=s[a];if(o!==n&&o.form===n.form){var u=o[le]||null;if(!u)throw Error(r(90));Tu(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(a=0;a<s.length;a++)o=s[a],o.form===n.form&&Op(o)}break e;case"textarea":Mp(n,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&vr(n,!!s.multiple,a,!1)}}}var Ru=!1;function jp(n,a,s){if(Ru)return n(a,s);Ru=!0;try{var o=n(a);return o}finally{if(Ru=!1,(wr!==null||br!==null)&&(Yo(),wr&&(a=wr,n=br,br=wr=null,Ip(a),n)))for(a=0;a<n.length;a++)Ip(n[a])}}function bs(n,a){var s=n.stateNode;if(s===null)return null;var o=s[le]||null;if(o===null)return null;s=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,a,typeof s));return s}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=!1;if(li)try{var Ss={};Object.defineProperty(Ss,"passive",{get:function(){Mu=!0}}),window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{Mu=!1}var Ui=null,Nu=null,so=null;function Lp(){if(so)return so;var n,a=Nu,s=a.length,o,u="value"in Ui?Ui.value:Ui.textContent,f=u.length;for(n=0;n<s&&a[n]===u[n];n++);var y=s-n;for(o=1;o<=y&&a[s-o]===u[f-o];o++);return so=u.slice(n,1<o?1-o:void 0)}function lo(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function oo(){return!0}function Pp(){return!1}function Ft(n){function a(s,o,u,f,y){this._reactName=s,this._targetInst=u,this.type=o,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(s=n[S],this[S]=s?s(f):f[S]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?oo:Pp,this.isPropagationStopped=Pp,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=oo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=oo)},persist:function(){},isPersistent:oo}),a}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},co=Ft(Ma),Es=v({},Ma,{view:0,detail:0}),PE=Ft(Es),ku,Du,xs,uo=v({},Es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==xs&&(xs&&n.type==="mousemove"?(ku=n.screenX-xs.screenX,Du=n.screenY-xs.screenY):Du=ku=0,xs=n),ku)},movementY:function(n){return"movementY"in n?n.movementY:Du}}),Bp=Ft(uo),BE=v({},uo,{dataTransfer:0}),zE=Ft(BE),UE=v({},Es,{relatedTarget:0}),Iu=Ft(UE),HE=v({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),VE=Ft(HE),GE=v({},Ma,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),qE=Ft(GE),YE=v({},Ma,{data:0}),zp=Ft(YE),FE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$E={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KE(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=$E[n])?!!a[n]:!1}function ju(){return KE}var WE=v({},Es,{key:function(n){if(n.key){var a=FE[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=lo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?XE[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(n){return n.type==="keypress"?lo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?lo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),QE=Ft(WE),ZE=v({},uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Up=Ft(ZE),JE=v({},Es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),e1=Ft(JE),t1=v({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),n1=Ft(t1),i1=v({},uo,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),a1=Ft(i1),r1=v({},Ma,{newState:0,oldState:0}),s1=Ft(r1),l1=[9,13,27,32],Lu=li&&"CompositionEvent"in window,Ts=null;li&&"documentMode"in document&&(Ts=document.documentMode);var o1=li&&"TextEvent"in window&&!Ts,Hp=li&&(!Lu||Ts&&8<Ts&&11>=Ts),Vp=" ",Gp=!1;function qp(n,a){switch(n){case"keyup":return l1.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Sr=!1;function c1(n,a){switch(n){case"compositionend":return Yp(a);case"keypress":return a.which!==32?null:(Gp=!0,Vp);case"textInput":return n=a.data,n===Vp&&Gp?null:n;default:return null}}function u1(n,a){if(Sr)return n==="compositionend"||!Lu&&qp(n,a)?(n=Lp(),so=Nu=Ui=null,Sr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Hp&&a.locale!=="ko"?null:a.data;default:return null}}var d1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fp(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!d1[n.type]:a==="textarea"}function Xp(n,a,s,o){wr?br?br.push(o):br=[o]:wr=o,a=Qo(a,"onChange"),0<a.length&&(s=new co("onChange","change",null,s,o),n.push({event:s,listeners:a}))}var As=null,Cs=null;function f1(n){_v(n,0)}function fo(n){var a=rt(n);if(Op(a))return n}function $p(n,a){if(n==="change")return a}var Kp=!1;if(li){var Pu;if(li){var Bu="oninput"in document;if(!Bu){var Wp=document.createElement("div");Wp.setAttribute("oninput","return;"),Bu=typeof Wp.oninput=="function"}Pu=Bu}else Pu=!1;Kp=Pu&&(!document.documentMode||9<document.documentMode)}function Qp(){As&&(As.detachEvent("onpropertychange",Zp),Cs=As=null)}function Zp(n){if(n.propertyName==="value"&&fo(Cs)){var a=[];Xp(a,Cs,n,Ou(n)),jp(f1,a)}}function h1(n,a,s){n==="focusin"?(Qp(),As=a,Cs=s,As.attachEvent("onpropertychange",Zp)):n==="focusout"&&Qp()}function p1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return fo(Cs)}function m1(n,a){if(n==="click")return fo(a)}function g1(n,a){if(n==="input"||n==="change")return fo(a)}function v1(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var en=typeof Object.is=="function"?Object.is:v1;function _s(n,a){if(en(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),o=Object.keys(a);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var u=s[o];if(!hr.call(a,u)||!en(n[u],a[u]))return!1}return!0}function Jp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function em(n,a){var s=Jp(n);n=0;for(var o;s;){if(s.nodeType===3){if(o=n+s.textContent.length,n<=a&&o>=a)return{node:s,offset:a-n};n=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Jp(s)}}function tm(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?tm(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function nm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=ao(n.document);a instanceof n.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)n=a.contentWindow;else break;a=ao(n.document)}return a}function zu(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var y1=li&&"documentMode"in document&&11>=document.documentMode,Er=null,Uu=null,Os=null,Hu=!1;function im(n,a,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Hu||Er==null||Er!==ao(o)||(o=Er,"selectionStart"in o&&zu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Os&&_s(Os,o)||(Os=o,o=Qo(Uu,"onSelect"),0<o.length&&(a=new co("onSelect","select",null,a,s),n.push({event:a,listeners:o}),a.target=Er)))}function Na(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var xr={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionrun:Na("Transition","TransitionRun"),transitionstart:Na("Transition","TransitionStart"),transitioncancel:Na("Transition","TransitionCancel"),transitionend:Na("Transition","TransitionEnd")},Vu={},am={};li&&(am=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);function ka(n){if(Vu[n])return Vu[n];if(!xr[n])return n;var a=xr[n],s;for(s in a)if(a.hasOwnProperty(s)&&s in am)return Vu[n]=a[s];return n}var rm=ka("animationend"),sm=ka("animationiteration"),lm=ka("animationstart"),w1=ka("transitionrun"),b1=ka("transitionstart"),S1=ka("transitioncancel"),om=ka("transitionend"),cm=new Map,Gu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Gu.push("scrollEnd");function In(n,a){cm.set(n,a),jt(a,[n])}var um=new WeakMap;function yn(n,a){if(typeof n=="object"&&n!==null){var s=um.get(n);return s!==void 0?s:(a={value:n,source:a,stack:ws(a)},um.set(n,a),a)}return{value:n,source:a,stack:ws(a)}}var wn=[],Tr=0,qu=0;function ho(){for(var n=Tr,a=qu=Tr=0;a<n;){var s=wn[a];wn[a++]=null;var o=wn[a];wn[a++]=null;var u=wn[a];wn[a++]=null;var f=wn[a];if(wn[a++]=null,o!==null&&u!==null){var y=o.pending;y===null?u.next=u:(u.next=y.next,y.next=u),o.pending=u}f!==0&&dm(s,u,f)}}function po(n,a,s,o){wn[Tr++]=n,wn[Tr++]=a,wn[Tr++]=s,wn[Tr++]=o,qu|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function Yu(n,a,s,o){return po(n,a,s,o),mo(n)}function Ar(n,a){return po(n,null,null,a),mo(n)}function dm(n,a,s){n.lanes|=s;var o=n.alternate;o!==null&&(o.lanes|=s);for(var u=!1,f=n.return;f!==null;)f.childLanes|=s,o=f.alternate,o!==null&&(o.childLanes|=s),f.tag===22&&(n=f.stateNode,n===null||n._visibility&1||(u=!0)),n=f,f=f.return;return n.tag===3?(f=n.stateNode,u&&a!==null&&(u=31-_t(s),n=f.hiddenUpdates,o=n[u],o===null?n[u]=[a]:o.push(a),a.lane=s|536870912),f):null}function mo(n){if(50<Js)throw Js=0,Qd=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Cr={};function E1(n,a,s,o){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(n,a,s,o){return new E1(n,a,s,o)}function Fu(n){return n=n.prototype,!(!n||!n.isReactComponent)}function oi(n,a){var s=n.alternate;return s===null?(s=tn(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,a=n.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function fm(n,a){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,a=s.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function go(n,a,s,o,u,f){var y=0;if(o=n,typeof n=="function")Fu(n)&&(y=1);else if(typeof n=="string")y=Tx(n,s,de.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case F:return n=tn(31,s,a,u),n.elementType=F,n.lanes=f,n;case T:return Da(s.children,u,f,a);case I:y=8,u|=24;break;case G:return n=tn(12,s,a,u|2),n.elementType=G,n.lanes=f,n;case D:return n=tn(13,s,a,u),n.elementType=D,n.lanes=f,n;case A:return n=tn(19,s,a,u),n.elementType=A,n.lanes=f,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case k:y=10;break e;case L:y=9;break e;case Y:y=11;break e;case X:y=14;break e;case $:y=16,o=null;break e}y=29,s=Error(r(130,n===null?"null":typeof n,"")),o=null}return a=tn(y,s,a,u),a.elementType=n,a.type=o,a.lanes=f,a}function Da(n,a,s,o){return n=tn(7,n,o,a),n.lanes=s,n}function Xu(n,a,s){return n=tn(6,n,null,a),n.lanes=s,n}function $u(n,a,s){return a=tn(4,n.children!==null?n.children:[],n.key,a),a.lanes=s,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var _r=[],Or=0,vo=null,yo=0,bn=[],Sn=0,Ia=null,ci=1,ui="";function ja(n,a){_r[Or++]=yo,_r[Or++]=vo,vo=n,yo=a}function hm(n,a,s){bn[Sn++]=ci,bn[Sn++]=ui,bn[Sn++]=Ia,Ia=n;var o=ci;n=ui;var u=32-_t(o)-1;o&=~(1<<u),s+=1;var f=32-_t(a)+u;if(30<f){var y=u-u%5;f=(o&(1<<y)-1).toString(32),o>>=y,u-=y,ci=1<<32-_t(a)+u|s<<u|o,ui=f+n}else ci=1<<f|s<<u|o,ui=n}function Ku(n){n.return!==null&&(ja(n,1),hm(n,1,0))}function Wu(n){for(;n===vo;)vo=_r[--Or],_r[Or]=null,yo=_r[--Or],_r[Or]=null;for(;n===Ia;)Ia=bn[--Sn],bn[Sn]=null,ui=bn[--Sn],bn[Sn]=null,ci=bn[--Sn],bn[Sn]=null}var Lt=null,dt=null,Fe=!1,La=null,Yn=!1,Qu=Error(r(519));function Pa(n){var a=Error(r(418,""));throw Ns(yn(a,n)),Qu}function pm(n){var a=n.stateNode,s=n.type,o=n.memoizedProps;switch(a[te]=n,a[le]=o,s){case"dialog":Be("cancel",a),Be("close",a);break;case"iframe":case"object":case"embed":Be("load",a);break;case"video":case"audio":for(s=0;s<tl.length;s++)Be(tl[s],a);break;case"source":Be("error",a);break;case"img":case"image":case"link":Be("error",a),Be("load",a);break;case"details":Be("toggle",a);break;case"input":Be("invalid",a),Rp(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),io(a);break;case"select":Be("invalid",a);break;case"textarea":Be("invalid",a),Np(a,o.value,o.defaultValue,o.children),io(a)}s=o.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||o.suppressHydrationWarning===!0||Nv(a.textContent,s)?(o.popover!=null&&(Be("beforetoggle",a),Be("toggle",a)),o.onScroll!=null&&Be("scroll",a),o.onScrollEnd!=null&&Be("scrollend",a),o.onClick!=null&&(a.onclick=Zo),a=!0):a=!1,a||Pa(n)}function mm(n){for(Lt=n.return;Lt;)switch(Lt.tag){case 5:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Lt=Lt.return}}function Rs(n){if(n!==Lt)return!1;if(!Fe)return mm(n),Fe=!0,!1;var a=n.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||pf(n.type,n.memoizedProps)),s=!s),s&&dt&&Pa(n),mm(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(s=n.data,s==="/$"){if(a===0){dt=Ln(n.nextSibling);break e}a--}else s!=="$"&&s!=="$!"&&s!=="$?"||a++;n=n.nextSibling}dt=null}}else a===27?(a=dt,na(n.type)?(n=yf,yf=null,dt=n):dt=a):dt=Lt?Ln(n.stateNode.nextSibling):null;return!0}function Ms(){dt=Lt=null,Fe=!1}function gm(){var n=La;return n!==null&&(Kt===null?Kt=n:Kt.push.apply(Kt,n),La=null),n}function Ns(n){La===null?La=[n]:La.push(n)}var Zu=K(null),Ba=null,di=null;function Hi(n,a,s){ne(Zu,a._currentValue),a._currentValue=s}function fi(n){n._currentValue=Zu.current,se(Zu)}function Ju(n,a,s){for(;n!==null;){var o=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),n===s)break;n=n.return}}function ed(n,a,s,o){var u=n.child;for(u!==null&&(u.return=n);u!==null;){var f=u.dependencies;if(f!==null){var y=u.child;f=f.firstContext;e:for(;f!==null;){var S=f;f=u;for(var C=0;C<a.length;C++)if(S.context===a[C]){f.lanes|=s,S=f.alternate,S!==null&&(S.lanes|=s),Ju(f.return,s,n),o||(y=null);break e}f=S.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(r(341));y.lanes|=s,f=y.alternate,f!==null&&(f.lanes|=s),Ju(y,s,n),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===n){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function ks(n,a,s,o){n=null;for(var u=a,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var S=u.type;en(u.pendingProps.value,y.value)||(n!==null?n.push(S):n=[S])}}else if(u===ke.current){if(y=u.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(n!==null?n.push(ll):n=[ll])}u=u.return}n!==null&&ed(a,n,s,o),a.flags|=262144}function wo(n){for(n=n.firstContext;n!==null;){if(!en(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function za(n){Ba=n,di=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function kt(n){return vm(Ba,n)}function bo(n,a){return Ba===null&&za(n),vm(n,a)}function vm(n,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},di===null){if(n===null)throw Error(r(308));di=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else di=di.next=a;return s}var x1=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(s,o){n.push(o)}};this.abort=function(){a.aborted=!0,n.forEach(function(s){return s()})}},T1=t.unstable_scheduleCallback,A1=t.unstable_NormalPriority,St={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function td(){return{controller:new x1,data:new Map,refCount:0}}function Ds(n){n.refCount--,n.refCount===0&&T1(A1,function(){n.controller.abort()})}var Is=null,nd=0,Rr=0,Mr=null;function C1(n,a){if(Is===null){var s=Is=[];nd=0,Rr=rf(),Mr={status:"pending",value:void 0,then:function(o){s.push(o)}}}return nd++,a.then(ym,ym),a}function ym(){if(--nd===0&&Is!==null){Mr!==null&&(Mr.status="fulfilled");var n=Is;Is=null,Rr=0,Mr=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function _1(n,a){var s=[],o={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return n.then(function(){o.status="fulfilled",o.value=a;for(var u=0;u<s.length;u++)(0,s[u])(a)},function(u){for(o.status="rejected",o.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),o}var wm=M.S;M.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&C1(n,a),wm!==null&&wm(n,a)};var Ua=K(null);function id(){var n=Ua.current;return n!==null?n:nt.pooledCache}function So(n,a){a===null?ne(Ua,Ua.current):ne(Ua,a.pool)}function bm(){var n=id();return n===null?null:{parent:St._currentValue,pool:n}}var js=Error(r(460)),Sm=Error(r(474)),Eo=Error(r(542)),ad={then:function(){}};function Em(n){return n=n.status,n==="fulfilled"||n==="rejected"}function xo(){}function xm(n,a,s){switch(s=n[s],s===void 0?n.push(a):s!==a&&(a.then(xo,xo),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Am(n),n;default:if(typeof a.status=="string")a.then(xo,xo);else{if(n=nt,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(o){if(a.status==="pending"){var u=a;u.status="fulfilled",u.value=o}},function(o){if(a.status==="pending"){var u=a;u.status="rejected",u.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Am(n),n}throw Ls=a,js}}var Ls=null;function Tm(){if(Ls===null)throw Error(r(459));var n=Ls;return Ls=null,n}function Am(n){if(n===js||n===Eo)throw Error(r(483))}var Vi=!1;function rd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sd(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Gi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function qi(n,a,s){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,($e&2)!==0){var u=o.pending;return u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a,a=mo(n),dm(n,null,s),a}return po(n,o,a,s),mo(n)}function Ps(n,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var o=a.lanes;o&=n.pendingLanes,s|=o,a.lanes=s,Oa(n,s)}}function ld(n,a){var s=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var u=null,f=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};f===null?u=f=y:f=f.next=y,s=s.next}while(s!==null);f===null?u=f=a:f=f.next=a}else u=f=a;s={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=a:n.next=a,s.lastBaseUpdate=a}var od=!1;function Bs(){if(od){var n=Mr;if(n!==null)throw n}}function zs(n,a,s,o){od=!1;var u=n.updateQueue;Vi=!1;var f=u.firstBaseUpdate,y=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var C=S,z=C.next;C.next=null,y===null?f=z:y.next=z,y=C;var W=n.alternate;W!==null&&(W=W.updateQueue,S=W.lastBaseUpdate,S!==y&&(S===null?W.firstBaseUpdate=z:S.next=z,W.lastBaseUpdate=C))}if(f!==null){var ee=u.baseState;y=0,W=z=C=null,S=f;do{var U=S.lane&-536870913,H=U!==S.lane;if(H?(He&U)===U:(o&U)===U){U!==0&&U===Rr&&(od=!0),W!==null&&(W=W.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Oe=n,xe=S;U=a;var Je=s;switch(xe.tag){case 1:if(Oe=xe.payload,typeof Oe=="function"){ee=Oe.call(Je,ee,U);break e}ee=Oe;break e;case 3:Oe.flags=Oe.flags&-65537|128;case 0:if(Oe=xe.payload,U=typeof Oe=="function"?Oe.call(Je,ee,U):Oe,U==null)break e;ee=v({},ee,U);break e;case 2:Vi=!0}}U=S.callback,U!==null&&(n.flags|=64,H&&(n.flags|=8192),H=u.callbacks,H===null?u.callbacks=[U]:H.push(U))}else H={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},W===null?(z=W=H,C=ee):W=W.next=H,y|=U;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;H=S,S=H.next,H.next=null,u.lastBaseUpdate=H,u.shared.pending=null}}while(!0);W===null&&(C=ee),u.baseState=C,u.firstBaseUpdate=z,u.lastBaseUpdate=W,f===null&&(u.shared.lanes=0),Zi|=y,n.lanes=y,n.memoizedState=ee}}function Cm(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function _m(n,a){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)Cm(s[n],a)}var Nr=K(null),To=K(0);function Om(n,a){n=wi,ne(To,n),ne(Nr,a),wi=n|a.baseLanes}function cd(){ne(To,wi),ne(Nr,Nr.current)}function ud(){wi=To.current,se(Nr),se(To)}var Yi=0,De=null,Qe=null,wt=null,Ao=!1,kr=!1,Ha=!1,Co=0,Us=0,Dr=null,O1=0;function pt(){throw Error(r(321))}function dd(n,a){if(a===null)return!1;for(var s=0;s<a.length&&s<n.length;s++)if(!en(n[s],a[s]))return!1;return!0}function fd(n,a,s,o,u,f){return Yi=f,De=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,M.H=n===null||n.memoizedState===null?dg:fg,Ha=!1,f=s(o,u),Ha=!1,kr&&(f=Mm(a,s,o,u)),Rm(n),f}function Rm(n){M.H=ko;var a=Qe!==null&&Qe.next!==null;if(Yi=0,wt=Qe=De=null,Ao=!1,Us=0,Dr=null,a)throw Error(r(300));n===null||xt||(n=n.dependencies,n!==null&&wo(n)&&(xt=!0))}function Mm(n,a,s,o){De=n;var u=0;do{if(kr&&(Dr=null),Us=0,kr=!1,25<=u)throw Error(r(301));if(u+=1,wt=Qe=null,n.updateQueue!=null){var f=n.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}M.H=j1,f=a(s,o)}while(kr);return f}function R1(){var n=M.H,a=n.useState()[0];return a=typeof a.then=="function"?Hs(a):a,n=n.useState()[0],(Qe!==null?Qe.memoizedState:null)!==n&&(De.flags|=1024),a}function hd(){var n=Co!==0;return Co=0,n}function pd(n,a,s){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~s}function md(n){if(Ao){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Ao=!1}Yi=0,wt=Qe=De=null,kr=!1,Us=Co=0,Dr=null}function Xt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?De.memoizedState=wt=n:wt=wt.next=n,wt}function bt(){if(Qe===null){var n=De.alternate;n=n!==null?n.memoizedState:null}else n=Qe.next;var a=wt===null?De.memoizedState:wt.next;if(a!==null)wt=a,Qe=n;else{if(n===null)throw De.alternate===null?Error(r(467)):Error(r(310));Qe=n,n={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},wt===null?De.memoizedState=wt=n:wt=wt.next=n}return wt}function gd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hs(n){var a=Us;return Us+=1,Dr===null&&(Dr=[]),n=xm(Dr,n,a),a=De,(wt===null?a.memoizedState:wt.next)===null&&(a=a.alternate,M.H=a===null||a.memoizedState===null?dg:fg),n}function _o(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Hs(n);if(n.$$typeof===k)return kt(n)}throw Error(r(438,String(n)))}function vd(n){var a=null,s=De.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var o=De.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(u){return u.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=gd(),De.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(n),o=0;o<n;o++)s[o]=J;return a.index++,s}function hi(n,a){return typeof a=="function"?a(n):a}function Oo(n){var a=bt();return yd(a,Qe,n)}function yd(n,a,s){var o=n.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=s;var u=n.baseQueue,f=o.pending;if(f!==null){if(u!==null){var y=u.next;u.next=f.next,f.next=y}a.baseQueue=u=f,o.pending=null}if(f=n.baseState,u===null)n.memoizedState=f;else{a=u.next;var S=y=null,C=null,z=a,W=!1;do{var ee=z.lane&-536870913;if(ee!==z.lane?(He&ee)===ee:(Yi&ee)===ee){var U=z.revertLane;if(U===0)C!==null&&(C=C.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),ee===Rr&&(W=!0);else if((Yi&U)===U){z=z.next,U===Rr&&(W=!0);continue}else ee={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},C===null?(S=C=ee,y=f):C=C.next=ee,De.lanes|=U,Zi|=U;ee=z.action,Ha&&s(f,ee),f=z.hasEagerState?z.eagerState:s(f,ee)}else U={lane:ee,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},C===null?(S=C=U,y=f):C=C.next=U,De.lanes|=ee,Zi|=ee;z=z.next}while(z!==null&&z!==a);if(C===null?y=f:C.next=S,!en(f,n.memoizedState)&&(xt=!0,W&&(s=Mr,s!==null)))throw s;n.memoizedState=f,n.baseState=y,n.baseQueue=C,o.lastRenderedState=f}return u===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function wd(n){var a=bt(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var o=s.dispatch,u=s.pending,f=a.memoizedState;if(u!==null){s.pending=null;var y=u=u.next;do f=n(f,y.action),y=y.next;while(y!==u);en(f,a.memoizedState)||(xt=!0),a.memoizedState=f,a.baseQueue===null&&(a.baseState=f),s.lastRenderedState=f}return[f,o]}function Nm(n,a,s){var o=De,u=bt(),f=Fe;if(f){if(s===void 0)throw Error(r(407));s=s()}else s=a();var y=!en((Qe||u).memoizedState,s);y&&(u.memoizedState=s,xt=!0),u=u.queue;var S=Im.bind(null,o,u,n);if(Vs(2048,8,S,[n]),u.getSnapshot!==a||y||wt!==null&&wt.memoizedState.tag&1){if(o.flags|=2048,Ir(9,Ro(),Dm.bind(null,o,u,s,a),null),nt===null)throw Error(r(349));f||(Yi&124)!==0||km(o,a,s)}return s}function km(n,a,s){n.flags|=16384,n={getSnapshot:a,value:s},a=De.updateQueue,a===null?(a=gd(),De.updateQueue=a,a.stores=[n]):(s=a.stores,s===null?a.stores=[n]:s.push(n))}function Dm(n,a,s,o){a.value=s,a.getSnapshot=o,jm(a)&&Lm(n)}function Im(n,a,s){return s(function(){jm(a)&&Lm(n)})}function jm(n){var a=n.getSnapshot;n=n.value;try{var s=a();return!en(n,s)}catch{return!0}}function Lm(n){var a=Ar(n,2);a!==null&&ln(a,n,2)}function bd(n){var a=Xt();if(typeof n=="function"){var s=n;if(n=s(),Ha){Nn(!0);try{s()}finally{Nn(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:n},a}function Pm(n,a,s,o){return n.baseState=s,yd(n,Qe,typeof o=="function"?o:hi)}function M1(n,a,s,o,u){if(No(n))throw Error(r(485));if(n=a.action,n!==null){var f={payload:u,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){f.listeners.push(y)}};M.T!==null?s(!0):f.isTransition=!1,o(f),s=a.pending,s===null?(f.next=a.pending=f,Bm(a,f)):(f.next=s.next,a.pending=s.next=f)}}function Bm(n,a){var s=a.action,o=a.payload,u=n.state;if(a.isTransition){var f=M.T,y={};M.T=y;try{var S=s(u,o),C=M.S;C!==null&&C(y,S),zm(n,a,S)}catch(z){Sd(n,a,z)}finally{M.T=f}}else try{f=s(u,o),zm(n,a,f)}catch(z){Sd(n,a,z)}}function zm(n,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(o){Um(n,a,o)},function(o){return Sd(n,a,o)}):Um(n,a,s)}function Um(n,a,s){a.status="fulfilled",a.value=s,Hm(a),n.state=s,a=n.pending,a!==null&&(s=a.next,s===a?n.pending=null:(s=s.next,a.next=s,Bm(n,s)))}function Sd(n,a,s){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=s,Hm(a),a=a.next;while(a!==o)}n.action=null}function Hm(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function Vm(n,a){return a}function Gm(n,a){if(Fe){var s=nt.formState;if(s!==null){e:{var o=De;if(Fe){if(dt){t:{for(var u=dt,f=Yn;u.nodeType!==8;){if(!f){u=null;break t}if(u=Ln(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){dt=Ln(u.nextSibling),o=u.data==="F!";break e}}Pa(o)}o=!1}o&&(a=s[0])}}return s=Xt(),s.memoizedState=s.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:a},s.queue=o,s=og.bind(null,De,o),o.dispatch=s,o=bd(!1),f=Cd.bind(null,De,!1,o.queue),o=Xt(),u={state:a,dispatch:null,action:n,pending:null},o.queue=u,s=M1.bind(null,De,u,f,s),u.dispatch=s,o.memoizedState=n,[a,s,!1]}function qm(n){var a=bt();return Ym(a,Qe,n)}function Ym(n,a,s){if(a=yd(n,a,Vm)[0],n=Oo(hi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Hs(a)}catch(y){throw y===js?Eo:y}else o=a;a=bt();var u=a.queue,f=u.dispatch;return s!==a.memoizedState&&(De.flags|=2048,Ir(9,Ro(),N1.bind(null,u,s),null)),[o,f,n]}function N1(n,a){n.action=a}function Fm(n){var a=bt(),s=Qe;if(s!==null)return Ym(a,s,n);bt(),a=a.memoizedState,s=bt();var o=s.queue.dispatch;return s.memoizedState=n,[a,o,!1]}function Ir(n,a,s,o){return n={tag:n,create:s,deps:o,inst:a,next:null},a=De.updateQueue,a===null&&(a=gd(),De.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=n.next=n:(o=s.next,s.next=n,n.next=o,a.lastEffect=n),n}function Ro(){return{destroy:void 0,resource:void 0}}function Xm(){return bt().memoizedState}function Mo(n,a,s,o){var u=Xt();o=o===void 0?null:o,De.flags|=n,u.memoizedState=Ir(1|a,Ro(),s,o)}function Vs(n,a,s,o){var u=bt();o=o===void 0?null:o;var f=u.memoizedState.inst;Qe!==null&&o!==null&&dd(o,Qe.memoizedState.deps)?u.memoizedState=Ir(a,f,s,o):(De.flags|=n,u.memoizedState=Ir(1|a,f,s,o))}function $m(n,a){Mo(8390656,8,n,a)}function Km(n,a){Vs(2048,8,n,a)}function Wm(n,a){return Vs(4,2,n,a)}function Qm(n,a){return Vs(4,4,n,a)}function Zm(n,a){if(typeof a=="function"){n=n();var s=a(n);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Jm(n,a,s){s=s!=null?s.concat([n]):null,Vs(4,4,Zm.bind(null,a,n),s)}function Ed(){}function eg(n,a){var s=bt();a=a===void 0?null:a;var o=s.memoizedState;return a!==null&&dd(a,o[1])?o[0]:(s.memoizedState=[n,a],n)}function tg(n,a){var s=bt();a=a===void 0?null:a;var o=s.memoizedState;if(a!==null&&dd(a,o[1]))return o[0];if(o=n(),Ha){Nn(!0);try{n()}finally{Nn(!1)}}return s.memoizedState=[o,a],o}function xd(n,a,s){return s===void 0||(Yi&1073741824)!==0?n.memoizedState=a:(n.memoizedState=s,n=av(),De.lanes|=n,Zi|=n,s)}function ng(n,a,s,o){return en(s,a)?s:Nr.current!==null?(n=xd(n,s,o),en(n,a)||(xt=!0),n):(Yi&42)===0?(xt=!0,n.memoizedState=s):(n=av(),De.lanes|=n,Zi|=n,a)}function ig(n,a,s,o,u){var f=Z.p;Z.p=f!==0&&8>f?f:8;var y=M.T,S={};M.T=S,Cd(n,!1,a,s);try{var C=u(),z=M.S;if(z!==null&&z(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var W=_1(C,o);Gs(n,a,W,sn(n))}else Gs(n,a,o,sn(n))}catch(ee){Gs(n,a,{then:function(){},status:"rejected",reason:ee},sn())}finally{Z.p=f,M.T=y}}function k1(){}function Td(n,a,s,o){if(n.tag!==5)throw Error(r(476));var u=ag(n).queue;ig(n,u,a,re,s===null?k1:function(){return rg(n),s(o)})}function ag(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:re},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:s},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function rg(n){var a=ag(n).next.queue;Gs(n,a,{},sn())}function Ad(){return kt(ll)}function sg(){return bt().memoizedState}function lg(){return bt().memoizedState}function D1(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var s=sn();n=Gi(s);var o=qi(a,n,s);o!==null&&(ln(o,a,s),Ps(o,a,s)),a={cache:td()},n.payload=a;return}a=a.return}}function I1(n,a,s){var o=sn();s={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},No(n)?cg(a,s):(s=Yu(n,a,s,o),s!==null&&(ln(s,n,o),ug(s,a,o)))}function og(n,a,s){var o=sn();Gs(n,a,s,o)}function Gs(n,a,s,o){var u={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(No(n))cg(a,u);else{var f=n.alternate;if(n.lanes===0&&(f===null||f.lanes===0)&&(f=a.lastRenderedReducer,f!==null))try{var y=a.lastRenderedState,S=f(y,s);if(u.hasEagerState=!0,u.eagerState=S,en(S,y))return po(n,a,u,0),nt===null&&ho(),!1}catch{}finally{}if(s=Yu(n,a,u,o),s!==null)return ln(s,n,o),ug(s,a,o),!0}return!1}function Cd(n,a,s,o){if(o={lane:2,revertLane:rf(),action:o,hasEagerState:!1,eagerState:null,next:null},No(n)){if(a)throw Error(r(479))}else a=Yu(n,s,o,2),a!==null&&ln(a,n,2)}function No(n){var a=n.alternate;return n===De||a!==null&&a===De}function cg(n,a){kr=Ao=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function ug(n,a,s){if((s&4194048)!==0){var o=a.lanes;o&=n.pendingLanes,s|=o,a.lanes=s,Oa(n,s)}}var ko={readContext:kt,use:_o,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt},dg={readContext:kt,use:_o,useCallback:function(n,a){return Xt().memoizedState=[n,a===void 0?null:a],n},useContext:kt,useEffect:$m,useImperativeHandle:function(n,a,s){s=s!=null?s.concat([n]):null,Mo(4194308,4,Zm.bind(null,a,n),s)},useLayoutEffect:function(n,a){return Mo(4194308,4,n,a)},useInsertionEffect:function(n,a){Mo(4,2,n,a)},useMemo:function(n,a){var s=Xt();a=a===void 0?null:a;var o=n();if(Ha){Nn(!0);try{n()}finally{Nn(!1)}}return s.memoizedState=[o,a],o},useReducer:function(n,a,s){var o=Xt();if(s!==void 0){var u=s(a);if(Ha){Nn(!0);try{s(a)}finally{Nn(!1)}}}else u=a;return o.memoizedState=o.baseState=u,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:u},o.queue=n,n=n.dispatch=I1.bind(null,De,n),[o.memoizedState,n]},useRef:function(n){var a=Xt();return n={current:n},a.memoizedState=n},useState:function(n){n=bd(n);var a=n.queue,s=og.bind(null,De,a);return a.dispatch=s,[n.memoizedState,s]},useDebugValue:Ed,useDeferredValue:function(n,a){var s=Xt();return xd(s,n,a)},useTransition:function(){var n=bd(!1);return n=ig.bind(null,De,n.queue,!0,!1),Xt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,s){var o=De,u=Xt();if(Fe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=a(),nt===null)throw Error(r(349));(He&124)!==0||km(o,a,s)}u.memoizedState=s;var f={value:s,getSnapshot:a};return u.queue=f,$m(Im.bind(null,o,f,n),[n]),o.flags|=2048,Ir(9,Ro(),Dm.bind(null,o,f,s,a),null),s},useId:function(){var n=Xt(),a=nt.identifierPrefix;if(Fe){var s=ui,o=ci;s=(o&~(1<<32-_t(o)-1)).toString(32)+s,a="«"+a+"R"+s,s=Co++,0<s&&(a+="H"+s.toString(32)),a+="»"}else s=O1++,a="«"+a+"r"+s.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:Ad,useFormState:Gm,useActionState:Gm,useOptimistic:function(n){var a=Xt();a.memoizedState=a.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=Cd.bind(null,De,!0,s),s.dispatch=a,[n,a]},useMemoCache:vd,useCacheRefresh:function(){return Xt().memoizedState=D1.bind(null,De)}},fg={readContext:kt,use:_o,useCallback:eg,useContext:kt,useEffect:Km,useImperativeHandle:Jm,useInsertionEffect:Wm,useLayoutEffect:Qm,useMemo:tg,useReducer:Oo,useRef:Xm,useState:function(){return Oo(hi)},useDebugValue:Ed,useDeferredValue:function(n,a){var s=bt();return ng(s,Qe.memoizedState,n,a)},useTransition:function(){var n=Oo(hi)[0],a=bt().memoizedState;return[typeof n=="boolean"?n:Hs(n),a]},useSyncExternalStore:Nm,useId:sg,useHostTransitionStatus:Ad,useFormState:qm,useActionState:qm,useOptimistic:function(n,a){var s=bt();return Pm(s,Qe,n,a)},useMemoCache:vd,useCacheRefresh:lg},j1={readContext:kt,use:_o,useCallback:eg,useContext:kt,useEffect:Km,useImperativeHandle:Jm,useInsertionEffect:Wm,useLayoutEffect:Qm,useMemo:tg,useReducer:wd,useRef:Xm,useState:function(){return wd(hi)},useDebugValue:Ed,useDeferredValue:function(n,a){var s=bt();return Qe===null?xd(s,n,a):ng(s,Qe.memoizedState,n,a)},useTransition:function(){var n=wd(hi)[0],a=bt().memoizedState;return[typeof n=="boolean"?n:Hs(n),a]},useSyncExternalStore:Nm,useId:sg,useHostTransitionStatus:Ad,useFormState:Fm,useActionState:Fm,useOptimistic:function(n,a){var s=bt();return Qe!==null?Pm(s,Qe,n,a):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:vd,useCacheRefresh:lg},jr=null,qs=0;function Do(n){var a=qs;return qs+=1,jr===null&&(jr=[]),xm(jr,n,a)}function Ys(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Io(n,a){throw a.$$typeof===b?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function hg(n){var a=n._init;return a(n._payload)}function pg(n){function a(j,R){if(n){var B=j.deletions;B===null?(j.deletions=[R],j.flags|=16):B.push(R)}}function s(j,R){if(!n)return null;for(;R!==null;)a(j,R),R=R.sibling;return null}function o(j){for(var R=new Map;j!==null;)j.key!==null?R.set(j.key,j):R.set(j.index,j),j=j.sibling;return R}function u(j,R){return j=oi(j,R),j.index=0,j.sibling=null,j}function f(j,R,B){return j.index=B,n?(B=j.alternate,B!==null?(B=B.index,B<R?(j.flags|=67108866,R):B):(j.flags|=67108866,R)):(j.flags|=1048576,R)}function y(j){return n&&j.alternate===null&&(j.flags|=67108866),j}function S(j,R,B,Q){return R===null||R.tag!==6?(R=Xu(B,j.mode,Q),R.return=j,R):(R=u(R,B),R.return=j,R)}function C(j,R,B,Q){var fe=B.type;return fe===T?W(j,R,B.props.children,Q,B.key):R!==null&&(R.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===$&&hg(fe)===R.type)?(R=u(R,B.props),Ys(R,B),R.return=j,R):(R=go(B.type,B.key,B.props,null,j.mode,Q),Ys(R,B),R.return=j,R)}function z(j,R,B,Q){return R===null||R.tag!==4||R.stateNode.containerInfo!==B.containerInfo||R.stateNode.implementation!==B.implementation?(R=$u(B,j.mode,Q),R.return=j,R):(R=u(R,B.children||[]),R.return=j,R)}function W(j,R,B,Q,fe){return R===null||R.tag!==7?(R=Da(B,j.mode,Q,fe),R.return=j,R):(R=u(R,B),R.return=j,R)}function ee(j,R,B){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Xu(""+R,j.mode,B),R.return=j,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case w:return B=go(R.type,R.key,R.props,null,j.mode,B),Ys(B,R),B.return=j,B;case x:return R=$u(R,j.mode,B),R.return=j,R;case $:var Q=R._init;return R=Q(R._payload),ee(j,R,B)}if(be(R)||ae(R))return R=Da(R,j.mode,B,null),R.return=j,R;if(typeof R.then=="function")return ee(j,Do(R),B);if(R.$$typeof===k)return ee(j,bo(j,R),B);Io(j,R)}return null}function U(j,R,B,Q){var fe=R!==null?R.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return fe!==null?null:S(j,R,""+B,Q);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case w:return B.key===fe?C(j,R,B,Q):null;case x:return B.key===fe?z(j,R,B,Q):null;case $:return fe=B._init,B=fe(B._payload),U(j,R,B,Q)}if(be(B)||ae(B))return fe!==null?null:W(j,R,B,Q,null);if(typeof B.then=="function")return U(j,R,Do(B),Q);if(B.$$typeof===k)return U(j,R,bo(j,B),Q);Io(j,B)}return null}function H(j,R,B,Q,fe){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return j=j.get(B)||null,S(R,j,""+Q,fe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return j=j.get(Q.key===null?B:Q.key)||null,C(R,j,Q,fe);case x:return j=j.get(Q.key===null?B:Q.key)||null,z(R,j,Q,fe);case $:var je=Q._init;return Q=je(Q._payload),H(j,R,B,Q,fe)}if(be(Q)||ae(Q))return j=j.get(B)||null,W(R,j,Q,fe,null);if(typeof Q.then=="function")return H(j,R,B,Do(Q),fe);if(Q.$$typeof===k)return H(j,R,B,bo(R,Q),fe);Io(R,Q)}return null}function Oe(j,R,B,Q){for(var fe=null,je=null,ge=R,Te=R=0,At=null;ge!==null&&Te<B.length;Te++){ge.index>Te?(At=ge,ge=null):At=ge.sibling;var qe=U(j,ge,B[Te],Q);if(qe===null){ge===null&&(ge=At);break}n&&ge&&qe.alternate===null&&a(j,ge),R=f(qe,R,Te),je===null?fe=qe:je.sibling=qe,je=qe,ge=At}if(Te===B.length)return s(j,ge),Fe&&ja(j,Te),fe;if(ge===null){for(;Te<B.length;Te++)ge=ee(j,B[Te],Q),ge!==null&&(R=f(ge,R,Te),je===null?fe=ge:je.sibling=ge,je=ge);return Fe&&ja(j,Te),fe}for(ge=o(ge);Te<B.length;Te++)At=H(ge,j,Te,B[Te],Q),At!==null&&(n&&At.alternate!==null&&ge.delete(At.key===null?Te:At.key),R=f(At,R,Te),je===null?fe=At:je.sibling=At,je=At);return n&&ge.forEach(function(la){return a(j,la)}),Fe&&ja(j,Te),fe}function xe(j,R,B,Q){if(B==null)throw Error(r(151));for(var fe=null,je=null,ge=R,Te=R=0,At=null,qe=B.next();ge!==null&&!qe.done;Te++,qe=B.next()){ge.index>Te?(At=ge,ge=null):At=ge.sibling;var la=U(j,ge,qe.value,Q);if(la===null){ge===null&&(ge=At);break}n&&ge&&la.alternate===null&&a(j,ge),R=f(la,R,Te),je===null?fe=la:je.sibling=la,je=la,ge=At}if(qe.done)return s(j,ge),Fe&&ja(j,Te),fe;if(ge===null){for(;!qe.done;Te++,qe=B.next())qe=ee(j,qe.value,Q),qe!==null&&(R=f(qe,R,Te),je===null?fe=qe:je.sibling=qe,je=qe);return Fe&&ja(j,Te),fe}for(ge=o(ge);!qe.done;Te++,qe=B.next())qe=H(ge,j,Te,qe.value,Q),qe!==null&&(n&&qe.alternate!==null&&ge.delete(qe.key===null?Te:qe.key),R=f(qe,R,Te),je===null?fe=qe:je.sibling=qe,je=qe);return n&&ge.forEach(function(Lx){return a(j,Lx)}),Fe&&ja(j,Te),fe}function Je(j,R,B,Q){if(typeof B=="object"&&B!==null&&B.type===T&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case w:e:{for(var fe=B.key;R!==null;){if(R.key===fe){if(fe=B.type,fe===T){if(R.tag===7){s(j,R.sibling),Q=u(R,B.props.children),Q.return=j,j=Q;break e}}else if(R.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===$&&hg(fe)===R.type){s(j,R.sibling),Q=u(R,B.props),Ys(Q,B),Q.return=j,j=Q;break e}s(j,R);break}else a(j,R);R=R.sibling}B.type===T?(Q=Da(B.props.children,j.mode,Q,B.key),Q.return=j,j=Q):(Q=go(B.type,B.key,B.props,null,j.mode,Q),Ys(Q,B),Q.return=j,j=Q)}return y(j);case x:e:{for(fe=B.key;R!==null;){if(R.key===fe)if(R.tag===4&&R.stateNode.containerInfo===B.containerInfo&&R.stateNode.implementation===B.implementation){s(j,R.sibling),Q=u(R,B.children||[]),Q.return=j,j=Q;break e}else{s(j,R);break}else a(j,R);R=R.sibling}Q=$u(B,j.mode,Q),Q.return=j,j=Q}return y(j);case $:return fe=B._init,B=fe(B._payload),Je(j,R,B,Q)}if(be(B))return Oe(j,R,B,Q);if(ae(B)){if(fe=ae(B),typeof fe!="function")throw Error(r(150));return B=fe.call(B),xe(j,R,B,Q)}if(typeof B.then=="function")return Je(j,R,Do(B),Q);if(B.$$typeof===k)return Je(j,R,bo(j,B),Q);Io(j,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,R!==null&&R.tag===6?(s(j,R.sibling),Q=u(R,B),Q.return=j,j=Q):(s(j,R),Q=Xu(B,j.mode,Q),Q.return=j,j=Q),y(j)):s(j,R)}return function(j,R,B,Q){try{qs=0;var fe=Je(j,R,B,Q);return jr=null,fe}catch(ge){if(ge===js||ge===Eo)throw ge;var je=tn(29,ge,null,j.mode);return je.lanes=Q,je.return=j,je}finally{}}}var Lr=pg(!0),mg=pg(!1),En=K(null),Fn=null;function Fi(n){var a=n.alternate;ne(Et,Et.current&1),ne(En,n),Fn===null&&(a===null||Nr.current!==null||a.memoizedState!==null)&&(Fn=n)}function gg(n){if(n.tag===22){if(ne(Et,Et.current),ne(En,n),Fn===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Fn=n)}}else Xi()}function Xi(){ne(Et,Et.current),ne(En,En.current)}function pi(n){se(En),Fn===n&&(Fn=null),se(Et)}var Et=K(0);function jo(n){for(var a=n;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||vf(s)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function _d(n,a,s,o){a=n.memoizedState,s=s(o,a),s=s==null?a:v({},a,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var Od={enqueueSetState:function(n,a,s){n=n._reactInternals;var o=sn(),u=Gi(o);u.payload=a,s!=null&&(u.callback=s),a=qi(n,u,o),a!==null&&(ln(a,n,o),Ps(a,n,o))},enqueueReplaceState:function(n,a,s){n=n._reactInternals;var o=sn(),u=Gi(o);u.tag=1,u.payload=a,s!=null&&(u.callback=s),a=qi(n,u,o),a!==null&&(ln(a,n,o),Ps(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var s=sn(),o=Gi(s);o.tag=2,a!=null&&(o.callback=a),a=qi(n,o,s),a!==null&&(ln(a,n,s),Ps(a,n,s))}};function vg(n,a,s,o,u,f,y){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,f,y):a.prototype&&a.prototype.isPureReactComponent?!_s(s,o)||!_s(u,f):!0}function yg(n,a,s,o){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,o),a.state!==n&&Od.enqueueReplaceState(a,a.state,null)}function Va(n,a){var s=a;if("ref"in a){s={};for(var o in a)o!=="ref"&&(s[o]=a[o])}if(n=n.defaultProps){s===a&&(s=v({},s));for(var u in n)s[u]===void 0&&(s[u]=n[u])}return s}var Lo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function wg(n){Lo(n)}function bg(n){console.error(n)}function Sg(n){Lo(n)}function Po(n,a){try{var s=n.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Eg(n,a,s){try{var o=n.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Rd(n,a,s){return s=Gi(s),s.tag=3,s.payload={element:null},s.callback=function(){Po(n,a)},s}function xg(n){return n=Gi(n),n.tag=3,n}function Tg(n,a,s,o){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;n.payload=function(){return u(f)},n.callback=function(){Eg(a,s,o)}}var y=s.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(n.callback=function(){Eg(a,s,o),typeof u!="function"&&(Ji===null?Ji=new Set([this]):Ji.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function L1(n,a,s,o,u){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=s.alternate,a!==null&&ks(a,s,u,!0),s=En.current,s!==null){switch(s.tag){case 13:return Fn===null?Jd():s.alternate===null&&ft===0&&(ft=3),s.flags&=-257,s.flags|=65536,s.lanes=u,o===ad?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([o]):a.add(o),tf(n,o,u)),!1;case 22:return s.flags|=65536,o===ad?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([o]):s.add(o)),tf(n,o,u)),!1}throw Error(r(435,s.tag))}return tf(n,o,u),Jd(),!1}if(Fe)return a=En.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=u,o!==Qu&&(n=Error(r(422),{cause:o}),Ns(yn(n,s)))):(o!==Qu&&(a=Error(r(423),{cause:o}),Ns(yn(a,s))),n=n.current.alternate,n.flags|=65536,u&=-u,n.lanes|=u,o=yn(o,s),u=Rd(n.stateNode,o,u),ld(n,u),ft!==4&&(ft=2)),!1;var f=Error(r(520),{cause:o});if(f=yn(f,s),Zs===null?Zs=[f]:Zs.push(f),ft!==4&&(ft=2),a===null)return!0;o=yn(o,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,n=u&-u,s.lanes|=n,n=Rd(s.stateNode,o,n),ld(s,n),!1;case 1:if(a=s.type,f=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ji===null||!Ji.has(f))))return s.flags|=65536,u&=-u,s.lanes|=u,u=xg(u),Tg(u,n,s,o),ld(s,u),!1}s=s.return}while(s!==null);return!1}var Ag=Error(r(461)),xt=!1;function Ot(n,a,s,o){a.child=n===null?mg(a,null,s,o):Lr(a,n.child,s,o)}function Cg(n,a,s,o,u){s=s.render;var f=a.ref;if("ref"in o){var y={};for(var S in o)S!=="ref"&&(y[S]=o[S])}else y=o;return za(a),o=fd(n,a,s,y,f,u),S=hd(),n!==null&&!xt?(pd(n,a,u),mi(n,a,u)):(Fe&&S&&Ku(a),a.flags|=1,Ot(n,a,o,u),a.child)}function _g(n,a,s,o,u){if(n===null){var f=s.type;return typeof f=="function"&&!Fu(f)&&f.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=f,Og(n,a,f,o,u)):(n=go(s.type,null,o,a,a.mode,u),n.ref=a.ref,n.return=a,a.child=n)}if(f=n.child,!Pd(n,u)){var y=f.memoizedProps;if(s=s.compare,s=s!==null?s:_s,s(y,o)&&n.ref===a.ref)return mi(n,a,u)}return a.flags|=1,n=oi(f,o),n.ref=a.ref,n.return=a,a.child=n}function Og(n,a,s,o,u){if(n!==null){var f=n.memoizedProps;if(_s(f,o)&&n.ref===a.ref)if(xt=!1,a.pendingProps=o=f,Pd(n,u))(n.flags&131072)!==0&&(xt=!0);else return a.lanes=n.lanes,mi(n,a,u)}return Md(n,a,s,o,u)}function Rg(n,a,s){var o=a.pendingProps,u=o.children,f=n!==null?n.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=f!==null?f.baseLanes|s:s,n!==null){for(u=a.child=n.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;a.childLanes=f&~o}else a.childLanes=0,a.child=null;return Mg(n,a,o,s)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&So(a,f!==null?f.cachePool:null),f!==null?Om(a,f):cd(),gg(a);else return a.lanes=a.childLanes=536870912,Mg(n,a,f!==null?f.baseLanes|s:s,s)}else f!==null?(So(a,f.cachePool),Om(a,f),Xi(),a.memoizedState=null):(n!==null&&So(a,null),cd(),Xi());return Ot(n,a,u,s),a.child}function Mg(n,a,s,o){var u=id();return u=u===null?null:{parent:St._currentValue,pool:u},a.memoizedState={baseLanes:s,cachePool:u},n!==null&&So(a,null),cd(),gg(a),n!==null&&ks(n,a,o,!0),null}function Bo(n,a){var s=a.ref;if(s===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(n===null||n.ref!==s)&&(a.flags|=4194816)}}function Md(n,a,s,o,u){return za(a),s=fd(n,a,s,o,void 0,u),o=hd(),n!==null&&!xt?(pd(n,a,u),mi(n,a,u)):(Fe&&o&&Ku(a),a.flags|=1,Ot(n,a,s,u),a.child)}function Ng(n,a,s,o,u,f){return za(a),a.updateQueue=null,s=Mm(a,o,s,u),Rm(n),o=hd(),n!==null&&!xt?(pd(n,a,f),mi(n,a,f)):(Fe&&o&&Ku(a),a.flags|=1,Ot(n,a,s,f),a.child)}function kg(n,a,s,o,u){if(za(a),a.stateNode===null){var f=Cr,y=s.contextType;typeof y=="object"&&y!==null&&(f=kt(y)),f=new s(o,f),a.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Od,a.stateNode=f,f._reactInternals=a,f=a.stateNode,f.props=o,f.state=a.memoizedState,f.refs={},rd(a),y=s.contextType,f.context=typeof y=="object"&&y!==null?kt(y):Cr,f.state=a.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(_d(a,s,y,o),f.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&Od.enqueueReplaceState(f,f.state,null),zs(a,o,f,u),Bs(),f.state=a.memoizedState),typeof f.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){f=a.stateNode;var S=a.memoizedProps,C=Va(s,S);f.props=C;var z=f.context,W=s.contextType;y=Cr,typeof W=="object"&&W!==null&&(y=kt(W));var ee=s.getDerivedStateFromProps;W=typeof ee=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,W||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||z!==y)&&yg(a,f,o,y),Vi=!1;var U=a.memoizedState;f.state=U,zs(a,o,f,u),Bs(),z=a.memoizedState,S||U!==z||Vi?(typeof ee=="function"&&(_d(a,s,ee,o),z=a.memoizedState),(C=Vi||vg(a,s,C,o,U,z,y))?(W||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(a.flags|=4194308)):(typeof f.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=z),f.props=o,f.state=z,f.context=y,o=C):(typeof f.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{f=a.stateNode,sd(n,a),y=a.memoizedProps,W=Va(s,y),f.props=W,ee=a.pendingProps,U=f.context,z=s.contextType,C=Cr,typeof z=="object"&&z!==null&&(C=kt(z)),S=s.getDerivedStateFromProps,(z=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==ee||U!==C)&&yg(a,f,o,C),Vi=!1,U=a.memoizedState,f.state=U,zs(a,o,f,u),Bs();var H=a.memoizedState;y!==ee||U!==H||Vi||n!==null&&n.dependencies!==null&&wo(n.dependencies)?(typeof S=="function"&&(_d(a,s,S,o),H=a.memoizedState),(W=Vi||vg(a,s,W,o,U,H,C)||n!==null&&n.dependencies!==null&&wo(n.dependencies))?(z||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,H,C),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,H,C)),typeof f.componentDidUpdate=="function"&&(a.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(a.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=H),f.props=o,f.state=H,f.context=C,o=W):(typeof f.componentDidUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(a.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(a.flags|=1024),o=!1)}return f=o,Bo(n,a),o=(a.flags&128)!==0,f||o?(f=a.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:f.render(),a.flags|=1,n!==null&&o?(a.child=Lr(a,n.child,null,u),a.child=Lr(a,null,s,u)):Ot(n,a,s,u),a.memoizedState=f.state,n=a.child):n=mi(n,a,u),n}function Dg(n,a,s,o){return Ms(),a.flags|=256,Ot(n,a,s,o),a.child}var Nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kd(n){return{baseLanes:n,cachePool:bm()}}function Dd(n,a,s){return n=n!==null?n.childLanes&~s:0,a&&(n|=xn),n}function Ig(n,a,s){var o=a.pendingProps,u=!1,f=(a.flags&128)!==0,y;if((y=f)||(y=n!==null&&n.memoizedState===null?!1:(Et.current&2)!==0),y&&(u=!0,a.flags&=-129),y=(a.flags&32)!==0,a.flags&=-33,n===null){if(Fe){if(u?Fi(a):Xi(),Fe){var S=dt,C;if(C=S){e:{for(C=S,S=Yn;C.nodeType!==8;){if(!S){S=null;break e}if(C=Ln(C.nextSibling),C===null){S=null;break e}}S=C}S!==null?(a.memoizedState={dehydrated:S,treeContext:Ia!==null?{id:ci,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},C=tn(18,null,null,0),C.stateNode=S,C.return=a,a.child=C,Lt=a,dt=null,C=!0):C=!1}C||Pa(a)}if(S=a.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return vf(S)?a.lanes=32:a.lanes=536870912,null;pi(a)}return S=o.children,o=o.fallback,u?(Xi(),u=a.mode,S=zo({mode:"hidden",children:S},u),o=Da(o,u,s,null),S.return=a,o.return=a,S.sibling=o,a.child=S,u=a.child,u.memoizedState=kd(s),u.childLanes=Dd(n,y,s),a.memoizedState=Nd,o):(Fi(a),Id(a,S))}if(C=n.memoizedState,C!==null&&(S=C.dehydrated,S!==null)){if(f)a.flags&256?(Fi(a),a.flags&=-257,a=jd(n,a,s)):a.memoizedState!==null?(Xi(),a.child=n.child,a.flags|=128,a=null):(Xi(),u=o.fallback,S=a.mode,o=zo({mode:"visible",children:o.children},S),u=Da(u,S,s,null),u.flags|=2,o.return=a,u.return=a,o.sibling=u,a.child=o,Lr(a,n.child,null,s),o=a.child,o.memoizedState=kd(s),o.childLanes=Dd(n,y,s),a.memoizedState=Nd,a=u);else if(Fi(a),vf(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var z=y.dgst;y=z,o=Error(r(419)),o.stack="",o.digest=y,Ns({value:o,source:null,stack:null}),a=jd(n,a,s)}else if(xt||ks(n,a,s,!1),y=(s&n.childLanes)!==0,xt||y){if(y=nt,y!==null&&(o=s&-s,o=(o&42)!==0?1:gs(o),o=(o&(y.suspendedLanes|s))!==0?0:o,o!==0&&o!==C.retryLane))throw C.retryLane=o,Ar(n,o),ln(y,n,o),Ag;S.data==="$?"||Jd(),a=jd(n,a,s)}else S.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=C.treeContext,dt=Ln(S.nextSibling),Lt=a,Fe=!0,La=null,Yn=!1,n!==null&&(bn[Sn++]=ci,bn[Sn++]=ui,bn[Sn++]=Ia,ci=n.id,ui=n.overflow,Ia=a),a=Id(a,o.children),a.flags|=4096);return a}return u?(Xi(),u=o.fallback,S=a.mode,C=n.child,z=C.sibling,o=oi(C,{mode:"hidden",children:o.children}),o.subtreeFlags=C.subtreeFlags&65011712,z!==null?u=oi(z,u):(u=Da(u,S,s,null),u.flags|=2),u.return=a,o.return=a,o.sibling=u,a.child=o,o=u,u=a.child,S=n.child.memoizedState,S===null?S=kd(s):(C=S.cachePool,C!==null?(z=St._currentValue,C=C.parent!==z?{parent:z,pool:z}:C):C=bm(),S={baseLanes:S.baseLanes|s,cachePool:C}),u.memoizedState=S,u.childLanes=Dd(n,y,s),a.memoizedState=Nd,o):(Fi(a),s=n.child,n=s.sibling,s=oi(s,{mode:"visible",children:o.children}),s.return=a,s.sibling=null,n!==null&&(y=a.deletions,y===null?(a.deletions=[n],a.flags|=16):y.push(n)),a.child=s,a.memoizedState=null,s)}function Id(n,a){return a=zo({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function zo(n,a){return n=tn(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function jd(n,a,s){return Lr(a,n.child,null,s),n=Id(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function jg(n,a,s){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),Ju(n.return,a,s)}function Ld(n,a,s,o,u){var f=n.memoizedState;f===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:u}:(f.isBackwards=a,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=s,f.tailMode=u)}function Lg(n,a,s){var o=a.pendingProps,u=o.revealOrder,f=o.tail;if(Ot(n,a,o.children,s),o=Et.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&jg(n,s,a);else if(n.tag===19)jg(n,s,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}switch(ne(Et,o),u){case"forwards":for(s=a.child,u=null;s!==null;)n=s.alternate,n!==null&&jo(n)===null&&(u=s),s=s.sibling;s=u,s===null?(u=a.child,a.child=null):(u=s.sibling,s.sibling=null),Ld(a,!1,u,s,f);break;case"backwards":for(s=null,u=a.child,a.child=null;u!==null;){if(n=u.alternate,n!==null&&jo(n)===null){a.child=u;break}n=u.sibling,u.sibling=s,s=u,u=n}Ld(a,!0,s,null,f);break;case"together":Ld(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function mi(n,a,s){if(n!==null&&(a.dependencies=n.dependencies),Zi|=a.lanes,(s&a.childLanes)===0)if(n!==null){if(ks(n,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,s=oi(n,n.pendingProps),a.child=s,s.return=a;n.sibling!==null;)n=n.sibling,s=s.sibling=oi(n,n.pendingProps),s.return=a;s.sibling=null}return a.child}function Pd(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&wo(n)))}function P1(n,a,s){switch(a.tag){case 3:ye(a,a.stateNode.containerInfo),Hi(a,St,n.memoizedState.cache),Ms();break;case 27:case 5:We(a);break;case 4:ye(a,a.stateNode.containerInfo);break;case 10:Hi(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Fi(a),a.flags|=128,null):(s&a.child.childLanes)!==0?Ig(n,a,s):(Fi(a),n=mi(n,a,s),n!==null?n.sibling:null);Fi(a);break;case 19:var u=(n.flags&128)!==0;if(o=(s&a.childLanes)!==0,o||(ks(n,a,s,!1),o=(s&a.childLanes)!==0),u){if(o)return Lg(n,a,s);a.flags|=128}if(u=a.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ne(Et,Et.current),o)break;return null;case 22:case 23:return a.lanes=0,Rg(n,a,s);case 24:Hi(a,St,n.memoizedState.cache)}return mi(n,a,s)}function Pg(n,a,s){if(n!==null)if(n.memoizedProps!==a.pendingProps)xt=!0;else{if(!Pd(n,s)&&(a.flags&128)===0)return xt=!1,P1(n,a,s);xt=(n.flags&131072)!==0}else xt=!1,Fe&&(a.flags&1048576)!==0&&hm(a,yo,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var o=a.elementType,u=o._init;if(o=u(o._payload),a.type=o,typeof o=="function")Fu(o)?(n=Va(o,n),a.tag=1,a=kg(null,a,o,n,s)):(a.tag=0,a=Md(null,a,o,n,s));else{if(o!=null){if(u=o.$$typeof,u===Y){a.tag=11,a=Cg(null,a,o,n,s);break e}else if(u===X){a.tag=14,a=_g(null,a,o,n,s);break e}}throw a=pe(o)||o,Error(r(306,a,""))}}return a;case 0:return Md(n,a,a.type,a.pendingProps,s);case 1:return o=a.type,u=Va(o,a.pendingProps),kg(n,a,o,u,s);case 3:e:{if(ye(a,a.stateNode.containerInfo),n===null)throw Error(r(387));o=a.pendingProps;var f=a.memoizedState;u=f.element,sd(n,a),zs(a,o,null,s);var y=a.memoizedState;if(o=y.cache,Hi(a,St,o),o!==f.cache&&ed(a,[St],s,!0),Bs(),o=y.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:y.cache},a.updateQueue.baseState=f,a.memoizedState=f,a.flags&256){a=Dg(n,a,o,s);break e}else if(o!==u){u=yn(Error(r(424)),a),Ns(u),a=Dg(n,a,o,s);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(dt=Ln(n.firstChild),Lt=a,Fe=!0,La=null,Yn=!0,s=mg(a,null,o,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Ms(),o===u){a=mi(n,a,s);break e}Ot(n,a,o,s)}a=a.child}return a;case 26:return Bo(n,a),n===null?(s=Hv(a.type,null,a.pendingProps,null))?a.memoizedState=s:Fe||(s=a.type,n=a.pendingProps,o=Jo(ve.current).createElement(s),o[te]=a,o[le]=n,Mt(o,s,n),Ge(o),a.stateNode=o):a.memoizedState=Hv(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return We(a),n===null&&Fe&&(o=a.stateNode=Bv(a.type,a.pendingProps,ve.current),Lt=a,Yn=!0,u=dt,na(a.type)?(yf=u,dt=Ln(o.firstChild)):dt=u),Ot(n,a,a.pendingProps.children,s),Bo(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Fe&&((u=o=dt)&&(o=dx(o,a.type,a.pendingProps,Yn),o!==null?(a.stateNode=o,Lt=a,dt=Ln(o.firstChild),Yn=!1,u=!0):u=!1),u||Pa(a)),We(a),u=a.type,f=a.pendingProps,y=n!==null?n.memoizedProps:null,o=f.children,pf(u,f)?o=null:y!==null&&pf(u,y)&&(a.flags|=32),a.memoizedState!==null&&(u=fd(n,a,R1,null,null,s),ll._currentValue=u),Bo(n,a),Ot(n,a,o,s),a.child;case 6:return n===null&&Fe&&((n=s=dt)&&(s=fx(s,a.pendingProps,Yn),s!==null?(a.stateNode=s,Lt=a,dt=null,n=!0):n=!1),n||Pa(a)),null;case 13:return Ig(n,a,s);case 4:return ye(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=Lr(a,null,o,s):Ot(n,a,o,s),a.child;case 11:return Cg(n,a,a.type,a.pendingProps,s);case 7:return Ot(n,a,a.pendingProps,s),a.child;case 8:return Ot(n,a,a.pendingProps.children,s),a.child;case 12:return Ot(n,a,a.pendingProps.children,s),a.child;case 10:return o=a.pendingProps,Hi(a,a.type,o.value),Ot(n,a,o.children,s),a.child;case 9:return u=a.type._context,o=a.pendingProps.children,za(a),u=kt(u),o=o(u),a.flags|=1,Ot(n,a,o,s),a.child;case 14:return _g(n,a,a.type,a.pendingProps,s);case 15:return Og(n,a,a.type,a.pendingProps,s);case 19:return Lg(n,a,s);case 31:return o=a.pendingProps,s=a.mode,o={mode:o.mode,children:o.children},n===null?(s=zo(o,s),s.ref=a.ref,a.child=s,s.return=a,a=s):(s=oi(n.child,o),s.ref=a.ref,a.child=s,s.return=a,a=s),a;case 22:return Rg(n,a,s);case 24:return za(a),o=kt(St),n===null?(u=id(),u===null&&(u=nt,f=td(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=s),u=f),a.memoizedState={parent:o,cache:u},rd(a),Hi(a,St,u)):((n.lanes&s)!==0&&(sd(n,a),zs(a,null,null,s),Bs()),u=n.memoizedState,f=a.memoizedState,u.parent!==o?(u={parent:o,cache:o},a.memoizedState=u,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=u),Hi(a,St,o)):(o=f.cache,Hi(a,St,o),o!==u.cache&&ed(a,[St],s,!0))),Ot(n,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function gi(n){n.flags|=4}function Bg(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Fv(a)){if(a=En.current,a!==null&&((He&4194048)===He?Fn!==null:(He&62914560)!==He&&(He&536870912)===0||a!==Fn))throw Ls=ad,Sm;n.flags|=8192}}function Uo(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?to():536870912,n.lanes|=a,Ur|=a)}function Fs(n,a){if(!Fe)switch(n.tailMode){case"hidden":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function ut(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=0,o=0;if(a)for(var u=n.child;u!==null;)s|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=n,u=u.sibling;else for(u=n.child;u!==null;)s|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=n,u=u.sibling;return n.subtreeFlags|=o,n.childLanes=s,a}function B1(n,a,s){var o=a.pendingProps;switch(Wu(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(a),null;case 1:return ut(a),null;case 3:return s=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),fi(St),at(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Rs(a)?gi(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,gm())),ut(a),null;case 26:return s=a.memoizedState,n===null?(gi(a),s!==null?(ut(a),Bg(a,s)):(ut(a),a.flags&=-16777217)):s?s!==n.memoizedState?(gi(a),ut(a),Bg(a,s)):(ut(a),a.flags&=-16777217):(n.memoizedProps!==o&&gi(a),ut(a),a.flags&=-16777217),null;case 27:Vt(a),s=ve.current;var u=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==o&&gi(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return ut(a),null}n=de.current,Rs(a)?pm(a):(n=Bv(u,o,s),a.stateNode=n,gi(a))}return ut(a),null;case 5:if(Vt(a),s=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&gi(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return ut(a),null}if(n=de.current,Rs(a))pm(a);else{switch(u=Jo(ve.current),n){case 1:n=u.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:n=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":n=u.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":n=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":n=u.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?u.createElement("select",{is:o.is}):u.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?u.createElement(s,{is:o.is}):u.createElement(s)}}n[te]=a,n[le]=o;e:for(u=a.child;u!==null;){if(u.tag===5||u.tag===6)n.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a.stateNode=n;e:switch(Mt(n,s,o),s){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&gi(a)}}return ut(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&gi(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(r(166));if(n=ve.current,Rs(a)){if(n=a.stateNode,s=a.memoizedProps,o=null,u=Lt,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}n[te]=a,n=!!(n.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||Nv(n.nodeValue,s)),n||Pa(a)}else n=Jo(n).createTextNode(o),n[te]=a,a.stateNode=n}return ut(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(u=Rs(a),o!==null&&o.dehydrated!==null){if(n===null){if(!u)throw Error(r(318));if(u=a.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[te]=a}else Ms(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ut(a),u=!1}else u=gm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=u),u=!0;if(!u)return a.flags&256?(pi(a),a):(pi(a),null)}if(pi(a),(a.flags&128)!==0)return a.lanes=s,a;if(s=o!==null,n=n!==null&&n.memoizedState!==null,s){o=a.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool);var f=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048)}return s!==n&&s&&(a.child.flags|=8192),Uo(a,a.updateQueue),ut(a),null;case 4:return at(),n===null&&cf(a.stateNode.containerInfo),ut(a),null;case 10:return fi(a.type),ut(a),null;case 19:if(se(Et),u=a.memoizedState,u===null)return ut(a),null;if(o=(a.flags&128)!==0,f=u.rendering,f===null)if(o)Fs(u,!1);else{if(ft!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(f=jo(n),f!==null){for(a.flags|=128,Fs(u,!1),n=f.updateQueue,a.updateQueue=n,Uo(a,n),a.subtreeFlags=0,n=s,s=a.child;s!==null;)fm(s,n),s=s.sibling;return ne(Et,Et.current&1|2),a.child}n=n.sibling}u.tail!==null&&Jt()>Go&&(a.flags|=128,o=!0,Fs(u,!1),a.lanes=4194304)}else{if(!o)if(n=jo(f),n!==null){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,Uo(a,n),Fs(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Fe)return ut(a),null}else 2*Jt()-u.renderingStartTime>Go&&s!==536870912&&(a.flags|=128,o=!0,Fs(u,!1),a.lanes=4194304);u.isBackwards?(f.sibling=a.child,a.child=f):(n=u.last,n!==null?n.sibling=f:a.child=f,u.last=f)}return u.tail!==null?(a=u.tail,u.rendering=a,u.tail=a.sibling,u.renderingStartTime=Jt(),a.sibling=null,n=Et.current,ne(Et,o?n&1|2:n&1),a):(ut(a),null);case 22:case 23:return pi(a),ud(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(s&536870912)!==0&&(a.flags&128)===0&&(ut(a),a.subtreeFlags&6&&(a.flags|=8192)):ut(a),s=a.updateQueue,s!==null&&Uo(a,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048),n!==null&&se(Ua),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),fi(St),ut(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function z1(n,a){switch(Wu(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return fi(St),at(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Vt(a),null;case 13:if(pi(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ms()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return se(Et),null;case 4:return at(),null;case 10:return fi(a.type),null;case 22:case 23:return pi(a),ud(),n!==null&&se(Ua),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return fi(St),null;case 25:return null;default:return null}}function zg(n,a){switch(Wu(a),a.tag){case 3:fi(St),at();break;case 26:case 27:case 5:Vt(a);break;case 4:at();break;case 13:pi(a);break;case 19:se(Et);break;case 10:fi(a.type);break;case 22:case 23:pi(a),ud(),n!==null&&se(Ua);break;case 24:fi(St)}}function Xs(n,a){try{var s=a.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&n)===n){o=void 0;var f=s.create,y=s.inst;o=f(),y.destroy=o}s=s.next}while(s!==u)}}catch(S){et(a,a.return,S)}}function $i(n,a,s){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var f=u.next;o=f;do{if((o.tag&n)===n){var y=o.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,u=a;var C=s,z=S;try{z()}catch(W){et(u,C,W)}}}o=o.next}while(o!==f)}}catch(W){et(a,a.return,W)}}function Ug(n){var a=n.updateQueue;if(a!==null){var s=n.stateNode;try{_m(a,s)}catch(o){et(n,n.return,o)}}}function Hg(n,a,s){s.props=Va(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(o){et(n,a,o)}}function $s(n,a){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof s=="function"?n.refCleanup=s(o):s.current=o}}catch(u){et(n,a,u)}}function Xn(n,a){var s=n.ref,o=n.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(u){et(n,a,u)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){et(n,a,u)}else s.current=null}function Vg(n){var a=n.type,s=n.memoizedProps,o=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break e;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(u){et(n,n.return,u)}}function Bd(n,a,s){try{var o=n.stateNode;sx(o,n.type,s,a),o[le]=a}catch(u){et(n,n.return,u)}}function Gg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&na(n.type)||n.tag===4}function zd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Gg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&na(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ud(n,a,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(n),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Zo));else if(o!==4&&(o===27&&na(n.type)&&(s=n.stateNode,a=null),n=n.child,n!==null))for(Ud(n,a,s),n=n.sibling;n!==null;)Ud(n,a,s),n=n.sibling}function Ho(n,a,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?s.insertBefore(n,a):s.appendChild(n);else if(o!==4&&(o===27&&na(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Ho(n,a,s),n=n.sibling;n!==null;)Ho(n,a,s),n=n.sibling}function qg(n){var a=n.stateNode,s=n.memoizedProps;try{for(var o=n.type,u=a.attributes;u.length;)a.removeAttributeNode(u[0]);Mt(a,o,s),a[te]=n,a[le]=s}catch(f){et(n,n.return,f)}}var vi=!1,mt=!1,Hd=!1,Yg=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function U1(n,a){if(n=n.containerInfo,ff=rc,n=nm(n),zu(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var u=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{s.nodeType,f.nodeType}catch{s=null;break e}var y=0,S=-1,C=-1,z=0,W=0,ee=n,U=null;t:for(;;){for(var H;ee!==s||u!==0&&ee.nodeType!==3||(S=y+u),ee!==f||o!==0&&ee.nodeType!==3||(C=y+o),ee.nodeType===3&&(y+=ee.nodeValue.length),(H=ee.firstChild)!==null;)U=ee,ee=H;for(;;){if(ee===n)break t;if(U===s&&++z===u&&(S=y),U===f&&++W===o&&(C=y),(H=ee.nextSibling)!==null)break;ee=U,U=ee.parentNode}ee=H}s=S===-1||C===-1?null:{start:S,end:C}}else s=null}s=s||{start:0,end:0}}else s=null;for(hf={focusedElem:n,selectionRange:s},rc=!1,Tt=a;Tt!==null;)if(a=Tt,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,Tt=n;else for(;Tt!==null;){switch(a=Tt,f=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&f!==null){n=void 0,s=a,u=f.memoizedProps,f=f.memoizedState,o=s.stateNode;try{var Oe=Va(s.type,u,s.elementType===s.type);n=o.getSnapshotBeforeUpdate(Oe,f),o.__reactInternalSnapshotBeforeUpdate=n}catch(xe){et(s,s.return,xe)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,s=n.nodeType,s===9)gf(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":gf(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,Tt=n;break}Tt=a.return}}function Fg(n,a,s){var o=s.flags;switch(s.tag){case 0:case 11:case 15:Ki(n,s),o&4&&Xs(5,s);break;case 1:if(Ki(n,s),o&4)if(n=s.stateNode,a===null)try{n.componentDidMount()}catch(y){et(s,s.return,y)}else{var u=Va(s.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(u,a,n.__reactInternalSnapshotBeforeUpdate)}catch(y){et(s,s.return,y)}}o&64&&Ug(s),o&512&&$s(s,s.return);break;case 3:if(Ki(n,s),o&64&&(n=s.updateQueue,n!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{_m(n,a)}catch(y){et(s,s.return,y)}}break;case 27:a===null&&o&4&&qg(s);case 26:case 5:Ki(n,s),a===null&&o&4&&Vg(s),o&512&&$s(s,s.return);break;case 12:Ki(n,s);break;case 13:Ki(n,s),o&4&&Kg(n,s),o&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=K1.bind(null,s),hx(n,s))));break;case 22:if(o=s.memoizedState!==null||vi,!o){a=a!==null&&a.memoizedState!==null||mt,u=vi;var f=mt;vi=o,(mt=a)&&!f?Wi(n,s,(s.subtreeFlags&8772)!==0):Ki(n,s),vi=u,mt=f}break;case 30:break;default:Ki(n,s)}}function Xg(n){var a=n.alternate;a!==null&&(n.alternate=null,Xg(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&_e(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var lt=null,$t=!1;function yi(n,a,s){for(s=s.child;s!==null;)$g(n,a,s),s=s.sibling}function $g(n,a,s){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Gt,s)}catch{}switch(s.tag){case 26:mt||Xn(s,a),yi(n,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:mt||Xn(s,a);var o=lt,u=$t;na(s.type)&&(lt=s.stateNode,$t=!1),yi(n,a,s),il(s.stateNode),lt=o,$t=u;break;case 5:mt||Xn(s,a);case 6:if(o=lt,u=$t,lt=null,yi(n,a,s),lt=o,$t=u,lt!==null)if($t)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(s.stateNode)}catch(f){et(s,a,f)}else try{lt.removeChild(s.stateNode)}catch(f){et(s,a,f)}break;case 18:lt!==null&&($t?(n=lt,Lv(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),dl(n)):Lv(lt,s.stateNode));break;case 4:o=lt,u=$t,lt=s.stateNode.containerInfo,$t=!0,yi(n,a,s),lt=o,$t=u;break;case 0:case 11:case 14:case 15:mt||$i(2,s,a),mt||$i(4,s,a),yi(n,a,s);break;case 1:mt||(Xn(s,a),o=s.stateNode,typeof o.componentWillUnmount=="function"&&Hg(s,a,o)),yi(n,a,s);break;case 21:yi(n,a,s);break;case 22:mt=(o=mt)||s.memoizedState!==null,yi(n,a,s),mt=o;break;default:yi(n,a,s)}}function Kg(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{dl(n)}catch(s){et(a,a.return,s)}}function H1(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new Yg),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new Yg),a;default:throw Error(r(435,n.tag))}}function Vd(n,a){var s=H1(n);a.forEach(function(o){var u=W1.bind(null,n,o);s.has(o)||(s.add(o),o.then(u,u))})}function nn(n,a){var s=a.deletions;if(s!==null)for(var o=0;o<s.length;o++){var u=s[o],f=n,y=a,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(na(S.type)){lt=S.stateNode,$t=!1;break e}break;case 5:lt=S.stateNode,$t=!1;break e;case 3:case 4:lt=S.stateNode.containerInfo,$t=!0;break e}S=S.return}if(lt===null)throw Error(r(160));$g(f,y,u),lt=null,$t=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Wg(a,n),a=a.sibling}var jn=null;function Wg(n,a){var s=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:nn(a,n),an(n),o&4&&($i(3,n,n.return),Xs(3,n),$i(5,n,n.return));break;case 1:nn(a,n),an(n),o&512&&(mt||s===null||Xn(s,s.return)),o&64&&vi&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?o:s.concat(o))));break;case 26:var u=jn;if(nn(a,n),an(n),o&512&&(mt||s===null||Xn(s,s.return)),o&4){var f=s!==null?s.memoizedState:null;if(o=n.memoizedState,s===null)if(o===null)if(n.stateNode===null){e:{o=n.type,s=n.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":f=u.getElementsByTagName("title")[0],(!f||f[Ce]||f[te]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(o),u.head.insertBefore(f,u.querySelector("head > title"))),Mt(f,o,s),f[te]=n,Ge(f),o=f;break e;case"link":var y=qv("link","href",u).get(o+(s.href||""));if(y){for(var S=0;S<y.length;S++)if(f=y[S],f.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&f.getAttribute("rel")===(s.rel==null?null:s.rel)&&f.getAttribute("title")===(s.title==null?null:s.title)&&f.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){y.splice(S,1);break t}}f=u.createElement(o),Mt(f,o,s),u.head.appendChild(f);break;case"meta":if(y=qv("meta","content",u).get(o+(s.content||""))){for(S=0;S<y.length;S++)if(f=y[S],f.getAttribute("content")===(s.content==null?null:""+s.content)&&f.getAttribute("name")===(s.name==null?null:s.name)&&f.getAttribute("property")===(s.property==null?null:s.property)&&f.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&f.getAttribute("charset")===(s.charSet==null?null:s.charSet)){y.splice(S,1);break t}}f=u.createElement(o),Mt(f,o,s),u.head.appendChild(f);break;default:throw Error(r(468,o))}f[te]=n,Ge(f),o=f}n.stateNode=o}else Yv(u,n.type,n.stateNode);else n.stateNode=Gv(u,o,n.memoizedProps);else f!==o?(f===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):f.count--,o===null?Yv(u,n.type,n.stateNode):Gv(u,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Bd(n,n.memoizedProps,s.memoizedProps)}break;case 27:nn(a,n),an(n),o&512&&(mt||s===null||Xn(s,s.return)),s!==null&&o&4&&Bd(n,n.memoizedProps,s.memoizedProps);break;case 5:if(nn(a,n),an(n),o&512&&(mt||s===null||Xn(s,s.return)),n.flags&32){u=n.stateNode;try{yr(u,"")}catch(H){et(n,n.return,H)}}o&4&&n.stateNode!=null&&(u=n.memoizedProps,Bd(n,u,s!==null?s.memoizedProps:u)),o&1024&&(Hd=!0);break;case 6:if(nn(a,n),an(n),o&4){if(n.stateNode===null)throw Error(r(162));o=n.memoizedProps,s=n.stateNode;try{s.nodeValue=o}catch(H){et(n,n.return,H)}}break;case 3:if(nc=null,u=jn,jn=ec(a.containerInfo),nn(a,n),jn=u,an(n),o&4&&s!==null&&s.memoizedState.isDehydrated)try{dl(a.containerInfo)}catch(H){et(n,n.return,H)}Hd&&(Hd=!1,Qg(n));break;case 4:o=jn,jn=ec(n.stateNode.containerInfo),nn(a,n),an(n),jn=o;break;case 12:nn(a,n),an(n);break;case 13:nn(a,n),an(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&($d=Jt()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Vd(n,o)));break;case 22:u=n.memoizedState!==null;var C=s!==null&&s.memoizedState!==null,z=vi,W=mt;if(vi=z||u,mt=W||C,nn(a,n),mt=W,vi=z,an(n),o&8192)e:for(a=n.stateNode,a._visibility=u?a._visibility&-2:a._visibility|1,u&&(s===null||C||vi||mt||Ga(n)),s=null,a=n;;){if(a.tag===5||a.tag===26){if(s===null){C=s=a;try{if(f=C.stateNode,u)y=f.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=C.stateNode;var ee=C.memoizedProps.style,U=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(H){et(C,C.return,H)}}}else if(a.tag===6){if(s===null){C=a;try{C.stateNode.nodeValue=u?"":C.memoizedProps}catch(H){et(C,C.return,H)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=n.updateQueue,o!==null&&(s=o.retryQueue,s!==null&&(o.retryQueue=null,Vd(n,s))));break;case 19:nn(a,n),an(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Vd(n,o)));break;case 30:break;case 21:break;default:nn(a,n),an(n)}}function an(n){var a=n.flags;if(a&2){try{for(var s,o=n.return;o!==null;){if(Gg(o)){s=o;break}o=o.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var u=s.stateNode,f=zd(n);Ho(n,f,u);break;case 5:var y=s.stateNode;s.flags&32&&(yr(y,""),s.flags&=-33);var S=zd(n);Ho(n,S,y);break;case 3:case 4:var C=s.stateNode.containerInfo,z=zd(n);Ud(n,z,C);break;default:throw Error(r(161))}}catch(W){et(n,n.return,W)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Qg(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Qg(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ki(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Fg(n,a.alternate,a),a=a.sibling}function Ga(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:$i(4,a,a.return),Ga(a);break;case 1:Xn(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&Hg(a,a.return,s),Ga(a);break;case 27:il(a.stateNode);case 26:case 5:Xn(a,a.return),Ga(a);break;case 22:a.memoizedState===null&&Ga(a);break;case 30:Ga(a);break;default:Ga(a)}n=n.sibling}}function Wi(n,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,u=n,f=a,y=f.flags;switch(f.tag){case 0:case 11:case 15:Wi(u,f,s),Xs(4,f);break;case 1:if(Wi(u,f,s),o=f,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){et(o,o.return,z)}if(o=f,u=o.updateQueue,u!==null){var S=o.stateNode;try{var C=u.shared.hiddenCallbacks;if(C!==null)for(u.shared.hiddenCallbacks=null,u=0;u<C.length;u++)Cm(C[u],S)}catch(z){et(o,o.return,z)}}s&&y&64&&Ug(f),$s(f,f.return);break;case 27:qg(f);case 26:case 5:Wi(u,f,s),s&&o===null&&y&4&&Vg(f),$s(f,f.return);break;case 12:Wi(u,f,s);break;case 13:Wi(u,f,s),s&&y&4&&Kg(u,f);break;case 22:f.memoizedState===null&&Wi(u,f,s),$s(f,f.return);break;case 30:break;default:Wi(u,f,s)}a=a.sibling}}function Gd(n,a){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Ds(s))}function qd(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ds(n))}function $n(n,a,s,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Zg(n,a,s,o),a=a.sibling}function Zg(n,a,s,o){var u=a.flags;switch(a.tag){case 0:case 11:case 15:$n(n,a,s,o),u&2048&&Xs(9,a);break;case 1:$n(n,a,s,o);break;case 3:$n(n,a,s,o),u&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ds(n)));break;case 12:if(u&2048){$n(n,a,s,o),n=a.stateNode;try{var f=a.memoizedProps,y=f.id,S=f.onPostCommit;typeof S=="function"&&S(y,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(C){et(a,a.return,C)}}else $n(n,a,s,o);break;case 13:$n(n,a,s,o);break;case 23:break;case 22:f=a.stateNode,y=a.alternate,a.memoizedState!==null?f._visibility&2?$n(n,a,s,o):Ks(n,a):f._visibility&2?$n(n,a,s,o):(f._visibility|=2,Pr(n,a,s,o,(a.subtreeFlags&10256)!==0)),u&2048&&Gd(y,a);break;case 24:$n(n,a,s,o),u&2048&&qd(a.alternate,a);break;default:$n(n,a,s,o)}}function Pr(n,a,s,o,u){for(u=u&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var f=n,y=a,S=s,C=o,z=y.flags;switch(y.tag){case 0:case 11:case 15:Pr(f,y,S,C,u),Xs(8,y);break;case 23:break;case 22:var W=y.stateNode;y.memoizedState!==null?W._visibility&2?Pr(f,y,S,C,u):Ks(f,y):(W._visibility|=2,Pr(f,y,S,C,u)),u&&z&2048&&Gd(y.alternate,y);break;case 24:Pr(f,y,S,C,u),u&&z&2048&&qd(y.alternate,y);break;default:Pr(f,y,S,C,u)}a=a.sibling}}function Ks(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=n,o=a,u=o.flags;switch(o.tag){case 22:Ks(s,o),u&2048&&Gd(o.alternate,o);break;case 24:Ks(s,o),u&2048&&qd(o.alternate,o);break;default:Ks(s,o)}a=a.sibling}}var Ws=8192;function Br(n){if(n.subtreeFlags&Ws)for(n=n.child;n!==null;)Jg(n),n=n.sibling}function Jg(n){switch(n.tag){case 26:Br(n),n.flags&Ws&&n.memoizedState!==null&&Cx(jn,n.memoizedState,n.memoizedProps);break;case 5:Br(n);break;case 3:case 4:var a=jn;jn=ec(n.stateNode.containerInfo),Br(n),jn=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Ws,Ws=16777216,Br(n),Ws=a):Br(n));break;default:Br(n)}}function ev(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function Qs(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var o=a[s];Tt=o,nv(o,n)}ev(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)tv(n),n=n.sibling}function tv(n){switch(n.tag){case 0:case 11:case 15:Qs(n),n.flags&2048&&$i(9,n,n.return);break;case 3:Qs(n);break;case 12:Qs(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Vo(n)):Qs(n);break;default:Qs(n)}}function Vo(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var o=a[s];Tt=o,nv(o,n)}ev(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:$i(8,a,a.return),Vo(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,Vo(a));break;default:Vo(a)}n=n.sibling}}function nv(n,a){for(;Tt!==null;){var s=Tt;switch(s.tag){case 0:case 11:case 15:$i(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var o=s.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ds(s.memoizedState.cache)}if(o=s.child,o!==null)o.return=s,Tt=o;else e:for(s=n;Tt!==null;){o=Tt;var u=o.sibling,f=o.return;if(Xg(o),o===s){Tt=null;break e}if(u!==null){u.return=f,Tt=u;break e}Tt=f}}}var V1={getCacheForType:function(n){var a=kt(St),s=a.data.get(n);return s===void 0&&(s=n(),a.data.set(n,s)),s}},G1=typeof WeakMap=="function"?WeakMap:Map,$e=0,nt=null,Pe=null,He=0,Ke=0,rn=null,Qi=!1,zr=!1,Yd=!1,wi=0,ft=0,Zi=0,qa=0,Fd=0,xn=0,Ur=0,Zs=null,Kt=null,Xd=!1,$d=0,Go=1/0,qo=null,Ji=null,Rt=0,ea=null,Hr=null,Vr=0,Kd=0,Wd=null,iv=null,Js=0,Qd=null;function sn(){if(($e&2)!==0&&He!==0)return He&-He;if(M.T!==null){var n=Rr;return n!==0?n:rf()}return O()}function av(){xn===0&&(xn=(He&536870912)===0||Fe?mr():536870912);var n=En.current;return n!==null&&(n.flags|=32),xn}function ln(n,a,s){(n===nt&&(Ke===2||Ke===9)||n.cancelPendingCommit!==null)&&(Gr(n,0),ta(n,He,xn,!1)),Ca(n,s),(($e&2)===0||n!==nt)&&(n===nt&&(($e&2)===0&&(qa|=s),ft===4&&ta(n,He,xn,!1)),Kn(n))}function rv(n,a,s){if(($e&6)!==0)throw Error(r(327));var o=!s&&(a&124)===0&&(a&n.expiredLanes)===0||qn(n,a),u=o?F1(n,a):ef(n,a,!0),f=o;do{if(u===0){zr&&!o&&ta(n,a,0,!1);break}else{if(s=n.current.alternate,f&&!q1(s)){u=ef(n,a,!1),f=!1;continue}if(u===2){if(f=a,n.errorRecoveryDisabledLanes&f)var y=0;else y=n.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){a=y;e:{var S=n;u=Zs;var C=S.current.memoizedState.isDehydrated;if(C&&(Gr(S,y).flags|=256),y=ef(S,y,!1),y!==2){if(Yd&&!C){S.errorRecoveryDisabledLanes|=f,qa|=f,u=4;break e}f=Kt,Kt=u,f!==null&&(Kt===null?Kt=f:Kt.push.apply(Kt,f))}u=y}if(f=!1,u!==2)continue}}if(u===1){Gr(n,0),ta(n,a,0,!0);break}e:{switch(o=n,f=u,f){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ta(o,a,xn,!Qi);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(u=$d+300-Jt(),10<u)){if(ta(o,a,xn,!Qi),Aa(o,0,!0)!==0)break e;o.timeoutHandle=Iv(sv.bind(null,o,s,Kt,qo,Xd,a,xn,qa,Ur,Qi,f,2,-0,0),u);break e}sv(o,s,Kt,qo,Xd,a,xn,qa,Ur,Qi,f,0,-0,0)}}break}while(!0);Kn(n)}function sv(n,a,s,o,u,f,y,S,C,z,W,ee,U,H){if(n.timeoutHandle=-1,ee=a.subtreeFlags,(ee&8192||(ee&16785408)===16785408)&&(sl={stylesheets:null,count:0,unsuspend:Ax},Jg(a),ee=_x(),ee!==null)){n.cancelPendingCommit=ee(hv.bind(null,n,a,f,s,o,u,y,S,C,W,1,U,H)),ta(n,f,y,!z);return}hv(n,a,f,s,o,u,y,S,C)}function q1(n){for(var a=n;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var o=0;o<s.length;o++){var u=s[o],f=u.getSnapshot;u=u.value;try{if(!en(f(),u))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ta(n,a,s,o){a&=~Fd,a&=~qa,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var u=a;0<u;){var f=31-_t(u),y=1<<f;o[f]=-1,u&=~y}s!==0&&_a(n,s,a)}function Yo(){return($e&6)===0?(el(0),!1):!0}function Zd(){if(Pe!==null){if(Ke===0)var n=Pe.return;else n=Pe,di=Ba=null,md(n),jr=null,qs=0,n=Pe;for(;n!==null;)zg(n.alternate,n),n=n.return;Pe=null}}function Gr(n,a){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,ox(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Zd(),nt=n,Pe=s=oi(n.current,null),He=a,Ke=0,rn=null,Qi=!1,zr=qn(n,a),Yd=!1,Ur=xn=Fd=qa=Zi=ft=0,Kt=Zs=null,Xd=!1,(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var u=31-_t(o),f=1<<u;a|=n[u],o&=~f}return wi=a,ho(),s}function lv(n,a){De=null,M.H=ko,a===js||a===Eo?(a=Tm(),Ke=3):a===Sm?(a=Tm(),Ke=4):Ke=a===Ag?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rn=a,Pe===null&&(ft=1,Po(n,yn(a,n.current)))}function ov(){var n=M.H;return M.H=ko,n===null?ko:n}function cv(){var n=M.A;return M.A=V1,n}function Jd(){ft=4,Qi||(He&4194048)!==He&&En.current!==null||(zr=!0),(Zi&134217727)===0&&(qa&134217727)===0||nt===null||ta(nt,He,xn,!1)}function ef(n,a,s){var o=$e;$e|=2;var u=ov(),f=cv();(nt!==n||He!==a)&&(qo=null,Gr(n,a)),a=!1;var y=ft;e:do try{if(Ke!==0&&Pe!==null){var S=Pe,C=rn;switch(Ke){case 8:Zd(),y=6;break e;case 3:case 2:case 9:case 6:En.current===null&&(a=!0);var z=Ke;if(Ke=0,rn=null,qr(n,S,C,z),s&&zr){y=0;break e}break;default:z=Ke,Ke=0,rn=null,qr(n,S,C,z)}}Y1(),y=ft;break}catch(W){lv(n,W)}while(!0);return a&&n.shellSuspendCounter++,di=Ba=null,$e=o,M.H=u,M.A=f,Pe===null&&(nt=null,He=0,ho()),y}function Y1(){for(;Pe!==null;)uv(Pe)}function F1(n,a){var s=$e;$e|=2;var o=ov(),u=cv();nt!==n||He!==a?(qo=null,Go=Jt()+500,Gr(n,a)):zr=qn(n,a);e:do try{if(Ke!==0&&Pe!==null){a=Pe;var f=rn;t:switch(Ke){case 1:Ke=0,rn=null,qr(n,a,f,1);break;case 2:case 9:if(Em(f)){Ke=0,rn=null,dv(a);break}a=function(){Ke!==2&&Ke!==9||nt!==n||(Ke=7),Kn(n)},f.then(a,a);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Em(f)?(Ke=0,rn=null,dv(a)):(Ke=0,rn=null,qr(n,a,f,7));break;case 5:var y=null;switch(Pe.tag){case 26:y=Pe.memoizedState;case 5:case 27:var S=Pe;if(!y||Fv(y)){Ke=0,rn=null;var C=S.sibling;if(C!==null)Pe=C;else{var z=S.return;z!==null?(Pe=z,Fo(z)):Pe=null}break t}}Ke=0,rn=null,qr(n,a,f,5);break;case 6:Ke=0,rn=null,qr(n,a,f,6);break;case 8:Zd(),ft=6;break e;default:throw Error(r(462))}}X1();break}catch(W){lv(n,W)}while(!0);return di=Ba=null,M.H=o,M.A=u,$e=s,Pe!==null?0:(nt=null,He=0,ho(),ft)}function X1(){for(;Pe!==null&&!bu();)uv(Pe)}function uv(n){var a=Pg(n.alternate,n,wi);n.memoizedProps=n.pendingProps,a===null?Fo(n):Pe=a}function dv(n){var a=n,s=a.alternate;switch(a.tag){case 15:case 0:a=Ng(s,a,a.pendingProps,a.type,void 0,He);break;case 11:a=Ng(s,a,a.pendingProps,a.type.render,a.ref,He);break;case 5:md(a);default:zg(s,a),a=Pe=fm(a,wi),a=Pg(s,a,wi)}n.memoizedProps=n.pendingProps,a===null?Fo(n):Pe=a}function qr(n,a,s,o){di=Ba=null,md(a),jr=null,qs=0;var u=a.return;try{if(L1(n,u,a,s,He)){ft=1,Po(n,yn(s,n.current)),Pe=null;return}}catch(f){if(u!==null)throw Pe=u,f;ft=1,Po(n,yn(s,n.current)),Pe=null;return}a.flags&32768?(Fe||o===1?n=!0:zr||(He&536870912)!==0?n=!1:(Qi=n=!0,(o===2||o===9||o===3||o===6)&&(o=En.current,o!==null&&o.tag===13&&(o.flags|=16384))),fv(a,n)):Fo(a)}function Fo(n){var a=n;do{if((a.flags&32768)!==0){fv(a,Qi);return}n=a.return;var s=B1(a.alternate,a,wi);if(s!==null){Pe=s;return}if(a=a.sibling,a!==null){Pe=a;return}Pe=a=n}while(a!==null);ft===0&&(ft=5)}function fv(n,a){do{var s=z1(n.alternate,n);if(s!==null){s.flags&=32767,Pe=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(n=n.sibling,n!==null)){Pe=n;return}Pe=n=s}while(n!==null);ft=6,Pe=null}function hv(n,a,s,o,u,f,y,S,C){n.cancelPendingCommit=null;do Xo();while(Rt!==0);if(($e&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(f=a.lanes|a.childLanes,f|=qu,no(n,s,f,y,S,C),n===nt&&(Pe=nt=null,He=0),Hr=a,ea=n,Vr=s,Kd=f,Wd=u,iv=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Q1(pr,function(){return yv(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=M.T,M.T=null,u=Z.p,Z.p=2,y=$e,$e|=4;try{U1(n,a,s)}finally{$e=y,Z.p=u,M.T=o}}Rt=1,pv(),mv(),gv()}}function pv(){if(Rt===1){Rt=0;var n=ea,a=Hr,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=M.T,M.T=null;var o=Z.p;Z.p=2;var u=$e;$e|=4;try{Wg(a,n);var f=hf,y=nm(n.containerInfo),S=f.focusedElem,C=f.selectionRange;if(y!==S&&S&&S.ownerDocument&&tm(S.ownerDocument.documentElement,S)){if(C!==null&&zu(S)){var z=C.start,W=C.end;if(W===void 0&&(W=z),"selectionStart"in S)S.selectionStart=z,S.selectionEnd=Math.min(W,S.value.length);else{var ee=S.ownerDocument||document,U=ee&&ee.defaultView||window;if(U.getSelection){var H=U.getSelection(),Oe=S.textContent.length,xe=Math.min(C.start,Oe),Je=C.end===void 0?xe:Math.min(C.end,Oe);!H.extend&&xe>Je&&(y=Je,Je=xe,xe=y);var j=em(S,xe),R=em(S,Je);if(j&&R&&(H.rangeCount!==1||H.anchorNode!==j.node||H.anchorOffset!==j.offset||H.focusNode!==R.node||H.focusOffset!==R.offset)){var B=ee.createRange();B.setStart(j.node,j.offset),H.removeAllRanges(),xe>Je?(H.addRange(B),H.extend(R.node,R.offset)):(B.setEnd(R.node,R.offset),H.addRange(B))}}}}for(ee=[],H=S;H=H.parentNode;)H.nodeType===1&&ee.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<ee.length;S++){var Q=ee[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}rc=!!ff,hf=ff=null}finally{$e=u,Z.p=o,M.T=s}}n.current=a,Rt=2}}function mv(){if(Rt===2){Rt=0;var n=ea,a=Hr,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=M.T,M.T=null;var o=Z.p;Z.p=2;var u=$e;$e|=4;try{Fg(n,a.alternate,a)}finally{$e=u,Z.p=o,M.T=s}}Rt=3}}function gv(){if(Rt===4||Rt===3){Rt=0,Su();var n=ea,a=Hr,s=Vr,o=iv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Rt=5:(Rt=0,Hr=ea=null,vv(n,n.pendingLanes));var u=n.pendingLanes;if(u===0&&(Ji=null),vs(s),a=a.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Gt,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=M.T,u=Z.p,Z.p=2,M.T=null;try{for(var f=n.onRecoverableError,y=0;y<o.length;y++){var S=o[y];f(S.value,{componentStack:S.stack})}}finally{M.T=a,Z.p=u}}(Vr&3)!==0&&Xo(),Kn(n),u=n.pendingLanes,(s&4194090)!==0&&(u&42)!==0?n===Qd?Js++:(Js=0,Qd=n):Js=0,el(0)}}function vv(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Ds(a)))}function Xo(n){return pv(),mv(),gv(),yv()}function yv(){if(Rt!==5)return!1;var n=ea,a=Kd;Kd=0;var s=vs(Vr),o=M.T,u=Z.p;try{Z.p=32>s?32:s,M.T=null,s=Wd,Wd=null;var f=ea,y=Vr;if(Rt=0,Hr=ea=null,Vr=0,($e&6)!==0)throw Error(r(331));var S=$e;if($e|=4,tv(f.current),Zg(f,f.current,y,s),$e=S,el(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Gt,f)}catch{}return!0}finally{Z.p=u,M.T=o,vv(n,a)}}function wv(n,a,s){a=yn(s,a),a=Rd(n.stateNode,a,2),n=qi(n,a,2),n!==null&&(Ca(n,2),Kn(n))}function et(n,a,s){if(n.tag===3)wv(n,n,s);else for(;a!==null;){if(a.tag===3){wv(a,n,s);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ji===null||!Ji.has(o))){n=yn(s,n),s=xg(2),o=qi(a,s,2),o!==null&&(Tg(s,o,a,n),Ca(o,2),Kn(o));break}}a=a.return}}function tf(n,a,s){var o=n.pingCache;if(o===null){o=n.pingCache=new G1;var u=new Set;o.set(a,u)}else u=o.get(a),u===void 0&&(u=new Set,o.set(a,u));u.has(s)||(Yd=!0,u.add(s),n=$1.bind(null,n,a,s),a.then(n,n))}function $1(n,a,s){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,nt===n&&(He&s)===s&&(ft===4||ft===3&&(He&62914560)===He&&300>Jt()-$d?($e&2)===0&&Gr(n,0):Fd|=s,Ur===He&&(Ur=0)),Kn(n)}function bv(n,a){a===0&&(a=to()),n=Ar(n,a),n!==null&&(Ca(n,a),Kn(n))}function K1(n){var a=n.memoizedState,s=0;a!==null&&(s=a.retryLane),bv(n,s)}function W1(n,a){var s=0;switch(n.tag){case 13:var o=n.stateNode,u=n.memoizedState;u!==null&&(s=u.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(a),bv(n,s)}function Q1(n,a){return ps(n,a)}var $o=null,Yr=null,nf=!1,Ko=!1,af=!1,Ya=0;function Kn(n){n!==Yr&&n.next===null&&(Yr===null?$o=Yr=n:Yr=Yr.next=n),Ko=!0,nf||(nf=!0,J1())}function el(n,a){if(!af&&Ko){af=!0;do for(var s=!1,o=$o;o!==null;){if(n!==0){var u=o.pendingLanes;if(u===0)var f=0;else{var y=o.suspendedLanes,S=o.pingedLanes;f=(1<<31-_t(42|n)+1)-1,f&=u&~(y&~S),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(s=!0,Tv(o,f))}else f=He,f=Aa(o,o===nt?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||qn(o,f)||(s=!0,Tv(o,f));o=o.next}while(s);af=!1}}function Z1(){Sv()}function Sv(){Ko=nf=!1;var n=0;Ya!==0&&(lx()&&(n=Ya),Ya=0);for(var a=Jt(),s=null,o=$o;o!==null;){var u=o.next,f=Ev(o,a);f===0?(o.next=null,s===null?$o=u:s.next=u,u===null&&(Yr=s)):(s=o,(n!==0||(f&3)!==0)&&(Ko=!0)),o=u}el(n)}function Ev(n,a){for(var s=n.suspendedLanes,o=n.pingedLanes,u=n.expirationTimes,f=n.pendingLanes&-62914561;0<f;){var y=31-_t(f),S=1<<y,C=u[y];C===-1?((S&s)===0||(S&o)!==0)&&(u[y]=eo(S,a)):C<=a&&(n.expiredLanes|=S),f&=~S}if(a=nt,s=He,s=Aa(n,n===a?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,s===0||n===a&&(Ke===2||Ke===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&Mn(o),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||qn(n,s)){if(a=s&-s,a===n.callbackPriority)return a;switch(o!==null&&Mn(o),vs(s)){case 2:case 8:s=Ql;break;case 32:s=pr;break;case 268435456:s=ji;break;default:s=pr}return o=xv.bind(null,n),s=ps(s,o),n.callbackPriority=a,n.callbackNode=s,a}return o!==null&&o!==null&&Mn(o),n.callbackPriority=2,n.callbackNode=null,2}function xv(n,a){if(Rt!==0&&Rt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(Xo()&&n.callbackNode!==s)return null;var o=He;return o=Aa(n,n===nt?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(rv(n,o,a),Ev(n,Jt()),n.callbackNode!=null&&n.callbackNode===s?xv.bind(null,n):null)}function Tv(n,a){if(Xo())return null;rv(n,a,!0)}function J1(){cx(function(){($e&6)!==0?ps(Wl,Z1):Sv()})}function rf(){return Ya===0&&(Ya=mr()),Ya}function Av(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:ro(""+n)}function Cv(n,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,n.id&&s.setAttribute("form",n.id),a.parentNode.insertBefore(s,a),n=new FormData(n),s.parentNode.removeChild(s),n}function ex(n,a,s,o,u){if(a==="submit"&&s&&s.stateNode===u){var f=Av((u[le]||null).action),y=o.submitter;y&&(a=(a=y[le]||null)?Av(a.formAction):y.getAttribute("formAction"),a!==null&&(f=a,y=null));var S=new co("action","action",null,o,u);n.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ya!==0){var C=y?Cv(u,y):new FormData(u);Td(s,{pending:!0,data:C,method:u.method,action:f},null,C)}}else typeof f=="function"&&(S.preventDefault(),C=y?Cv(u,y):new FormData(u),Td(s,{pending:!0,data:C,method:u.method,action:f},f,C))},currentTarget:u}]})}}for(var sf=0;sf<Gu.length;sf++){var lf=Gu[sf],tx=lf.toLowerCase(),nx=lf[0].toUpperCase()+lf.slice(1);In(tx,"on"+nx)}In(rm,"onAnimationEnd"),In(sm,"onAnimationIteration"),In(lm,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(w1,"onTransitionRun"),In(b1,"onTransitionStart"),In(S1,"onTransitionCancel"),In(om,"onTransitionEnd"),mn("onMouseEnter",["mouseout","mouseover"]),mn("onMouseLeave",["mouseout","mouseover"]),mn("onPointerEnter",["pointerout","pointerover"]),mn("onPointerLeave",["pointerout","pointerover"]),jt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jt("onBeforeInput",["compositionend","keypress","textInput","paste"]),jt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ix=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tl));function _v(n,a){a=(a&4)!==0;for(var s=0;s<n.length;s++){var o=n[s],u=o.event;o=o.listeners;e:{var f=void 0;if(a)for(var y=o.length-1;0<=y;y--){var S=o[y],C=S.instance,z=S.currentTarget;if(S=S.listener,C!==f&&u.isPropagationStopped())break e;f=S,u.currentTarget=z;try{f(u)}catch(W){Lo(W)}u.currentTarget=null,f=C}else for(y=0;y<o.length;y++){if(S=o[y],C=S.instance,z=S.currentTarget,S=S.listener,C!==f&&u.isPropagationStopped())break e;f=S,u.currentTarget=z;try{f(u)}catch(W){Lo(W)}u.currentTarget=null,f=C}}}}function Be(n,a){var s=a[Ee];s===void 0&&(s=a[Ee]=new Set);var o=n+"__bubble";s.has(o)||(Ov(a,n,2,!1),s.add(o))}function of(n,a,s){var o=0;a&&(o|=4),Ov(s,n,o,a)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function cf(n){if(!n[Wo]){n[Wo]=!0,Ue.forEach(function(s){s!=="selectionchange"&&(ix.has(s)||of(s,!1,n),of(s,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Wo]||(a[Wo]=!0,of("selectionchange",!1,a))}}function Ov(n,a,s,o){switch(Zv(a)){case 2:var u=Mx;break;case 8:u=Nx;break;default:u=xf}s=u.bind(null,a,s,n),u=void 0,!Mu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(u=!0),o?u!==void 0?n.addEventListener(a,s,{capture:!0,passive:u}):n.addEventListener(a,s,!0):u!==void 0?n.addEventListener(a,s,{passive:u}):n.addEventListener(a,s,!1)}function uf(n,a,s,o,u){var f=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var S=o.stateNode.containerInfo;if(S===u)break;if(y===4)for(y=o.return;y!==null;){var C=y.tag;if((C===3||C===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;S!==null;){if(y=Re(S),y===null)return;if(C=y.tag,C===5||C===6||C===26||C===27){o=f=y;continue e}S=S.parentNode}}o=o.return}jp(function(){var z=f,W=Ou(s),ee=[];e:{var U=cm.get(n);if(U!==void 0){var H=co,Oe=n;switch(n){case"keypress":if(lo(s)===0)break e;case"keydown":case"keyup":H=QE;break;case"focusin":Oe="focus",H=Iu;break;case"focusout":Oe="blur",H=Iu;break;case"beforeblur":case"afterblur":H=Iu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Bp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=zE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=e1;break;case rm:case sm:case lm:H=VE;break;case om:H=n1;break;case"scroll":case"scrollend":H=PE;break;case"wheel":H=a1;break;case"copy":case"cut":case"paste":H=qE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Up;break;case"toggle":case"beforetoggle":H=s1}var xe=(a&4)!==0,Je=!xe&&(n==="scroll"||n==="scrollend"),j=xe?U!==null?U+"Capture":null:U;xe=[];for(var R=z,B;R!==null;){var Q=R;if(B=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||B===null||j===null||(Q=bs(R,j),Q!=null&&xe.push(nl(R,Q,B))),Je)break;R=R.return}0<xe.length&&(U=new H(U,Oe,null,s,W),ee.push({event:U,listeners:xe}))}}if((a&7)===0){e:{if(U=n==="mouseover"||n==="pointerover",H=n==="mouseout"||n==="pointerout",U&&s!==_u&&(Oe=s.relatedTarget||s.fromElement)&&(Re(Oe)||Oe[he]))break e;if((H||U)&&(U=W.window===W?W:(U=W.ownerDocument)?U.defaultView||U.parentWindow:window,H?(Oe=s.relatedTarget||s.toElement,H=z,Oe=Oe?Re(Oe):null,Oe!==null&&(Je=c(Oe),xe=Oe.tag,Oe!==Je||xe!==5&&xe!==27&&xe!==6)&&(Oe=null)):(H=null,Oe=z),H!==Oe)){if(xe=Bp,Q="onMouseLeave",j="onMouseEnter",R="mouse",(n==="pointerout"||n==="pointerover")&&(xe=Up,Q="onPointerLeave",j="onPointerEnter",R="pointer"),Je=H==null?U:rt(H),B=Oe==null?U:rt(Oe),U=new xe(Q,R+"leave",H,s,W),U.target=Je,U.relatedTarget=B,Q=null,Re(W)===z&&(xe=new xe(j,R+"enter",Oe,s,W),xe.target=B,xe.relatedTarget=Je,Q=xe),Je=Q,H&&Oe)t:{for(xe=H,j=Oe,R=0,B=xe;B;B=Fr(B))R++;for(B=0,Q=j;Q;Q=Fr(Q))B++;for(;0<R-B;)xe=Fr(xe),R--;for(;0<B-R;)j=Fr(j),B--;for(;R--;){if(xe===j||j!==null&&xe===j.alternate)break t;xe=Fr(xe),j=Fr(j)}xe=null}else xe=null;H!==null&&Rv(ee,U,H,xe,!1),Oe!==null&&Je!==null&&Rv(ee,Je,Oe,xe,!0)}}e:{if(U=z?rt(z):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var fe=$p;else if(Fp(U))if(Kp)fe=g1;else{fe=p1;var je=h1}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?z&&Cu(z.elementType)&&(fe=$p):fe=m1;if(fe&&(fe=fe(n,z))){Xp(ee,fe,s,W);break e}je&&je(n,U,z),n==="focusout"&&z&&U.type==="number"&&z.memoizedProps.value!=null&&Au(U,"number",U.value)}switch(je=z?rt(z):window,n){case"focusin":(Fp(je)||je.contentEditable==="true")&&(Er=je,Uu=z,Os=null);break;case"focusout":Os=Uu=Er=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,im(ee,s,W);break;case"selectionchange":if(y1)break;case"keydown":case"keyup":im(ee,s,W)}var ge;if(Lu)e:{switch(n){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Sr?qp(n,s)&&(Te="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Te="onCompositionStart");Te&&(Hp&&s.locale!=="ko"&&(Sr||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Sr&&(ge=Lp()):(Ui=W,Nu="value"in Ui?Ui.value:Ui.textContent,Sr=!0)),je=Qo(z,Te),0<je.length&&(Te=new zp(Te,n,null,s,W),ee.push({event:Te,listeners:je}),ge?Te.data=ge:(ge=Yp(s),ge!==null&&(Te.data=ge)))),(ge=o1?c1(n,s):u1(n,s))&&(Te=Qo(z,"onBeforeInput"),0<Te.length&&(je=new zp("onBeforeInput","beforeinput",null,s,W),ee.push({event:je,listeners:Te}),je.data=ge)),ex(ee,n,z,s,W)}_v(ee,a)})}function nl(n,a,s){return{instance:n,listener:a,currentTarget:s}}function Qo(n,a){for(var s=a+"Capture",o=[];n!==null;){var u=n,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=bs(n,s),u!=null&&o.unshift(nl(n,u,f)),u=bs(n,a),u!=null&&o.push(nl(n,u,f))),n.tag===3)return o;n=n.return}return[]}function Fr(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Rv(n,a,s,o,u){for(var f=a._reactName,y=[];s!==null&&s!==o;){var S=s,C=S.alternate,z=S.stateNode;if(S=S.tag,C!==null&&C===o)break;S!==5&&S!==26&&S!==27||z===null||(C=z,u?(z=bs(s,f),z!=null&&y.unshift(nl(s,z,C))):u||(z=bs(s,f),z!=null&&y.push(nl(s,z,C)))),s=s.return}y.length!==0&&n.push({event:a,listeners:y})}var ax=/\r\n?/g,rx=/\u0000|\uFFFD/g;function Mv(n){return(typeof n=="string"?n:""+n).replace(ax,`
`).replace(rx,"")}function Nv(n,a){return a=Mv(a),Mv(n)===a}function Zo(){}function Ze(n,a,s,o,u,f){switch(s){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||yr(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&yr(n,""+o);break;case"className":si(n,"class",o);break;case"tabIndex":si(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":si(n,s,o);break;case"style":Dp(n,o,f);break;case"data":if(a!=="object"){si(n,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||s!=="href")){n.removeAttribute(s);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=ro(""+o),n.setAttribute(s,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(s==="formAction"?(a!=="input"&&Ze(n,a,"name",u.name,u,null),Ze(n,a,"formEncType",u.formEncType,u,null),Ze(n,a,"formMethod",u.formMethod,u,null),Ze(n,a,"formTarget",u.formTarget,u,null)):(Ze(n,a,"encType",u.encType,u,null),Ze(n,a,"method",u.method,u,null),Ze(n,a,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=ro(""+o),n.setAttribute(s,o);break;case"onClick":o!=null&&(n.onclick=Zo);break;case"onScroll":o!=null&&Be("scroll",n);break;case"onScrollEnd":o!=null&&Be("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(u.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}s=ro(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,""+o):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":o===!0?n.setAttribute(s,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,o):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(s,o):n.removeAttribute(s);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(s):n.setAttribute(s,o);break;case"popover":Be("beforetoggle",n),Be("toggle",n),gn(n,"popover",o);break;case"xlinkActuate":Ie(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ie(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ie(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ie(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ie(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ie(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ie(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ie(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ie(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":gn(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=jE.get(s)||s,gn(n,s,o))}}function df(n,a,s,o,u,f){switch(s){case"style":Dp(n,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(u.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"children":typeof o=="string"?yr(n,o):(typeof o=="number"||typeof o=="bigint")&&yr(n,""+o);break;case"onScroll":o!=null&&Be("scroll",n);break;case"onScrollEnd":o!=null&&Be("scrollend",n);break;case"onClick":o!=null&&(n.onclick=Zo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Li.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),a=s.slice(2,u?s.length-7:void 0),f=n[le]||null,f=f!=null?f[s]:null,typeof f=="function"&&n.removeEventListener(a,f,u),typeof o=="function")){typeof f!="function"&&f!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(a,o,u);break e}s in n?n[s]=o:o===!0?n.setAttribute(s,""):gn(n,s,o)}}}function Mt(n,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",n),Be("load",n);var o=!1,u=!1,f;for(f in s)if(s.hasOwnProperty(f)){var y=s[f];if(y!=null)switch(f){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Ze(n,a,f,y,s,null)}}u&&Ze(n,a,"srcSet",s.srcSet,s,null),o&&Ze(n,a,"src",s.src,s,null);return;case"input":Be("invalid",n);var S=f=y=u=null,C=null,z=null;for(o in s)if(s.hasOwnProperty(o)){var W=s[o];if(W!=null)switch(o){case"name":u=W;break;case"type":y=W;break;case"checked":C=W;break;case"defaultChecked":z=W;break;case"value":f=W;break;case"defaultValue":S=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,a));break;default:Ze(n,a,o,W,s,null)}}Rp(n,f,S,C,z,y,u,!1),io(n);return;case"select":Be("invalid",n),o=y=f=null;for(u in s)if(s.hasOwnProperty(u)&&(S=s[u],S!=null))switch(u){case"value":f=S;break;case"defaultValue":y=S;break;case"multiple":o=S;default:Ze(n,a,u,S,s,null)}a=f,s=y,n.multiple=!!o,a!=null?vr(n,!!o,a,!1):s!=null&&vr(n,!!o,s,!0);return;case"textarea":Be("invalid",n),f=u=o=null;for(y in s)if(s.hasOwnProperty(y)&&(S=s[y],S!=null))switch(y){case"value":o=S;break;case"defaultValue":u=S;break;case"children":f=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Ze(n,a,y,S,s,null)}Np(n,o,u,f),io(n);return;case"option":for(C in s)if(s.hasOwnProperty(C)&&(o=s[C],o!=null))switch(C){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ze(n,a,C,o,s,null)}return;case"dialog":Be("beforetoggle",n),Be("toggle",n),Be("cancel",n),Be("close",n);break;case"iframe":case"object":Be("load",n);break;case"video":case"audio":for(o=0;o<tl.length;o++)Be(tl[o],n);break;case"image":Be("error",n),Be("load",n);break;case"details":Be("toggle",n);break;case"embed":case"source":case"link":Be("error",n),Be("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in s)if(s.hasOwnProperty(z)&&(o=s[z],o!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Ze(n,a,z,o,s,null)}return;default:if(Cu(a)){for(W in s)s.hasOwnProperty(W)&&(o=s[W],o!==void 0&&df(n,a,W,o,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(o=s[S],o!=null&&Ze(n,a,S,o,s,null))}function sx(n,a,s,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,y=null,S=null,C=null,z=null,W=null;for(H in s){var ee=s[H];if(s.hasOwnProperty(H)&&ee!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":C=ee;default:o.hasOwnProperty(H)||Ze(n,a,H,null,o,ee)}}for(var U in o){var H=o[U];if(ee=s[U],o.hasOwnProperty(U)&&(H!=null||ee!=null))switch(U){case"type":f=H;break;case"name":u=H;break;case"checked":z=H;break;case"defaultChecked":W=H;break;case"value":y=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,a));break;default:H!==ee&&Ze(n,a,U,H,o,ee)}}Tu(n,y,S,C,z,W,f,u);return;case"select":H=y=S=U=null;for(f in s)if(C=s[f],s.hasOwnProperty(f)&&C!=null)switch(f){case"value":break;case"multiple":H=C;default:o.hasOwnProperty(f)||Ze(n,a,f,null,o,C)}for(u in o)if(f=o[u],C=s[u],o.hasOwnProperty(u)&&(f!=null||C!=null))switch(u){case"value":U=f;break;case"defaultValue":S=f;break;case"multiple":y=f;default:f!==C&&Ze(n,a,u,f,o,C)}a=S,s=y,o=H,U!=null?vr(n,!!s,U,!1):!!o!=!!s&&(a!=null?vr(n,!!s,a,!0):vr(n,!!s,s?[]:"",!1));return;case"textarea":H=U=null;for(S in s)if(u=s[S],s.hasOwnProperty(S)&&u!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ze(n,a,S,null,o,u)}for(y in o)if(u=o[y],f=s[y],o.hasOwnProperty(y)&&(u!=null||f!=null))switch(y){case"value":U=u;break;case"defaultValue":H=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==f&&Ze(n,a,y,u,o,f)}Mp(n,U,H);return;case"option":for(var Oe in s)if(U=s[Oe],s.hasOwnProperty(Oe)&&U!=null&&!o.hasOwnProperty(Oe))switch(Oe){case"selected":n.selected=!1;break;default:Ze(n,a,Oe,null,o,U)}for(C in o)if(U=o[C],H=s[C],o.hasOwnProperty(C)&&U!==H&&(U!=null||H!=null))switch(C){case"selected":n.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ze(n,a,C,U,o,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in s)U=s[xe],s.hasOwnProperty(xe)&&U!=null&&!o.hasOwnProperty(xe)&&Ze(n,a,xe,null,o,U);for(z in o)if(U=o[z],H=s[z],o.hasOwnProperty(z)&&U!==H&&(U!=null||H!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,a));break;default:Ze(n,a,z,U,o,H)}return;default:if(Cu(a)){for(var Je in s)U=s[Je],s.hasOwnProperty(Je)&&U!==void 0&&!o.hasOwnProperty(Je)&&df(n,a,Je,void 0,o,U);for(W in o)U=o[W],H=s[W],!o.hasOwnProperty(W)||U===H||U===void 0&&H===void 0||df(n,a,W,U,o,H);return}}for(var j in s)U=s[j],s.hasOwnProperty(j)&&U!=null&&!o.hasOwnProperty(j)&&Ze(n,a,j,null,o,U);for(ee in o)U=o[ee],H=s[ee],!o.hasOwnProperty(ee)||U===H||U==null&&H==null||Ze(n,a,ee,U,o,H)}var ff=null,hf=null;function Jo(n){return n.nodeType===9?n:n.ownerDocument}function kv(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dv(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function pf(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var mf=null;function lx(){var n=window.event;return n&&n.type==="popstate"?n===mf?!1:(mf=n,!0):(mf=null,!1)}var Iv=typeof setTimeout=="function"?setTimeout:void 0,ox=typeof clearTimeout=="function"?clearTimeout:void 0,jv=typeof Promise=="function"?Promise:void 0,cx=typeof queueMicrotask=="function"?queueMicrotask:typeof jv<"u"?function(n){return jv.resolve(null).then(n).catch(ux)}:Iv;function ux(n){setTimeout(function(){throw n})}function na(n){return n==="head"}function Lv(n,a){var s=a,o=0,u=0;do{var f=s.nextSibling;if(n.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(0<o&&8>o){s=o;var y=n.ownerDocument;if(s&1&&il(y.documentElement),s&2&&il(y.body),s&4)for(s=y.head,il(s),y=s.firstChild;y;){var S=y.nextSibling,C=y.nodeName;y[Ce]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&y.rel.toLowerCase()==="stylesheet"||s.removeChild(y),y=S}}if(u===0){n.removeChild(f),dl(a);return}u--}else s==="$"||s==="$?"||s==="$!"?u++:o=s.charCodeAt(0)-48;else o=0;s=f}while(s);dl(a)}function gf(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":gf(s),_e(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function dx(n,a,s,o){for(;n.nodeType===1;){var u=s;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[Ce])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(f=n.getAttribute("rel"),f==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(f!==u.rel||n.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||n.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||n.getAttribute("title")!==(u.title==null?null:u.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(f=n.getAttribute("src"),(f!==(u.src==null?null:u.src)||n.getAttribute("type")!==(u.type==null?null:u.type)||n.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&n.getAttribute("name")===f)return n}else return n;if(n=Ln(n.nextSibling),n===null)break}return null}function fx(n,a,s){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Ln(n.nextSibling),n===null))return null;return n}function vf(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function hx(n,a){var s=n.ownerDocument;if(n.data!=="$?"||s.readyState==="complete")a();else{var o=function(){a(),s.removeEventListener("DOMContentLoaded",o)};s.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function Ln(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var yf=null;function Pv(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(a===0)return n;a--}else s==="/$"&&a++}n=n.previousSibling}return null}function Bv(n,a,s){switch(a=Jo(s),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function il(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);_e(n)}var Tn=new Map,zv=new Set;function ec(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var bi=Z.d;Z.d={f:px,r:mx,D:gx,C:vx,L:yx,m:wx,X:Sx,S:bx,M:Ex};function px(){var n=bi.f(),a=Yo();return n||a}function mx(n){var a=Ve(n);a!==null&&a.tag===5&&a.type==="form"?rg(a):bi.r(n)}var Xr=typeof document>"u"?null:document;function Uv(n,a,s){var o=Xr;if(o&&typeof a=="string"&&a){var u=vn(a);u='link[rel="'+n+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),zv.has(u)||(zv.add(u),n={rel:n,crossOrigin:s,href:a},o.querySelector(u)===null&&(a=o.createElement("link"),Mt(a,"link",n),Ge(a),o.head.appendChild(a)))}}function gx(n){bi.D(n),Uv("dns-prefetch",n,null)}function vx(n,a){bi.C(n,a),Uv("preconnect",n,a)}function yx(n,a,s){bi.L(n,a,s);var o=Xr;if(o&&n&&a){var u='link[rel="preload"][as="'+vn(a)+'"]';a==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+vn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+vn(s.imageSizes)+'"]')):u+='[href="'+vn(n)+'"]';var f=u;switch(a){case"style":f=$r(n);break;case"script":f=Kr(n)}Tn.has(f)||(n=v({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:n,as:a},s),Tn.set(f,n),o.querySelector(u)!==null||a==="style"&&o.querySelector(al(f))||a==="script"&&o.querySelector(rl(f))||(a=o.createElement("link"),Mt(a,"link",n),Ge(a),o.head.appendChild(a)))}}function wx(n,a){bi.m(n,a);var s=Xr;if(s&&n){var o=a&&typeof a.as=="string"?a.as:"script",u='link[rel="modulepreload"][as="'+vn(o)+'"][href="'+vn(n)+'"]',f=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Kr(n)}if(!Tn.has(f)&&(n=v({rel:"modulepreload",href:n},a),Tn.set(f,n),s.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(rl(f)))return}o=s.createElement("link"),Mt(o,"link",n),Ge(o),s.head.appendChild(o)}}}function bx(n,a,s){bi.S(n,a,s);var o=Xr;if(o&&n){var u=ct(o).hoistableStyles,f=$r(n);a=a||"default";var y=u.get(f);if(!y){var S={loading:0,preload:null};if(y=o.querySelector(al(f)))S.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":a},s),(s=Tn.get(f))&&wf(n,s);var C=y=o.createElement("link");Ge(C),Mt(C,"link",n),C._p=new Promise(function(z,W){C.onload=z,C.onerror=W}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,tc(y,a,o)}y={type:"stylesheet",instance:y,count:1,state:S},u.set(f,y)}}}function Sx(n,a){bi.X(n,a);var s=Xr;if(s&&n){var o=ct(s).hoistableScripts,u=Kr(n),f=o.get(u);f||(f=s.querySelector(rl(u)),f||(n=v({src:n,async:!0},a),(a=Tn.get(u))&&bf(n,a),f=s.createElement("script"),Ge(f),Mt(f,"link",n),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function Ex(n,a){bi.M(n,a);var s=Xr;if(s&&n){var o=ct(s).hoistableScripts,u=Kr(n),f=o.get(u);f||(f=s.querySelector(rl(u)),f||(n=v({src:n,async:!0,type:"module"},a),(a=Tn.get(u))&&bf(n,a),f=s.createElement("script"),Ge(f),Mt(f,"link",n),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function Hv(n,a,s,o){var u=(u=ve.current)?ec(u):null;if(!u)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=$r(s.href),s=ct(u).hoistableStyles,o=s.get(a),o||(o={type:"style",instance:null,count:0,state:null},s.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=$r(s.href);var f=ct(u).hoistableStyles,y=f.get(n);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(n,y),(f=u.querySelector(al(n)))&&!f._p&&(y.instance=f,y.state.loading=5),Tn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Tn.set(n,s),f||xx(u,n,s,y.state))),a&&o===null)throw Error(r(528,""));return y}if(a&&o!==null)throw Error(r(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Kr(s),s=ct(u).hoistableScripts,o=s.get(a),o||(o={type:"script",instance:null,count:0,state:null},s.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function $r(n){return'href="'+vn(n)+'"'}function al(n){return'link[rel="stylesheet"]['+n+"]"}function Vv(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function xx(n,a,s,o){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=n.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Mt(a,"link",s),Ge(a),n.head.appendChild(a))}function Kr(n){return'[src="'+vn(n)+'"]'}function rl(n){return"script[async]"+n}function Gv(n,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+vn(s.href)+'"]');if(o)return a.instance=o,Ge(o),o;var u=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),Ge(o),Mt(o,"style",u),tc(o,s.precedence,n),a.instance=o;case"stylesheet":u=$r(s.href);var f=n.querySelector(al(u));if(f)return a.state.loading|=4,a.instance=f,Ge(f),f;o=Vv(s),(u=Tn.get(u))&&wf(o,u),f=(n.ownerDocument||n).createElement("link"),Ge(f);var y=f;return y._p=new Promise(function(S,C){y.onload=S,y.onerror=C}),Mt(f,"link",o),a.state.loading|=4,tc(f,s.precedence,n),a.instance=f;case"script":return f=Kr(s.src),(u=n.querySelector(rl(f)))?(a.instance=u,Ge(u),u):(o=s,(u=Tn.get(f))&&(o=v({},s),bf(o,u)),n=n.ownerDocument||n,u=n.createElement("script"),Ge(u),Mt(u,"link",o),n.head.appendChild(u),a.instance=u);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,tc(o,s.precedence,n));return a.instance}function tc(n,a,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,f=u,y=0;y<o.length;y++){var S=o[y];if(S.dataset.precedence===a)f=S;else if(f!==u)break}f?f.parentNode.insertBefore(n,f.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(n,a.firstChild))}function wf(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function bf(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var nc=null;function qv(n,a,s){if(nc===null){var o=new Map,u=nc=new Map;u.set(s,o)}else u=nc,o=u.get(s),o||(o=new Map,u.set(s,o));if(o.has(n))return o;for(o.set(n,null),s=s.getElementsByTagName(n),u=0;u<s.length;u++){var f=s[u];if(!(f[Ce]||f[te]||n==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var y=f.getAttribute(a)||"";y=n+y;var S=o.get(y);S?S.push(f):o.set(y,[f])}}return o}function Yv(n,a,s){n=n.ownerDocument||n,n.head.insertBefore(s,a==="title"?n.querySelector("head > title"):null)}function Tx(n,a,s){if(s===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Fv(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var sl=null;function Ax(){}function Cx(n,a,s){if(sl===null)throw Error(r(475));var o=sl;if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=$r(s.href),f=n.querySelector(al(u));if(f){n=f._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=ic.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=f,Ge(f);return}f=n.ownerDocument||n,s=Vv(s),(u=Tn.get(u))&&wf(s,u),f=f.createElement("link"),Ge(f);var y=f;y._p=new Promise(function(S,C){y.onload=S,y.onerror=C}),Mt(f,"link",s),a.instance=f}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=ic.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function _x(){if(sl===null)throw Error(r(475));var n=sl;return n.stylesheets&&n.count===0&&Sf(n,n.stylesheets),0<n.count?function(a){var s=setTimeout(function(){if(n.stylesheets&&Sf(n,n.stylesheets),n.unsuspend){var o=n.unsuspend;n.unsuspend=null,o()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(s)}}:null}function ic(){if(this.count--,this.count===0){if(this.stylesheets)Sf(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var ac=null;function Sf(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,ac=new Map,a.forEach(Ox,n),ac=null,ic.call(n))}function Ox(n,a){if(!(a.state.loading&4)){var s=ac.get(n);if(s)var o=s.get(null);else{s=new Map,ac.set(n,s);for(var u=n.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var y=u[f];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(s.set(y.dataset.precedence,y),o=y)}o&&s.set(null,o)}u=a.instance,y=u.getAttribute("data-precedence"),f=s.get(y)||o,f===o&&s.set(null,u),s.set(y,u),this.count++,o=ic.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),f?f.parentNode.insertBefore(u,f.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(u,n.firstChild)),a.state.loading|=4}}var ll={$$typeof:k,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Rx(n,a,s,o,u,f,y,S){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gr(0),this.hiddenUpdates=gr(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Xv(n,a,s,o,u,f,y,S,C,z,W,ee){return n=new Rx(n,a,s,y,S,C,z,ee),a=1,f===!0&&(a|=24),f=tn(3,null,null,a),n.current=f,f.stateNode=n,a=td(),a.refCount++,n.pooledCache=a,a.refCount++,f.memoizedState={element:o,isDehydrated:s,cache:a},rd(f),n}function $v(n){return n?(n=Cr,n):Cr}function Kv(n,a,s,o,u,f){u=$v(u),o.context===null?o.context=u:o.pendingContext=u,o=Gi(a),o.payload={element:s},f=f===void 0?null:f,f!==null&&(o.callback=f),s=qi(n,o,a),s!==null&&(ln(s,n,a),Ps(s,n,a))}function Wv(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<a?s:a}}function Ef(n,a){Wv(n,a),(n=n.alternate)&&Wv(n,a)}function Qv(n){if(n.tag===13){var a=Ar(n,67108864);a!==null&&ln(a,n,67108864),Ef(n,67108864)}}var rc=!0;function Mx(n,a,s,o){var u=M.T;M.T=null;var f=Z.p;try{Z.p=2,xf(n,a,s,o)}finally{Z.p=f,M.T=u}}function Nx(n,a,s,o){var u=M.T;M.T=null;var f=Z.p;try{Z.p=8,xf(n,a,s,o)}finally{Z.p=f,M.T=u}}function xf(n,a,s,o){if(rc){var u=Tf(o);if(u===null)uf(n,a,o,sc,s),Jv(n,o);else if(Dx(u,n,a,s,o))o.stopPropagation();else if(Jv(n,o),a&4&&-1<kx.indexOf(n)){for(;u!==null;){var f=Ve(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=ri(f.pendingLanes);if(y!==0){var S=f;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var C=1<<31-_t(y);S.entanglements[1]|=C,y&=~C}Kn(f),($e&6)===0&&(Go=Jt()+500,el(0))}}break;case 13:S=Ar(f,2),S!==null&&ln(S,f,2),Yo(),Ef(f,2)}if(f=Tf(o),f===null&&uf(n,a,o,sc,s),f===u)break;u=f}u!==null&&o.stopPropagation()}else uf(n,a,o,null,s)}}function Tf(n){return n=Ou(n),Af(n)}var sc=null;function Af(n){if(sc=null,n=Re(n),n!==null){var a=c(n);if(a===null)n=null;else{var s=a.tag;if(s===13){if(n=d(a),n!==null)return n;n=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return sc=n,null}function Zv(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Eu()){case Wl:return 2;case Ql:return 8;case pr:case ai:return 32;case ji:return 268435456;default:return 32}default:return 32}}var Cf=!1,ia=null,aa=null,ra=null,ol=new Map,cl=new Map,sa=[],kx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Jv(n,a){switch(n){case"focusin":case"focusout":ia=null;break;case"dragenter":case"dragleave":aa=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":ol.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":cl.delete(a.pointerId)}}function ul(n,a,s,o,u,f){return n===null||n.nativeEvent!==f?(n={blockedOn:a,domEventName:s,eventSystemFlags:o,nativeEvent:f,targetContainers:[u]},a!==null&&(a=Ve(a),a!==null&&Qv(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,u!==null&&a.indexOf(u)===-1&&a.push(u),n)}function Dx(n,a,s,o,u){switch(a){case"focusin":return ia=ul(ia,n,a,s,o,u),!0;case"dragenter":return aa=ul(aa,n,a,s,o,u),!0;case"mouseover":return ra=ul(ra,n,a,s,o,u),!0;case"pointerover":var f=u.pointerId;return ol.set(f,ul(ol.get(f)||null,n,a,s,o,u)),!0;case"gotpointercapture":return f=u.pointerId,cl.set(f,ul(cl.get(f)||null,n,a,s,o,u)),!0}return!1}function ey(n){var a=Re(n.target);if(a!==null){var s=c(a);if(s!==null){if(a=s.tag,a===13){if(a=d(s),a!==null){n.blockedOn=a,P(n.priority,function(){if(s.tag===13){var o=sn();o=gs(o);var u=Ar(s,o);u!==null&&ln(u,s,o),Ef(s,o)}});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function lc(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var s=Tf(n.nativeEvent);if(s===null){s=n.nativeEvent;var o=new s.constructor(s.type,s);_u=o,s.target.dispatchEvent(o),_u=null}else return a=Ve(s),a!==null&&Qv(a),n.blockedOn=s,!1;a.shift()}return!0}function ty(n,a,s){lc(n)&&s.delete(a)}function Ix(){Cf=!1,ia!==null&&lc(ia)&&(ia=null),aa!==null&&lc(aa)&&(aa=null),ra!==null&&lc(ra)&&(ra=null),ol.forEach(ty),cl.forEach(ty)}function oc(n,a){n.blockedOn===a&&(n.blockedOn=null,Cf||(Cf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ix)))}var cc=null;function ny(n){cc!==n&&(cc=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){cc===n&&(cc=null);for(var a=0;a<n.length;a+=3){var s=n[a],o=n[a+1],u=n[a+2];if(typeof o!="function"){if(Af(o||s)===null)continue;break}var f=Ve(s);f!==null&&(n.splice(a,3),a-=3,Td(f,{pending:!0,data:u,method:s.method,action:o},o,u))}}))}function dl(n){function a(C){return oc(C,n)}ia!==null&&oc(ia,n),aa!==null&&oc(aa,n),ra!==null&&oc(ra,n),ol.forEach(a),cl.forEach(a);for(var s=0;s<sa.length;s++){var o=sa[s];o.blockedOn===n&&(o.blockedOn=null)}for(;0<sa.length&&(s=sa[0],s.blockedOn===null);)ey(s),s.blockedOn===null&&sa.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(o=0;o<s.length;o+=3){var u=s[o],f=s[o+1],y=u[le]||null;if(typeof f=="function")y||ny(s);else if(y){var S=null;if(f&&f.hasAttribute("formAction")){if(u=f,y=f[le]||null)S=y.formAction;else if(Af(u)!==null)continue}else S=y.action;typeof S=="function"?s[o+1]=S:(s.splice(o,3),o-=3),ny(s)}}}function _f(n){this._internalRoot=n}uc.prototype.render=_f.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var s=a.current,o=sn();Kv(s,o,n,a,null,null)},uc.prototype.unmount=_f.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Kv(n.current,2,null,n,null,null),Yo(),a[he]=null}};function uc(n){this._internalRoot=n}uc.prototype.unstable_scheduleHydration=function(n){if(n){var a=O();n={blockedOn:null,target:n,priority:a};for(var s=0;s<sa.length&&a!==0&&a<sa[s].priority;s++);sa.splice(s,0,n),s===0&&ey(n)}};var iy=e.version;if(iy!=="19.1.0")throw Error(r(527,iy,"19.1.0"));Z.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=h(a),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var jx={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{Gt=dc.inject(jx),ot=dc}catch{}}return hl.createRoot=function(n,a){if(!l(n))throw Error(r(299));var s=!1,o="",u=wg,f=bg,y=Sg,S=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(S=a.unstable_transitionCallbacks)),a=Xv(n,1,!1,null,null,s,o,u,f,y,S,null),n[he]=a.current,cf(n),new _f(a)},hl.hydrateRoot=function(n,a,s){if(!l(n))throw Error(r(299));var o=!1,u="",f=wg,y=bg,S=Sg,C=null,z=null;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(C=s.unstable_transitionCallbacks),s.formState!==void 0&&(z=s.formState)),a=Xv(n,1,!0,a,s??null,o,u,f,y,S,C,z),a.context=$v(null),s=a.current,o=sn(),o=gs(o),u=Gi(o),u.callback=null,qi(s,u,o),s=o,a.current.lanes=s,Ca(a,s),Kn(a),n[he]=a.current,cf(n),new uc(a)},hl.version="19.1.0",hl}var hy;function qx(){if(hy)return Mf.exports;hy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Mf.exports=Gx(),Mf.exports}var Yx=qx(),If,py;function Fx(){if(py)return If;py=1;var t="Expected a function",e=NaN,i="[object Symbol]",r=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,p=parseInt,h=typeof ha=="object"&&ha&&ha.Object===Object&&ha,m=typeof self=="object"&&self&&self.Object===Object&&self,v=h||m||Function("return this")(),b=Object.prototype,w=b.toString,x=Math.max,T=Math.min,I=function(){return v.Date.now()};function G(A,X,$){var F,J,ie,ae,oe,pe,be=0,M=!1,Z=!1,re=!0;if(typeof A!="function")throw new TypeError(t);X=D(X)||0,L($)&&(M=!!$.leading,Z="maxWait"in $,ie=Z?x(D($.maxWait)||0,X):ie,re="trailing"in $?!!$.trailing:re);function ce(ye){var at=F,We=J;return F=J=void 0,be=ye,ae=A.apply(We,at),ae}function _(ye){return be=ye,oe=setTimeout(ne,X),M?ce(ye):ae}function K(ye){var at=ye-pe,We=ye-be,Vt=X-at;return Z?T(Vt,ie-We):Vt}function se(ye){var at=ye-pe,We=ye-be;return pe===void 0||at>=X||at<0||Z&&We>=ie}function ne(){var ye=I();if(se(ye))return de(ye);oe=setTimeout(ne,K(ye))}function de(ye){return oe=void 0,re&&F?ce(ye):(F=J=void 0,ae)}function Me(){oe!==void 0&&clearTimeout(oe),be=0,F=pe=J=oe=void 0}function ve(){return oe===void 0?ae:de(I())}function ke(){var ye=I(),at=se(ye);if(F=arguments,J=this,pe=ye,at){if(oe===void 0)return _(pe);if(Z)return oe=setTimeout(ne,X),ce(pe)}return oe===void 0&&(oe=setTimeout(ne,X)),ae}return ke.cancel=Me,ke.flush=ve,ke}function E(A,X,$){var F=!0,J=!0;if(typeof A!="function")throw new TypeError(t);return L($)&&(F="leading"in $?!!$.leading:F,J="trailing"in $?!!$.trailing:J),G(A,X,{leading:F,maxWait:X,trailing:J})}function L(A){var X=typeof A;return!!A&&(X=="object"||X=="function")}function k(A){return!!A&&typeof A=="object"}function Y(A){return typeof A=="symbol"||k(A)&&w.call(A)==i}function D(A){if(typeof A=="number")return A;if(Y(A))return e;if(L(A)){var X=typeof A.valueOf=="function"?A.valueOf():A;A=L(X)?X+"":X}if(typeof A!="string")return A===0?A:+A;A=A.replace(r,"");var $=c.test(A);return $||d.test(A)?p(A.slice(2),$?2:8):l.test(A)?e:+A}return If=E,If}var Xx=Fx();const $x=iu(Xx);var jf,my;function Kx(){if(my)return jf;my=1;var t="Expected a function",e=NaN,i="[object Symbol]",r=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,p=parseInt,h=typeof ha=="object"&&ha&&ha.Object===Object&&ha,m=typeof self=="object"&&self&&self.Object===Object&&self,v=h||m||Function("return this")(),b=Object.prototype,w=b.toString,x=Math.max,T=Math.min,I=function(){return v.Date.now()};function G(D,A,X){var $,F,J,ie,ae,oe,pe=0,be=!1,M=!1,Z=!0;if(typeof D!="function")throw new TypeError(t);A=Y(A)||0,E(X)&&(be=!!X.leading,M="maxWait"in X,J=M?x(Y(X.maxWait)||0,A):J,Z="trailing"in X?!!X.trailing:Z);function re(ke){var ye=$,at=F;return $=F=void 0,pe=ke,ie=D.apply(at,ye),ie}function ce(ke){return pe=ke,ae=setTimeout(se,A),be?re(ke):ie}function _(ke){var ye=ke-oe,at=ke-pe,We=A-ye;return M?T(We,J-at):We}function K(ke){var ye=ke-oe,at=ke-pe;return oe===void 0||ye>=A||ye<0||M&&at>=J}function se(){var ke=I();if(K(ke))return ne(ke);ae=setTimeout(se,_(ke))}function ne(ke){return ae=void 0,Z&&$?re(ke):($=F=void 0,ie)}function de(){ae!==void 0&&clearTimeout(ae),pe=0,$=oe=F=ae=void 0}function Me(){return ae===void 0?ie:ne(I())}function ve(){var ke=I(),ye=K(ke);if($=arguments,F=this,oe=ke,ye){if(ae===void 0)return ce(oe);if(M)return ae=setTimeout(se,A),re(oe)}return ae===void 0&&(ae=setTimeout(se,A)),ie}return ve.cancel=de,ve.flush=Me,ve}function E(D){var A=typeof D;return!!D&&(A=="object"||A=="function")}function L(D){return!!D&&typeof D=="object"}function k(D){return typeof D=="symbol"||L(D)&&w.call(D)==i}function Y(D){if(typeof D=="number")return D;if(k(D))return e;if(E(D)){var A=typeof D.valueOf=="function"?D.valueOf():D;D=E(A)?A+"":A}if(typeof D!="string")return D===0?D:+D;D=D.replace(r,"");var X=c.test(D);return X||d.test(D)?p(D.slice(2),X?2:8):l.test(D)?e:+D}return jf=G,jf}var Wx=Kx();const gy=iu(Wx);var ub=function(){};function db(t){var e=void 0,i=void 0,r=void 0;for(e=0;e<t.length;e+=1)if(i=t[e],i.dataset&&i.dataset.aos||(r=i.children&&db(i.children),r))return!0;return!1}function Qx(t){t&&t.forEach(function(e){var i=Array.prototype.slice.call(e.addedNodes),r=Array.prototype.slice.call(e.removedNodes),l=i.concat(r);if(db(l))return ub()})}function fb(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function Zx(){return!!fb()}function Jx(t,e){var i=window.document,r=fb(),l=new r(Qx);ub=e,l.observe(i.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}var vy={isSupported:Zx,ready:Jx},eT=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},tT=function(){function t(e,i){for(var r=0;r<i.length;r++){var l=i[r];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),nT=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},iT=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,aT=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,rT=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,sT=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function yy(){return navigator.userAgent||navigator.vendor||window.opera||""}var lT=function(){function t(){eT(this,t)}return tT(t,[{key:"phone",value:function(){var i=yy();return!!(iT.test(i)||aT.test(i.substr(0,4)))}},{key:"mobile",value:function(){var i=yy();return!!(rT.test(i)||sT.test(i.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}},{key:"ie11",value:function(){return"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style}}]),t}(),bc=new lT,oT=function(e,i){return i&&i.forEach(function(r){return e.classList.add(r)})},cT=function(e,i){return i&&i.forEach(function(r){return e.classList.remove(r)})},fc=function(e,i){var r=void 0;return bc.ie11()?(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,!0,!0,{detail:i})):r=new CustomEvent(e,{detail:i}),document.dispatchEvent(r)},uT=function(e,i){var r=e.options,l=e.position,c=e.node;e.data;var d=function(){e.animated&&(cT(c,r.animatedClassNames),fc("aos:out",c),e.options.id&&fc("aos:in:"+e.options.id,c),e.animated=!1)},p=function(){e.animated||(oT(c,r.animatedClassNames),fc("aos:in",c),e.options.id&&fc("aos:in:"+e.options.id,c),e.animated=!0)};r.mirror&&i>=l.out&&!r.once?d():i>=l.in?p():e.animated&&!r.once&&d()},wy=function(e){return e.forEach(function(i,r){return uT(i,window.pageYOffset)})},hb=function(e){for(var i=0,r=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)i+=e.offsetLeft-(e.tagName!="BODY"?e.scrollLeft:0),r+=e.offsetTop-(e.tagName!="BODY"?e.scrollTop:0),e=e.offsetParent;return{top:r,left:i}},va=function(t,e,i){var r=t.getAttribute("data-aos-"+e);if(typeof r<"u"){if(r==="true")return!0;if(r==="false")return!1}return r||i},dT=function(e,i,r){var l=window.innerHeight,c=va(e,"anchor"),d=va(e,"anchor-placement"),p=Number(va(e,"offset",d?0:i)),h=d||r,m=e;c&&document.querySelectorAll(c)&&(m=document.querySelectorAll(c)[0]);var v=hb(m).top-l;switch(h){case"top-bottom":break;case"center-bottom":v+=m.offsetHeight/2;break;case"bottom-bottom":v+=m.offsetHeight;break;case"top-center":v+=l/2;break;case"center-center":v+=l/2+m.offsetHeight/2;break;case"bottom-center":v+=l/2+m.offsetHeight;break;case"top-top":v+=l;break;case"bottom-top":v+=l+m.offsetHeight;break;case"center-top":v+=l+m.offsetHeight/2;break}return v+p},fT=function(e,i){var r=va(e,"anchor"),l=va(e,"offset",i),c=e;r&&document.querySelectorAll(r)&&(c=document.querySelectorAll(r)[0]);var d=hb(c).top;return d+c.offsetHeight-l},hT=function(e,i){return e.forEach(function(r,l){var c=va(r.node,"mirror",i.mirror),d=va(r.node,"once",i.once),p=va(r.node,"id"),h=i.useClassNames&&r.node.getAttribute("data-aos"),m=[i.animatedClassName].concat(h?h.split(" "):[]).filter(function(v){return typeof v=="string"});i.initClassName&&r.node.classList.add(i.initClassName),r.position={in:dT(r.node,i.offset,i.anchorPlacement),out:c&&fT(r.node,i.offset)},r.options={once:d,mirror:c,animatedClassNames:m,id:p}}),e},pb=function(){var t=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(t,function(e){return{node:e}})},Ei=[],by=!1,ht={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},mb=function(){return document.all&&!window.atob},pT=function(){return Ei=hT(Ei,ht),wy(Ei),window.addEventListener("scroll",$x(function(){wy(Ei,ht.once)},ht.throttleDelay)),Ei},Wa=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;e&&(by=!0),by&&pT()},gb=function(){if(Ei=pb(),yb(ht.disable)||mb())return vb();Wa()},vb=function(){Ei.forEach(function(e,i){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay"),ht.initClassName&&e.node.classList.remove(ht.initClassName),ht.animatedClassName&&e.node.classList.remove(ht.animatedClassName)})},yb=function(e){return e===!0||e==="mobile"&&bc.mobile()||e==="phone"&&bc.phone()||e==="tablet"&&bc.tablet()||typeof e=="function"&&e()===!0},mT=function(e){return ht=nT(ht,e),Ei=pb(),!ht.disableMutationObserver&&!vy.isSupported()&&(console.info(`
      aos: MutationObserver is not supported on this browser,
      code mutations observing has been disabled.
      You may have to call "refreshHard()" by yourself.
    `),ht.disableMutationObserver=!0),ht.disableMutationObserver||vy.ready("[data-aos]",gb),yb(ht.disable)||mb()?vb():(document.querySelector("body").setAttribute("data-aos-easing",ht.easing),document.querySelector("body").setAttribute("data-aos-duration",ht.duration),document.querySelector("body").setAttribute("data-aos-delay",ht.delay),["DOMContentLoaded","load"].indexOf(ht.startEvent)===-1?document.addEventListener(ht.startEvent,function(){Wa(!0)}):window.addEventListener("load",function(){Wa(!0)}),ht.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1&&Wa(!0),window.addEventListener("resize",gy(Wa,ht.debounceDelay,!0)),window.addEventListener("orientationchange",gy(Wa,ht.debounceDelay,!0)),Ei)},wb={init:mT,refresh:Wa,refreshHard:gb},pl={},Sy;function gT(){if(Sy)return pl;Sy=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.parse=d,pl.serialize=m;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,l=Object.prototype.toString,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function d(w,x){const T=new c,I=w.length;if(I<2)return T;const G=x?.decode||v;let E=0;do{const L=w.indexOf("=",E);if(L===-1)break;const k=w.indexOf(";",E),Y=k===-1?I:k;if(L>Y){E=w.lastIndexOf(";",L-1)+1;continue}const D=p(w,E,L),A=h(w,L,D),X=w.slice(D,A);if(T[X]===void 0){let $=p(w,L+1,Y),F=h(w,Y,$);const J=G(w.slice($,F));T[X]=J}E=Y+1}while(E<I);return T}function p(w,x,T){do{const I=w.charCodeAt(x);if(I!==32&&I!==9)return x}while(++x<T);return T}function h(w,x,T){for(;x>T;){const I=w.charCodeAt(--x);if(I!==32&&I!==9)return x+1}return T}function m(w,x,T){const I=T?.encode||encodeURIComponent;if(!t.test(w))throw new TypeError(`argument name is invalid: ${w}`);const G=I(x);if(!e.test(G))throw new TypeError(`argument val is invalid: ${x}`);let E=w+"="+G;if(!T)return E;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);E+="; Max-Age="+T.maxAge}if(T.domain){if(!i.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);E+="; Domain="+T.domain}if(T.path){if(!r.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);E+="; Path="+T.path}if(T.expires){if(!b(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invalid: ${T.expires}`);E+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(E+="; HttpOnly"),T.secure&&(E+="; Secure"),T.partitioned&&(E+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"none":E+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return E}function v(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function b(w){return l.call(w)==="[object Date]"}return pl}gT();/**
 * react-router v7.6.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var bb=t=>{throw TypeError(t)},vT=(t,e,i)=>e.has(t)||bb("Cannot "+i),Lf=(t,e,i)=>(vT(t,e,"read from private field"),i?i.call(t):e.get(t)),yT=(t,e,i)=>e.has(t)?bb("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ey="popstate";function wT(t={}){function e(r,l){let{pathname:c,search:d,hash:p}=r.location;return Rl("",{pathname:c,search:d,hash:p},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function i(r,l){return typeof l=="string"?l:ba(l)}return ST(e,i,null,t)}function Le(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function vt(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bT(){return Math.random().toString(36).substring(2,10)}function xy(t,e){return{usr:t.state,key:t.key,idx:e}}function Rl(t,e,i=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Sa(e):e,state:i,key:e&&e.key||r||bT()}}function ba({pathname:t="/",search:e="",hash:i=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Sa(t){let e={};if(t){let i=t.indexOf("#");i>=0&&(e.hash=t.substring(i),t=t.substring(0,i));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function ST(t,e,i,r={}){let{window:l=document.defaultView,v5Compat:c=!1}=r,d=l.history,p="POP",h=null,m=v();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function v(){return(d.state||{idx:null}).idx}function b(){p="POP";let G=v(),E=G==null?null:G-m;m=G,h&&h({action:p,location:I.location,delta:E})}function w(G,E){p="PUSH";let L=Rl(I.location,G,E);m=v()+1;let k=xy(L,m),Y=I.createHref(L);try{d.pushState(k,"",Y)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;l.location.assign(Y)}c&&h&&h({action:p,location:I.location,delta:1})}function x(G,E){p="REPLACE";let L=Rl(I.location,G,E);m=v();let k=xy(L,m),Y=I.createHref(L);d.replaceState(k,"",Y),c&&h&&h({action:p,location:I.location,delta:0})}function T(G){return Sb(G)}let I={get action(){return p},get location(){return t(l,d)},listen(G){if(h)throw new Error("A history only accepts one active listener");return l.addEventListener(Ey,b),h=G,()=>{l.removeEventListener(Ey,b),h=null}},createHref(G){return e(l,G)},createURL:T,encodeLocation(G){let E=T(G);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:w,replace:x,go(G){return d.go(G)}};return I}function Sb(t,e=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Le(i,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:ba(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=i+r),new URL(r,i)}var wl,Ty=class{constructor(t){if(yT(this,wl,new Map),t)for(let[e,i]of t)this.set(e,i)}get(t){if(Lf(this,wl).has(t))return Lf(this,wl).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,e){Lf(this,wl).set(t,e)}};wl=new WeakMap;var ET=new Set(["lazy","caseSensitive","path","id","index","children"]);function xT(t){return ET.has(t)}var TT=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function AT(t){return TT.has(t)}function CT(t){return t.index===!0}function Rc(t,e,i=[],r={}){return t.map((l,c)=>{let d=[...i,String(c)],p=typeof l.id=="string"?l.id:d.join("-");if(Le(l.index!==!0||!l.children,"Cannot specify children on an index route"),Le(!r[p],`Found a route id collision on id "${p}".  Route id's must be globally unique within Data Router usages`),CT(l)){let h={...l,...e(l),id:p};return r[p]=h,h}else{let h={...l,...e(l),id:p,children:void 0};return r[p]=h,l.children&&(h.children=Rc(l.children,e,d,r)),h}})}function ua(t,e,i="/"){return Sc(t,e,i,!1)}function Sc(t,e,i,r){let l=typeof e=="string"?Sa(e):e,c=_n(l.pathname||"/",i);if(c==null)return null;let d=Eb(t);OT(d);let p=null;for(let h=0;p==null&&h<d.length;++h){let m=zT(c);p=PT(d[h],m,r)}return p}function _T(t,e){let{route:i,pathname:r,params:l}=t;return{id:i.id,pathname:r,params:l,data:e[i.id],handle:i.handle}}function Eb(t,e=[],i=[],r=""){let l=(c,d,p)=>{let h={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};h.relativePath.startsWith("/")&&(Le(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length));let m=Qn([r,h.relativePath]),v=i.concat(h);c.children&&c.children.length>0&&(Le(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Eb(c.children,e,v,m)),!(c.path==null&&!c.index)&&e.push({path:m,score:jT(m,c.index),routesMeta:v})};return t.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))l(c,d);else for(let p of xb(c.path))l(c,d,p)}),e}function xb(t){let e=t.split("/");if(e.length===0)return[];let[i,...r]=e,l=i.endsWith("?"),c=i.replace(/\?$/,"");if(r.length===0)return l?[c,""]:[c];let d=xb(r.join("/")),p=[];return p.push(...d.map(h=>h===""?c:[c,h].join("/"))),l&&p.push(...d),p.map(h=>t.startsWith("/")&&h===""?"/":h)}function OT(t){t.sort((e,i)=>e.score!==i.score?i.score-e.score:LT(e.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var RT=/^:[\w-]+$/,MT=3,NT=2,kT=1,DT=10,IT=-2,Ay=t=>t==="*";function jT(t,e){let i=t.split("/"),r=i.length;return i.some(Ay)&&(r+=IT),e&&(r+=NT),i.filter(l=>!Ay(l)).reduce((l,c)=>l+(RT.test(c)?MT:c===""?kT:DT),r)}function LT(t,e){return t.length===e.length&&t.slice(0,-1).every((r,l)=>r===e[l])?t[t.length-1]-e[e.length-1]:0}function PT(t,e,i=!1){let{routesMeta:r}=t,l={},c="/",d=[];for(let p=0;p<r.length;++p){let h=r[p],m=p===r.length-1,v=c==="/"?e:e.slice(c.length)||"/",b=Mc({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},v),w=h.route;if(!b&&m&&i&&!r[r.length-1].route.index&&(b=Mc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},v)),!b)return null;Object.assign(l,b.params),d.push({params:l,pathname:Qn([c,b.pathname]),pathnameBase:VT(Qn([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=Qn([c,b.pathnameBase]))}return d}function Mc(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[i,r]=BT(t.path,t.caseSensitive,t.end),l=e.match(i);if(!l)return null;let c=l[0],d=c.replace(/(.)\/+$/,"$1"),p=l.slice(1);return{params:r.reduce((m,{paramName:v,isOptional:b},w)=>{if(v==="*"){let T=p[w]||"";d=c.slice(0,c.length-T.length).replace(/(.)\/+$/,"$1")}const x=p[w];return b&&!x?m[v]=void 0:m[v]=(x||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:t}}function BT(t,e=!1,i=!0){vt(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,h)=>(r.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,e?void 0:"i"),r]}function zT(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return vt(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function _n(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let i=e.endsWith("/")?e.length-1:e.length,r=t.charAt(i);return r&&r!=="/"?null:t.slice(i)||"/"}function UT(t,e="/"){let{pathname:i,search:r="",hash:l=""}=typeof t=="string"?Sa(t):t;return{pathname:i?i.startsWith("/")?i:HT(i,e):e,search:GT(r),hash:qT(l)}}function HT(t,e){let i=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(l=>{l===".."?i.length>1&&i.pop():l!=="."&&i.push(l)}),i.length>1?i.join("/"):"/"}function Pf(t,e,i,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tb(t){return t.filter((e,i)=>i===0||e.route.path&&e.route.path.length>0)}function au(t){let e=Tb(t);return e.map((i,r)=>r===e.length-1?i.pathname:i.pathnameBase)}function ru(t,e,i,r=!1){let l;typeof t=="string"?l=Sa(t):(l={...t},Le(!l.pathname||!l.pathname.includes("?"),Pf("?","pathname","search",l)),Le(!l.pathname||!l.pathname.includes("#"),Pf("#","pathname","hash",l)),Le(!l.search||!l.search.includes("#"),Pf("#","search","hash",l)));let c=t===""||l.pathname==="",d=c?"/":l.pathname,p;if(d==null)p=i;else{let b=e.length-1;if(!r&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),b-=1;l.pathname=w.join("/")}p=b>=0?e[b]:"/"}let h=UT(l,p),m=d&&d!=="/"&&d.endsWith("/"),v=(c||d===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(m||v)&&(h.pathname+="/"),h}var Qn=t=>t.join("/").replace(/\/\/+/g,"/"),VT=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),GT=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,qT=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Nc=class{constructor(t,e,i,r=!1){this.status=t,this.statusText=e||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Ml(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Ab=["POST","PUT","PATCH","DELETE"],YT=new Set(Ab),FT=["GET",...Ab],XT=new Set(FT),$T=new Set([301,302,303,307,308]),KT=new Set([307,308]),Bf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},WT={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ml={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QT=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),Cb="remix-router-transitions",_b=Symbol("ResetLoaderData");function ZT(t){const e=t.window?t.window:typeof window<"u"?window:void 0,i=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u";Le(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=t.hydrationRouteProperties||[],l=t.mapRouteProperties||QT,c={},d=Rc(t.routes,l,void 0,c),p,h=t.basename||"/",m=t.dataStrategy||i2,v={unstable_middleware:!1,...t.future},b=null,w=new Set,x=null,T=null,I=null,G=t.hydrationData!=null,E=ua(d,t.history.location,h),L=!1,k=null,Y;if(E==null&&!t.patchRoutesOnNavigation){let O=Cn(404,{pathname:t.history.location.pathname}),{matches:P,route:V}=Py(d);Y=!0,E=P,k={[V.id]:O}}else if(E&&!t.hydrationData&&_a(E,d,t.history.location.pathname).active&&(E=null),E)if(E.some(O=>O.route.lazy))Y=!1;else if(!E.some(O=>O.route.loader))Y=!0;else{let O=t.hydrationData?t.hydrationData.loaderData:null,P=t.hydrationData?t.hydrationData.errors:null;if(P){let V=E.findIndex(te=>P[te.route.id]!==void 0);Y=E.slice(0,V+1).every(te=>!hh(te.route,O,P))}else Y=E.every(V=>!hh(V.route,O,P))}else{Y=!1,E=[];let O=_a(null,d,t.history.location.pathname);O.active&&O.matches&&(L=!0,E=O.matches)}let D,A={historyAction:t.history.action,location:t.history.location,matches:E,initialized:Y,navigation:Bf,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||k,fetchers:new Map,blockers:new Map},X="POP",$=!1,F,J=!1,ie=new Map,ae=null,oe=!1,pe=!1,be=new Set,M=new Map,Z=0,re=-1,ce=new Map,_=new Set,K=new Map,se=new Map,ne=new Set,de=new Map,Me,ve=null;function ke(){if(b=t.history.listen(({action:O,location:P,delta:V})=>{if(Me){Me(),Me=void 0;return}vt(de.size===0||V!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let te=eo({currentLocation:A.location,nextLocation:P,historyAction:O});if(te&&V!=null){let le=new Promise(he=>{Me=he});t.history.go(V*-1),qn(te,{state:"blocked",location:P,proceed(){qn(te,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),le.then(()=>t.history.go(V))},reset(){let he=new Map(A.blockers);he.set(te,ml),We({blockers:he})}});return}return Mn(O,P)}),i){p2(e,ie);let O=()=>m2(e,ie);e.addEventListener("pagehide",O),ae=()=>e.removeEventListener("pagehide",O)}return A.initialized||Mn("POP",A.location,{initialHydration:!0}),D}function ye(){b&&b(),ae&&ae(),w.clear(),F&&F.abort(),A.fetchers.forEach((O,P)=>_t(P)),A.blockers.forEach((O,P)=>Aa(P))}function at(O){return w.add(O),()=>w.delete(O)}function We(O,P={}){A={...A,...O};let V=[],te=[];A.fetchers.forEach((le,he)=>{le.state==="idle"&&(ne.has(he)?V.push(he):te.push(he))}),ne.forEach(le=>{!A.fetchers.has(le)&&!M.has(le)&&V.push(le)}),[...w].forEach(le=>le(A,{deletedFetchers:V,viewTransitionOpts:P.viewTransitionOpts,flushSync:P.flushSync===!0})),V.forEach(le=>_t(le)),te.forEach(le=>A.fetchers.delete(le))}function Vt(O,P,{flushSync:V}={}){let te=A.actionData!=null&&A.navigation.formMethod!=null&&cn(A.navigation.formMethod)&&A.navigation.state==="loading"&&O.state?._isRedirect!==!0,le;P.actionData?Object.keys(P.actionData).length>0?le=P.actionData:le=null:te?le=A.actionData:le=null;let he=P.loaderData?jy(A.loaderData,P.loaderData,P.matches||[],P.errors):A.loaderData,Ee=A.blockers;Ee.size>0&&(Ee=new Map(Ee),Ee.forEach((me,Ce)=>Ee.set(Ce,ml)));let ue=$===!0||A.navigation.formMethod!=null&&cn(A.navigation.formMethod)&&O.state?._isRedirect!==!0;p&&(d=p,p=void 0),oe||X==="POP"||(X==="PUSH"?t.history.push(O,O.state):X==="REPLACE"&&t.history.replace(O,O.state));let we;if(X==="POP"){let me=ie.get(A.location.pathname);me&&me.has(O.pathname)?we={currentLocation:A.location,nextLocation:O}:ie.has(O.pathname)&&(we={currentLocation:O,nextLocation:A.location})}else if(J){let me=ie.get(A.location.pathname);me?me.add(O.pathname):(me=new Set([O.pathname]),ie.set(A.location.pathname,me)),we={currentLocation:A.location,nextLocation:O}}We({...P,actionData:le,loaderData:he,historyAction:X,location:O,initialized:!0,navigation:Bf,revalidation:"idle",restoreScrollPosition:no(O,P.matches||A.matches),preventScrollReset:ue,blockers:Ee},{viewTransitionOpts:we,flushSync:V===!0}),X="POP",$=!1,J=!1,oe=!1,pe=!1,ve?.resolve(),ve=null}async function hr(O,P){if(typeof O=="number"){t.history.go(O);return}let V=fh(A.location,A.matches,h,O,P?.fromRouteId,P?.relative),{path:te,submission:le,error:he}=Cy(!1,V,P),Ee=A.location,ue=Rl(A.location,te,P&&P.state);ue={...ue,...t.history.encodeLocation(ue)};let we=P&&P.replace!=null?P.replace:void 0,me="PUSH";we===!0?me="REPLACE":we===!1||le!=null&&cn(le.formMethod)&&le.formAction===A.location.pathname+A.location.search&&(me="REPLACE");let Ce=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,_e=(P&&P.flushSync)===!0,Re=eo({currentLocation:Ee,nextLocation:ue,historyAction:me});if(Re){qn(Re,{state:"blocked",location:ue,proceed(){qn(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:ue}),hr(O,P)},reset(){let Ve=new Map(A.blockers);Ve.set(Re,ml),We({blockers:Ve})}});return}await Mn(me,ue,{submission:le,pendingError:he,preventScrollReset:Ce,replace:P&&P.replace,enableViewTransition:P&&P.viewTransition,flushSync:_e})}function ps(){ve||(ve=g2()),ms(),We({revalidation:"loading"});let O=ve.promise;return A.navigation.state==="submitting"?O:A.navigation.state==="idle"?(Mn(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),O):(Mn(X||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:J===!0}),O)}async function Mn(O,P,V){F&&F.abort(),F=null,X=O,oe=(V&&V.startUninterruptedRevalidation)===!0,Ca(A.location,A.matches),$=(V&&V.preventScrollReset)===!0,J=(V&&V.enableViewTransition)===!0;let te=p||d,le=V&&V.overrideNavigation,he=V?.initialHydration&&A.matches&&A.matches.length>0&&!L?A.matches:ua(te,P,h),Ee=(V&&V.flushSync)===!0;if(he&&A.initialized&&!pe&&c2(A.location,P)&&!(V&&V.submission&&cn(V.submission.formMethod))){Vt(P,{matches:he},{flushSync:Ee});return}let ue=_a(he,te,P.pathname);if(ue.active&&ue.matches&&(he=ue.matches),!he){let{error:ct,notFoundMatches:Ge,route:Ue}=mr(P.pathname);Vt(P,{matches:Ge,loaderData:{},errors:{[Ue.id]:ct}},{flushSync:Ee});return}F=new AbortController;let we=Wr(t.history,P,F.signal,V&&V.submission),me=new Ty(t.unstable_getContext?await t.unstable_getContext():void 0),Ce;if(V&&V.pendingError)Ce=[Qa(he).route.id,{type:"error",error:V.pendingError}];else if(V&&V.submission&&cn(V.submission.formMethod)){let ct=await bu(we,P,V.submission,he,me,ue.active,V&&V.initialHydration===!0,{replace:V.replace,flushSync:Ee});if(ct.shortCircuited)return;if(ct.pendingActionResult){let[Ge,Ue]=ct.pendingActionResult;if(on(Ue)&&Ml(Ue.error)&&Ue.error.status===404){F=null,Vt(P,{matches:ct.matches,loaderData:{},errors:{[Ge]:Ue.error}});return}}he=ct.matches||he,Ce=ct.pendingActionResult,le=zf(P,V.submission),Ee=!1,ue.active=!1,we=Wr(t.history,we.url,we.signal)}let{shortCircuited:_e,matches:Re,loaderData:Ve,errors:rt}=await Su(we,P,he,me,ue.active,le,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,V&&V.initialHydration===!0,Ee,Ce);_e||(F=null,Vt(P,{matches:Re||he,...Ly(Ce),loaderData:Ve,errors:rt}))}async function bu(O,P,V,te,le,he,Ee,ue={}){ms();let we=f2(P,V);if(We({navigation:we},{flushSync:ue.flushSync===!0}),he){let _e=await Oa(te,P.pathname,O.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){let Re=Qa(_e.partialMatches).route.id;return{matches:_e.partialMatches,pendingActionResult:[Re,{type:"error",error:_e.error}]}}else if(_e.matches)te=_e.matches;else{let{notFoundMatches:Re,error:Ve,route:rt}=mr(P.pathname);return{matches:Re,pendingActionResult:[rt.id,{type:"error",error:Ve}]}}}let me,Ce=bl(te,P);if(!Ce.route.action&&!Ce.route.lazy)me={type:"error",error:Cn(405,{method:O.method,pathname:P.pathname,routeId:Ce.route.id})};else{let _e=Zr(l,c,O,te,Ce,Ee?[]:r,le),Re=await ji(O,_e,le,null);if(me=Re[Ce.route.id],!me){for(let Ve of te)if(Re[Ve.route.id]){me=Re[Ve.route.id];break}}if(O.signal.aborted)return{shortCircuited:!0}}if(Za(me)){let _e;return ue&&ue.replace!=null?_e=ue.replace:_e=ky(me.response.headers.get("Location"),new URL(O.url),h)===A.location.pathname+A.location.search,await ai(O,me,!0,{submission:V,replace:_e}),{shortCircuited:!0}}if(on(me)){let _e=Qa(te,Ce.route.id);return(ue&&ue.replace)!==!0&&(X="PUSH"),{matches:te,pendingActionResult:[_e.route.id,me,Ce.route.id]}}return{matches:te,pendingActionResult:[Ce.route.id,me]}}async function Su(O,P,V,te,le,he,Ee,ue,we,me,Ce,_e){let Re=he||zf(P,Ee),Ve=Ee||ue||zy(Re),rt=!oe&&!me;if(le){if(rt){let Nt=Jt(_e);We({navigation:Re,...Nt!==void 0?{actionData:Nt}:{}},{flushSync:Ce})}let Ie=await Oa(V,P.pathname,O.signal);if(Ie.type==="aborted")return{shortCircuited:!0};if(Ie.type==="error"){let Nt=Qa(Ie.partialMatches).route.id;return{matches:Ie.partialMatches,loaderData:{},errors:{[Nt]:Ie.error}}}else if(Ie.matches)V=Ie.matches;else{let{error:Nt,notFoundMatches:kn,route:Dn}=mr(P.pathname);return{matches:kn,loaderData:{},errors:{[Dn.id]:Nt}}}}let ct=p||d,{dsMatches:Ge,revalidatingFetchers:Ue}=_y(O,te,l,c,t.history,A,V,Ve,P,me?[]:r,me===!0,pe,be,ne,K,_,ct,h,t.patchRoutesOnNavigation!=null,_e);if(re=++Z,!t.dataStrategy&&!Ge.some(Ie=>Ie.shouldLoad)&&Ue.length===0){let Ie=xa();return Vt(P,{matches:V,loaderData:{},errors:_e&&on(_e[1])?{[_e[0]]:_e[1].error}:null,...Ly(_e),...Ie?{fetchers:new Map(A.fetchers)}:{}},{flushSync:Ce}),{shortCircuited:!0}}if(rt){let Ie={};if(!le){Ie.navigation=Re;let Nt=Jt(_e);Nt!==void 0&&(Ie.actionData=Nt)}Ue.length>0&&(Ie.fetchers=Eu(Ue)),We(Ie,{flushSync:Ce})}Ue.forEach(Ie=>{Gn(Ie.key),Ie.controller&&M.set(Ie.key,Ie.controller)});let Li=()=>Ue.forEach(Ie=>Gn(Ie.key));F&&F.signal.addEventListener("abort",Li);let{loaderResults:jt,fetcherResults:mn}=await Zl(Ge,Ue,O,te);if(O.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Li),Ue.forEach(Ie=>M.delete(Ie.key));let qt=hc(jt);if(qt)return await ai(O,qt.result,!0,{replace:we}),{shortCircuited:!0};if(qt=hc(mn),qt)return _.add(qt.key),await ai(O,qt.result,!0,{replace:we}),{shortCircuited:!0};let{loaderData:Pi,errors:Bi}=Iy(A,V,jt,_e,Ue,mn);me&&A.errors&&(Bi={...A.errors,...Bi});let ys=xa(),gn=Ta(re),si=ys||gn||Ue.length>0;return{matches:V,loaderData:Pi,errors:Bi,...si?{fetchers:new Map(A.fetchers)}:{}}}function Jt(O){if(O&&!on(O[1]))return{[O[0]]:O[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Eu(O){return O.forEach(P=>{let V=A.fetchers.get(P.key),te=gl(void 0,V?V.data:void 0);A.fetchers.set(P.key,te)}),new Map(A.fetchers)}async function Wl(O,P,V,te){Gn(O);let le=(te&&te.flushSync)===!0,he=p||d,Ee=fh(A.location,A.matches,h,V,P,te?.relative),ue=ua(he,Ee,h),we=_a(ue,he,Ee);if(we.active&&we.matches&&(ue=we.matches),!ue){ot(O,P,Cn(404,{pathname:Ee}),{flushSync:le});return}let{path:me,submission:Ce,error:_e}=Cy(!0,Ee,te);if(_e){ot(O,P,_e,{flushSync:le});return}let Re=bl(ue,me),Ve=new Ty(t.unstable_getContext?await t.unstable_getContext():void 0),rt=(te&&te.preventScrollReset)===!0;if(Ce&&cn(Ce.formMethod)){await Ql(O,P,me,Re,ue,Ve,we.active,le,rt,Ce);return}K.set(O,{routeId:P,path:me}),await pr(O,P,me,Re,ue,Ve,we.active,le,rt,Ce)}async function Ql(O,P,V,te,le,he,Ee,ue,we,me){ms(),K.delete(O);function Ce(st){if(!st.route.action&&!st.route.lazy){let zi=Cn(405,{method:me.formMethod,pathname:V,routeId:P});return ot(O,P,zi,{flushSync:ue}),!0}return!1}if(!Ee&&Ce(te))return;let _e=A.fetchers.get(O);Gt(O,h2(me,_e),{flushSync:ue});let Re=new AbortController,Ve=Wr(t.history,V,Re.signal,me);if(Ee){let st=await Oa(le,V,Ve.signal,O);if(st.type==="aborted")return;if(st.type==="error"){ot(O,P,st.error,{flushSync:ue});return}else if(st.matches){if(le=st.matches,te=bl(le,V),Ce(te))return}else{ot(O,P,Cn(404,{pathname:V}),{flushSync:ue});return}}M.set(O,Re);let rt=Z,ct=Zr(l,c,Ve,le,te,r,he),Ue=(await ji(Ve,ct,he,O))[te.route.id];if(Ve.signal.aborted){M.get(O)===Re&&M.delete(O);return}if(ne.has(O)){if(Za(Ue)||on(Ue)){Gt(O,ca(void 0));return}}else{if(Za(Ue))if(M.delete(O),re>rt){Gt(O,ca(void 0));return}else return _.add(O),Gt(O,gl(me)),ai(Ve,Ue,!1,{fetcherSubmission:me,preventScrollReset:we});if(on(Ue)){ot(O,P,Ue.error);return}}let Li=A.navigation.location||A.location,jt=Wr(t.history,Li,Re.signal),mn=p||d,qt=A.navigation.state!=="idle"?ua(mn,A.navigation.location,h):A.matches;Le(qt,"Didn't find any matches after fetcher action");let Pi=++Z;ce.set(O,Pi);let Bi=gl(me,Ue.data);A.fetchers.set(O,Bi);let{dsMatches:ys,revalidatingFetchers:gn}=_y(jt,he,l,c,t.history,A,qt,me,Li,r,!1,pe,be,ne,K,_,mn,h,t.patchRoutesOnNavigation!=null,[te.route.id,Ue]);gn.filter(st=>st.key!==O).forEach(st=>{let zi=st.key,ws=A.fetchers.get(zi),Yt=gl(void 0,ws?ws.data:void 0);A.fetchers.set(zi,Yt),Gn(zi),st.controller&&M.set(zi,st.controller)}),We({fetchers:new Map(A.fetchers)});let si=()=>gn.forEach(st=>Gn(st.key));Re.signal.addEventListener("abort",si);let{loaderResults:Ie,fetcherResults:Nt}=await Zl(ys,gn,jt,he);if(Re.signal.aborted)return;if(Re.signal.removeEventListener("abort",si),ce.delete(O),M.delete(O),gn.forEach(st=>M.delete(st.key)),A.fetchers.has(O)){let st=ca(Ue.data);A.fetchers.set(O,st)}let kn=hc(Ie);if(kn)return ai(jt,kn.result,!1,{preventScrollReset:we});if(kn=hc(Nt),kn)return _.add(kn.key),ai(jt,kn.result,!1,{preventScrollReset:we});let{loaderData:Dn,errors:Ra}=Iy(A,qt,Ie,void 0,gn,Nt);Ta(Pi),A.navigation.state==="loading"&&Pi>re?(Le(X,"Expected pending action"),F&&F.abort(),Vt(A.navigation.location,{matches:qt,loaderData:Dn,errors:Ra,fetchers:new Map(A.fetchers)})):(We({errors:Ra,loaderData:jy(A.loaderData,Dn,qt,Ra),fetchers:new Map(A.fetchers)}),pe=!1)}async function pr(O,P,V,te,le,he,Ee,ue,we,me){let Ce=A.fetchers.get(O);Gt(O,gl(me,Ce?Ce.data:void 0),{flushSync:ue});let _e=new AbortController,Re=Wr(t.history,V,_e.signal);if(Ee){let Ue=await Oa(le,V,Re.signal,O);if(Ue.type==="aborted")return;if(Ue.type==="error"){ot(O,P,Ue.error,{flushSync:ue});return}else if(Ue.matches)le=Ue.matches,te=bl(le,V);else{ot(O,P,Cn(404,{pathname:V}),{flushSync:ue});return}}M.set(O,_e);let Ve=Z,rt=Zr(l,c,Re,le,te,r,he),Ge=(await ji(Re,rt,he,O))[te.route.id];if(M.get(O)===_e&&M.delete(O),!Re.signal.aborted){if(ne.has(O)){Gt(O,ca(void 0));return}if(Za(Ge))if(re>Ve){Gt(O,ca(void 0));return}else{_.add(O),await ai(Re,Ge,!1,{preventScrollReset:we});return}if(on(Ge)){ot(O,P,Ge.error);return}Gt(O,ca(Ge.data))}}async function ai(O,P,V,{submission:te,fetcherSubmission:le,preventScrollReset:he,replace:Ee}={}){P.response.headers.has("X-Remix-Revalidate")&&(pe=!0);let ue=P.response.headers.get("Location");Le(ue,"Expected a Location header on the redirect Response"),ue=ky(ue,new URL(O.url),h);let we=Rl(A.location,ue,{_isRedirect:!0});if(i){let rt=!1;if(P.response.headers.has("X-Remix-Reload-Document"))rt=!0;else if(Ph.test(ue)){const ct=Sb(ue,!0);rt=ct.origin!==e.location.origin||_n(ct.pathname,h)==null}if(rt){Ee?e.location.replace(ue):e.location.assign(ue);return}}F=null;let me=Ee===!0||P.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ce,formAction:_e,formEncType:Re}=A.navigation;!te&&!le&&Ce&&_e&&Re&&(te=zy(A.navigation));let Ve=te||le;if(KT.has(P.response.status)&&Ve&&cn(Ve.formMethod))await Mn(me,we,{submission:{...Ve,formAction:ue},preventScrollReset:he||$,enableViewTransition:V?J:void 0});else{let rt=zf(we,te);await Mn(me,we,{overrideNavigation:rt,fetcherSubmission:le,preventScrollReset:he||$,enableViewTransition:V?J:void 0})}}async function ji(O,P,V,te){let le,he={};try{le=await a2(m,O,P,te,V,!1)}catch(Ee){return P.filter(ue=>ue.shouldLoad).forEach(ue=>{he[ue.route.id]={type:"error",error:Ee}}),he}if(O.signal.aborted)return he;for(let[Ee,ue]of Object.entries(le))if(u2(ue)){let we=ue.result;he[Ee]={type:"redirect",response:l2(we,O,Ee,P,h)}}else he[Ee]=await s2(ue);return he}async function Zl(O,P,V,te){let le=ji(V,O,te,null),he=Promise.all(P.map(async we=>{if(we.matches&&we.match&&we.request&&we.controller){let Ce=(await ji(we.request,we.matches,te,we.key))[we.match.route.id];return{[we.key]:Ce}}else return Promise.resolve({[we.key]:{type:"error",error:Cn(404,{pathname:we.path})}})})),Ee=await le,ue=(await he).reduce((we,me)=>Object.assign(we,me),{});return{loaderResults:Ee,fetcherResults:ue}}function ms(){pe=!0,K.forEach((O,P)=>{M.has(P)&&be.add(P),Gn(P)})}function Gt(O,P,V={}){A.fetchers.set(O,P),We({fetchers:new Map(A.fetchers)},{flushSync:(V&&V.flushSync)===!0})}function ot(O,P,V,te={}){let le=Qa(A.matches,P);_t(O),We({errors:{[le.route.id]:V},fetchers:new Map(A.fetchers)},{flushSync:(te&&te.flushSync)===!0})}function Nn(O){return se.set(O,(se.get(O)||0)+1),ne.has(O)&&ne.delete(O),A.fetchers.get(O)||WT}function _t(O){let P=A.fetchers.get(O);M.has(O)&&!(P&&P.state==="loading"&&ce.has(O))&&Gn(O),K.delete(O),ce.delete(O),_.delete(O),ne.delete(O),be.delete(O),A.fetchers.delete(O)}function xu(O){let P=(se.get(O)||0)-1;P<=0?(se.delete(O),ne.add(O)):se.set(O,P),We({fetchers:new Map(A.fetchers)})}function Gn(O){let P=M.get(O);P&&(P.abort(),M.delete(O))}function Jl(O){for(let P of O){let V=Nn(P),te=ca(V.data);A.fetchers.set(P,te)}}function xa(){let O=[],P=!1;for(let V of _){let te=A.fetchers.get(V);Le(te,`Expected fetcher: ${V}`),te.state==="loading"&&(_.delete(V),O.push(V),P=!0)}return Jl(O),P}function Ta(O){let P=[];for(let[V,te]of ce)if(te<O){let le=A.fetchers.get(V);Le(le,`Expected fetcher: ${V}`),le.state==="loading"&&(Gn(V),ce.delete(V),P.push(V))}return Jl(P),P.length>0}function ri(O,P){let V=A.blockers.get(O)||ml;return de.get(O)!==P&&de.set(O,P),V}function Aa(O){A.blockers.delete(O),de.delete(O)}function qn(O,P){let V=A.blockers.get(O)||ml;Le(V.state==="unblocked"&&P.state==="blocked"||V.state==="blocked"&&P.state==="blocked"||V.state==="blocked"&&P.state==="proceeding"||V.state==="blocked"&&P.state==="unblocked"||V.state==="proceeding"&&P.state==="unblocked",`Invalid blocker state transition: ${V.state} -> ${P.state}`);let te=new Map(A.blockers);te.set(O,P),We({blockers:te})}function eo({currentLocation:O,nextLocation:P,historyAction:V}){if(de.size===0)return;de.size>1&&vt(!1,"A router only supports one blocker at a time");let te=Array.from(de.entries()),[le,he]=te[te.length-1],Ee=A.blockers.get(le);if(!(Ee&&Ee.state==="proceeding")&&he({currentLocation:O,nextLocation:P,historyAction:V}))return le}function mr(O){let P=Cn(404,{pathname:O}),V=p||d,{matches:te,route:le}=Py(V);return{notFoundMatches:te,route:le,error:P}}function to(O,P,V){if(x=O,I=P,T=V||null,!G&&A.navigation===Bf){G=!0;let te=no(A.location,A.matches);te!=null&&We({restoreScrollPosition:te})}return()=>{x=null,I=null,T=null}}function gr(O,P){return T&&T(O,P.map(te=>_T(te,A.loaderData)))||O.key}function Ca(O,P){if(x&&I){let V=gr(O,P);x[V]=I()}}function no(O,P){if(x){let V=gr(O,P),te=x[V];if(typeof te=="number")return te}return null}function _a(O,P,V){if(t.patchRoutesOnNavigation)if(O){if(Object.keys(O[0].params).length>0)return{active:!0,matches:Sc(P,V,h,!0)}}else return{active:!0,matches:Sc(P,V,h,!0)||[]};return{active:!1,matches:null}}async function Oa(O,P,V,te){if(!t.patchRoutesOnNavigation)return{type:"success",matches:O};let le=O;for(;;){let he=p==null,Ee=p||d,ue=c;try{await t.patchRoutesOnNavigation({signal:V,path:P,matches:le,fetcherKey:te,patch:(Ce,_e)=>{V.aborted||Oy(Ce,_e,Ee,ue,l)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:le}}finally{he&&!V.aborted&&(d=[...d])}if(V.aborted)return{type:"aborted"};let we=ua(Ee,P,h);if(we)return{type:"success",matches:we};let me=Sc(Ee,P,h,!0);if(!me||le.length===me.length&&le.every((Ce,_e)=>Ce.route.id===me[_e].route.id))return{type:"success",matches:null};le=me}}function gs(O){c={},p=Rc(O,l,void 0,c)}function vs(O,P){let V=p==null;Oy(O,P,p||d,c,l),V&&(d=[...d],We({}))}return D={get basename(){return h},get future(){return v},get state(){return A},get routes(){return d},get window(){return e},initialize:ke,subscribe:at,enableScrollRestoration:to,navigate:hr,fetch:Wl,revalidate:ps,createHref:O=>t.history.createHref(O),encodeLocation:O=>t.history.encodeLocation(O),getFetcher:Nn,deleteFetcher:xu,dispose:ye,getBlocker:ri,deleteBlocker:Aa,patchRoutes:vs,_internalFetchControllers:M,_internalSetRoutes:gs},D}function JT(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function fh(t,e,i,r,l,c){let d,p;if(l){d=[];for(let m of e)if(d.push(m),m.route.id===l){p=m;break}}else d=e,p=e[e.length-1];let h=ru(r||".",au(d),_n(t.pathname,i)||t.pathname,c==="path");if(r==null&&(h.search=t.search,h.hash=t.hash),(r==null||r===""||r===".")&&p){let m=Bh(h.search);if(p.route.index&&!m)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&m){let v=new URLSearchParams(h.search),b=v.getAll("index");v.delete("index"),b.filter(x=>x).forEach(x=>v.append("index",x));let w=v.toString();h.search=w?`?${w}`:""}}return i!=="/"&&(h.pathname=h.pathname==="/"?i:Qn([i,h.pathname])),ba(h)}function Cy(t,e,i){if(!i||!JT(i))return{path:e};if(i.formMethod&&!d2(i.formMethod))return{path:e,error:Cn(405,{method:i.formMethod})};let r=()=>({path:e,error:Cn(400,{type:"invalid-body"})}),c=(i.formMethod||"get").toUpperCase(),d=Db(e);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!cn(c))return r();let b=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((w,[x,T])=>`${w}${x}=${T}
`,""):String(i.body);return{path:e,submission:{formMethod:c,formAction:d,formEncType:i.formEncType,formData:void 0,json:void 0,text:b}}}else if(i.formEncType==="application/json"){if(!cn(c))return r();try{let b=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:e,submission:{formMethod:c,formAction:d,formEncType:i.formEncType,formData:void 0,json:b,text:void 0}}}catch{return r()}}}Le(typeof FormData=="function","FormData is not available in this environment");let p,h;if(i.formData)p=mh(i.formData),h=i.formData;else if(i.body instanceof FormData)p=mh(i.body),h=i.body;else if(i.body instanceof URLSearchParams)p=i.body,h=Dy(p);else if(i.body==null)p=new URLSearchParams,h=new FormData;else try{p=new URLSearchParams(i.body),h=Dy(p)}catch{return r()}let m={formMethod:c,formAction:d,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(cn(m.formMethod))return{path:e,submission:m};let v=Sa(e);return t&&v.search&&Bh(v.search)&&p.append("index",""),v.search=`?${p}`,{path:ba(v),submission:m}}function _y(t,e,i,r,l,c,d,p,h,m,v,b,w,x,T,I,G,E,L,k){let Y=k?on(k[1])?k[1].error:k[1].data:void 0,D=l.createURL(c.location),A=l.createURL(h),X;if(v&&c.errors){let oe=Object.keys(c.errors)[0];X=d.findIndex(pe=>pe.route.id===oe)}else if(k&&on(k[1])){let oe=k[0];X=d.findIndex(pe=>pe.route.id===oe)-1}let $=k?k[1].statusCode:void 0,F=$&&$>=400,J={currentUrl:D,currentParams:c.matches[0]?.params||{},nextUrl:A,nextParams:d[0].params,...p,actionResult:Y,actionStatus:$},ie=d.map((oe,pe)=>{let{route:be}=oe,M=null;if(X!=null&&pe>X?M=!1:be.lazy?M=!0:be.loader==null?M=!1:v?M=hh(be,c.loaderData,c.errors):e2(c.loaderData,c.matches[pe],oe)&&(M=!0),M!==null)return ph(i,r,t,oe,m,e,M);let Z=F?!1:b||D.pathname+D.search===A.pathname+A.search||D.search!==A.search||t2(c.matches[pe],oe),re={...J,defaultShouldRevalidate:Z},ce=kc(oe,re);return ph(i,r,t,oe,m,e,ce,re)}),ae=[];return T.forEach((oe,pe)=>{if(v||!d.some(se=>se.route.id===oe.routeId)||x.has(pe))return;let be=c.fetchers.get(pe),M=be&&be.state!=="idle"&&be.data===void 0,Z=ua(G,oe.path,E);if(!Z){if(L&&M)return;ae.push({key:pe,routeId:oe.routeId,path:oe.path,matches:null,match:null,request:null,controller:null});return}if(I.has(pe))return;let re=bl(Z,oe.path),ce=new AbortController,_=Wr(l,oe.path,ce.signal),K=null;if(w.has(pe))w.delete(pe),K=Zr(i,r,_,Z,re,m,e);else if(M)b&&(K=Zr(i,r,_,Z,re,m,e));else{let se={...J,defaultShouldRevalidate:F?!1:b};kc(re,se)&&(K=Zr(i,r,_,Z,re,m,e,se))}K&&ae.push({key:pe,routeId:oe.routeId,path:oe.path,matches:K,match:re,request:_,controller:ce})}),{dsMatches:ie,revalidatingFetchers:ae}}function hh(t,e,i){if(t.lazy)return!0;if(!t.loader)return!1;let r=e!=null&&t.id in e,l=i!=null&&i[t.id]!==void 0;return!r&&l?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!l}function e2(t,e,i){let r=!e||i.route.id!==e.route.id,l=!t.hasOwnProperty(i.route.id);return r||l}function t2(t,e){let i=t.route.path;return t.pathname!==e.pathname||i!=null&&i.endsWith("*")&&t.params["*"]!==e.params["*"]}function kc(t,e){if(t.route.shouldRevalidate){let i=t.route.shouldRevalidate(e);if(typeof i=="boolean")return i}return e.defaultShouldRevalidate}function Oy(t,e,i,r,l){let c;if(t){let h=r[t];Le(h,`No route found to patch children into: routeId = ${t}`),h.children||(h.children=[]),c=h.children}else c=i;let d=e.filter(h=>!c.some(m=>Ob(h,m))),p=Rc(d,l,[t||"_","patch",String(c?.length||"0")],r);c.push(...p)}function Ob(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((i,r)=>e.children?.some(l=>Ob(i,l))):!1}var Ry=new WeakMap,Rb=({key:t,route:e,manifest:i,mapRouteProperties:r})=>{let l=i[e.id];if(Le(l,"No route found in manifest"),!l.lazy||typeof l.lazy!="object")return;let c=l.lazy[t];if(!c)return;let d=Ry.get(l);d||(d={},Ry.set(l,d));let p=d[t];if(p)return p;let h=(async()=>{let m=xT(t),b=l[t]!==void 0&&t!=="hasErrorBoundary";if(m)vt(!m,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),d[t]=Promise.resolve();else if(b)vt(!1,`Route "${l.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let w=await c();w!=null&&(Object.assign(l,{[t]:w}),Object.assign(l,r(l)))}typeof l.lazy=="object"&&(l.lazy[t]=void 0,Object.values(l.lazy).every(w=>w===void 0)&&(l.lazy=void 0))})();return d[t]=h,h},My=new WeakMap;function n2(t,e,i,r,l){let c=i[t.id];if(Le(c,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let v=My.get(c);if(v)return{lazyRoutePromise:v,lazyHandlerPromise:v};let b=(async()=>{Le(typeof t.lazy=="function","No lazy route function found");let w=await t.lazy(),x={};for(let T in w){let I=w[T];if(I===void 0)continue;let G=AT(T),L=c[T]!==void 0&&T!=="hasErrorBoundary";G?vt(!G,"Route property "+T+" is not a supported property to be returned from a lazy route function. This property will be ignored."):L?vt(!L,`Route "${c.id}" has a static property "${T}" defined but its lazy function is also returning a value for this property. The lazy route property "${T}" will be ignored.`):x[T]=I}Object.assign(c,x),Object.assign(c,{...r(c),lazy:void 0})})();return My.set(c,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let d=Object.keys(t.lazy),p=[],h;for(let v of d){if(l&&l.includes(v))continue;let b=Rb({key:v,route:t,manifest:i,mapRouteProperties:r});b&&(p.push(b),v===e&&(h=b))}let m=p.length>0?Promise.all(p).then(()=>{}):void 0;return m?.catch(()=>{}),h?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:h}}async function Ny(t){let e=t.matches.filter(l=>l.shouldLoad),i={};return(await Promise.all(e.map(l=>l.resolve()))).forEach((l,c)=>{i[e[c].route.id]=l}),i}async function i2(t){return t.matches.some(e=>e.route.unstable_middleware)?Mb(t,!1,()=>Ny(t),(e,i)=>({[i]:{type:"error",result:e}})):Ny(t)}async function Mb(t,e,i,r){let{matches:l,request:c,params:d,context:p}=t,h={handlerResult:void 0};try{let m=l.flatMap(b=>b.route.unstable_middleware?b.route.unstable_middleware.map(w=>[b.route.id,w]):[]),v=await Nb({request:c,params:d,context:p},m,e,h,i);return e?v:h.handlerResult}catch(m){if(!h.middlewareError)throw m;let v=await r(h.middlewareError.error,h.middlewareError.routeId);return h.handlerResult?Object.assign(h.handlerResult,v):v}}async function Nb(t,e,i,r,l,c=0){let{request:d}=t;if(d.signal.aborted)throw d.signal.reason?d.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${d.method} ${d.url}`);let p=e[c];if(!p)return r.handlerResult=await l(),r.handlerResult;let[h,m]=p,v=!1,b,w=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");v=!0,await Nb(t,e,i,r,l,c+1)};try{let x=await m({request:t.request,params:t.params,context:t.context},w);return v?x===void 0?b:x:w()}catch(x){throw r.middlewareError?r.middlewareError.error!==x&&(r.middlewareError={routeId:h,error:x}):r.middlewareError={routeId:h,error:x},x}}function kb(t,e,i,r,l){let c=Rb({key:"unstable_middleware",route:r.route,manifest:e,mapRouteProperties:t}),d=n2(r.route,cn(i.method)?"action":"loader",e,t,l);return{middleware:c,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function ph(t,e,i,r,l,c,d,p=null){let h=!1,m=kb(t,e,i,r,l);return{...r,_lazyPromises:m,shouldLoad:d,unstable_shouldRevalidateArgs:p,unstable_shouldCallHandler(v){return h=!0,p?typeof v=="boolean"?kc(r,{...p,defaultShouldRevalidate:v}):kc(r,p):d},resolve(v){return h||d||v&&i.method==="GET"&&(r.route.lazy||r.route.loader)?r2({request:i,match:r,lazyHandlerPromise:m?.handler,lazyRoutePromise:m?.route,handlerOverride:v,scopedContext:c}):Promise.resolve({type:"data",result:void 0})}}}function Zr(t,e,i,r,l,c,d,p=null){return r.map(h=>h.route.id!==l.route.id?{...h,shouldLoad:!1,unstable_shouldRevalidateArgs:p,unstable_shouldCallHandler:()=>!1,_lazyPromises:kb(t,e,i,h,c),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ph(t,e,i,h,c,d,!0,p))}async function a2(t,e,i,r,l,c){i.some(m=>m._lazyPromises?.middleware)&&await Promise.all(i.map(m=>m._lazyPromises?.middleware));let d={request:e,params:i[0].params,context:l,matches:i},h=await t({...d,fetcherKey:r,unstable_runClientMiddleware:m=>{let v=d;return Mb(v,!1,()=>m({...v,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(b,w)=>({[w]:{type:"error",result:b}}))}});try{await Promise.all(i.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return h}async function r2({request:t,match:e,lazyHandlerPromise:i,lazyRoutePromise:r,handlerOverride:l,scopedContext:c}){let d,p,h=cn(t.method),m=h?"action":"loader",v=b=>{let w,x=new Promise((G,E)=>w=E);p=()=>w(),t.signal.addEventListener("abort",p);let T=G=>typeof b!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${e.route.id}]`)):b({request:t,params:e.params,context:c},...G!==void 0?[G]:[]),I=(async()=>{try{return{type:"data",result:await(l?l(E=>T(E)):T())}}catch(G){return{type:"error",result:G}}})();return Promise.race([I,x])};try{let b=h?e.route.action:e.route.loader;if(i||r)if(b){let w,[x]=await Promise.all([v(b).catch(T=>{w=T}),i,r]);if(w!==void 0)throw w;d=x}else{await i;let w=h?e.route.action:e.route.loader;if(w)[d]=await Promise.all([v(w),r]);else if(m==="action"){let x=new URL(t.url),T=x.pathname+x.search;throw Cn(405,{method:t.method,pathname:T,routeId:e.route.id})}else return{type:"data",result:void 0}}else if(b)d=await v(b);else{let w=new URL(t.url),x=w.pathname+w.search;throw Cn(404,{pathname:x})}}catch(b){return{type:"error",result:b}}finally{p&&t.signal.removeEventListener("abort",p)}return d}async function s2(t){let{result:e,type:i}=t;if(Ib(e)){let r;try{let l=e.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?e.body==null?r=null:r=await e.json():r=await e.text()}catch(l){return{type:"error",error:l}}return i==="error"?{type:"error",error:new Nc(e.status,e.statusText,r),statusCode:e.status,headers:e.headers}:{type:"data",data:r,statusCode:e.status,headers:e.headers}}return i==="error"?By(e)?e.data instanceof Error?{type:"error",error:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:new Nc(e.init?.status||500,void 0,e.data),statusCode:Ml(e)?e.status:void 0,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:e,statusCode:Ml(e)?e.status:void 0}:By(e)?{type:"data",data:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"data",data:e}}function l2(t,e,i,r,l){let c=t.headers.get("Location");if(Le(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ph.test(c)){let d=r.slice(0,r.findIndex(p=>p.route.id===i)+1);c=fh(new URL(e.url),d,l,c),t.headers.set("Location",c)}return t}function ky(t,e,i){if(Ph.test(t)){let r=t,l=r.startsWith("//")?new URL(e.protocol+r):new URL(r),c=_n(l.pathname,i)!=null;if(l.origin===e.origin&&c)return l.pathname+l.search+l.hash}return t}function Wr(t,e,i,r){let l=t.createURL(Db(e)).toString(),c={signal:i};if(r&&cn(r.formMethod)){let{formMethod:d,formEncType:p}=r;c.method=d.toUpperCase(),p==="application/json"?(c.headers=new Headers({"Content-Type":p}),c.body=JSON.stringify(r.json)):p==="text/plain"?c.body=r.text:p==="application/x-www-form-urlencoded"&&r.formData?c.body=mh(r.formData):c.body=r.formData}return new Request(l,c)}function mh(t){let e=new URLSearchParams;for(let[i,r]of t.entries())e.append(i,typeof r=="string"?r:r.name);return e}function Dy(t){let e=new FormData;for(let[i,r]of t.entries())e.append(i,r);return e}function o2(t,e,i,r=!1,l=!1){let c={},d=null,p,h=!1,m={},v=i&&on(i[1])?i[1].error:void 0;return t.forEach(b=>{if(!(b.route.id in e))return;let w=b.route.id,x=e[w];if(Le(!Za(x),"Cannot handle redirect results in processLoaderData"),on(x)){let T=x.error;if(v!==void 0&&(T=v,v=void 0),d=d||{},l)d[w]=T;else{let I=Qa(t,w);d[I.route.id]==null&&(d[I.route.id]=T)}r||(c[w]=_b),h||(h=!0,p=Ml(x.error)?x.error.status:500),x.headers&&(m[w]=x.headers)}else c[w]=x.data,x.statusCode&&x.statusCode!==200&&!h&&(p=x.statusCode),x.headers&&(m[w]=x.headers)}),v!==void 0&&i&&(d={[i[0]]:v},i[2]&&(c[i[2]]=void 0)),{loaderData:c,errors:d,statusCode:p||200,loaderHeaders:m}}function Iy(t,e,i,r,l,c){let{loaderData:d,errors:p}=o2(e,i,r);return l.filter(h=>!h.matches||h.matches.some(m=>m.shouldLoad)).forEach(h=>{let{key:m,match:v,controller:b}=h,w=c[m];if(Le(w,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(on(w)){let x=Qa(t.matches,v?.route.id);p&&p[x.route.id]||(p={...p,[x.route.id]:w.error}),t.fetchers.delete(m)}else if(Za(w))Le(!1,"Unhandled fetcher revalidation redirect");else{let x=ca(w.data);t.fetchers.set(m,x)}}),{loaderData:d,errors:p}}function jy(t,e,i,r){let l=Object.entries(e).filter(([,c])=>c!==_b).reduce((c,[d,p])=>(c[d]=p,c),{});for(let c of i){let d=c.route.id;if(!e.hasOwnProperty(d)&&t.hasOwnProperty(d)&&c.route.loader&&(l[d]=t[d]),r&&r.hasOwnProperty(d))break}return l}function Ly(t){return t?on(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function Qa(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function Py(t){let e=t.length===1?t[0]:t.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Cn(t,{pathname:e,routeId:i,method:r,type:l,message:c}={}){let d="Unknown Server Error",p="Unknown @remix-run/router error";return t===400?(d="Bad Request",r&&e&&i?p=`You made a ${r} request to "${e}" but did not provide a \`loader\` for route "${i}", so there is no way to handle the request.`:l==="invalid-body"&&(p="Unable to encode submission body")):t===403?(d="Forbidden",p=`Route "${i}" does not match URL "${e}"`):t===404?(d="Not Found",p=`No route matches URL "${e}"`):t===405&&(d="Method Not Allowed",r&&e&&i?p=`You made a ${r.toUpperCase()} request to "${e}" but did not provide an \`action\` for route "${i}", so there is no way to handle the request.`:r&&(p=`Invalid request method "${r.toUpperCase()}"`)),new Nc(t||500,d,new Error(p),!0)}function hc(t){let e=Object.entries(t);for(let i=e.length-1;i>=0;i--){let[r,l]=e[i];if(Za(l))return{key:r,result:l}}}function Db(t){let e=typeof t=="string"?Sa(t):t;return ba({...e,hash:""})}function c2(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function u2(t){return Ib(t.result)&&$T.has(t.result.status)}function on(t){return t.type==="error"}function Za(t){return(t&&t.type)==="redirect"}function By(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function Ib(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function d2(t){return XT.has(t.toUpperCase())}function cn(t){return YT.has(t.toUpperCase())}function Bh(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function bl(t,e){let i=typeof e=="string"?Sa(e).search:e.search;if(t[t.length-1].route.index&&Bh(i||""))return t[t.length-1];let r=Tb(t);return r[r.length-1]}function zy(t){let{formMethod:e,formAction:i,formEncType:r,text:l,formData:c,json:d}=t;if(!(!e||!i||!r)){if(l!=null)return{formMethod:e,formAction:i,formEncType:r,formData:void 0,json:void 0,text:l};if(c!=null)return{formMethod:e,formAction:i,formEncType:r,formData:c,json:void 0,text:void 0};if(d!==void 0)return{formMethod:e,formAction:i,formEncType:r,formData:void 0,json:d,text:void 0}}}function zf(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function f2(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function gl(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function h2(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function ca(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function p2(t,e){try{let i=t.sessionStorage.getItem(Cb);if(i){let r=JSON.parse(i);for(let[l,c]of Object.entries(r||{}))c&&Array.isArray(c)&&e.set(l,new Set(c||[]))}}catch{}}function m2(t,e){if(e.size>0){let i={};for(let[r,l]of e)i[r]=[...l];try{t.sessionStorage.setItem(Cb,JSON.stringify(i))}catch(r){vt(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function g2(){let t,e,i=new Promise((r,l)=>{t=async c=>{r(c);try{await i}catch{}},e=async c=>{l(c);try{await i}catch{}}});return{promise:i,resolve:t,reject:e}}var or=N.createContext(null);or.displayName="DataRouter";var Il=N.createContext(null);Il.displayName="DataRouterState";var zh=N.createContext({isTransitioning:!1});zh.displayName="ViewTransition";var jb=N.createContext(new Map);jb.displayName="Fetchers";var v2=N.createContext(null);v2.displayName="Await";var Un=N.createContext(null);Un.displayName="Navigation";var su=N.createContext(null);su.displayName="Location";var Hn=N.createContext({outlet:null,matches:[],isDataRoute:!1});Hn.displayName="Route";var Uh=N.createContext(null);Uh.displayName="RouteError";function y2(t,{relative:e}={}){Le(ls(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=N.useContext(Un),{hash:l,pathname:c,search:d}=Ll(t,{relative:e}),p=c;return i!=="/"&&(p=c==="/"?i:Qn([i,c])),r.createHref({pathname:p,search:d,hash:l})}function ls(){return N.useContext(su)!=null}function Rn(){return Le(ls(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(su).location}var Lb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Pb(t){N.useContext(Un).static||N.useLayoutEffect(t)}function jl(){let{isDataRoute:t}=N.useContext(Hn);return t?k2():w2()}function w2(){Le(ls(),"useNavigate() may be used only in the context of a <Router> component.");let t=N.useContext(or),{basename:e,navigator:i}=N.useContext(Un),{matches:r}=N.useContext(Hn),{pathname:l}=Rn(),c=JSON.stringify(au(r)),d=N.useRef(!1);return Pb(()=>{d.current=!0}),N.useCallback((h,m={})=>{if(vt(d.current,Lb),!d.current)return;if(typeof h=="number"){i.go(h);return}let v=ru(h,JSON.parse(c),l,m.relative==="path");t==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:Qn([e,v.pathname])),(m.replace?i.replace:i.push)(v,m.state,m)},[e,i,c,l,t])}var b2=N.createContext(null);function S2(t){let e=N.useContext(Hn).outlet;return e&&N.createElement(b2.Provider,{value:t},e)}function Ll(t,{relative:e}={}){let{matches:i}=N.useContext(Hn),{pathname:r}=Rn(),l=JSON.stringify(au(i));return N.useMemo(()=>ru(t,JSON.parse(l),r,e==="path"),[t,l,r,e])}function E2(t,e,i,r){Le(ls(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=N.useContext(Un),{matches:c}=N.useContext(Hn),d=c[c.length-1],p=d?d.params:{},h=d?d.pathname:"/",m=d?d.pathnameBase:"/",v=d&&d.route;{let E=v&&v.path||"";zb(h,!v||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let b=Rn(),w;w=b;let x=w.pathname||"/",T=x;if(m!=="/"){let E=m.replace(/^\//,"").split("/");T="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let I=ua(t,{pathname:T});return vt(v||I!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),vt(I==null||I[I.length-1].route.element!==void 0||I[I.length-1].route.Component!==void 0||I[I.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),_2(I&&I.map(E=>Object.assign({},E,{params:Object.assign({},p,E.params),pathname:Qn([m,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?m:Qn([m,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),c,i,r)}function x2(){let t=N2(),e=Ml(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",t),d=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:c},"ErrorBoundary")," or"," ",N.createElement("code",{style:c},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},e),i?N.createElement("pre",{style:l},i):null,d)}var T2=N.createElement(x2,null),A2=class extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?N.createElement(Hn.Provider,{value:this.props.routeContext},N.createElement(Uh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function C2({routeContext:t,match:e,children:i}){let r=N.useContext(or);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),N.createElement(Hn.Provider,{value:t},i)}function _2(t,e=[],i=null,r=null){if(t==null){if(!i)return null;if(i.errors)t=i.matches;else if(e.length===0&&!i.initialized&&i.matches.length>0)t=i.matches;else return null}let l=t,c=i?.errors;if(c!=null){let h=l.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);Le(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,h+1))}let d=!1,p=-1;if(i)for(let h=0;h<l.length;h++){let m=l[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(p=h),m.route.id){let{loaderData:v,errors:b}=i,w=m.route.loader&&!v.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||w){d=!0,p>=0?l=l.slice(0,p+1):l=[l[0]];break}}}return l.reduceRight((h,m,v)=>{let b,w=!1,x=null,T=null;i&&(b=c&&m.route.id?c[m.route.id]:void 0,x=m.route.errorElement||T2,d&&(p<0&&v===0?(zb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,T=null):p===v&&(w=!0,T=m.route.hydrateFallbackElement||null)));let I=e.concat(l.slice(0,v+1)),G=()=>{let E;return b?E=x:w?E=T:m.route.Component?E=N.createElement(m.route.Component,null):m.route.element?E=m.route.element:E=h,N.createElement(C2,{match:m,routeContext:{outlet:h,matches:I,isDataRoute:i!=null},children:E})};return i&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?N.createElement(A2,{location:i.location,revalidation:i.revalidation,component:x,error:b,children:G(),routeContext:{outlet:null,matches:I,isDataRoute:!0}}):G()},null)}function Hh(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function O2(t){let e=N.useContext(or);return Le(e,Hh(t)),e}function Bb(t){let e=N.useContext(Il);return Le(e,Hh(t)),e}function R2(t){let e=N.useContext(Hn);return Le(e,Hh(t)),e}function lu(t){let e=R2(t),i=e.matches[e.matches.length-1];return Le(i.route.id,`${t} can only be used on routes that contain a unique "id"`),i.route.id}function M2(){return lu("useRouteId")}function Vh(){let t=Bb("useLoaderData"),e=lu("useLoaderData");return t.loaderData[e]}function N2(){let t=N.useContext(Uh),e=Bb("useRouteError"),i=lu("useRouteError");return t!==void 0?t:e.errors?.[i]}function k2(){let{router:t}=O2("useNavigate"),e=lu("useNavigate"),i=N.useRef(!1);return Pb(()=>{i.current=!0}),N.useCallback(async(l,c={})=>{vt(i.current,Lb),i.current&&(typeof l=="number"?t.navigate(l):await t.navigate(l,{fromRouteId:e,...c}))},[t,e])}var Uy={};function zb(t,e,i){!e&&!Uy[t]&&(Uy[t]=!0,vt(!1,i))}var Hy={};function Vy(t,e){!t&&!Hy[e]&&(Hy[e]=!0,console.warn(e))}function D2(t){let e={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&vt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(e,{element:N.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&vt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(e,{hydrateFallbackElement:N.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&vt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(e,{errorElement:N.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),e}var I2=["HydrateFallback","hydrateFallbackElement"],j2=class{constructor(){this.status="pending",this.promise=new Promise((e,i)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",i(r))}})}};function L2({router:t,flushSync:e}){let[i,r]=N.useState(t.state),[l,c]=N.useState(),[d,p]=N.useState({isTransitioning:!1}),[h,m]=N.useState(),[v,b]=N.useState(),[w,x]=N.useState(),T=N.useRef(new Map),I=N.useCallback((k,{deletedFetchers:Y,flushSync:D,viewTransitionOpts:A})=>{k.fetchers.forEach(($,F)=>{$.data!==void 0&&T.current.set(F,$.data)}),Y.forEach($=>T.current.delete($)),Vy(D===!1||e!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let X=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(Vy(A==null||X,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!A||!X){e&&D?e(()=>r(k)):N.startTransition(()=>r(k));return}if(e&&D){e(()=>{v&&(h&&h.resolve(),v.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let $=t.window.document.startViewTransition(()=>{e(()=>r(k))});$.finished.finally(()=>{e(()=>{m(void 0),b(void 0),c(void 0),p({isTransitioning:!1})})}),e(()=>b($));return}v?(h&&h.resolve(),v.skipTransition(),x({state:k,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(c(k),p({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[t.window,e,v,h]);N.useLayoutEffect(()=>t.subscribe(I),[t,I]),N.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new j2)},[d]),N.useEffect(()=>{if(h&&l&&t.window){let k=l,Y=h.promise,D=t.window.document.startViewTransition(async()=>{N.startTransition(()=>r(k)),await Y});D.finished.finally(()=>{m(void 0),b(void 0),c(void 0),p({isTransitioning:!1})}),b(D)}},[l,h,t.window]),N.useEffect(()=>{h&&l&&i.location.key===l.location.key&&h.resolve()},[h,v,i.location,l]),N.useEffect(()=>{!d.isTransitioning&&w&&(c(w.state),p({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),x(void 0))},[d.isTransitioning,w]);let G=N.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:k=>t.navigate(k),push:(k,Y,D)=>t.navigate(k,{state:Y,preventScrollReset:D?.preventScrollReset}),replace:(k,Y,D)=>t.navigate(k,{replace:!0,state:Y,preventScrollReset:D?.preventScrollReset})}),[t]),E=t.basename||"/",L=N.useMemo(()=>({router:t,navigator:G,static:!1,basename:E}),[t,G,E]);return N.createElement(N.Fragment,null,N.createElement(or.Provider,{value:L},N.createElement(Il.Provider,{value:i},N.createElement(jb.Provider,{value:T.current},N.createElement(zh.Provider,{value:d},N.createElement(U2,{basename:E,location:i.location,navigationType:i.historyAction,navigator:G},N.createElement(P2,{routes:t.routes,future:t.future,state:i})))))),null)}var P2=N.memo(B2);function B2({routes:t,future:e,state:i}){return E2(t,void 0,i,e)}function z2({to:t,replace:e,state:i,relative:r}){Le(ls(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=N.useContext(Un);vt(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=N.useContext(Hn),{pathname:d}=Rn(),p=jl(),h=ru(t,au(c),d,r==="path"),m=JSON.stringify(h);return N.useEffect(()=>{p(JSON.parse(m),{replace:e,state:i,relative:r})},[p,m,r,e,i]),null}function Ub(t){return S2(t.context)}function U2({basename:t="/",children:e=null,location:i,navigationType:r="POP",navigator:l,static:c=!1}){Le(!ls(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),p=N.useMemo(()=>({basename:d,navigator:l,static:c,future:{}}),[d,l,c]);typeof i=="string"&&(i=Sa(i));let{pathname:h="/",search:m="",hash:v="",state:b=null,key:w="default"}=i,x=N.useMemo(()=>{let T=_n(h,d);return T==null?null:{location:{pathname:T,search:m,hash:v,state:b,key:w},navigationType:r}},[d,h,m,v,b,w,r]);return vt(x!=null,`<Router basename="${d}"> is not able to match the URL "${h}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:N.createElement(Un.Provider,{value:p},N.createElement(su.Provider,{children:e,value:x}))}var Ec="get",xc="application/x-www-form-urlencoded";function ou(t){return t!=null&&typeof t.tagName=="string"}function H2(t){return ou(t)&&t.tagName.toLowerCase()==="button"}function V2(t){return ou(t)&&t.tagName.toLowerCase()==="form"}function G2(t){return ou(t)&&t.tagName.toLowerCase()==="input"}function q2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Y2(t,e){return t.button===0&&(!e||e==="_self")&&!q2(t)}var pc=null;function F2(){if(pc===null)try{new FormData(document.createElement("form"),0),pc=!1}catch{pc=!0}return pc}var X2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Uf(t){return t!=null&&!X2.has(t)?(vt(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xc}"`),null):t}function $2(t,e){let i,r,l,c,d;if(V2(t)){let p=t.getAttribute("action");r=p?_n(p,e):null,i=t.getAttribute("method")||Ec,l=Uf(t.getAttribute("enctype"))||xc,c=new FormData(t)}else if(H2(t)||G2(t)&&(t.type==="submit"||t.type==="image")){let p=t.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=t.getAttribute("formaction")||p.getAttribute("action");if(r=h?_n(h,e):null,i=t.getAttribute("formmethod")||p.getAttribute("method")||Ec,l=Uf(t.getAttribute("formenctype"))||Uf(p.getAttribute("enctype"))||xc,c=new FormData(p,t),!F2()){let{name:m,type:v,value:b}=t;if(v==="image"){let w=m?`${m}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else m&&c.append(m,b)}}else{if(ou(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Ec,r=null,l=xc,d=t}return c&&l==="text/plain"&&(d=c,c=void 0),{action:r,method:i.toLowerCase(),encType:l,formData:c,body:d}}function Gh(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function K2(t,e){if(t.id in e)return e[t.id];try{let i=await import(t.module);return e[t.id]=i,i}catch(i){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function W2(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Q2(t,e,i){let r=await Promise.all(t.map(async l=>{let c=e.routes[l.route.id];if(c){let d=await K2(c,i);return d.links?d.links():[]}return[]}));return tA(r.flat(1).filter(W2).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Gy(t,e,i,r,l,c){let d=(h,m)=>i[m]?h.route.id!==i[m].route.id:!0,p=(h,m)=>i[m].pathname!==h.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==h.params["*"];return c==="assets"?e.filter((h,m)=>d(h,m)||p(h,m)):c==="data"?e.filter((h,m)=>{let v=r.routes[h.route.id];if(!v||!v.hasLoader)return!1;if(d(h,m)||p(h,m))return!0;if(h.route.shouldRevalidate){let b=h.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Z2(t,e,{includeHydrateFallback:i}={}){return J2(t.map(r=>{let l=e.routes[r.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),i&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function J2(t){return[...new Set(t)]}function eA(t){let e={},i=Object.keys(t).sort();for(let r of i)e[r]=t[r];return e}function tA(t,e){let i=new Set;return new Set(e),t.reduce((r,l)=>{let c=JSON.stringify(eA(l));return i.has(c)||(i.add(c),r.push({key:c,link:l})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nA=new Set([100,101,204,205]);function iA(t,e){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return i.pathname==="/"?i.pathname="_root.data":e&&_n(i.pathname,e)==="/"?i.pathname=`${e.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function Hb(){let t=N.useContext(or);return Gh(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function aA(){let t=N.useContext(Il);return Gh(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var qh=N.createContext(void 0);qh.displayName="FrameworkContext";function Vb(){let t=N.useContext(qh);return Gh(t,"You must render this element inside a <HydratedRouter> element"),t}function rA(t,e){let i=N.useContext(qh),[r,l]=N.useState(!1),[c,d]=N.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:m,onMouseLeave:v,onTouchStart:b}=e,w=N.useRef(null);N.useEffect(()=>{if(t==="render"&&d(!0),t==="viewport"){let I=E=>{E.forEach(L=>{d(L.isIntersecting)})},G=new IntersectionObserver(I,{threshold:.5});return w.current&&G.observe(w.current),()=>{G.disconnect()}}},[t]),N.useEffect(()=>{if(r){let I=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(I)}}},[r]);let x=()=>{l(!0)},T=()=>{l(!1),d(!1)};return i?t!=="intent"?[c,w,{}]:[c,w,{onFocus:vl(p,x),onBlur:vl(h,T),onMouseEnter:vl(m,x),onMouseLeave:vl(v,T),onTouchStart:vl(b,x)}]:[!1,w,{}]}function vl(t,e){return i=>{t&&t(i),i.defaultPrevented||e(i)}}function sA({page:t,...e}){let{router:i}=Hb(),r=N.useMemo(()=>ua(i.routes,t,i.basename),[i.routes,t,i.basename]);return r?N.createElement(oA,{page:t,matches:r,...e}):null}function lA(t){let{manifest:e,routeModules:i}=Vb(),[r,l]=N.useState([]);return N.useEffect(()=>{let c=!1;return Q2(t,e,i).then(d=>{c||l(d)}),()=>{c=!0}},[t,e,i]),r}function oA({page:t,matches:e,...i}){let r=Rn(),{manifest:l,routeModules:c}=Vb(),{basename:d}=Hb(),{loaderData:p,matches:h}=aA(),m=N.useMemo(()=>Gy(t,e,h,l,r,"data"),[t,e,h,l,r]),v=N.useMemo(()=>Gy(t,e,h,l,r,"assets"),[t,e,h,l,r]),b=N.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let T=new Set,I=!1;if(e.forEach(E=>{let L=l.routes[E.route.id];!L||!L.hasLoader||(!m.some(k=>k.route.id===E.route.id)&&E.route.id in p&&c[E.route.id]?.shouldRevalidate||L.hasClientLoader?I=!0:T.add(E.route.id))}),T.size===0)return[];let G=iA(t,d);return I&&T.size>0&&G.searchParams.set("_routes",e.filter(E=>T.has(E.route.id)).map(E=>E.route.id).join(",")),[G.pathname+G.search]},[d,p,r,l,m,e,t,c]),w=N.useMemo(()=>Z2(v,l),[v,l]),x=lA(v);return N.createElement(N.Fragment,null,b.map(T=>N.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...i})),w.map(T=>N.createElement("link",{key:T,rel:"modulepreload",href:T,...i})),x.map(({key:T,link:I})=>N.createElement("link",{key:T,...I})))}function cA(...t){return e=>{t.forEach(i=>{typeof i=="function"?i(e):i!=null&&(i.current=e)})}}var Gb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gb&&(window.__reactRouterVersion="7.6.3")}catch{}function uA(t,e){return ZT({basename:e?.basename,unstable_getContext:e?.unstable_getContext,future:e?.future,history:wT({window:e?.window}),hydrationData:dA(),routes:t,mapRouteProperties:D2,hydrationRouteProperties:I2,dataStrategy:e?.dataStrategy,patchRoutesOnNavigation:e?.patchRoutesOnNavigation,window:e?.window}).initialize()}function dA(){let t=window?.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:fA(t.errors)}),t}function fA(t){if(!t)return null;let e=Object.entries(t),i={};for(let[r,l]of e)if(l&&l.__type==="RouteErrorResponse")i[r]=new Nc(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let c=window[l.__subType];if(typeof c=="function")try{let d=new c(l.message);d.stack="",i[r]=d}catch{}}if(i[r]==null){let c=new Error(l.message);c.stack="",i[r]=c}}else i[r]=l;return i}var qb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=N.forwardRef(function({onClick:e,discover:i="render",prefetch:r="none",relative:l,reloadDocument:c,replace:d,state:p,target:h,to:m,preventScrollReset:v,viewTransition:b,...w},x){let{basename:T}=N.useContext(Un),I=typeof m=="string"&&qb.test(m),G,E=!1;if(typeof m=="string"&&I&&(G=m,Gb))try{let F=new URL(window.location.href),J=m.startsWith("//")?new URL(F.protocol+m):new URL(m),ie=_n(J.pathname,T);J.origin===F.origin&&ie!=null?m=ie+J.search+J.hash:E=!0}catch{vt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let L=y2(m,{relative:l}),[k,Y,D]=rA(r,w),A=gA(m,{replace:d,state:p,target:h,preventScrollReset:v,relative:l,viewTransition:b});function X(F){e&&e(F),F.defaultPrevented||A(F)}let $=N.createElement("a",{...w,...D,href:G||L,onClick:E||c?e:X,ref:cA(x,Y),target:h,"data-discover":!I&&i==="render"?"true":void 0});return k&&!I?N.createElement(N.Fragment,null,$,N.createElement(sA,{page:L})):$});Pt.displayName="Link";var hA=N.forwardRef(function({"aria-current":e="page",caseSensitive:i=!1,className:r="",end:l=!1,style:c,to:d,viewTransition:p,children:h,...m},v){let b=Ll(d,{relative:m.relative}),w=Rn(),x=N.useContext(Il),{navigator:T,basename:I}=N.useContext(Un),G=x!=null&&SA(b)&&p===!0,E=T.encodeLocation?T.encodeLocation(b).pathname:b.pathname,L=w.pathname,k=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(L=L.toLowerCase(),k=k?k.toLowerCase():null,E=E.toLowerCase()),k&&I&&(k=_n(k,I)||k);const Y=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let D=L===E||!l&&L.startsWith(E)&&L.charAt(Y)==="/",A=k!=null&&(k===E||!l&&k.startsWith(E)&&k.charAt(E.length)==="/"),X={isActive:D,isPending:A,isTransitioning:G},$=D?e:void 0,F;typeof r=="function"?F=r(X):F=[r,D?"active":null,A?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let J=typeof c=="function"?c(X):c;return N.createElement(Pt,{...m,"aria-current":$,className:F,ref:v,style:J,to:d,viewTransition:p},typeof h=="function"?h(X):h)});hA.displayName="NavLink";var pA=N.forwardRef(({discover:t="render",fetcherKey:e,navigate:i,reloadDocument:r,replace:l,state:c,method:d=Ec,action:p,onSubmit:h,relative:m,preventScrollReset:v,viewTransition:b,...w},x)=>{let T=wA(),I=bA(p,{relative:m}),G=d.toLowerCase()==="get"?"get":"post",E=typeof p=="string"&&qb.test(p),L=k=>{if(h&&h(k),k.defaultPrevented)return;k.preventDefault();let Y=k.nativeEvent.submitter,D=Y?.getAttribute("formmethod")||d;T(Y||k.currentTarget,{fetcherKey:e,method:D,navigate:i,replace:l,state:c,relative:m,preventScrollReset:v,viewTransition:b})};return N.createElement("form",{ref:x,method:G,action:I,onSubmit:r?h:L,...w,"data-discover":!E&&t==="render"?"true":void 0})});pA.displayName="Form";function mA(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yb(t){let e=N.useContext(or);return Le(e,mA(t)),e}function gA(t,{target:e,replace:i,state:r,preventScrollReset:l,relative:c,viewTransition:d}={}){let p=jl(),h=Rn(),m=Ll(t,{relative:c});return N.useCallback(v=>{if(Y2(v,e)){v.preventDefault();let b=i!==void 0?i:ba(h)===ba(m);p(t,{replace:b,state:r,preventScrollReset:l,relative:c,viewTransition:d})}},[h,p,m,i,r,e,t,l,c,d])}var vA=0,yA=()=>`__${String(++vA)}__`;function wA(){let{router:t}=Yb("useSubmit"),{basename:e}=N.useContext(Un),i=M2();return N.useCallback(async(r,l={})=>{let{action:c,method:d,encType:p,formData:h,body:m}=$2(r,e);if(l.navigate===!1){let v=l.fetcherKey||yA();await t.fetch(v,i,l.action||c,{preventScrollReset:l.preventScrollReset,formData:h,body:m,formMethod:l.method||d,formEncType:l.encType||p,flushSync:l.flushSync})}else await t.navigate(l.action||c,{preventScrollReset:l.preventScrollReset,formData:h,body:m,formMethod:l.method||d,formEncType:l.encType||p,replace:l.replace,state:l.state,fromRouteId:i,flushSync:l.flushSync,viewTransition:l.viewTransition})},[t,e,i])}function bA(t,{relative:e}={}){let{basename:i}=N.useContext(Un),r=N.useContext(Hn);Le(r,"useFormAction must be used inside a RouteContext");let[l]=r.matches.slice(-1),c={...Ll(t||".",{relative:e})},d=Rn();if(t==null){c.search=d.search;let p=new URLSearchParams(c.search),h=p.getAll("index");if(h.some(v=>v==="")){p.delete("index"),h.filter(b=>b).forEach(b=>p.append("index",b));let v=p.toString();c.search=v?`?${v}`:""}}return(!t||t===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:Qn([i,c.pathname])),ba(c)}function SA(t,e={}){let i=N.useContext(zh);Le(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Yb("useViewTransitionState"),l=Ll(t,{relative:e.relative});if(!i.isTransitioning)return!1;let c=_n(i.currentLocation.pathname,r)||i.currentLocation.pathname,d=_n(i.nextLocation.pathname,r)||i.nextLocation.pathname;return Mc(l.pathname,d)!=null||Mc(l.pathname,c)!=null}[...nA];var EA=cb();/**
 * react-router v7.6.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function xA(t){return N.createElement(L2,{flushSync:EA.flushSync,...t})}const TA=()=>{};var qy={};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Fb=function(t){const e=[];let i=0;for(let r=0;r<t.length;r++){let l=t.charCodeAt(r);l<128?e[i++]=l:l<2048?(e[i++]=l>>6|192,e[i++]=l&63|128):(l&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(l=65536+((l&1023)<<10)+(t.charCodeAt(++r)&1023),e[i++]=l>>18|240,e[i++]=l>>12&63|128,e[i++]=l>>6&63|128,e[i++]=l&63|128):(e[i++]=l>>12|224,e[i++]=l>>6&63|128,e[i++]=l&63|128)}return e},AA=function(t){const e=[];let i=0,r=0;for(;i<t.length;){const l=t[i++];if(l<128)e[r++]=String.fromCharCode(l);else if(l>191&&l<224){const c=t[i++];e[r++]=String.fromCharCode((l&31)<<6|c&63)}else if(l>239&&l<365){const c=t[i++],d=t[i++],p=t[i++],h=((l&7)<<18|(c&63)<<12|(d&63)<<6|p&63)-65536;e[r++]=String.fromCharCode(55296+(h>>10)),e[r++]=String.fromCharCode(56320+(h&1023))}else{const c=t[i++],d=t[i++];e[r++]=String.fromCharCode((l&15)<<12|(c&63)<<6|d&63)}}return e.join("")},Xb={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const i=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let l=0;l<t.length;l+=3){const c=t[l],d=l+1<t.length,p=d?t[l+1]:0,h=l+2<t.length,m=h?t[l+2]:0,v=c>>2,b=(c&3)<<4|p>>4;let w=(p&15)<<2|m>>6,x=m&63;h||(x=64,d||(w=64)),r.push(i[v],i[b],i[w],i[x])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(Fb(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):AA(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const i=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let l=0;l<t.length;){const c=i[t.charAt(l++)],p=l<t.length?i[t.charAt(l)]:0;++l;const m=l<t.length?i[t.charAt(l)]:64;++l;const b=l<t.length?i[t.charAt(l)]:64;if(++l,c==null||p==null||m==null||b==null)throw new CA;const w=c<<2|p>>4;if(r.push(w),m!==64){const x=p<<4&240|m>>2;if(r.push(x),b!==64){const T=m<<6&192|b;r.push(T)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class CA extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const _A=function(t){const e=Fb(t);return Xb.encodeByteArray(e,!0)},$b=function(t){return _A(t).replace(/\./g,"")},Kb=function(t){try{return Xb.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function OA(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const RA=()=>OA().__FIREBASE_DEFAULTS__,MA=()=>{if(typeof process>"u"||typeof qy>"u")return;const t=qy.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},NA=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&Kb(t[1]);return e&&JSON.parse(e)},Yh=()=>{try{return TA()||RA()||MA()||NA()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},kA=t=>{var e,i;return(i=(e=Yh())===null||e===void 0?void 0:e.emulatorHosts)===null||i===void 0?void 0:i[t]},Wb=()=>{var t;return(t=Yh())===null||t===void 0?void 0:t.config},Qb=t=>{var e;return(e=Yh())===null||e===void 0?void 0:e[`_${t}`]};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class DA{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,i)=>{this.resolve=e,this.reject=i})}wrapCallback(e){return(i,r)=>{i?this.reject(i):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(i):e(i,r))}}}/**
 * @license
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function cu(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function IA(t){return(await fetch(t,{credentials:"include"})).ok}const xl={};function jA(){const t={prod:[],emulator:[]};for(const e of Object.keys(xl))xl[e]?t.emulator.push(e):t.prod.push(e);return t}function LA(t){let e=document.getElementById(t),i=!1;return e||(e=document.createElement("div"),e.setAttribute("id",t),i=!0),{created:i,element:e}}let Yy=!1;function PA(t,e){if(typeof window>"u"||typeof document>"u"||!cu(window.location.host)||xl[t]===e||xl[t]||Yy)return;xl[t]=e;function i(w){return`__firebase__banner__${w}`}const r="__firebase__banner",c=jA().prod.length>0;function d(){const w=document.getElementById(r);w&&w.remove()}function p(w){w.style.display="flex",w.style.background="#7faaf0",w.style.position="fixed",w.style.bottom="5px",w.style.left="5px",w.style.padding=".5em",w.style.borderRadius="5px",w.style.alignItems="center"}function h(w,x){w.setAttribute("width","24"),w.setAttribute("id",x),w.setAttribute("height","24"),w.setAttribute("viewBox","0 0 24 24"),w.setAttribute("fill","none"),w.style.marginLeft="-6px"}function m(){const w=document.createElement("span");return w.style.cursor="pointer",w.style.marginLeft="16px",w.style.fontSize="24px",w.innerHTML=" &times;",w.onclick=()=>{Yy=!0,d()},w}function v(w,x){w.setAttribute("id",x),w.innerText="Learn more",w.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",w.setAttribute("target","__blank"),w.style.paddingLeft="5px",w.style.textDecoration="underline"}function b(){const w=LA(r),x=i("text"),T=document.getElementById(x)||document.createElement("span"),I=i("learnmore"),G=document.getElementById(I)||document.createElement("a"),E=i("preprendIcon"),L=document.getElementById(E)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(w.created){const k=w.element;p(k),v(G,I);const Y=m();h(L,E),k.append(L,T,G,Y),document.body.appendChild(k)}c?(T.innerText="Preview backend disconnected.",L.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
</g>
<defs>
<clipPath id="clip0_6013_33858">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>`):(L.innerHTML=`<g clip-path="url(#clip0_6083_34804)">
<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
</g>
<defs>
<clipPath id="clip0_6083_34804">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>`,T.innerText="Preview backend running in this workspace."),T.setAttribute("id",x)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",b):b()}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Bt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function BA(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Bt())}function zA(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Zb(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function UA(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function HA(){const t=Bt();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function Jb(){try{return typeof indexedDB=="object"}catch{return!1}}function e0(){return new Promise((t,e)=>{try{let i=!0;const r="validate-browser-context-for-indexeddb-analytics-module",l=self.indexedDB.open(r);l.onsuccess=()=>{l.result.close(),i||self.indexedDB.deleteDatabase(r),t(!0)},l.onupgradeneeded=()=>{i=!1},l.onerror=()=>{var c;e(((c=l.error)===null||c===void 0?void 0:c.message)||"")}}catch(i){e(i)}})}function VA(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const GA="FirebaseError";class ii extends Error{constructor(e,i,r){super(i),this.code=e,this.customData=r,this.name=GA,Object.setPrototypeOf(this,ii.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,cr.prototype.create)}}class cr{constructor(e,i,r){this.service=e,this.serviceName=i,this.errors=r}create(e,...i){const r=i[0]||{},l=`${this.service}/${e}`,c=this.errors[e],d=c?qA(c,r):"Error",p=`${this.serviceName}: ${d} (${l}).`;return new ii(l,p,r)}}function qA(t,e){return t.replace(YA,(i,r)=>{const l=e[r];return l!=null?String(l):`<${r}?>`})}const YA=/\{\$([^}]+)}/g;function FA(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function tr(t,e){if(t===e)return!0;const i=Object.keys(t),r=Object.keys(e);for(const l of i){if(!r.includes(l))return!1;const c=t[l],d=e[l];if(Fy(c)&&Fy(d)){if(!tr(c,d))return!1}else if(c!==d)return!1}for(const l of r)if(!i.includes(l))return!1;return!0}function Fy(t){return t!==null&&typeof t=="object"}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Pl(t){const e=[];for(const[i,r]of Object.entries(t))Array.isArray(r)?r.forEach(l=>{e.push(encodeURIComponent(i)+"="+encodeURIComponent(l))}):e.push(encodeURIComponent(i)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function Sl(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[l,c]=r.split("=");e[decodeURIComponent(l)]=decodeURIComponent(c)}}),e}function El(t){const e=t.indexOf("?");if(!e)return"";const i=t.indexOf("#",e);return t.substring(e,i>0?i:void 0)}function XA(t,e){const i=new $A(t,e);return i.subscribe.bind(i)}class $A{constructor(e,i){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=i,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(i=>{i.next(e)})}error(e){this.forEachObserver(i=>{i.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,i,r){let l;if(e===void 0&&i===void 0&&r===void 0)throw new Error("Missing Observer.");KA(e,["next","error","complete"])?l=e:l={next:e,error:i,complete:r},l.next===void 0&&(l.next=Hf),l.error===void 0&&(l.error=Hf),l.complete===void 0&&(l.complete=Hf);const c=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?l.error(this.finalError):l.complete()}catch{}}),this.observers.push(l),c}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let i=0;i<this.observers.length;i++)this.sendOne(i,e)}sendOne(e,i){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{i(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function KA(t,e){if(typeof t!="object"||t===null)return!1;for(const i of e)if(i in t&&typeof t[i]=="function")return!0;return!1}function Hf(){}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const WA=1e3,QA=2,ZA=4*60*60*1e3,JA=.5;function Xy(t,e=WA,i=QA){const r=e*Math.pow(i,t),l=Math.round(JA*r*(Math.random()-.5)*2);return Math.min(ZA,r+l)}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Vn(t){return t&&t._delegate?t._delegate:t}class ti{constructor(e,i,r){this.name=e,this.instanceFactory=i,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const $a="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eC{constructor(e,i){this.name=e,this.container=i,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const i=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(i)){const r=new DA;if(this.instancesDeferred.set(i,r),this.isInitialized(i)||this.shouldAutoInitialize())try{const l=this.getOrInitializeService({instanceIdentifier:i});l&&r.resolve(l)}catch{}}return this.instancesDeferred.get(i).promise}getImmediate(e){var i;const r=this.normalizeInstanceIdentifier(e?.identifier),l=(i=e?.optional)!==null&&i!==void 0?i:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(c){if(l)return null;throw c}else{if(l)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(nC(e))try{this.getOrInitializeService({instanceIdentifier:$a})}catch{}for(const[i,r]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(i);try{const c=this.getOrInitializeService({instanceIdentifier:l});r.resolve(c)}catch{}}}}clearInstance(e=$a){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(i=>"INTERNAL"in i).map(i=>i.INTERNAL.delete()),...e.filter(i=>"_delete"in i).map(i=>i._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=$a){return this.instances.has(e)}getOptions(e=$a){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:i={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const l=this.getOrInitializeService({instanceIdentifier:r,options:i});for(const[c,d]of this.instancesDeferred.entries()){const p=this.normalizeInstanceIdentifier(c);r===p&&d.resolve(l)}return l}onInit(e,i){var r;const l=this.normalizeInstanceIdentifier(i),c=(r=this.onInitCallbacks.get(l))!==null&&r!==void 0?r:new Set;c.add(e),this.onInitCallbacks.set(l,c);const d=this.instances.get(l);return d&&e(d,l),()=>{c.delete(e)}}invokeOnInitCallbacks(e,i){const r=this.onInitCallbacks.get(i);if(r)for(const l of r)try{l(e,i)}catch{}}getOrInitializeService({instanceIdentifier:e,options:i={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:tC(e),options:i}),this.instances.set(e,r),this.instancesOptions.set(e,i),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=$a){return this.component?this.component.multipleInstances?e:$a:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function tC(t){return t===$a?void 0:t}function nC(t){return t.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class iC{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const i=this.getProvider(e.name);if(i.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);i.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const i=new eC(e,this);return this.providers.set(e,i),i}getProviders(){return Array.from(this.providers.values())}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var tt;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(tt||(tt={}));const aC={debug:tt.DEBUG,verbose:tt.VERBOSE,info:tt.INFO,warn:tt.WARN,error:tt.ERROR,silent:tt.SILENT},rC=tt.INFO,sC={[tt.DEBUG]:"log",[tt.VERBOSE]:"log",[tt.INFO]:"info",[tt.WARN]:"warn",[tt.ERROR]:"error"},lC=(t,e,...i)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),l=sC[e];if(l)console[l](`[${r}]  ${t.name}:`,...i);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Fh{constructor(e){this.name=e,this._logLevel=rC,this._logHandler=lC,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in tt))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?aC[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,tt.DEBUG,...e),this._logHandler(this,tt.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,tt.VERBOSE,...e),this._logHandler(this,tt.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,tt.INFO,...e),this._logHandler(this,tt.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,tt.WARN,...e),this._logHandler(this,tt.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,tt.ERROR,...e),this._logHandler(this,tt.ERROR,...e)}}const oC=(t,e)=>e.some(i=>t instanceof i);let $y,Ky;function cC(){return $y||($y=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function uC(){return Ky||(Ky=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const t0=new WeakMap,gh=new WeakMap,n0=new WeakMap,Vf=new WeakMap,Xh=new WeakMap;function dC(t){const e=new Promise((i,r)=>{const l=()=>{t.removeEventListener("success",c),t.removeEventListener("error",d)},c=()=>{i(ya(t.result)),l()},d=()=>{r(t.error),l()};t.addEventListener("success",c),t.addEventListener("error",d)});return e.then(i=>{i instanceof IDBCursor&&t0.set(i,t)}).catch(()=>{}),Xh.set(e,t),e}function fC(t){if(gh.has(t))return;const e=new Promise((i,r)=>{const l=()=>{t.removeEventListener("complete",c),t.removeEventListener("error",d),t.removeEventListener("abort",d)},c=()=>{i(),l()},d=()=>{r(t.error||new DOMException("AbortError","AbortError")),l()};t.addEventListener("complete",c),t.addEventListener("error",d),t.addEventListener("abort",d)});gh.set(t,e)}let vh={get(t,e,i){if(t instanceof IDBTransaction){if(e==="done")return gh.get(t);if(e==="objectStoreNames")return t.objectStoreNames||n0.get(t);if(e==="store")return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return ya(t[e])},set(t,e,i){return t[e]=i,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function hC(t){vh=t(vh)}function pC(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...i){const r=t.call(Gf(this),e,...i);return n0.set(r,e.sort?e.sort():[e]),ya(r)}:uC().includes(t)?function(...e){return t.apply(Gf(this),e),ya(t0.get(this))}:function(...e){return ya(t.apply(Gf(this),e))}}function mC(t){return typeof t=="function"?pC(t):(t instanceof IDBTransaction&&fC(t),oC(t,cC())?new Proxy(t,vh):t)}function ya(t){if(t instanceof IDBRequest)return dC(t);if(Vf.has(t))return Vf.get(t);const e=mC(t);return e!==t&&(Vf.set(t,e),Xh.set(e,t)),e}const Gf=t=>Xh.get(t);function i0(t,e,{blocked:i,upgrade:r,blocking:l,terminated:c}={}){const d=indexedDB.open(t,e),p=ya(d);return r&&d.addEventListener("upgradeneeded",h=>{r(ya(d.result),h.oldVersion,h.newVersion,ya(d.transaction),h)}),i&&d.addEventListener("blocked",h=>i(h.oldVersion,h.newVersion,h)),p.then(h=>{c&&h.addEventListener("close",()=>c()),l&&h.addEventListener("versionchange",m=>l(m.oldVersion,m.newVersion,m))}).catch(()=>{}),p}const gC=["get","getKey","getAll","getAllKeys","count"],vC=["put","add","delete","clear"],qf=new Map;function Wy(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(qf.get(e))return qf.get(e);const i=e.replace(/FromIndex$/,""),r=e!==i,l=vC.includes(i);if(!(i in(r?IDBIndex:IDBObjectStore).prototype)||!(l||gC.includes(i)))return;const c=async function(d,...p){const h=this.transaction(d,l?"readwrite":"readonly");let m=h.store;return r&&(m=m.index(p.shift())),(await Promise.all([m[i](...p),l&&h.done]))[0]};return qf.set(e,c),c}hC(t=>({...t,get:(e,i,r)=>Wy(e,i)||t.get(e,i,r),has:(e,i)=>!!Wy(e,i)||t.has(e,i)}));/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class yC{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(i=>{if(wC(i)){const r=i.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(i=>i).join(" ")}}function wC(t){const e=t.getComponent();return e?.type==="VERSION"}const yh="@firebase/app",Qy="0.13.2";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Mi=new Fh("@firebase/app"),bC="@firebase/app-compat",SC="@firebase/analytics-compat",EC="@firebase/analytics",xC="@firebase/app-check-compat",TC="@firebase/app-check",AC="@firebase/auth",CC="@firebase/auth-compat",_C="@firebase/database",OC="@firebase/data-connect",RC="@firebase/database-compat",MC="@firebase/functions",NC="@firebase/functions-compat",kC="@firebase/installations",DC="@firebase/installations-compat",IC="@firebase/messaging",jC="@firebase/messaging-compat",LC="@firebase/performance",PC="@firebase/performance-compat",BC="@firebase/remote-config",zC="@firebase/remote-config-compat",UC="@firebase/storage",HC="@firebase/storage-compat",VC="@firebase/firestore",GC="@firebase/ai",qC="@firebase/firestore-compat",YC="firebase",FC="11.10.0";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const wh="[DEFAULT]",XC={[yh]:"fire-core",[bC]:"fire-core-compat",[EC]:"fire-analytics",[SC]:"fire-analytics-compat",[TC]:"fire-app-check",[xC]:"fire-app-check-compat",[AC]:"fire-auth",[CC]:"fire-auth-compat",[_C]:"fire-rtdb",[OC]:"fire-data-connect",[RC]:"fire-rtdb-compat",[MC]:"fire-fn",[NC]:"fire-fn-compat",[kC]:"fire-iid",[DC]:"fire-iid-compat",[IC]:"fire-fcm",[jC]:"fire-fcm-compat",[LC]:"fire-perf",[PC]:"fire-perf-compat",[BC]:"fire-rc",[zC]:"fire-rc-compat",[UC]:"fire-gcs",[HC]:"fire-gcs-compat",[VC]:"fire-fst",[qC]:"fire-fst-compat",[GC]:"fire-vertex","fire-js":"fire-js",[YC]:"fire-js-all"};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Dc=new Map,$C=new Map,bh=new Map;function Zy(t,e){try{t.container.addComponent(e)}catch(i){Mi.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,i)}}function Ni(t){const e=t.name;if(bh.has(e))return Mi.debug(`There were multiple attempts to register component ${e}.`),!1;bh.set(e,t);for(const i of Dc.values())Zy(i,t);for(const i of $C.values())Zy(i,t);return!0}function os(t,e){const i=t.container.getProvider("heartbeat").getImmediate({optional:!0});return i&&i.triggerHeartbeat(),t.container.getProvider(e)}function Pn(t){return t==null?!1:t.settings!==void 0}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const KC={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},wa=new cr("app","Firebase",KC);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class WC{constructor(e,i,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},i),this._name=i.name,this._automaticDataCollectionEnabled=i.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new ti("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw wa.create("app-deleted",{appName:this._name})}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Bl=FC;function a0(t,e={}){let i=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:wh,automaticDataCollectionEnabled:!0},e),l=r.name;if(typeof l!="string"||!l)throw wa.create("bad-app-name",{appName:String(l)});if(i||(i=Wb()),!i)throw wa.create("no-options");const c=Dc.get(l);if(c){if(tr(i,c.options)&&tr(r,c.config))return c;throw wa.create("duplicate-app",{appName:l})}const d=new iC(l);for(const h of bh.values())d.addComponent(h);const p=new WC(i,r,d);return Dc.set(l,p),p}function r0(t=wh){const e=Dc.get(t);if(!e&&t===wh&&Wb())return a0();if(!e)throw wa.create("no-app",{appName:t});return e}function Zn(t,e,i){var r;let l=(r=XC[t])!==null&&r!==void 0?r:t;i&&(l+=`-${i}`);const c=l.match(/\s|\//),d=e.match(/\s|\//);if(c||d){const p=[`Unable to register library "${l}" with version "${e}":`];c&&p.push(`library name "${l}" contains illegal characters (whitespace or "/")`),c&&d&&p.push("and"),d&&p.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Mi.warn(p.join(" "));return}Ni(new ti(`${l}-version`,()=>({library:l,version:e}),"VERSION"))}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const QC="firebase-heartbeat-database",ZC=1,Nl="firebase-heartbeat-store";let Yf=null;function s0(){return Yf||(Yf=i0(QC,ZC,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Nl)}catch(i){console.warn(i)}}}}).catch(t=>{throw wa.create("idb-open",{originalErrorMessage:t.message})})),Yf}async function JC(t){try{const i=(await s0()).transaction(Nl),r=await i.objectStore(Nl).get(l0(t));return await i.done,r}catch(e){if(e instanceof ii)Mi.warn(e.message);else{const i=wa.create("idb-get",{originalErrorMessage:e?.message});Mi.warn(i.message)}}}async function Jy(t,e){try{const r=(await s0()).transaction(Nl,"readwrite");await r.objectStore(Nl).put(e,l0(t)),await r.done}catch(i){if(i instanceof ii)Mi.warn(i.message);else{const r=wa.create("idb-set",{originalErrorMessage:i?.message});Mi.warn(r.message)}}}function l0(t){return`${t.name}!${t.options.appId}`}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const e_=1024,t_=30;class n_{constructor(e){this.container=e,this._heartbeatsCache=null;const i=this.container.getProvider("app").getImmediate();this._storage=new a_(i),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,i;try{const l=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),c=ew();if(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((i=this._heartbeatsCache)===null||i===void 0?void 0:i.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===c||this._heartbeatsCache.heartbeats.some(d=>d.date===c))return;if(this._heartbeatsCache.heartbeats.push({date:c,agent:l}),this._heartbeatsCache.heartbeats.length>t_){const d=r_(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(d,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){Mi.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const i=ew(),{heartbeatsToSend:r,unsentEntries:l}=i_(this._heartbeatsCache.heartbeats),c=$b(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=i,l.length>0?(this._heartbeatsCache.heartbeats=l,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),c}catch(i){return Mi.warn(i),""}}}function ew(){return new Date().toISOString().substring(0,10)}function i_(t,e=e_){const i=[];let r=t.slice();for(const l of t){const c=i.find(d=>d.agent===l.agent);if(c){if(c.dates.push(l.date),tw(i)>e){c.dates.pop();break}}else if(i.push({agent:l.agent,dates:[l.date]}),tw(i)>e){i.pop();break}r=r.slice(1)}return{heartbeatsToSend:i,unsentEntries:r}}class a_{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Jb()?e0().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const i=await JC(this.app);return i?.heartbeats?i:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var i;if(await this._canUseIndexedDBPromise){const l=await this.read();return Jy(this.app,{lastSentHeartbeatDate:(i=e.lastSentHeartbeatDate)!==null&&i!==void 0?i:l.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var i;if(await this._canUseIndexedDBPromise){const l=await this.read();return Jy(this.app,{lastSentHeartbeatDate:(i=e.lastSentHeartbeatDate)!==null&&i!==void 0?i:l.lastSentHeartbeatDate,heartbeats:[...l.heartbeats,...e.heartbeats]})}else return}}function tw(t){return $b(JSON.stringify({version:2,heartbeats:t})).length}function r_(t){if(t.length===0)return-1;let e=0,i=t[0].date;for(let r=1;r<t.length;r++)t[r].date<i&&(i=t[r].date,e=r);return e}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function s_(t){Ni(new ti("platform-logger",e=>new yC(e),"PRIVATE")),Ni(new ti("heartbeat",e=>new n_(e),"PRIVATE")),Zn(yh,Qy,t),Zn(yh,Qy,"esm2017"),Zn("fire-js","")}s_("");function $h(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(t);l<r.length;l++)e.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(t,r[l])&&(i[r[l]]=t[r[l]]);return i}function o0(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const l_=o0,c0=new cr("auth","Firebase",o0());/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ic=new Fh("@firebase/auth");function o_(t,...e){Ic.logLevel<=tt.WARN&&Ic.warn(`Auth (${Bl}): ${t}`,...e)}function Tc(t,...e){Ic.logLevel<=tt.ERROR&&Ic.error(`Auth (${Bl}): ${t}`,...e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zn(t,...e){throw Kh(t,...e)}function Jn(t,...e){return Kh(t,...e)}function u0(t,e,i){const r=Object.assign(Object.assign({},l_()),{[e]:i});return new cr("auth","Firebase",r).create(e,{appName:t.name})}function Oi(t){return u0(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Kh(t,...e){if(typeof t!="string"){const i=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(i,...r)}return c0.create(t,...e)}function Ae(t,e,...i){if(!t)throw Kh(e,...i)}function Ai(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Tc(e),new Error(e)}function ki(t,e){t||Ai(e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Sh(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function c_(){return nw()==="http:"||nw()==="https:"}function nw(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function u_(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(c_()||Zb()||"connection"in navigator)?navigator.onLine:!0}function d_(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class zl{constructor(e,i){this.shortDelay=e,this.longDelay=i,ki(i>e,"Short delay should be less than long delay!"),this.isMobile=BA()||UA()}get(){return u_()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Wh(t,e){ki(t.emulator,"Emulator should always be set here");const{url:i}=t.emulator;return e?`${i}${e.startsWith("/")?e.slice(1):e}`:i}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class d0{static initialize(e,i,r){this.fetchImpl=e,i&&(this.headersImpl=i),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Ai("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Ai("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Ai("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const f_={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const h_=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],p_=new zl(3e4,6e4);function Di(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function Ii(t,e,i,r,l={}){return f0(t,l,async()=>{let c={},d={};r&&(e==="GET"?d=r:c={body:JSON.stringify(r)});const p=Pl(Object.assign({key:t.config.apiKey},d)).slice(1),h=await t._getAdditionalHeaders();h["Content-Type"]="application/json",t.languageCode&&(h["X-Firebase-Locale"]=t.languageCode);const m=Object.assign({method:e,headers:h},c);return zA()||(m.referrerPolicy="no-referrer"),t.emulatorConfig&&cu(t.emulatorConfig.host)&&(m.credentials="include"),d0.fetch()(await h0(t,t.config.apiHost,i,p),m)})}async function f0(t,e,i){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},f_),e);try{const l=new g_(t),c=await Promise.race([i(),l.promise]);l.clearNetworkTimeout();const d=await c.json();if("needConfirmation"in d)throw mc(t,"account-exists-with-different-credential",d);if(c.ok&&!("errorMessage"in d))return d;{const p=c.ok?d.errorMessage:d.error.message,[h,m]=p.split(" : ");if(h==="FEDERATED_USER_ID_ALREADY_LINKED")throw mc(t,"credential-already-in-use",d);if(h==="EMAIL_EXISTS")throw mc(t,"email-already-in-use",d);if(h==="USER_DISABLED")throw mc(t,"user-disabled",d);const v=r[h]||h.toLowerCase().replace(/[_\s]+/g,"-");if(m)throw u0(t,v,m);zn(t,v)}}catch(l){if(l instanceof ii)throw l;zn(t,"network-request-failed",{message:String(l)})}}async function Ul(t,e,i,r,l={}){const c=await Ii(t,e,i,r,l);return"mfaPendingCredential"in c&&zn(t,"multi-factor-auth-required",{_serverResponse:c}),c}async function h0(t,e,i,r){const l=`${e}${i}?${r}`,c=t,d=c.config.emulator?Wh(t.config,l):`${t.config.apiScheme}://${l}`;return h_.includes(i)&&(await c._persistenceManagerAvailable,c._getPersistenceType()==="COOKIE")?c._getPersistence()._getFinalTarget(d).toString():d}function m_(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class g_{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((i,r)=>{this.timer=setTimeout(()=>r(Jn(this.auth,"network-request-failed")),p_.get())})}}function mc(t,e,i){const r={appName:t.name};i.email&&(r.email=i.email),i.phoneNumber&&(r.phoneNumber=i.phoneNumber);const l=Jn(t,e,r);return l.customData._tokenResponse=i,l}function iw(t){return t!==void 0&&t.enterprise!==void 0}class v_{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const i of this.recaptchaEnforcementState)if(i.provider&&i.provider===e)return m_(i.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function y_(t,e){return Ii(t,"GET","/v2/recaptchaConfig",Di(t,e))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function w_(t,e){return Ii(t,"POST","/v1/accounts:delete",e)}async function jc(t,e){return Ii(t,"POST","/v1/accounts:lookup",e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Tl(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function b_(t,e=!1){const i=Vn(t),r=await i.getIdToken(e),l=Qh(r);Ae(l&&l.exp&&l.auth_time&&l.iat,i.auth,"internal-error");const c=typeof l.firebase=="object"?l.firebase:void 0,d=c?.sign_in_provider;return{claims:l,token:r,authTime:Tl(Ff(l.auth_time)),issuedAtTime:Tl(Ff(l.iat)),expirationTime:Tl(Ff(l.exp)),signInProvider:d||null,signInSecondFactor:c?.sign_in_second_factor||null}}function Ff(t){return Number(t)*1e3}function Qh(t){const[e,i,r]=t.split(".");if(e===void 0||i===void 0||r===void 0)return Tc("JWT malformed, contained fewer than 3 sections"),null;try{const l=Kb(i);return l?JSON.parse(l):(Tc("Failed to decode base64 JWT payload"),null)}catch(l){return Tc("Caught error parsing JWT payload as JSON",l?.toString()),null}}function aw(t){const e=Qh(t);return Ae(e,"internal-error"),Ae(typeof e.exp<"u","internal-error"),Ae(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function kl(t,e,i=!1){if(i)return e;try{return await e}catch(r){throw r instanceof ii&&S_(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function S_({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class E_{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var i;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const l=((i=this.user.stsTokenManager.expirationTime)!==null&&i!==void 0?i:0)-Date.now()-3e5;return Math.max(0,l)}}schedule(e=!1){if(!this.isRunning)return;const i=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},i)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Eh{constructor(e,i){this.createdAt=e,this.lastLoginAt=i,this._initializeTime()}_initializeTime(){this.lastSignInTime=Tl(this.lastLoginAt),this.creationTime=Tl(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Lc(t){var e;const i=t.auth,r=await t.getIdToken(),l=await kl(t,jc(i,{idToken:r}));Ae(l?.users.length,i,"internal-error");const c=l.users[0];t._notifyReloadListener(c);const d=!((e=c.providerUserInfo)===null||e===void 0)&&e.length?p0(c.providerUserInfo):[],p=T_(t.providerData,d),h=t.isAnonymous,m=!(t.email&&c.passwordHash)&&!p?.length,v=h?m:!1,b={uid:c.localId,displayName:c.displayName||null,photoURL:c.photoUrl||null,email:c.email||null,emailVerified:c.emailVerified||!1,phoneNumber:c.phoneNumber||null,tenantId:c.tenantId||null,providerData:p,metadata:new Eh(c.createdAt,c.lastLoginAt),isAnonymous:v};Object.assign(t,b)}async function x_(t){const e=Vn(t);await Lc(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function T_(t,e){return[...t.filter(r=>!e.some(l=>l.providerId===r.providerId)),...e]}function p0(t){return t.map(e=>{var{providerId:i}=e,r=$h(e,["providerId"]);return{providerId:i,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function A_(t,e){const i=await f0(t,{},async()=>{const r=Pl({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:l,apiKey:c}=t.config,d=await h0(t,l,"/v1/token",`key=${c}`),p=await t._getAdditionalHeaders();p["Content-Type"]="application/x-www-form-urlencoded";const h={method:"POST",headers:p,body:r};return t.emulatorConfig&&cu(t.emulatorConfig.host)&&(h.credentials="include"),d0.fetch()(d,h)});return{accessToken:i.access_token,expiresIn:i.expires_in,refreshToken:i.refresh_token}}async function C_(t,e){return Ii(t,"POST","/v2/accounts:revokeToken",Di(t,e))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Jr{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ae(e.idToken,"internal-error"),Ae(typeof e.idToken<"u","internal-error"),Ae(typeof e.refreshToken<"u","internal-error");const i="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):aw(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,i)}updateFromIdToken(e){Ae(e.length!==0,"internal-error");const i=aw(e);this.updateTokensAndExpiration(e,null,i)}async getToken(e,i=!1){return!i&&this.accessToken&&!this.isExpired?this.accessToken:(Ae(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,i){const{accessToken:r,refreshToken:l,expiresIn:c}=await A_(e,i);this.updateTokensAndExpiration(r,l,Number(c))}updateTokensAndExpiration(e,i,r){this.refreshToken=i||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,i){const{refreshToken:r,accessToken:l,expirationTime:c}=i,d=new Jr;return r&&(Ae(typeof r=="string","internal-error",{appName:e}),d.refreshToken=r),l&&(Ae(typeof l=="string","internal-error",{appName:e}),d.accessToken=l),c&&(Ae(typeof c=="number","internal-error",{appName:e}),d.expirationTime=c),d}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Jr,this.toJSON())}_performRefresh(){return Ai("not implemented")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function oa(t,e){Ae(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Bn{constructor(e){var{uid:i,auth:r,stsTokenManager:l}=e,c=$h(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new E_(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=i,this.auth=r,this.stsTokenManager=l,this.accessToken=l.accessToken,this.displayName=c.displayName||null,this.email=c.email||null,this.emailVerified=c.emailVerified||!1,this.phoneNumber=c.phoneNumber||null,this.photoURL=c.photoURL||null,this.isAnonymous=c.isAnonymous||!1,this.tenantId=c.tenantId||null,this.providerData=c.providerData?[...c.providerData]:[],this.metadata=new Eh(c.createdAt||void 0,c.lastLoginAt||void 0)}async getIdToken(e){const i=await kl(this,this.stsTokenManager.getToken(this.auth,e));return Ae(i,this.auth,"internal-error"),this.accessToken!==i&&(this.accessToken=i,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),i}getIdTokenResult(e){return b_(this,e)}reload(){return x_(this)}_assign(e){this!==e&&(Ae(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(i=>Object.assign({},i)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const i=new Bn(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return i.metadata._copy(this.metadata),i}_onReload(e){Ae(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,i=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),i&&await Lc(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Pn(this.auth.app))return Promise.reject(Oi(this.auth));const e=await this.getIdToken();return await kl(this,w_(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,i){var r,l,c,d,p,h,m,v;const b=(r=i.displayName)!==null&&r!==void 0?r:void 0,w=(l=i.email)!==null&&l!==void 0?l:void 0,x=(c=i.phoneNumber)!==null&&c!==void 0?c:void 0,T=(d=i.photoURL)!==null&&d!==void 0?d:void 0,I=(p=i.tenantId)!==null&&p!==void 0?p:void 0,G=(h=i._redirectEventId)!==null&&h!==void 0?h:void 0,E=(m=i.createdAt)!==null&&m!==void 0?m:void 0,L=(v=i.lastLoginAt)!==null&&v!==void 0?v:void 0,{uid:k,emailVerified:Y,isAnonymous:D,providerData:A,stsTokenManager:X}=i;Ae(k&&X,e,"internal-error");const $=Jr.fromJSON(this.name,X);Ae(typeof k=="string",e,"internal-error"),oa(b,e.name),oa(w,e.name),Ae(typeof Y=="boolean",e,"internal-error"),Ae(typeof D=="boolean",e,"internal-error"),oa(x,e.name),oa(T,e.name),oa(I,e.name),oa(G,e.name),oa(E,e.name),oa(L,e.name);const F=new Bn({uid:k,auth:e,email:w,emailVerified:Y,displayName:b,isAnonymous:D,photoURL:T,phoneNumber:x,tenantId:I,stsTokenManager:$,createdAt:E,lastLoginAt:L});return A&&Array.isArray(A)&&(F.providerData=A.map(J=>Object.assign({},J))),G&&(F._redirectEventId=G),F}static async _fromIdTokenResponse(e,i,r=!1){const l=new Jr;l.updateFromServerResponse(i);const c=new Bn({uid:i.localId,auth:e,stsTokenManager:l,isAnonymous:r});return await Lc(c),c}static async _fromGetAccountInfoResponse(e,i,r){const l=i.users[0];Ae(l.localId!==void 0,"internal-error");const c=l.providerUserInfo!==void 0?p0(l.providerUserInfo):[],d=!(l.email&&l.passwordHash)&&!c?.length,p=new Jr;p.updateFromIdToken(r);const h=new Bn({uid:l.localId,auth:e,stsTokenManager:p,isAnonymous:d}),m={uid:l.localId,displayName:l.displayName||null,photoURL:l.photoUrl||null,email:l.email||null,emailVerified:l.emailVerified||!1,phoneNumber:l.phoneNumber||null,tenantId:l.tenantId||null,providerData:c,metadata:new Eh(l.createdAt,l.lastLoginAt),isAnonymous:!(l.email&&l.passwordHash)&&!c?.length};return Object.assign(h,m),h}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const rw=new Map;function Ci(t){ki(t instanceof Function,"Expected a class definition");let e=rw.get(t);return e?(ki(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,rw.set(t,e),e)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class m0{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,i){this.storage[e]=i}async _get(e){const i=this.storage[e];return i===void 0?null:i}async _remove(e){delete this.storage[e]}_addListener(e,i){}_removeListener(e,i){}}m0.type="NONE";const sw=m0;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ac(t,e,i){return`firebase:${t}:${e}:${i}`}class es{constructor(e,i,r){this.persistence=e,this.auth=i,this.userKey=r;const{config:l,name:c}=this.auth;this.fullUserKey=Ac(this.userKey,l.apiKey,c),this.fullPersistenceKey=Ac("persistence",l.apiKey,c),this.boundEventHandler=i._onStorageEvent.bind(i),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const i=await jc(this.auth,{idToken:e}).catch(()=>{});return i?Bn._fromGetAccountInfoResponse(this.auth,i,e):null}return Bn._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const i=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,i)return this.setCurrentUser(i)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,i,r="authUser"){if(!i.length)return new es(Ci(sw),e,r);const l=(await Promise.all(i.map(async m=>{if(await m._isAvailable())return m}))).filter(m=>m);let c=l[0]||Ci(sw);const d=Ac(r,e.config.apiKey,e.name);let p=null;for(const m of i)try{const v=await m._get(d);if(v){let b;if(typeof v=="string"){const w=await jc(e,{idToken:v}).catch(()=>{});if(!w)break;b=await Bn._fromGetAccountInfoResponse(e,w,v)}else b=Bn._fromJSON(e,v);m!==c&&(p=b),c=m;break}}catch{}const h=l.filter(m=>m._shouldAllowMigration);return!c._shouldAllowMigration||!h.length?new es(c,e,r):(c=h[0],p&&await c._set(d,p.toJSON()),await Promise.all(i.map(async m=>{if(m!==c)try{await m._remove(d)}catch{}})),new es(c,e,r))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function lw(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(w0(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(g0(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(S0(e))return"Blackberry";if(E0(e))return"Webos";if(v0(e))return"Safari";if((e.includes("chrome/")||y0(e))&&!e.includes("edge/"))return"Chrome";if(b0(e))return"Android";{const i=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(i);if(r?.length===2)return r[1]}return"Other"}function g0(t=Bt()){return/firefox\//i.test(t)}function v0(t=Bt()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function y0(t=Bt()){return/crios\//i.test(t)}function w0(t=Bt()){return/iemobile/i.test(t)}function b0(t=Bt()){return/android/i.test(t)}function S0(t=Bt()){return/blackberry/i.test(t)}function E0(t=Bt()){return/webos/i.test(t)}function Zh(t=Bt()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function __(t=Bt()){var e;return Zh(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function O_(){return HA()&&document.documentMode===10}function x0(t=Bt()){return Zh(t)||b0(t)||E0(t)||S0(t)||/windows phone/i.test(t)||w0(t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function T0(t,e=[]){let i;switch(t){case"Browser":i=lw(Bt());break;case"Worker":i=`${lw(Bt())}-${t}`;break;default:i=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${i}/JsCore/${Bl}/${r}`}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class R_{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,i){const r=c=>new Promise((d,p)=>{try{const h=e(c);d(h)}catch(h){p(h)}});r.onAbort=i,this.queue.push(r);const l=this.queue.length-1;return()=>{this.queue[l]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const i=[];try{for(const r of this.queue)await r(e),r.onAbort&&i.push(r.onAbort)}catch(r){i.reverse();for(const l of i)try{l()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}/**
 * @license
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function M_(t,e={}){return Ii(t,"GET","/v2/passwordPolicy",Di(t,e))}/**
 * @license
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const N_=6;class k_{constructor(e){var i,r,l,c;const d=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(i=d.minPasswordLength)!==null&&i!==void 0?i:N_,d.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=d.maxPasswordLength),d.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=d.containsLowercaseCharacter),d.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=d.containsUppercaseCharacter),d.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=d.containsNumericCharacter),d.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=d.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(l=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&l!==void 0?l:"",this.forceUpgradeOnSignin=(c=e.forceUpgradeOnSignin)!==null&&c!==void 0?c:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var i,r,l,c,d,p;const h={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,h),this.validatePasswordCharacterOptions(e,h),h.isValid&&(h.isValid=(i=h.meetsMinPasswordLength)!==null&&i!==void 0?i:!0),h.isValid&&(h.isValid=(r=h.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),h.isValid&&(h.isValid=(l=h.containsLowercaseLetter)!==null&&l!==void 0?l:!0),h.isValid&&(h.isValid=(c=h.containsUppercaseLetter)!==null&&c!==void 0?c:!0),h.isValid&&(h.isValid=(d=h.containsNumericCharacter)!==null&&d!==void 0?d:!0),h.isValid&&(h.isValid=(p=h.containsNonAlphanumericCharacter)!==null&&p!==void 0?p:!0),h}validatePasswordLengthOptions(e,i){const r=this.customStrengthOptions.minPasswordLength,l=this.customStrengthOptions.maxPasswordLength;r&&(i.meetsMinPasswordLength=e.length>=r),l&&(i.meetsMaxPasswordLength=e.length<=l)}validatePasswordCharacterOptions(e,i){this.updatePasswordCharacterOptionsStatuses(i,!1,!1,!1,!1);let r;for(let l=0;l<e.length;l++)r=e.charAt(l),this.updatePasswordCharacterOptionsStatuses(i,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,i,r,l,c){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=i)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=l)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=c))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class D_{constructor(e,i,r,l){this.app=e,this.heartbeatServiceProvider=i,this.appCheckServiceProvider=r,this.config=l,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new ow(this),this.idTokenSubscription=new ow(this),this.beforeStateQueue=new R_(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=c0,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=l.sdkClientVersion,this._persistenceManagerAvailable=new Promise(c=>this._resolvePersistenceManagerAvailable=c)}_initializeWithPersistence(e,i){return i&&(this._popupRedirectResolver=Ci(i)),this._initializationPromise=this.queue(async()=>{var r,l,c;if(!this._deleted&&(this.persistenceManager=await es.create(this,e),(r=this._resolvePersistenceManagerAvailable)===null||r===void 0||r.call(this),!this._deleted)){if(!((l=this._popupRedirectResolver)===null||l===void 0)&&l._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(i),this.lastNotifiedUid=((c=this.currentUser)===null||c===void 0?void 0:c.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const i=await jc(this,{idToken:e}),r=await Bn._fromGetAccountInfoResponse(this,i,e);await this.directlySetCurrentUser(r)}catch(i){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",i),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var i;if(Pn(this.app)){const d=this.app.settings.authIdToken;return d?new Promise(p=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(d).then(p,p))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let l=r,c=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const d=(i=this.redirectUser)===null||i===void 0?void 0:i._redirectEventId,p=l?._redirectEventId,h=await this.tryRedirectSignIn(e);(!d||d===p)&&h?.user&&(l=h.user,c=!0)}if(!l)return this.directlySetCurrentUser(null);if(!l._redirectEventId){if(c)try{await this.beforeStateQueue.runMiddleware(l)}catch(d){l=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(d))}return l?this.reloadAndSetCurrentUserOrClear(l):this.directlySetCurrentUser(null)}return Ae(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===l._redirectEventId?this.directlySetCurrentUser(l):this.reloadAndSetCurrentUserOrClear(l)}async tryRedirectSignIn(e){let i=null;try{i=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return i}async reloadAndSetCurrentUserOrClear(e){try{await Lc(e)}catch(i){if(i?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=d_()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Pn(this.app))return Promise.reject(Oi(this));const i=e?Vn(e):null;return i&&Ae(i.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(i&&i._clone(this))}async _updateCurrentUser(e,i=!1){if(!this._deleted)return e&&Ae(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),i||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return Pn(this.app)?Promise.reject(Oi(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Pn(this.app)?Promise.reject(Oi(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Ci(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const i=this._getPasswordPolicyInternal();return i.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):i.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await M_(this),i=new k_(e);this.tenantId===null?this._projectPasswordPolicy=i:this._tenantPasswordPolicies[this.tenantId]=i}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new cr("auth","Firebase",e())}onAuthStateChanged(e,i,r){return this.registerStateListener(this.authStateSubscription,e,i,r)}beforeAuthStateChanged(e,i){return this.beforeStateQueue.pushCallback(e,i)}onIdTokenChanged(e,i,r){return this.registerStateListener(this.idTokenSubscription,e,i,r)}authStateReady(){return new Promise((e,i)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},i)}})}async revokeAccessToken(e){if(this.currentUser){const i=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:i};this.tenantId!=null&&(r.tenantId=this.tenantId),await C_(this,r)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,i){const r=await this.getOrInitRedirectPersistenceManager(i);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const i=e&&Ci(e)||this._popupRedirectResolver;Ae(i,this,"argument-error"),this.redirectPersistenceManager=await es.create(this,[Ci(i._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var i,r;return this._isInitialized&&await this.queue(async()=>{}),((i=this._currentUser)===null||i===void 0?void 0:i._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,i;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(i=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&i!==void 0?i:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,i,r,l){if(this._deleted)return()=>{};const c=typeof i=="function"?i:i.next.bind(i);let d=!1;const p=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ae(p,this,"internal-error"),p.then(()=>{d||c(this.currentUser)}),typeof i=="function"){const h=e.addObserver(i,r,l);return()=>{d=!0,h()}}else{const h=e.addObserver(i);return()=>{d=!0,h()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ae(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=T0(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const i={"X-Client-Version":this.clientVersion};this.app.options.appId&&(i["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(i["X-Firebase-Client"]=r);const l=await this._getAppCheckToken();return l&&(i["X-Firebase-AppCheck"]=l),i}async _getAppCheckToken(){var e;if(Pn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const i=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return i?.error&&o_(`Error while retrieving App Check token: ${i.error}`),i?.token}}function Ea(t){return Vn(t)}class ow{constructor(e){this.auth=e,this.observer=null,this.addObserver=XA(i=>this.observer=i)}get next(){return Ae(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let uu={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function I_(t){uu=t}function A0(t){return uu.loadJS(t)}function j_(){return uu.recaptchaEnterpriseScript}function L_(){return uu.gapiScript}function P_(t){return`__${t}${Math.floor(Math.random()*1e6)}`}class B_{constructor(){this.enterprise=new z_}ready(e){e()}execute(e,i){return Promise.resolve("token")}render(e,i){return""}}class z_{ready(e){e()}execute(e,i){return Promise.resolve("token")}render(e,i){return""}}const U_="recaptcha-enterprise",C0="NO_RECAPTCHA";class H_{constructor(e){this.type=U_,this.auth=Ea(e)}async verify(e="verify",i=!1){async function r(c){if(!i){if(c.tenantId==null&&c._agentRecaptchaConfig!=null)return c._agentRecaptchaConfig.siteKey;if(c.tenantId!=null&&c._tenantRecaptchaConfigs[c.tenantId]!==void 0)return c._tenantRecaptchaConfigs[c.tenantId].siteKey}return new Promise(async(d,p)=>{y_(c,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(h=>{if(h.recaptchaKey===void 0)p(new Error("recaptcha Enterprise site key undefined"));else{const m=new v_(h);return c.tenantId==null?c._agentRecaptchaConfig=m:c._tenantRecaptchaConfigs[c.tenantId]=m,d(m.siteKey)}}).catch(h=>{p(h)})})}function l(c,d,p){const h=window.grecaptcha;iw(h)?h.enterprise.ready(()=>{h.enterprise.execute(c,{action:e}).then(m=>{d(m)}).catch(()=>{d(C0)})}):p(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new B_().execute("siteKey",{action:"verify"}):new Promise((c,d)=>{r(this.auth).then(p=>{if(!i&&iw(window.grecaptcha))l(p,c,d);else{if(typeof window>"u"){d(new Error("RecaptchaVerifier is only supported in browser"));return}let h=j_();h.length!==0&&(h+=p),A0(h).then(()=>{l(p,c,d)}).catch(m=>{d(m)})}}).catch(p=>{d(p)})})}}async function cw(t,e,i,r=!1,l=!1){const c=new H_(t);let d;if(l)d=C0;else try{d=await c.verify(i)}catch{d=await c.verify(i,!0)}const p=Object.assign({},e);if(i==="mfaSmsEnrollment"||i==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in p){const h=p.phoneEnrollmentInfo.phoneNumber,m=p.phoneEnrollmentInfo.recaptchaToken;Object.assign(p,{phoneEnrollmentInfo:{phoneNumber:h,recaptchaToken:m,captchaResponse:d,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in p){const h=p.phoneSignInInfo.recaptchaToken;Object.assign(p,{phoneSignInInfo:{recaptchaToken:h,captchaResponse:d,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return p}return r?Object.assign(p,{captchaResp:d}):Object.assign(p,{captchaResponse:d}),Object.assign(p,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(p,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),p}async function Pc(t,e,i,r,l){var c;if(!((c=t._getRecaptchaConfig())===null||c===void 0)&&c.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const d=await cw(t,e,i,i==="getOobCode");return r(t,d)}else return r(t,e).catch(async d=>{if(d.code==="auth/missing-recaptcha-token"){console.log(`${i} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const p=await cw(t,e,i,i==="getOobCode");return r(t,p)}else return Promise.reject(d)})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function V_(t,e){const i=os(t,"auth");if(i.isInitialized()){const l=i.getImmediate(),c=i.getOptions();if(tr(c,e??{}))return l;zn(l,"already-initialized")}return i.initialize({options:e})}function G_(t,e){const i=e?.persistence||[],r=(Array.isArray(i)?i:[i]).map(Ci);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e?.popupRedirectResolver)}function q_(t,e,i){const r=Ea(t);Ae(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");const l=!1,c=_0(e),{host:d,port:p}=Y_(e),h=p===null?"":`:${p}`,m={url:`${c}//${d}${h}/`},v=Object.freeze({host:d,port:p,protocol:c.replace(":",""),options:Object.freeze({disableWarnings:l})});if(!r._canInitEmulator){Ae(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),Ae(tr(m,r.config.emulator)&&tr(v,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=m,r.emulatorConfig=v,r.settings.appVerificationDisabledForTesting=!0,cu(d)?(IA(`${c}//${d}${h}`),PA("Auth",!0)):F_()}function _0(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function Y_(t){const e=_0(t),i=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!i)return{host:"",port:null};const r=i[2].split("@").pop()||"",l=/^(\[[^\]]+\])(:|$)/.exec(r);if(l){const c=l[1];return{host:c,port:uw(r.substr(c.length+1))}}else{const[c,d]=r.split(":");return{host:c,port:uw(d)}}}function uw(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function F_(){function t(){const e=document.createElement("p"),i=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",i.position="fixed",i.width="100%",i.backgroundColor="#ffffff",i.border=".1em solid #000000",i.color="#b50000",i.bottom="0px",i.left="0px",i.margin="0px",i.zIndex="10000",i.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Jh{constructor(e,i){this.providerId=e,this.signInMethod=i}toJSON(){return Ai("not implemented")}_getIdTokenResponse(e){return Ai("not implemented")}_linkToIdToken(e,i){return Ai("not implemented")}_getReauthenticationResolver(e){return Ai("not implemented")}}async function X_(t,e){return Ii(t,"POST","/v1/accounts:signUp",e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function $_(t,e){return Ul(t,"POST","/v1/accounts:signInWithPassword",Di(t,e))}async function K_(t,e){return Ii(t,"POST","/v1/accounts:sendOobCode",Di(t,e))}async function W_(t,e){return K_(t,e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Q_(t,e){return Ul(t,"POST","/v1/accounts:signInWithEmailLink",Di(t,e))}async function Z_(t,e){return Ul(t,"POST","/v1/accounts:signInWithEmailLink",Di(t,e))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Dl extends Jh{constructor(e,i,r,l=null){super("password",r),this._email=e,this._password=i,this._tenantId=l}static _fromEmailAndPassword(e,i){return new Dl(e,i,"password")}static _fromEmailAndCode(e,i,r=null){return new Dl(e,i,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const i=typeof e=="string"?JSON.parse(e):e;if(i?.email&&i?.password){if(i.signInMethod==="password")return this._fromEmailAndPassword(i.email,i.password);if(i.signInMethod==="emailLink")return this._fromEmailAndCode(i.email,i.password,i.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const i={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Pc(e,i,"signInWithPassword",$_);case"emailLink":return Q_(e,{email:this._email,oobCode:this._password});default:zn(e,"internal-error")}}async _linkToIdToken(e,i){switch(this.signInMethod){case"password":const r={idToken:i,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Pc(e,r,"signUpPassword",X_);case"emailLink":return Z_(e,{idToken:i,email:this._email,oobCode:this._password});default:zn(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function ts(t,e){return Ul(t,"POST","/v1/accounts:signInWithIdp",Di(t,e))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const J_="http://localhost";class nr extends Jh{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const i=new nr(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(i.idToken=e.idToken),e.accessToken&&(i.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(i.nonce=e.nonce),e.pendingToken&&(i.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(i.accessToken=e.oauthToken,i.secret=e.oauthTokenSecret):zn("argument-error"),i}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const i=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:l}=i,c=$h(i,["providerId","signInMethod"]);if(!r||!l)return null;const d=new nr(r,l);return d.idToken=c.idToken||void 0,d.accessToken=c.accessToken||void 0,d.secret=c.secret,d.nonce=c.nonce,d.pendingToken=c.pendingToken||null,d}_getIdTokenResponse(e){const i=this.buildRequest();return ts(e,i)}_linkToIdToken(e,i){const r=this.buildRequest();return r.idToken=i,ts(e,r)}_getReauthenticationResolver(e){const i=this.buildRequest();return i.autoCreate=!1,ts(e,i)}buildRequest(){const e={requestUri:J_,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const i={};this.idToken&&(i.id_token=this.idToken),this.accessToken&&(i.access_token=this.accessToken),this.secret&&(i.oauth_token_secret=this.secret),i.providerId=this.providerId,this.nonce&&!this.pendingToken&&(i.nonce=this.nonce),e.postBody=Pl(i)}return e}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function eO(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function tO(t){const e=Sl(El(t)).link,i=e?Sl(El(e)).deep_link_id:null,r=Sl(El(t)).deep_link_id;return(r?Sl(El(r)).link:null)||r||i||e||t}class ep{constructor(e){var i,r,l,c,d,p;const h=Sl(El(e)),m=(i=h.apiKey)!==null&&i!==void 0?i:null,v=(r=h.oobCode)!==null&&r!==void 0?r:null,b=eO((l=h.mode)!==null&&l!==void 0?l:null);Ae(m&&v&&b,"argument-error"),this.apiKey=m,this.operation=b,this.code=v,this.continueUrl=(c=h.continueUrl)!==null&&c!==void 0?c:null,this.languageCode=(d=h.lang)!==null&&d!==void 0?d:null,this.tenantId=(p=h.tenantId)!==null&&p!==void 0?p:null}static parseLink(e){const i=tO(e);try{return new ep(i)}catch{return null}}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class cs{constructor(){this.providerId=cs.PROVIDER_ID}static credential(e,i){return Dl._fromEmailAndPassword(e,i)}static credentialWithLink(e,i){const r=ep.parseLink(i);return Ae(r,"argument-error"),Dl._fromEmailAndCode(e,r.code,r.tenantId)}}cs.PROVIDER_ID="password";cs.EMAIL_PASSWORD_SIGN_IN_METHOD="password";cs.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class O0{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Hl extends O0{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class da extends Hl{constructor(){super("facebook.com")}static credential(e){return nr._fromParams({providerId:da.PROVIDER_ID,signInMethod:da.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return da.credentialFromTaggedObject(e)}static credentialFromError(e){return da.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return da.credential(e.oauthAccessToken)}catch{return null}}}da.FACEBOOK_SIGN_IN_METHOD="facebook.com";da.PROVIDER_ID="facebook.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class xi extends Hl{constructor(){super("google.com"),this.addScope("profile")}static credential(e,i){return nr._fromParams({providerId:xi.PROVIDER_ID,signInMethod:xi.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:i})}static credentialFromResult(e){return xi.credentialFromTaggedObject(e)}static credentialFromError(e){return xi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:i,oauthAccessToken:r}=e;if(!i&&!r)return null;try{return xi.credential(i,r)}catch{return null}}}xi.GOOGLE_SIGN_IN_METHOD="google.com";xi.PROVIDER_ID="google.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Ti extends Hl{constructor(){super("github.com")}static credential(e){return nr._fromParams({providerId:Ti.PROVIDER_ID,signInMethod:Ti.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Ti.credentialFromTaggedObject(e)}static credentialFromError(e){return Ti.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Ti.credential(e.oauthAccessToken)}catch{return null}}}Ti.GITHUB_SIGN_IN_METHOD="github.com";Ti.PROVIDER_ID="github.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class fa extends Hl{constructor(){super("twitter.com")}static credential(e,i){return nr._fromParams({providerId:fa.PROVIDER_ID,signInMethod:fa.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:i})}static credentialFromResult(e){return fa.credentialFromTaggedObject(e)}static credentialFromError(e){return fa.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:i,oauthTokenSecret:r}=e;if(!i||!r)return null;try{return fa.credential(i,r)}catch{return null}}}fa.TWITTER_SIGN_IN_METHOD="twitter.com";fa.PROVIDER_ID="twitter.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function nO(t,e){return Ul(t,"POST","/v1/accounts:signUp",Di(t,e))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ir{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,i,r,l=!1){const c=await Bn._fromIdTokenResponse(e,r,l),d=dw(r);return new ir({user:c,providerId:d,_tokenResponse:r,operationType:i})}static async _forOperation(e,i,r){await e._updateTokensIfNecessary(r,!0);const l=dw(r);return new ir({user:e,providerId:l,_tokenResponse:r,operationType:i})}}function dw(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Bc extends ii{constructor(e,i,r,l){var c;super(i.code,i.message),this.operationType=r,this.user=l,Object.setPrototypeOf(this,Bc.prototype),this.customData={appName:e.name,tenantId:(c=e.tenantId)!==null&&c!==void 0?c:void 0,_serverResponse:i.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,i,r,l){return new Bc(e,i,r,l)}}function R0(t,e,i,r){return(e==="reauthenticate"?i._getReauthenticationResolver(t):i._getIdTokenResponse(t)).catch(c=>{throw c.code==="auth/multi-factor-auth-required"?Bc._fromErrorAndOperation(t,c,e,r):c})}async function iO(t,e,i=!1){const r=await kl(t,e._linkToIdToken(t.auth,await t.getIdToken()),i);return ir._forOperation(t,"link",r)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function aO(t,e,i=!1){const{auth:r}=t;if(Pn(r.app))return Promise.reject(Oi(r));const l="reauthenticate";try{const c=await kl(t,R0(r,l,e,t),i);Ae(c.idToken,r,"internal-error");const d=Qh(c.idToken);Ae(d,r,"internal-error");const{sub:p}=d;return Ae(t.uid===p,r,"user-mismatch"),ir._forOperation(t,l,c)}catch(c){throw c?.code==="auth/user-not-found"&&zn(r,"user-mismatch"),c}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function M0(t,e,i=!1){if(Pn(t.app))return Promise.reject(Oi(t));const r="signIn",l=await R0(t,r,e),c=await ir._fromIdTokenResponse(t,r,l);return i||await t._updateCurrentUser(c.user),c}async function rO(t,e){return M0(Ea(t),e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function N0(t){const e=Ea(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}async function sO(t,e,i){const r=Ea(t);await Pc(r,{requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"},"getOobCode",W_)}async function lO(t,e,i){if(Pn(t.app))return Promise.reject(Oi(t));const r=Ea(t),d=await Pc(r,{returnSecureToken:!0,email:e,password:i,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",nO).catch(h=>{throw h.code==="auth/password-does-not-meet-requirements"&&N0(t),h}),p=await ir._fromIdTokenResponse(r,"signIn",d);return await r._updateCurrentUser(p.user),p}function oO(t,e,i){return Pn(t.app)?Promise.reject(Oi(t)):rO(Vn(t),cs.credential(e,i)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&N0(t),r})}function cO(t,e,i,r){return Vn(t).onIdTokenChanged(e,i,r)}function uO(t,e,i){return Vn(t).beforeAuthStateChanged(e,i)}function dO(t,e,i,r){return Vn(t).onAuthStateChanged(e,i,r)}function k0(t){return Vn(t).signOut()}const zc="__sak";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class D0{constructor(e,i){this.storageRetriever=e,this.type=i}_isAvailable(){try{return this.storage?(this.storage.setItem(zc,"1"),this.storage.removeItem(zc),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,i){return this.storage.setItem(e,JSON.stringify(i)),Promise.resolve()}_get(e){const i=this.storage.getItem(e);return Promise.resolve(i?JSON.parse(i):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const fO=1e3,hO=10;class I0 extends D0{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,i)=>this.onStorageEvent(e,i),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=x0(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const i of Object.keys(this.listeners)){const r=this.storage.getItem(i),l=this.localCache[i];r!==l&&e(i,l,r)}}onStorageEvent(e,i=!1){if(!e.key){this.forAllChangedKeys((d,p,h)=>{this.notifyListeners(d,h)});return}const r=e.key;i?this.detachListener():this.stopPolling();const l=()=>{const d=this.storage.getItem(r);!i&&this.localCache[r]===d||this.notifyListeners(r,d)},c=this.storage.getItem(r);O_()&&c!==e.newValue&&e.newValue!==e.oldValue?setTimeout(l,hO):l()}notifyListeners(e,i){this.localCache[e]=i;const r=this.listeners[e];if(r)for(const l of Array.from(r))l(i&&JSON.parse(i))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,i,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:i,newValue:r}),!0)})},fO)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,i){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(i)}_removeListener(e,i){this.listeners[e]&&(this.listeners[e].delete(i),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,i){await super._set(e,i),this.localCache[e]=JSON.stringify(i)}async _get(e){const i=await super._get(e);return this.localCache[e]=JSON.stringify(i),i}async _remove(e){await super._remove(e),delete this.localCache[e]}}I0.type="LOCAL";const pO=I0;/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class j0 extends D0{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,i){}_removeListener(e,i){}}j0.type="SESSION";const L0=j0;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function mO(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(i){return{fulfilled:!1,reason:i}}}))}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class du{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const i=this.receivers.find(l=>l.isListeningto(e));if(i)return i;const r=new du(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const i=e,{eventId:r,eventType:l,data:c}=i.data,d=this.handlersMap[l];if(!d?.size)return;i.ports[0].postMessage({status:"ack",eventId:r,eventType:l});const p=Array.from(d).map(async m=>m(i.origin,c)),h=await mO(p);i.ports[0].postMessage({status:"done",eventId:r,eventType:l,response:h})}_subscribe(e,i){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(i)}_unsubscribe(e,i){this.handlersMap[e]&&i&&this.handlersMap[e].delete(i),(!i||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}du.receivers=[];/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tp(t="",e=10){let i="";for(let r=0;r<e;r++)i+=Math.floor(Math.random()*10);return t+i}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class gO{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,i,r=50){const l=typeof MessageChannel<"u"?new MessageChannel:null;if(!l)throw new Error("connection_unavailable");let c,d;return new Promise((p,h)=>{const m=tp("",20);l.port1.start();const v=setTimeout(()=>{h(new Error("unsupported_event"))},r);d={messageChannel:l,onMessage(b){const w=b;if(w.data.eventId===m)switch(w.data.status){case"ack":clearTimeout(v),c=setTimeout(()=>{h(new Error("timeout"))},3e3);break;case"done":clearTimeout(c),p(w.data.response);break;default:clearTimeout(v),clearTimeout(c),h(new Error("invalid_response"));break}}},this.handlers.add(d),l.port1.addEventListener("message",d.onMessage),this.target.postMessage({eventType:e,eventId:m,data:i},[l.port2])}).finally(()=>{d&&this.removeMessageHandler(d)})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ei(){return window}function vO(t){ei().location.href=t}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function P0(){return typeof ei().WorkerGlobalScope<"u"&&typeof ei().importScripts=="function"}async function yO(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function wO(){var t;return((t=navigator?.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function bO(){return P0()?self:null}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const B0="firebaseLocalStorageDb",SO=1,Uc="firebaseLocalStorage",z0="fbase_key";class Vl{constructor(e){this.request=e}toPromise(){return new Promise((e,i)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{i(this.request.error)})})}}function fu(t,e){return t.transaction([Uc],e?"readwrite":"readonly").objectStore(Uc)}function EO(){const t=indexedDB.deleteDatabase(B0);return new Vl(t).toPromise()}function xh(){const t=indexedDB.open(B0,SO);return new Promise((e,i)=>{t.addEventListener("error",()=>{i(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(Uc,{keyPath:z0})}catch(l){i(l)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(Uc)?e(r):(r.close(),await EO(),e(await xh()))})})}async function fw(t,e,i){const r=fu(t,!0).put({[z0]:e,value:i});return new Vl(r).toPromise()}async function xO(t,e){const i=fu(t,!1).get(e),r=await new Vl(i).toPromise();return r===void 0?null:r.value}function hw(t,e){const i=fu(t,!0).delete(e);return new Vl(i).toPromise()}const TO=800,AO=3;class U0{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await xh(),this.db)}async _withRetries(e){let i=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(i++>AO)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return P0()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=du._getInstance(bO()),this.receiver._subscribe("keyChanged",async(e,i)=>({keyProcessed:(await this._poll()).includes(i.key)})),this.receiver._subscribe("ping",async(e,i)=>["keyChanged"])}async initializeSender(){var e,i;if(this.activeServiceWorker=await yO(),!this.activeServiceWorker)return;this.sender=new gO(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((e=r[0])===null||e===void 0)&&e.fulfilled&&!((i=r[0])===null||i===void 0)&&i.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||wO()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await xh();return await fw(e,zc,"1"),await hw(e,zc),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,i){return this._withPendingWrite(async()=>(await this._withRetries(r=>fw(r,e,i)),this.localCache[e]=i,this.notifyServiceWorker(e)))}async _get(e){const i=await this._withRetries(r=>xO(r,e));return this.localCache[e]=i,i}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(i=>hw(i,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(l=>{const c=fu(l,!1).getAll();return new Vl(c).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const i=[],r=new Set;if(e.length!==0)for(const{fbase_key:l,value:c}of e)r.add(l),JSON.stringify(this.localCache[l])!==JSON.stringify(c)&&(this.notifyListeners(l,c),i.push(l));for(const l of Object.keys(this.localCache))this.localCache[l]&&!r.has(l)&&(this.notifyListeners(l,null),i.push(l));return i}notifyListeners(e,i){this.localCache[e]=i;const r=this.listeners[e];if(r)for(const l of Array.from(r))l(i)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),TO)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,i){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(i)}_removeListener(e,i){this.listeners[e]&&(this.listeners[e].delete(i),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&this.stopPolling()}}U0.type="LOCAL";const CO=U0;new zl(3e4,6e4);/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _O(t,e){return e?Ci(e):(Ae(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class np extends Jh{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return ts(e,this._buildIdpRequest())}_linkToIdToken(e,i){return ts(e,this._buildIdpRequest(i))}_getReauthenticationResolver(e){return ts(e,this._buildIdpRequest())}_buildIdpRequest(e){const i={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(i.idToken=e),i}}function OO(t){return M0(t.auth,new np(t),t.bypassAuthState)}function RO(t){const{auth:e,user:i}=t;return Ae(i,e,"internal-error"),aO(i,new np(t),t.bypassAuthState)}async function MO(t){const{auth:e,user:i}=t;return Ae(i,e,"internal-error"),iO(i,new np(t),t.bypassAuthState)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class H0{constructor(e,i,r,l,c=!1){this.auth=e,this.resolver=r,this.user=l,this.bypassAuthState=c,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(i)?i:[i]}execute(){return new Promise(async(e,i)=>{this.pendingPromise={resolve:e,reject:i};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:i,sessionId:r,postBody:l,tenantId:c,error:d,type:p}=e;if(d){this.reject(d);return}const h={auth:this.auth,requestUri:i,sessionId:r,tenantId:c||void 0,postBody:l||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(p)(h))}catch(m){this.reject(m)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return OO;case"linkViaPopup":case"linkViaRedirect":return MO;case"reauthViaPopup":case"reauthViaRedirect":return RO;default:zn(this.auth,"internal-error")}}resolve(e){ki(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){ki(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const NO=new zl(2e3,1e4);class Qr extends H0{constructor(e,i,r,l,c){super(e,i,l,c),this.provider=r,this.authWindow=null,this.pollId=null,Qr.currentPopupAction&&Qr.currentPopupAction.cancel(),Qr.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ae(e,this.auth,"internal-error"),e}async onExecution(){ki(this.filter.length===1,"Popup operations only handle one event");const e=tp();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(i=>{this.reject(i)}),this.resolver._isIframeWebStorageSupported(this.auth,i=>{i||this.reject(Jn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(Jn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Qr.currentPopupAction=null}pollUserCancellation(){const e=()=>{var i,r;if(!((r=(i=this.authWindow)===null||i===void 0?void 0:i.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Jn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,NO.get())};e()}}Qr.currentPopupAction=null;/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const kO="pendingRedirect",Cc=new Map;class DO extends H0{constructor(e,i,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],i,void 0,r),this.eventId=null}async execute(){let e=Cc.get(this.auth._key());if(!e){try{const r=await IO(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(i){e=()=>Promise.reject(i)}Cc.set(this.auth._key(),e)}return this.bypassAuthState||Cc.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const i=await this.auth._redirectUserForId(e.eventId);if(i)return this.user=i,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function IO(t,e){const i=PO(e),r=LO(t);if(!await r._isAvailable())return!1;const l=await r._get(i)==="true";return await r._remove(i),l}function jO(t,e){Cc.set(t._key(),e)}function LO(t){return Ci(t._redirectPersistence)}function PO(t){return Ac(kO,t.config.apiKey,t.name)}async function BO(t,e,i=!1){if(Pn(t.app))return Promise.reject(Oi(t));const r=Ea(t),l=_O(r,e),d=await new DO(r,l,i).execute();return d&&!i&&(delete d.user._redirectEventId,await r._persistUserIfCurrent(d.user),await r._setRedirectUser(null,e)),d}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const zO=10*60*1e3;class UO{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let i=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(i=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!HO(e)||(this.hasHandledPotentialRedirect=!0,i||(this.queuedRedirectEvent=e,i=!0)),i}sendToConsumer(e,i){var r;if(e.error&&!V0(e)){const l=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";i.onError(Jn(this.auth,l))}else i.onAuthEvent(e)}isEventForConsumer(e,i){const r=i.eventId===null||!!e.eventId&&e.eventId===i.eventId;return i.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=zO&&this.cachedEventUids.clear(),this.cachedEventUids.has(pw(e))}saveEventToCache(e){this.cachedEventUids.add(pw(e)),this.lastProcessedEventTime=Date.now()}}function pw(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function V0({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function HO(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return V0(t);default:return!1}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function VO(t,e={}){return Ii(t,"GET","/v1/projects",e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const GO=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,qO=/^https?/;async function YO(t){if(t.config.emulator)return;const{authorizedDomains:e}=await VO(t);for(const i of e)try{if(FO(i))return}catch{}zn(t,"unauthorized-domain")}function FO(t){const e=Sh(),{protocol:i,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const d=new URL(t);return d.hostname===""&&r===""?i==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):i==="chrome-extension:"&&d.hostname===r}if(!qO.test(i))return!1;if(GO.test(t))return r===t;const l=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+l+"|"+l+")$","i").test(r)}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const XO=new zl(3e4,6e4);function mw(){const t=ei().___jsl;if(t?.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let i=0;i<t.CP.length;i++)t.CP[i]=null}}function $O(t){return new Promise((e,i)=>{var r,l,c;function d(){mw(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{mw(),i(Jn(t,"network-request-failed"))},timeout:XO.get()})}if(!((l=(r=ei().gapi)===null||r===void 0?void 0:r.iframes)===null||l===void 0)&&l.Iframe)e(gapi.iframes.getContext());else if(!((c=ei().gapi)===null||c===void 0)&&c.load)d();else{const p=P_("iframefcb");return ei()[p]=()=>{gapi.load?d():i(Jn(t,"network-request-failed"))},A0(`${L_()}?onload=${p}`).catch(h=>i(h))}}).catch(e=>{throw _c=null,e})}let _c=null;function KO(t){return _c=_c||$O(t),_c}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const WO=new zl(5e3,15e3),QO="__/auth/iframe",ZO="emulator/auth/iframe",JO={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},eR=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function tR(t){const e=t.config;Ae(e.authDomain,t,"auth-domain-config-required");const i=e.emulator?Wh(e,ZO):`https://${t.config.authDomain}/${QO}`,r={apiKey:e.apiKey,appName:t.name,v:Bl},l=eR.get(t.config.apiHost);l&&(r.eid=l);const c=t._getFrameworks();return c.length&&(r.fw=c.join(",")),`${i}?${Pl(r).slice(1)}`}async function nR(t){const e=await KO(t),i=ei().gapi;return Ae(i,t,"internal-error"),e.open({where:document.body,url:tR(t),messageHandlersFilter:i.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:JO,dontclear:!0},r=>new Promise(async(l,c)=>{await r.restyle({setHideOnLeave:!1});const d=Jn(t,"network-request-failed"),p=ei().setTimeout(()=>{c(d)},WO.get());function h(){ei().clearTimeout(p),l(r)}r.ping(h).then(h,()=>{c(d)})}))}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const iR={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},aR=500,rR=600,sR="_blank",lR="http://localhost";class gw{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function oR(t,e,i,r=aR,l=rR){const c=Math.max((window.screen.availHeight-l)/2,0).toString(),d=Math.max((window.screen.availWidth-r)/2,0).toString();let p="";const h=Object.assign(Object.assign({},iR),{width:r.toString(),height:l.toString(),top:c,left:d}),m=Bt().toLowerCase();i&&(p=y0(m)?sR:i),g0(m)&&(e=e||lR,h.scrollbars="yes");const v=Object.entries(h).reduce((w,[x,T])=>`${w}${x}=${T},`,"");if(__(m)&&p!=="_self")return cR(e||"",p),new gw(null);const b=window.open(e||"",p,v);Ae(b,t,"popup-blocked");try{b.focus()}catch{}return new gw(b)}function cR(t,e){const i=document.createElement("a");i.href=t,i.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),i.dispatchEvent(r)}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const uR="__/auth/handler",dR="emulator/auth/handler",fR=encodeURIComponent("fac");async function vw(t,e,i,r,l,c){Ae(t.config.authDomain,t,"auth-domain-config-required"),Ae(t.config.apiKey,t,"invalid-api-key");const d={apiKey:t.config.apiKey,appName:t.name,authType:i,redirectUrl:r,v:Bl,eventId:l};if(e instanceof O0){e.setDefaultLanguage(t.languageCode),d.providerId=e.providerId||"",FA(e.getCustomParameters())||(d.customParameters=JSON.stringify(e.getCustomParameters()));for(const[v,b]of Object.entries({}))d[v]=b}if(e instanceof Hl){const v=e.getScopes().filter(b=>b!=="");v.length>0&&(d.scopes=v.join(","))}t.tenantId&&(d.tid=t.tenantId);const p=d;for(const v of Object.keys(p))p[v]===void 0&&delete p[v];const h=await t._getAppCheckToken(),m=h?`#${fR}=${encodeURIComponent(h)}`:"";return`${hR(t)}?${Pl(p).slice(1)}${m}`}function hR({config:t}){return t.emulator?Wh(t,dR):`https://${t.authDomain}/${uR}`}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Xf="webStorageSupport";class pR{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=L0,this._completeRedirectFn=BO,this._overrideRedirectResult=jO}async _openPopup(e,i,r,l){var c;ki((c=this.eventManagers[e._key()])===null||c===void 0?void 0:c.manager,"_initialize() not called before _openPopup()");const d=await vw(e,i,r,Sh(),l);return oR(e,d,tp())}async _openRedirect(e,i,r,l){await this._originValidation(e);const c=await vw(e,i,r,Sh(),l);return vO(c),new Promise(()=>{})}_initialize(e){const i=e._key();if(this.eventManagers[i]){const{manager:l,promise:c}=this.eventManagers[i];return l?Promise.resolve(l):(ki(c,"If manager is not set, promise should be"),c)}const r=this.initAndGetManager(e);return this.eventManagers[i]={promise:r},r.catch(()=>{delete this.eventManagers[i]}),r}async initAndGetManager(e){const i=await nR(e),r=new UO(e);return i.register("authEvent",l=>(Ae(l?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(l.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=i,r}_isIframeWebStorageSupported(e,i){this.iframes[e._key()].send(Xf,{type:Xf},l=>{var c;const d=(c=l?.[0])===null||c===void 0?void 0:c[Xf];d!==void 0&&i(!!d),zn(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const i=e._key();return this.originValidationPromises[i]||(this.originValidationPromises[i]=YO(e)),this.originValidationPromises[i]}get _shouldInitProactively(){return x0()||v0()||Zh()}}const mR=pR;var yw="@firebase/auth",ww="1.10.8";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class gR{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const i=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,i),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const i=this.internalListeners.get(e);i&&(this.internalListeners.delete(e),i(),this.updateProactiveRefresh())}assertAuthConfigured(){Ae(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function vR(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function yR(t){Ni(new ti("auth",(e,{options:i})=>{const r=e.getProvider("app").getImmediate(),l=e.getProvider("heartbeat"),c=e.getProvider("app-check-internal"),{apiKey:d,authDomain:p}=r.options;Ae(d&&!d.includes(":"),"invalid-api-key",{appName:r.name});const h={apiKey:d,authDomain:p,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:T0(t)},m=new D_(r,l,c,h);return G_(m,i),m},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,i,r)=>{e.getProvider("auth-internal").initialize()})),Ni(new ti("auth-internal",e=>{const i=Ea(e.getProvider("auth").getImmediate());return(r=>new gR(r))(i)},"PRIVATE").setInstantiationMode("EXPLICIT")),Zn(yw,ww,vR(t)),Zn(yw,ww,"esm2017")}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const wR=5*60,bR=Qb("authIdTokenMaxAge")||wR;let bw=null;const SR=t=>async e=>{const i=e&&await e.getIdTokenResult(),r=i&&(new Date().getTime()-Date.parse(i.issuedAtTime))/1e3;if(r&&r>bR)return;const l=i?.token;bw!==l&&(bw=l,await fetch(t,{method:l?"POST":"DELETE",headers:l?{Authorization:`Bearer ${l}`}:{}}))};function G0(t=r0()){const e=os(t,"auth");if(e.isInitialized())return e.getImmediate();const i=V_(t,{popupRedirectResolver:mR,persistence:[CO,pO,L0]}),r=Qb("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const c=new URL(r,location.origin);if(location.origin===c.origin){const d=SR(c.toString());uO(i,d,()=>d(i.currentUser)),cO(i,p=>d(p))}}const l=kA("auth");return l&&q_(i,`http://${l}`),i}function ER(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}I_({loadJS(t){return new Promise((e,i)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=l=>{const c=Jn("internal-error");c.customData=l,i(c)},r.type="text/javascript",r.charset="UTF-8",ER().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});yR("Browser");var xR="firebase",TR="11.10.0";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */Zn(xR,TR,"app");const q0="@firebase/installations",ip="0.6.18";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Y0=1e4,F0=`w:${ip}`,X0="FIS_v2",AR="https://firebaseinstallations.googleapis.com/v1",CR=60*60*1e3,_R="installations",OR="Installations";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const RR={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},ar=new cr(_R,OR,RR);function $0(t){return t instanceof ii&&t.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function K0({projectId:t}){return`${AR}/projects/${t}/installations`}function W0(t){return{token:t.token,requestStatus:2,expiresIn:NR(t.expiresIn),creationTime:Date.now()}}async function Q0(t,e){const r=(await e.json()).error;return ar.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function Z0({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function MR(t,{refreshToken:e}){const i=Z0(t);return i.append("Authorization",kR(e)),i}async function J0(t){const e=await t();return e.status>=500&&e.status<600?t():e}function NR(t){return Number(t.replace("s","000"))}function kR(t){return`${X0} ${t}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function DR({appConfig:t,heartbeatServiceProvider:e},{fid:i}){const r=K0(t),l=Z0(t),c=e.getImmediate({optional:!0});if(c){const m=await c.getHeartbeatsHeader();m&&l.append("x-firebase-client",m)}const d={fid:i,authVersion:X0,appId:t.appId,sdkVersion:F0},p={method:"POST",headers:l,body:JSON.stringify(d)},h=await J0(()=>fetch(r,p));if(h.ok){const m=await h.json();return{fid:m.fid||i,registrationStatus:2,refreshToken:m.refreshToken,authToken:W0(m.authToken)}}else throw await Q0("Create Installation",h)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function eS(t){return new Promise(e=>{setTimeout(e,t)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function IR(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const jR=/^[cdef][\w-]{21}$/,Th="";function LR(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const i=PR(t);return jR.test(i)?i:Th}catch{return Th}}function PR(t){return IR(t).substr(0,22)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function hu(t){return`${t.appName}!${t.appId}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const tS=new Map;function nS(t,e){const i=hu(t);iS(i,e),BR(i,e)}function iS(t,e){const i=tS.get(t);if(i)for(const r of i)r(e)}function BR(t,e){const i=zR();i&&i.postMessage({key:t,fid:e}),UR()}let Ja=null;function zR(){return!Ja&&"BroadcastChannel"in self&&(Ja=new BroadcastChannel("[Firebase] FID Change"),Ja.onmessage=t=>{iS(t.data.key,t.data.fid)}),Ja}function UR(){tS.size===0&&Ja&&(Ja.close(),Ja=null)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const HR="firebase-installations-database",VR=1,rr="firebase-installations-store";let $f=null;function ap(){return $f||($f=i0(HR,VR,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(rr)}}})),$f}async function Hc(t,e){const i=hu(t),l=(await ap()).transaction(rr,"readwrite"),c=l.objectStore(rr),d=await c.get(i);return await c.put(e,i),await l.done,(!d||d.fid!==e.fid)&&nS(t,e.fid),e}async function aS(t){const e=hu(t),r=(await ap()).transaction(rr,"readwrite");await r.objectStore(rr).delete(e),await r.done}async function pu(t,e){const i=hu(t),l=(await ap()).transaction(rr,"readwrite"),c=l.objectStore(rr),d=await c.get(i),p=e(d);return p===void 0?await c.delete(i):await c.put(p,i),await l.done,p&&(!d||d.fid!==p.fid)&&nS(t,p.fid),p}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function rp(t){let e;const i=await pu(t.appConfig,r=>{const l=GR(r),c=qR(t,l);return e=c.registrationPromise,c.installationEntry});return i.fid===Th?{installationEntry:await e}:{installationEntry:i,registrationPromise:e}}function GR(t){const e=t||{fid:LR(),registrationStatus:0};return rS(e)}function qR(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const l=Promise.reject(ar.create("app-offline"));return{installationEntry:e,registrationPromise:l}}const i={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=YR(t,i);return{installationEntry:i,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:FR(t)}:{installationEntry:e}}async function YR(t,e){try{const i=await DR(t,e);return Hc(t.appConfig,i)}catch(i){throw $0(i)&&i.customData.serverCode===409?await aS(t.appConfig):await Hc(t.appConfig,{fid:e.fid,registrationStatus:0}),i}}async function FR(t){let e=await Sw(t.appConfig);for(;e.registrationStatus===1;)await eS(100),e=await Sw(t.appConfig);if(e.registrationStatus===0){const{installationEntry:i,registrationPromise:r}=await rp(t);return r||i}return e}function Sw(t){return pu(t,e=>{if(!e)throw ar.create("installation-not-found");return rS(e)})}function rS(t){return XR(t)?{fid:t.fid,registrationStatus:0}:t}function XR(t){return t.registrationStatus===1&&t.registrationTime+Y0<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function $R({appConfig:t,heartbeatServiceProvider:e},i){const r=KR(t,i),l=MR(t,i),c=e.getImmediate({optional:!0});if(c){const m=await c.getHeartbeatsHeader();m&&l.append("x-firebase-client",m)}const d={installation:{sdkVersion:F0,appId:t.appId}},p={method:"POST",headers:l,body:JSON.stringify(d)},h=await J0(()=>fetch(r,p));if(h.ok){const m=await h.json();return W0(m)}else throw await Q0("Generate Auth Token",h)}function KR(t,{fid:e}){return`${K0(t)}/${e}/authTokens:generate`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function sp(t,e=!1){let i;const r=await pu(t.appConfig,c=>{if(!sS(c))throw ar.create("not-registered");const d=c.authToken;if(!e&&ZR(d))return c;if(d.requestStatus===1)return i=WR(t,e),c;{if(!navigator.onLine)throw ar.create("app-offline");const p=eM(c);return i=QR(t,p),p}});return i?await i:r.authToken}async function WR(t,e){let i=await Ew(t.appConfig);for(;i.authToken.requestStatus===1;)await eS(100),i=await Ew(t.appConfig);const r=i.authToken;return r.requestStatus===0?sp(t,e):r}function Ew(t){return pu(t,e=>{if(!sS(e))throw ar.create("not-registered");const i=e.authToken;return tM(i)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function QR(t,e){try{const i=await $R(t,e),r=Object.assign(Object.assign({},e),{authToken:i});return await Hc(t.appConfig,r),i}catch(i){if($0(i)&&(i.customData.serverCode===401||i.customData.serverCode===404))await aS(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await Hc(t.appConfig,r)}throw i}}function sS(t){return t!==void 0&&t.registrationStatus===2}function ZR(t){return t.requestStatus===2&&!JR(t)}function JR(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+CR}function eM(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function tM(t){return t.requestStatus===1&&t.requestTime+Y0<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function nM(t){const e=t,{installationEntry:i,registrationPromise:r}=await rp(e);return r?r.catch(console.error):sp(e).catch(console.error),i.fid}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function iM(t,e=!1){const i=t;return await aM(i),(await sp(i,e)).token}async function aM(t){const{registrationPromise:e}=await rp(t);e&&await e}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function rM(t){if(!t||!t.options)throw Kf("App Configuration");if(!t.name)throw Kf("App Name");const e=["projectId","apiKey","appId"];for(const i of e)if(!t.options[i])throw Kf(i);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Kf(t){return ar.create("missing-app-config-values",{valueName:t})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const lS="installations",sM="installations-internal",lM=t=>{const e=t.getProvider("app").getImmediate(),i=rM(e),r=os(e,"heartbeat");return{app:e,appConfig:i,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},oM=t=>{const e=t.getProvider("app").getImmediate(),i=os(e,lS).getImmediate();return{getId:()=>nM(i),getToken:l=>iM(i,l)}};function cM(){Ni(new ti(lS,lM,"PUBLIC")),Ni(new ti(sM,oM,"PRIVATE"))}cM();Zn(q0,ip);Zn(q0,ip,"esm2017");/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Vc="analytics",uM="firebase_id",dM="origin",fM=60*1e3,hM="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",lp="https://www.googletagmanager.com/gtag/js";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Qt=new Fh("@firebase/analytics");/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const pM={"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},dn=new cr("analytics","Analytics",pM);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function mM(t){if(!t.startsWith(lp)){const e=dn.create("invalid-gtag-resource",{gtagURL:t});return Qt.warn(e.message),""}return t}function oS(t){return Promise.all(t.map(e=>e.catch(i=>i)))}function gM(t,e){let i;return window.trustedTypes&&(i=window.trustedTypes.createPolicy(t,e)),i}function vM(t,e){const i=gM("firebase-js-sdk-policy",{createScriptURL:mM}),r=document.createElement("script"),l=`${lp}?l=${t}&id=${e}`;r.src=i?i?.createScriptURL(l):l,r.async=!0,document.head.appendChild(r)}function yM(t){let e=[];return Array.isArray(window[t])?e=window[t]:window[t]=e,e}async function wM(t,e,i,r,l,c){const d=r[l];try{if(d)await e[d];else{const h=(await oS(i)).find(m=>m.measurementId===l);h&&await e[h.appId]}}catch(p){Qt.error(p)}t("config",l,c)}async function bM(t,e,i,r,l){try{let c=[];if(l&&l.send_to){let d=l.send_to;Array.isArray(d)||(d=[d]);const p=await oS(i);for(const h of d){const m=p.find(b=>b.measurementId===h),v=m&&e[m.appId];if(v)c.push(v);else{c=[];break}}}c.length===0&&(c=Object.values(e)),await Promise.all(c),t("event",r,l||{})}catch(c){Qt.error(c)}}function SM(t,e,i,r){async function l(c,...d){try{if(c==="event"){const[p,h]=d;await bM(t,e,i,p,h)}else if(c==="config"){const[p,h]=d;await wM(t,e,i,r,p,h)}else if(c==="consent"){const[p,h]=d;t("consent",p,h)}else if(c==="get"){const[p,h,m]=d;t("get",p,h,m)}else if(c==="set"){const[p]=d;t("set",p)}else t(c,...d)}catch(p){Qt.error(p)}}return l}function EM(t,e,i,r,l){let c=function(...d){window[r].push(arguments)};return window[l]&&typeof window[l]=="function"&&(c=window[l]),window[l]=SM(c,t,e,i),{gtagCore:c,wrappedGtag:window[l]}}function xM(t){const e=window.document.getElementsByTagName("script");for(const i of Object.values(e))if(i.src&&i.src.includes(lp)&&i.src.includes(t))return i;return null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const TM=30,AM=1e3;class CM{constructor(e={},i=AM){this.throttleMetadata=e,this.intervalMillis=i}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,i){this.throttleMetadata[e]=i}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}}const cS=new CM;function _M(t){return new Headers({Accept:"application/json","x-goog-api-key":t})}async function OM(t){var e;const{appId:i,apiKey:r}=t,l={method:"GET",headers:_M(r)},c=hM.replace("{app-id}",i),d=await fetch(c,l);if(d.status!==200&&d.status!==304){let p="";try{const h=await d.json();!((e=h.error)===null||e===void 0)&&e.message&&(p=h.error.message)}catch{}throw dn.create("config-fetch-failed",{httpStatus:d.status,responseMessage:p})}return d.json()}async function RM(t,e=cS,i){const{appId:r,apiKey:l,measurementId:c}=t.options;if(!r)throw dn.create("no-app-id");if(!l){if(c)return{measurementId:c,appId:r};throw dn.create("no-api-key")}const d=e.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},p=new kM;return setTimeout(async()=>{p.abort()},fM),uS({appId:r,apiKey:l,measurementId:c},d,p,e)}async function uS(t,{throttleEndTimeMillis:e,backoffCount:i},r,l=cS){var c;const{appId:d,measurementId:p}=t;try{await MM(r,e)}catch(h){if(p)return Qt.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${p} provided in the "measurementId" field in the local Firebase config. [${h?.message}]`),{appId:d,measurementId:p};throw h}try{const h=await OM(t);return l.deleteThrottleMetadata(d),h}catch(h){const m=h;if(!NM(m)){if(l.deleteThrottleMetadata(d),p)return Qt.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${p} provided in the "measurementId" field in the local Firebase config. [${m?.message}]`),{appId:d,measurementId:p};throw h}const v=Number((c=m?.customData)===null||c===void 0?void 0:c.httpStatus)===503?Xy(i,l.intervalMillis,TM):Xy(i,l.intervalMillis),b={throttleEndTimeMillis:Date.now()+v,backoffCount:i+1};return l.setThrottleMetadata(d,b),Qt.debug(`Calling attemptFetch again in ${v} millis`),uS(t,b,r,l)}}function MM(t,e){return new Promise((i,r)=>{const l=Math.max(e-Date.now(),0),c=setTimeout(i,l);t.addEventListener(()=>{clearTimeout(c),r(dn.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function NM(t){if(!(t instanceof ii)||!t.customData)return!1;const e=Number(t.customData.httpStatus);return e===429||e===500||e===503||e===504}class kM{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}async function DM(t,e,i,r,l){if(l&&l.global){t("event",i,r);return}else{const c=await e,d=Object.assign(Object.assign({},r),{send_to:c});t("event",i,d)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function IM(){if(Jb())try{await e0()}catch(t){return Qt.warn(dn.create("indexeddb-unavailable",{errorInfo:t?.toString()}).message),!1}else return Qt.warn(dn.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function jM(t,e,i,r,l,c,d){var p;const h=RM(t);h.then(x=>{i[x.measurementId]=x.appId,t.options.measurementId&&x.measurementId!==t.options.measurementId&&Qt.warn(`The measurement ID in the local Firebase config (${t.options.measurementId}) does not match the measurement ID fetched from the server (${x.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(x=>Qt.error(x)),e.push(h);const m=IM().then(x=>{if(x)return r.getId()}),[v,b]=await Promise.all([h,m]);xM(c)||vM(c,v.measurementId),l("js",new Date);const w=(p=d?.config)!==null&&p!==void 0?p:{};return w[dM]="firebase",w.update=!0,b!=null&&(w[uM]=b),l("config",v.measurementId,w),v.measurementId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class LM{constructor(e){this.app=e}_delete(){return delete Al[this.app.options.appId],Promise.resolve()}}let Al={},xw=[];const Tw={};let Wf="dataLayer",PM="gtag",Aw,dS,Cw=!1;function BM(){const t=[];if(Zb()&&t.push("This is a browser extension environment."),VA()||t.push("Cookies are not available."),t.length>0){const e=t.map((r,l)=>`(${l+1}) ${r}`).join(" "),i=dn.create("invalid-analytics-context",{errorInfo:e});Qt.warn(i.message)}}function zM(t,e,i){BM();const r=t.options.appId;if(!r)throw dn.create("no-app-id");if(!t.options.apiKey)if(t.options.measurementId)Qt.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${t.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw dn.create("no-api-key");if(Al[r]!=null)throw dn.create("already-exists",{id:r});if(!Cw){yM(Wf);const{wrappedGtag:c,gtagCore:d}=EM(Al,xw,Tw,Wf,PM);dS=c,Aw=d,Cw=!0}return Al[r]=jM(t,xw,Tw,e,Aw,Wf,i),new LM(t)}function UM(t=r0()){t=Vn(t);const e=os(t,Vc);return e.isInitialized()?e.getImmediate():HM(t)}function HM(t,e={}){const i=os(t,Vc);if(i.isInitialized()){const l=i.getImmediate();if(tr(e,i.getOptions()))return l;throw dn.create("already-initialized")}return i.initialize({options:e})}function VM(t,e,i,r){t=Vn(t),DM(dS,Al[t.app.options.appId],e,i,r).catch(l=>Qt.error(l))}const _w="@firebase/analytics",Ow="0.10.17";function GM(){Ni(new ti(Vc,(e,{options:i})=>{const r=e.getProvider("app").getImmediate(),l=e.getProvider("installations-internal").getImmediate();return zM(r,l,i)},"PUBLIC")),Ni(new ti("analytics-internal",t,"PRIVATE")),Zn(_w,Ow),Zn(_w,Ow,"esm2017");function t(e){try{const i=e.getProvider(Vc).getImmediate();return{logEvent:(r,l,c)=>VM(i,r,l,c)}}catch(i){throw dn.create("interop-component-reg-failed",{reason:i})}}}GM();const qM={apiKey:"AIzaSyCNf-bLeSCoOemqxF7X7gTSccaGm034Rzg",authDomain:"moto-hunters.firebaseapp.com",projectId:"moto-hunters",storageBucket:"moto-hunters.firebasestorage.app",messagingSenderId:"6041562178",appId:"1:6041562178:web:ef43a77444a123055151db",measurementId:"G-YHZHSC38PZ"},op=a0(qM);UM(op);const Gl=N.createContext(null),gc=G0(op),YM=({children:t})=>{const[e,i]=N.useState(null),[r,l]=N.useState(!0),c=(m,v)=>(l(!0),lO(gc,m,v)),d=(m,v)=>(l(!0),oO(gc,m,v)),p=()=>k0(gc);N.useEffect(()=>{const m=dO(gc,v=>{console.log("auth state change",v),i(v),l(!1)});return()=>{m()}},[]);const h={createUser:c,signIn:d,logout:p,user:e,loading:r};return g.jsx(Gl.Provider,{value:h,children:t})},Ah="/assets/Moto-Hunters-Logo-5JnWSVKX.png",FM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALpSURBVHgBjVNbSFRRFN3n3js6k6mjo5hj5mN8IZmORH2EaD4gsejDQEiSICrMzFILSyJLCCwDsz7rT0oomOgjNe3DFAosn5hjQWbmJNTI2OBjnHvP7pzJUUd8tOE+zj57r7P2XvsArDFEJCUlzXHB+oreoU8WbCdJ+Ab2MjfSxJRb3SZTXySsY9JakMDQCofGR6NSadQgEMKcK/s2u+NASeXzMX9dqWL73ehFCKHuPcH9Y7Vad4bFVCscBLYwH62fGB533VlT80LvAcSYCIHagPGLxelAOIv/sKy0KHLaQCd47jJQhy51sSsiByrLc0hnWxndDIzvVV3KoFcCx2Cw6LLAWMzxlkgm00hkWIK/sHi/HlqkCMiVx4Vx800ICK1YF6jt5Tn8U1hMLKNf4ZDyBSiC96niJzGQaKztZr3BuvpW+rnmLn1NEhEVhXKZhkeYarCiGn/aSCz9cPikQlmIeXSKhkZfw+DQ8l4iywrCUimiQJZahsRdXgfZw+r3hkzsQdk+S8RtGtaQldIZI+Dakg4w4iY9ZUGi64sgu1YbBIFEiMQ5wFZGPEfO0zirmZ5hunqwPJIFEd6l5osiqGFfb5OMlK5LiY+AFJHb0I+ir1EtIf6cuOfqTLtvEnoZdJA+0MnW/3K3G+NFSlnvWNorMYzE1FzAhqkgeGoyE32IuksqOJ5RMP3Lbm5uOiNwiq0qA+iL8+G2LRa0Q5MeJ4cbqnByrI7kUQu0qKLI2RNHccf5LIzfvavIdb8opQ6nzU7bxWT89vCxEp1QTfWGauwf/OEhP/f56Upd08Hl79QfpO0BKU5+CLuXhGutfqvLhv0fn2HyjQGy4IQNR3u71g9CIq6CY1HGtO8dmD3d5+0CcjWVgWXK78NjjjxCH63vlpfNy1uCuORaJKIQ7hZqWVPmmGT0VdqgMgcDkzYDmp9bcExb6jWcgNsnrA7g6DPWRtWDO4WRWj91lyJT94br7Zyd7zuWZ4xbC8LtL/bvUysCijMCAAAAAElFTkSuQmCC",XM=()=>{const{user:t,logout:e}=N.useContext(Gl),i=()=>{e().then(()=>{}).catch(r=>{console.log()})};return g.jsx("header",{className:"w-full relative z-50",children:g.jsx("nav",{className:"navbar w-full py-2 bg-transparent ",children:g.jsxs("div",{className:"containerCustom mx-auto flex items-center justify-between px-4 md:px-8",children:[g.jsx("div",{className:"nav-left flex-shrink-0",children:g.jsx(Pt,{to:"/",children:g.jsx("img",{src:Ah,alt:"Moto Hunters",className:"h-20 w-auto"})})}),g.jsxs("ul",{className:" hidden md:flex gap-6 text-gray-700 font-medium",children:[g.jsx("li",{className:"menu-item",children:g.jsx(Pt,{to:"/",className:"hover:text-red-600 transition",children:"Home"})}),g.jsx("li",{className:"menu-item",children:g.jsx("a",{href:"#Classic350",className:"hover:text-red-600 transition",children:"Classic 350"})}),g.jsx("li",{className:"menu-item",children:g.jsx("a",{href:"#Meteor350",className:"hover:text-red-600 transition",children:"Meteor 350"})}),g.jsx("li",{className:"menu-item",children:g.jsx("a",{href:"#Bullet350",className:"hover:text-red-600 transition",children:"Bullet 350"})}),g.jsx("li",{className:"menu-item",children:g.jsx("a",{href:"#Hunter350",className:"hover:text-red-600 transition",children:"Hunter 350"})}),g.jsx("li",{className:"menu-item",children:g.jsx("a",{href:"#prebooking",className:"hover:text-red-600 transition",children:"Prebook"})}),g.jsx("li",{className:"menu-item",children:g.jsx("a",{href:"#contact",className:"hover:text-red-600 transition",children:"Contact"})})]}),g.jsxs("div",{className:"nav-right hidden md:flex items-center gap-4",children:[g.jsx("div",{children:g.jsxs("div",{className:"relative group",children:[g.jsxs("button",{className:"flex items-center gap-2 border border-gray-300 px-3 py-1 rounded-md text-sm",children:[g.jsx("img",{src:FM,alt:"English",className:"h-4 w-auto"})," En"]}),g.jsx("div",{className:"absolute hidden group-hover:block mt-2 bg-white shadow-md rounded-md overflow-hidden z-10 w-24"})]})}),t?g.jsxs("div",{className:"dropdown dropdown-bottom dropdown-end",children:[g.jsx("div",{tabIndex:0,role:"button",className:"btn btn-ghost btn-circle avatar",children:g.jsx("div",{className:"w-5 rounded-full h-5",children:g.jsx("img",{src:Ah,alt:"User Profile",className:"h-5 w-5"})})}),g.jsxs("ul",{tabIndex:0,className:"logeedInUserProfileDropdown menu menu-compact dropdown-content mt-3 p-2 shadow bg-base-400 rounded-box w-52 z-10 text-black-500",children:[g.jsx("li",{children:g.jsx(Pt,{to:"/pre-bookings",children:"All Pre-bookings"})}),g.jsx("li",{children:g.jsx("button",{onClick:i,children:"Logout"})})]})]}):g.jsx(g.Fragment,{})]}),g.jsx("div",{className:"md:hidden",children:g.jsx("a",{href:"#prebooking",children:g.jsx("button",{className:"bg-red-600 text-white px-4 py-1 rounded-md text-sm shadow-md",children:"PREBOOKING"})})})]})})})},$M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAABRCAIAAAAGtoy0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIwElEQVRo3u3b61NT6R0HcP4IIZeThFy4m5AEBRLAXDB3FLoGkeViQLmJLF0vuwOFVbCgQNkRgrNapNSK7u6YjjM7TDvWzTBtyep0rRYkWqer2y7MONOhSpnyat/YX3jI2QyS5DknJxFbznyHyUw4D+eT535OiNv2v3LEbUn+PyQJcgnHnku0mgT9+wXOCr7z3cRrh+Env6+UOF3CrdOyrcr4FMHmlbBUaUS9XnjZIbpWJwwIMFAEE4fI8CcO8YbLlftUUj6xiSRsVZqg+x0AkMGR8K8eOtNZ/qxkt1OtlBHcNyxJSBGAQXy9HvID47IDmhY0MLZeBq2IDFQaSy/lVOYTp4uBkT5e+/vavSB5VlwIcaoUkXgiknBLVaKxGsSAAIDXaoLLxTk3ns+RFSpcehVioHjMBSZxYkwlYrH4Z58MNU1dSP60ETF49Xq4OBpFQT2MF+z0Y/SQduX2GEnkcvmdO3eWlpb++WJxwuvOPF8Dg1WErdSRkewxFSAJPUwcjdrwer1L/mPg40Gmhj6oHJc2h8Q4VfLoShomeqf//vDl0ktgvH/iGONzUW+2bA2zV9euzIiWhNdQKLnekHS98dgfRmvrDkdptm5TZiAJpEQiZF7Cte0ABgqvaldUlx7DuQokGcnOFLNYTEpg3hCNVCEGv9Uc7UWUiM3ymPJAciN/R0OKhEkJ/8dmMChutMou1tMbbakeagEPJHcMeWekaXIuhxkJVAiqjYm5LxsaGmK2vG1TZHxTpB3Nlp9IT2ZGgioEcnSsN5YLdWhjM5Zd94wFF7JkYaslvATaknisFknYeCsRZqvl2R7dnHXX2XBzZRz+kCUcqYz9/knEYoEE8jebBqooIomgbQ9aWXFsWW9kM+jSZIPkaZH2qDQlIonkF7VIQmOXB+ti2CHy+uwQ2C1y6rQ0CnGkJyPJjV076UvMNmu750rG582JA2WU/jxcMa+rZP3WajU+D59NqYEBA/IXSwF9ycmTJ2F9devp13v7j1JiwK59QwYKcW4fJcy0IQ9hZASHpuT8+fNozdvd3Y3/hwMZ3PeMsE9MUKX6dosf2nzb96u1EPZhLX6B43lKJNmXLKYpcblcSFJeXo67p7cp1+phtBoA69+tykcSSFpBMmaZwzmZSOJIS6IpufaF68XLFyApKirCrZD+UiRh23M2HtZPFQOj01020oM7GLbJ05EEXtCUpPccaJoa+fVf/2i0YK0aYRol21WwnpCQm9o7tf/7p7a5W9rYSQRdPxJdq0u+3pC4W4nZ19ea1nDQ1iiVEsB49a1l/is9RYmGvoTXakL3rNh40yKORCkjXn1rpSTx93hNiMkxjIRjz0USol5PScILI7FQkvxWlwsMSIh7SHFhJ2kkETgr8CX8MBIuJYmM4KIKgUS0Wkm87BCu3gvFuSXnmxORZLQ62O/o8viUJDDyIga0scjWwvU6dFcXXmDdtRitRpiEIPIWRxqSeFz5eBO8Gkkc6ZKIJFAVa/enLx/E2fdy3jOuLUn67K+/myXjznv0SNJSk4pfIdMGFQN7RlgLIgynKvynGC+XkEuSI2M2uHTyrRKTiGR8h9e0yAoJMf5SkEC1kAsQnGU5e18OMND0BwMuzIDQkEjDasw6NT9sOVXbU8kKCbF2pHZvhThdjDCwzcD5feuRbMRAU0dg/j1rqLYnhR9pEhMnnUNPSgpDTyOUJb5BabQaYWBVi3MKzBtQFesMl84qlTKshyTHjx//87179z/6IGwPoXwPklOZL/CPsPi7C7GIBd0DolNT2C2qVKrZ2dkHDx7cu31LJRQwLPF1/T772riE18boHVKp1O12P3z4cGZmprOzE/MsahLfntY/XUC3jpJkcHDQ6/XOzc3dvn0bektUJL5xyZ5DbpVgfc44A/bbXv8BlYN/Ip1nWpwWA5IQQweYfaxuMBhIRlNTE6VzaT1n5HO45+wkhp/IZoQhl8vv37//+PFjYHR1dVE9neYTU6gKYqgcJD1TpVN4y6ewjEePHi0vLy8uLk5OTtIogf5T7PhMScfkO98/9U18nzmzI2GIxeK7d+8urx7gAVVMJaur2lRy1utvz6RdDoxRJEOhUNArJNLvSHS0ZKB1FKS/XUajhPHxccRYWFigzdjGyPdWBtozkYQGJpCh0WgiuQxmvoETgDHhY5pP/fJfLxBkGf9+WnQlfowJsjBbqz9wPOzvZx+8Ujy48vn0f4DR2NgY+QVgSWCrGJ8skEoJWMaiBMHIgOG48A/bwIq8pCfobocQA8PavwIBjNnexMhHGRcawKrM4wyVca/WdLhh22Qh+8P8V3qJaIMnTJbKFmBArAMrWWXODRnaE18jhrH7uSBDw1SjiAsx9yEDBKa/QAZqRcUm0cZzXEmPdVUCUdffhEv/4eaGWBElRigJyehwly3OGOc9usB4XOoQhW43f0hiCjueAAAxCn/yBDHgBSFRbGP02FiSYFWAgfMrR8eX+98/sl0sYlEtN0lVYTrz3IdZve4kdQVUQvQYQSXsDyzA+OmU/erwTtpFw+WSlUAGWhc3CoygElFX0bHfQRc3F5uEkZQeiLH0r+ysvhLYbWIhOfVz/co3vp590B7pl+ng0lV1N4GRWdyzLZrHxpLPnDtePTNBLvUy0xKYHaYoSEpMQiSBgEqXxyfnRIg4JR2ajS9iyuH6E9jM4DU3yFsMjMIwzpKYwCzM1B4be7CuH6+LJUjMfRvE9HrOrezueq5udqdqmxiQwGf/nUfrBxhRFmZqmi95qQKCGYIxAqPY72Rm3dXiSPnNeM78tAbyp1tlzR9/AWPR64G5whJ5VbzGMK4GE7NJ/2uDn67JOXzT6Mfg9JxN/f8n0FWQJAWjw2xqibzUiSTSvT1vvcRwdgXy1ks0bU+QRJJb8bZKhMo9qmY3YkDQvmATSaAHrxtnyaF2XUgDZtOKqQQ+V6oGSFbllVjfW8E5pEUfZZVfXMuBi8pwESqsb+Au0Rs/tiRbki3JluRtPP4LA1qNnvVH09YAAAAASUVORK5CYII=",KM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAyCAYAAADx/eOPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAbYSURBVHgBxVq/bxRHFH67axIKDp8hDTSc7QSaRDFyRcW6SoMU3CClQF4LECXmL7BdUuG0ILAtIUVCQhBBkzQsFZWFEakIkK1CdbEVp7CJd5fv7ezdvZ3b25vbO9ufdHc7szO38837Oe/OogJsuLUqkT1DZE2gWcNrE68nROGLET8IqE/cvXt30rKsk3jthGH4n23b/+L6nytXrvxNJWDldaYkbuD2HJrVnCEBXjdH/PdPqCRWV1dP7+7uunn3QGgL5D6C3BqIbZEh2siASA1EHqfS6DZ9asR/51MJPHjw4NTOzs4P3cZFUfTWlFSGTErkObpr2WFxgD684pp2D33hWajcJpXAvXv3zsVx/BVfY8HHcP1lp7EgtXbt2rW1ou/TyIy90iQSoD0rd7/uji/ZRDfEGB/qNkUDAMhVhoaGTkD9aqRsNAOQ/Xj06NHfLl269ClvfpMMiMyjuSDuBdj1qTxD10lHFN887n9YogGCiUEak5DYadnP9nTkyJFHeYQstbg29Qo6EWmNd0Co6Rw2U3XLHd8P2FHAGUxCKhXRXa9UKk91Qja/heS40hYcooWihal71qLoqiqnMXjMzMy8BZFnLBHRfXxra2tSH5tK5mvsctxQmwA2MEoG2HDHmcDFVk+8NOJ/uEmG4DiDjwoW+8lxnKAovrDagdAFTULP5BxbxZRY6v8qGSOcVZ6uAWsOG+OazGT1gT0kNgEi36Lrwv3793+6c+fO6bzx7JoPHTrkyz6QOy/bULOhiWyH7ZMhlEu2Z7O98bLaoGJsb2+3uWHedRBzU4m14fLlyx/x8UaOl+TtkGLtwbsB9QB22xHRz6KrFpE9123e9evXeVFv2N3q91hikNL5vHkw/DVOf8TYM81ryk9XeoJN4YJUN5usGybSgeq8vHr16lNc/gKJZAIiSJ7hoKrPYQ8G7/ZHow1iJzDupHruAJCjblVdfYvA9uB53hoC5iO568B3y8vLNX388PDwG9lGPDrBn7aTpCkZlJSUlUlpHNodph4BN1yHkf8u+yChcw8fPvxC9qXxpS7GqJRItxHou0ulEM3LVkj0mkqAjZzzsEabjXxjY+NM29OiqEkGEj3Gn3YaHJu7Cn3/nnqESoVkvOF8rXw2wGok1Q32VNPHSDKN2JPYTETRr2LcReoBOTndpoo/5cFqhAW+bbTZyPUxhw8flrZFt27dqiRk4mxsqZoGvhwijNlB5GhQnbpotiWVcMmZ883o6OhOQsahkE+MwoDjeTKDp7Vn+zl9SnBORq049FK/LwJoHcResjSbR4C6O7bE8aE1PBzttsPIzWLRXAGRvtSrX9itC1vbUcdEOr649jbcb4xjy16gSSY9TfrintfddjLHACB6rM46BwMtA9AXV2w7eXkZn2tMUpm9QIZMKh2pbi5saa74C5K8bL3Vw8dp5zYdAHJys5APVzKIzhepjsrLounsuYZVdGzfCbWRyT8SO8tFX6LmOCAk3Tsf1MZMXfxAYHW6AbeLAge5jbZJBUZ5s+hVtjdGPeHDIu0DCsi0VWDIpIKJTfDwoUuyMAYpr5k4G1f1sA1aqCe87+EIX0AmfQiMP5a6HxSVoFrzxj1qJ+Rj7rRe/VS2ZXVyMoHJ8xooPJxBCktlXC92dAUfmg3xrjuvpDMB6eUCIunznL9Mbc8yGZRTtn2CBU93n8c2FD7W6tObsL/F9KjhyfHo543bxA7P5NS719lrFknJkExeQd2sRta5GJ8BH7uhTn+up3OqETkLWk2bEVBSoMy3JSMyrUXpDsHMU/HcdHEzObczRLLzxj3lGKyadmsFEl/UpWRMRn15f643Z3EBiEznEWnNSTaRnYmr3Wqb2xOZ1oJ0T9VbLFGumAsg/wemv+1gzkJerijjX89k1BePe5QTSzgVKvvDk9lzO9mfin+l6map69WDoMcP2ssjANsINGBUCxdAnNhi6SKgImTxL2YyH+OM+flen2mO++85Nsns/iK/9VXRVKlNeFbLmGvs9bodHfoFbEXW5RIP23d5VrnHaEojVEVQvM0Rfg8PavJ7E+0YVK05AKGz0GU9mHkqhTErXfUCLPxH0VxP+wYD9mLQZa/96M1qFz9PpVSjASCt19UabSfxpCVdc/eHdUxhAhBbgRRXyxYKQYT/OSLPVc2fLQcmGQmhdpoLZSlxBZQ93tjtXiWVSkQ/IDbzwz2RTHYBXRNNn1TAfZH/n4PGn5HY/vS/wFjIz94tNFu0TyhIGiXYK4k8re3vLQJZIkkP7TMMSRWBCefWtPedTAPsrhH4PJvi84bEQMKCDe4udcr/DoyMRHq0mAC5CQTbU6QCIi8Yp854Hb/mvTb5K9hnwGYlRaZ7LogAAAAASUVORK5CYII=",WM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAtCAYAAAAOYyOGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAU8SURBVHgB1VpbdtpIEC21PPMbONmACDPfjlcwYgWDVxC8guAVBK/A9gqCV2DPCqJZge3vGRzlf3zgzGcSpNyr7oY2CBAgELnn8FC3hHS7qm6VSngCDMOgloh/pUT+xGZNfh5EIuOzehTH7qDHt2H45jO+BvJzYgRiJy6xo//CZgefgbNTP5H0ixw2akq89/Z7Ci/DZ9tOHnmShCLKPaCNA7r1aHAjB4hh+PtbWObWHYO7HbvbKuc4xlQfLvlBDgy4Jlgn+eSEyihvP5dUjNepSBrrTa+HH7mHiARyAMC1XOKa6GZGyLzzRJK/8vZ9YSm43B1WouUQg6n9T9rk1YCLysXFtXTNUIzvrXr079WiY+bcjypSj54aici1GQpA9L4KdxyGv4VY1Hu9uBkixBMJRcuOU4smXkeDLk08HaE7Nj8yp8keoBcxRfxM8uY1PKk1m5PyoJZNahOPG1N3lA5XbpdxxkXD4t1yEc0QxQAJdtAt+htq1Q56ZRhncmeGAk2s+U5Kho5dBXeb5JxYJ9ZBX9bASlKEjrMBlNG7MEOly36OXN/MVgpFUYiUBdyxR+UpW/bz5BqL2AGhkWyAtUgRWnnKkf1N5LoI1iZFlCH7m8p1EWxEysKRfeMmxWR/G7kugq1IaXyHKqau73cWyX6OXGfwRe6lRGxFSl+4chQrfTBTwazs58u1tvAYSvp/iSliY1LzhLwLxNlJnuwvkmscz/xXOrGNSOUTotzny/4iua5H/zzsgtjapJYRspiX/QxxnlzPE0t72+a9tUgVIWQxI/vRMrmeEiPpp0ZRFVTiP+SNe89ho69E0eQshRpSAqEyoM/nh+iXBNzG6g/x/ji7MGa/j0wJduyo+Al2T0jnN8WGStsmZaUbXgYp9mnSTZFGxhfaGzKrttzfWel++yPECoOSnwnLspKLgtOBdT4vqmDU8hPtixAVL32R75SkXd7Lwa08vvC9jonTJEsHFrqCmf29hTG1L0LoO7ZRUdiW18icZ2lBO39t0se1n9n5o2IH7SyGAljl0jSKR1RArYR2ni6ZHMM6dcQWxsecGyWiOvi88SRte+Kx59d5Dt88vo6ernJJ7VPl0L/vqWl3+MwSMmTgVlQ+z4kRn2/wLMYUj0/PQew9rxWkUbkEfSZ1VRUhngsnt9VDX7fn8uJrDh37JRWP1rVuh4ccKrsvc0nV9pmHxshBzlZWL5pKwsbTSNeR47oWCm+2Qslg8hZflP93+nOK2r4IEb5+bCRUOltB0B1lWiOe8hrsLb0pvU6cO4EJ4Ia2UxtwYRBTDEBxi8gY7VxB4PWkZDDYrZvpBUzpQl+c+WOOAVFeSUWCiLdzc4Pp/K4fkRqBxTo+UpL0dRbnSTJkQSe7QV8mrbaEnkFa8XQ6zZIuVv7vxT/xPTaC4eDbyI59Fb+utHmTlklqG3VvtgEW8JWzac+/pB3wy5I5jUzSjU93ZK/I3D6Qlw/8OBYy4BEbvfwWWbryfquEHsVmcJ5WvnUaNbYEwrZ/OdvAMXLftdtwXjM/td6vMh56UhF0gtUBD4IXqAZ6erzJsdDsFuMVcQFgvT+ccQtUF+m1fgBvi+BxozJShENgpItXqhut49/KPAELVAzpVTLTkTJgq61bmftpuE0aP6u2de8iu+FjpRDJRDyoklkybryKnnjcqZOzTCGsn4xUainiOWz2nXLpzvwvYisVrthSvIBx11nxdhmPiSq3FOH848YlQ2tRJB65gXu+qGif/SBIWQyzP6qkH/IqdFchV6Fy93PBJ4ZskYkWibu84rUIfgDfz7K8dpIMJQAAAABJRU5ErkJggg==",QM=()=>g.jsxs("footer",{className:"gray-text py-10 px-6 border-t",style:{backgroundColor:"rgba(157, 157, 157, 0.1)",borderColor:"#9d9d9d"},children:[g.jsx("div",{className:"contact-info-parent-wrapper",id:"contact",children:g.jsxs("div",{className:"contact-info-wrapper",children:[g.jsxs("div",{className:"single-info",children:[g.jsx("img",{src:$M,alt:"contact icon"}),g.jsxs("p",{className:"location-text",children:["G.L. Roy Road,",g.jsx("br",{}),"Kamal kachna, Rangpur"]})]}),g.jsxs("div",{className:"single-info",children:[g.jsx("img",{src:KM,alt:"contact icon"}),g.jsx("p",{children:"01837-301960"})]}),g.jsxs("div",{className:"single-info",children:[g.jsx("img",{src:WM,alt:"contact icon"}),g.jsx("p",{children:"motohuntersbd@gmail.com"})]})]})}),g.jsxs("div",{className:"footer-main max-w-screen-xl mx-auto flex flex-col md:flex-row flex-wrap justify-between gap-0 pb-5",children:[g.jsxs("aside",{className:"w-full md:w-1/4",children:[g.jsx("a",{href:"/",children:g.jsx("img",{src:Ah,alt:"Logo",className:"mb-3"})}),g.jsx("p",{children:"Moto Hunters, located in Rangpur, is an automotive dealership offering a range of high-quality new and pre-owned vehicles. Known for its customer-focused service, Moto Hunters also provides maintenance, repair, and financing options to ensure a seamless car ownership experience."}),g.jsxs("div",{className:"footer-social-icons flex gap-4 md:py-3 py-1",children:[g.jsx("a",{href:"https://www.youtube.com/@graphicsitbd",target:"_blank",className:"gray-text",children:g.jsx("i",{className:"fa-brands fa-youtube"})}),g.jsx("a",{href:"https://www.facebook.com/Graphicsitbd",target:"_blank",className:"gray-text",children:g.jsx("i",{className:"fab fa-facebook"})}),g.jsx("a",{href:"https://www.linkedin.com/company/graphics-it-bd/",target:"_blank",className:"gray-text",children:g.jsx("i",{className:"fab fa-linkedin"})})]})]}),g.jsxs("div",{className:"w-full md:w-3/4 flex flex-wrap md:pl-20 justify-between",children:[g.jsxs("nav",{className:"w-full md:w-1/3",children:[g.jsx("h6",{className:"font-bold mb-2",children:"Motorcycles"}),g.jsxs("ul",{children:[g.jsx("li",{children:g.jsx("a",{href:"#Classic350",className:"gray-text",children:"Classic 350"})}),g.jsx("li",{children:g.jsx("a",{href:"#Meteor350",className:"gray-text",children:"Meteor 350"})}),g.jsx("li",{children:g.jsx("a",{href:"#Bullet350",className:"gray-text",children:"Bullet 350"})}),g.jsx("li",{children:g.jsx("a",{href:"#Hunter350",className:"gray-text",children:"Hunter 350"})})]})]}),g.jsxs("nav",{className:"w-full md:w-1/3",children:[g.jsx("h6",{className:"font-bold mb-2",children:"Quick Links"}),g.jsxs("ul",{children:[g.jsx("li",{children:g.jsx("a",{href:"#",className:"gray-text",children:"Shop"})}),g.jsx("li",{children:g.jsx("a",{href:"#",className:"gray-text",children:"About"})}),g.jsx("li",{children:g.jsx("a",{href:"#",className:"gray-text",children:"Video"})})]})]}),g.jsxs("nav",{className:"w-full md:w-1/3",children:[g.jsx("h6",{className:"font-bold mb-2",children:"Contact"}),g.jsxs("ul",{children:[g.jsx("li",{children:g.jsx("a",{href:"#",className:"gray-text",children:"Kholifapara, Dhap Satgara, Rangpur City Corporation, Rangpur-5400"})}),g.jsx("li",{children:g.jsx("a",{href:"mailto:graphicsitbd@gmail.com",className:"gray-text",children:"Email: graphicsitbd@gmail.com"})}),g.jsx("li",{children:g.jsx("a",{href:"https://wa.me/+09611656061",className:"gray-text",children:"Phone: +09611656061"})})]})]})]})]}),g.jsxs("div",{className:"max-w-screen-xl mx-auto flex flex-col md:flex-row justify-between pt-5 text-sm",children:[g.jsx("aside",{children:g.jsx("p",{className:"gray-text",children:"© 2024. Moto Hunters | *T&C apply. Images shown here may differ from the actual product."})}),g.jsxs("nav",{className:"flex flex-wrap gap-4 justify-center md:justify-end",children:[g.jsx("a",{href:"privacy-policy.html",className:"gray-text",children:"Private Import Policy"}),g.jsx("a",{href:"terms-and-conditions.html",className:"gray-text",children:"Privacy"}),g.jsx("a",{href:"terms-and-conditions.html",className:"gray-text",children:"Terms & Conditions"}),g.jsx("a",{href:"terms-and-conditions.html",className:"gray-text",children:"Cookies"}),g.jsx("a",{href:"terms-and-conditions.html",className:"gray-text",children:"Sitemap"})]})]})]}),ZM=()=>g.jsxs("div",{children:[g.jsx(XM,{}),g.jsx(Ub,{}),g.jsx(QM,{})]}),JM="modulepreload",eN=function(t){return"/"+t},Rw={},Ka=function(e,i,r){let l=Promise.resolve();if(i&&i.length>0){let h=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");l=h(i.map(m=>{if(m=eN(m),m in Rw)return;Rw[m]=!0;const v=m.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const w=document.createElement("link");if(w.rel=v?"stylesheet":JM,v||(w.as="script"),w.crossOrigin="",w.href=m,p&&w.setAttribute("nonce",p),document.head.appendChild(w),v)return new Promise((x,T)=>{w.addEventListener("load",x),w.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return l.then(d=>{for(const p of d||[])p.status==="rejected"&&c(p.reason);return e().catch(c)})},fS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Mw=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Nw=/\.(m3u8)($|\?)/i,tN=/\.(mpd)($|\?)/i,nN=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,iN=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,aN=/vimeo\.com\/(?!progressive_redirect).+/,rN=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Cl=(t,e)=>{if(Array.isArray(t)){for(const i of t)if(typeof i=="string"&&Cl(i,e)||Cl(i.src,e))return!0;return!1}return e(t)},Fa={html:t=>Cl(t,e=>fS.test(e)||Mw.test(e)),hls:t=>Cl(t,e=>Nw.test(e)),dash:t=>Cl(t,e=>tN.test(e)),mux:t=>nN.test(t),youtube:t=>iN.test(t),vimeo:t=>aN.test(t)&&!Mw.test(t)&&!Nw.test(t),wistia:t=>rN.test(t)},sN=ze.forwardRef((t,e)=>{const i=fS.test(`${t.src}`)?"audio":"video";return ze.createElement(i,{...t,ref:e},t.children)});var lN=sN;const oN=[{key:"hls",name:"hls.js",canPlay:Fa.hls,canEnablePIP:()=>!0,player:N.lazy(()=>Ka(()=>import("./react-Ca1Iu9qz.js"),__vite__mapDeps([0,1,2])))},{key:"dash",name:"dash.js",canPlay:Fa.dash,canEnablePIP:()=>!0,player:N.lazy(()=>Ka(()=>import("./react-CpDyoesV.js"),__vite__mapDeps([3,1])))},{key:"mux",name:"Mux",canPlay:Fa.mux,canEnablePIP:()=>!0,player:N.lazy(()=>Ka(()=>import("./index-DWDWqxJH.js"),__vite__mapDeps([4,1,2])))},{key:"youtube",name:"YouTube",canPlay:Fa.youtube,player:N.lazy(()=>Ka(()=>import("./react-Bvrfb_BW.js"),[]))},{key:"vimeo",name:"Vimeo",canPlay:Fa.vimeo,player:N.lazy(()=>Ka(()=>import("./react-DtQdP2Wp.js"),[]))},{key:"wistia",name:"Wistia",canPlay:Fa.wistia,canEnablePIP:()=>!0,player:N.lazy(()=>Ka(()=>import("./react-F2wbSUnA.js"),[]))},{key:"html",name:"html",canPlay:Fa.html,canEnablePIP:()=>!0,player:lN}];var Ch=oN,Qf,kw;function cN(){if(kw)return Qf;kw=1;var t=function(L){return e(L)&&!i(L)};function e(E){return!!E&&typeof E=="object"}function i(E){var L=Object.prototype.toString.call(E);return L==="[object RegExp]"||L==="[object Date]"||c(E)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function c(E){return E.$$typeof===l}function d(E){return Array.isArray(E)?[]:{}}function p(E,L){return L.clone!==!1&&L.isMergeableObject(E)?I(d(E),E,L):E}function h(E,L,k){return E.concat(L).map(function(Y){return p(Y,k)})}function m(E,L){if(!L.customMerge)return I;var k=L.customMerge(E);return typeof k=="function"?k:I}function v(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(L){return Object.propertyIsEnumerable.call(E,L)}):[]}function b(E){return Object.keys(E).concat(v(E))}function w(E,L){try{return L in E}catch{return!1}}function x(E,L){return w(E,L)&&!(Object.hasOwnProperty.call(E,L)&&Object.propertyIsEnumerable.call(E,L))}function T(E,L,k){var Y={};return k.isMergeableObject(E)&&b(E).forEach(function(D){Y[D]=p(E[D],k)}),b(L).forEach(function(D){x(E,D)||(w(E,D)&&k.isMergeableObject(L[D])?Y[D]=m(D,k)(E[D],L[D],k):Y[D]=p(L[D],k))}),Y}function I(E,L,k){k=k||{},k.arrayMerge=k.arrayMerge||h,k.isMergeableObject=k.isMergeableObject||t,k.cloneUnlessOtherwiseSpecified=p;var Y=Array.isArray(L),D=Array.isArray(E),A=Y===D;return A?Y?k.arrayMerge(E,L,k):T(E,L,k):p(L,k)}I.all=function(L,k){if(!Array.isArray(L))throw new Error("first argument should be an array");return L.reduce(function(Y,D){return I(Y,D,k)},{})};var G=I;return Qf=G,Qf}var uN=cN();const dN=iu(uN),fN={width:"320px",height:"180px",volume:1,playbackRate:1,previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}"},hS=ze.forwardRef((t,e)=>{const{playing:i,pip:r}=t,l=t.activePlayer,c=N.useRef(null),d=N.useRef(!0);N.useEffect(()=>{var v,b;c.current&&(c.current.paused&&i===!0&&c.current.play(),!c.current.paused&&i===!1&&c.current.pause(),c.current.playbackRate=(v=t.playbackRate)!=null?v:1,c.current.volume=(b=t.volume)!=null?b:1)}),N.useEffect(()=>{var v,b,w,x,T;if(!(!c.current||!globalThis.document)){if(r&&!document.pictureInPictureElement)try{(b=(v=c.current).requestPictureInPicture)==null||b.call(v)}catch{}if(!r&&document.pictureInPictureElement)try{(x=(w=c.current).exitPictureInPicture)==null||x.call(w),(T=document.exitPictureInPicture)==null||T.call(document)}catch{}}},[r]);const p=v=>{var b,w;d.current=!0,(b=t.onReady)==null||b.call(t),(w=t.onLoadStart)==null||w.call(t,v)},h=v=>{var b,w;d.current&&(d.current=!1,(b=t.onStart)==null||b.call(t,v)),(w=t.onPlay)==null||w.call(t,v)};if(!l)return null;const m={};for(const v in t)v.startsWith("on")&&(m[v]=t[v]);return ze.createElement(l,{...m,style:t.style,className:t.className,slot:t.slot,ref:N.useCallback(v=>{c.current=v,typeof e=="function"?e(v):e!==null&&(e.current=v)},[e]),src:t.src,crossOrigin:t.crossOrigin,preload:t.preload,controls:t.controls,muted:t.muted,autoPlay:t.autoPlay,loop:t.loop,playsInline:t.playsInline,config:t.config,onLoadStart:p,onPlay:h},t.children)});hS.displayName="Player";var hN=hS;const pN=N.lazy(()=>Ka(()=>import("./Preview-BCsTP_y3.js"),[])),yl=[],mN=(t,e)=>{const i=l=>{for(const c of[...yl,...t])if(l&&c.canPlay(l))return c;return e||null},r=ze.forwardRef(({children:l,...c},d)=>{const p=dN(fN,c),{src:h,slot:m,className:v,style:b,width:w,height:x,fallback:T,wrapper:I}=p,[G,E]=N.useState(!!p.light);N.useEffect(()=>{p.light?E(!0):E(!1)},[p.light]);const L=X=>{var $;E(!1),($=p.onClickPreview)==null||$.call(p,X)},k=X=>{if(!X)return null;const{light:$,playIcon:F,previewTabIndex:J,oEmbedUrl:ie,previewAriaLabel:ae}=p;return ze.createElement(pN,{src:X,light:$,playIcon:F,previewTabIndex:J,previewAriaLabel:ae,oEmbedUrl:ie,onClickPreview:L})},Y=X=>{var $,F;const J=i(X);if(!J)return null;const{style:ie,width:ae,height:oe,wrapper:pe}=p,be=($=p.config)==null?void 0:$[J.key];return ze.createElement(hN,{...p,ref:d,activePlayer:(F=J.player)!=null?F:J,slot:pe?void 0:m,className:pe?void 0:v,style:pe?{display:"block",width:"100%",height:"100%"}:{display:"block",width:ae,height:oe,...ie},config:be},l)},D=I??Dw,A=T===!1?Dw:N.Suspense;return ze.createElement(D,{slot:m,className:v,style:{width:w,height:x,...b}},ze.createElement(A,{fallback:T},G?k(h):Y(h)))});return r.displayName="ReactPlayer",r.addCustomPlayer=l=>{yl.push(l)},r.removeCustomPlayers=()=>{yl.length=0},r.canPlay=l=>{if(l){for(const c of[...yl,...t])if(c.canPlay(l))return!0}return!1},r.canEnablePIP=l=>{var c;if(l){for(const d of[...yl,...t])if(d.canPlay(l)&&((c=d.canEnablePIP)!=null&&c.call(d)))return!0}return!1},r},Dw=({children:t})=>t,gN=Ch[Ch.length-1];var vN=mN(Ch,gN);const yN="/assets/bg-video-xlpDXw8d.mp4",pS=()=>g.jsxs("div",{className:"relative w-full h-screen overflow-hidden hero hero-wrapper z-0",children:[g.jsx("div",{className:"absolute top-0 left-0 w-full h-full object-cover -z-10 video-bg",children:g.jsx(vN,{src:yN,playing:!0,loop:!0,muted:!0,playsinline:!0,controls:!1,style:{width:"100%",height:"auto",aspectRatio:"16/9"}})}),g.jsx("div",{className:"hero-container relative z-50 flex items-center justify-center h-full md:px-4",children:g.jsxs("div",{className:"hero-content text-center text-white max-w-2xl",children:[g.jsxs("h1",{className:"hero-title text-5xl md:text-7xl font-bold  leading-tight md:mb-4 drop-shadow-lg ",children:["Moto ",g.jsx("br",{})," Hunters"]}),g.jsx("p",{className:"hero-sub-title text-2xl md:text-3xl font-medium drop-shadow-md md:ml-[-110px]",children:"Rangpur"})]})}),g.jsx("div",{className:"absolute inset-0 bg-black  bg-opacity-30 z-0"})]}),wN="/assets/Moto%20Hunters%20Logo-img-gallaey-BiLZCVdD.png",Iw="/assets/Classic-C4LZ7OUl.png",_h="/assets/metero-KSkM6Yi2.png",Oh="/assets/Bullet-B3KiNIbW.png",Rh="/assets/hunter-BzVbA_1I.png",bN=()=>{const[t,e]=N.useState(wN),i=r=>{const l=r.currentTarget.getAttribute("data-img-url");l&&e(l)};return g.jsx("div",{className:"bike-accordition-section py-12",children:g.jsxs("div",{className:"container mx-auto px-4",children:[g.jsxs("h2",{className:"text-3xl md:text-4xl font-semibold text-center mb-10","data-aos":"fade-up",children:["One of the ",g.jsx("span",{className:"text-red-600",children:"Most Favourite"})," and"," ",g.jsx("span",{className:"text-red-600",children:"Royal"})," Bike Collection in"," ",g.jsx("span",{className:"text-red-600",children:"Rangpur"})]}),g.jsxs("div",{className:"flex flex-col md:flex-row gap-8",children:[g.jsxs("div",{className:"w-full md:w-1/3 bike-img-list flex flex-col gap-4",children:[g.jsx("img",{src:Iw,alt:"royal enfield image",className:"bike-list-single-img cursor-pointer transition-transform hover:scale-105","data-img-url":Iw,onMouseEnter:i}),g.jsx("img",{src:_h,alt:"royal enfield image",className:"bike-list-single-img cursor-pointer transition-transform hover:scale-105","data-img-url":_h,onMouseEnter:i}),g.jsx("img",{src:Oh,alt:"royal enfield image",className:"bike-list-single-img cursor-pointer transition-transform hover:scale-105","data-img-url":Oh,onMouseEnter:i}),g.jsx("img",{src:Rh,alt:"royal enfield image",className:"bike-list-single-img cursor-pointer transition-transform hover:scale-105","data-img-url":Rh,onMouseEnter:i})]}),g.jsx("div",{className:"w-full md:w-2/3 accordiation-viewer flex justify-center items-center",children:g.jsx("img",{src:t,alt:"royal enfield image",id:"expandedImg",className:"img-fluid max-w-full h-auto shadow-lg rounded"})})]})]})})},SN="/assets/classic1-Cze9TTMI.png",EN="/assets/classic2-8ra9bBBx.png",xN="/assets/classic3-CP_dUh3b.png",TN="/assets/metero2-CbYz0jsN.png",AN="/assets/metero3-YV5FIQpF.png",CN="/assets/Bullet2-DvK9dkJv.png",_N="/assets/Bullet3-D-hURsOJ.png",ON="/assets/hunter2-BjsVlIi-.png",RN="/assets/hunter3-BPwtoKtB.png",jw="/assets/royal%20enfield%20logo-CkrJVgeu.png",MN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAnCAYAAACFSPFPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR9SURBVHgB1Vf/UdtKEF4x+R+9CrhUEFEBogL7VfCcCnAHMRU8U4GhAkwFFhVgKrCpAFOBsp/uW2mlEbYwmWSyM+vT3e3d/t49i/xmKMtyrLhSzLt7J/L7ISjuFK+6G19kAEATHb4nSbKVI0HvyHTI8al4o5jKRwGXKP4P87q1XDEQ77G/5zxo/lNMOU8p2HGACzlO6XPAreIVv1+NWc/ZmQyERD4A1MiYnim+qeuWpql+rzv0oE0/4959wqTMBLPGHC7gXujQ3pM26+69B0MDGBoiZoLETNhy3CiC2bOOqUtXWOqa3zgTaD2cm6uldn18BrmJmpmL1tK4KnD+TfFcEVlXCQaX8VyuWPB8qJgmyVx+JbhsgkWePhKo78FQy+QVcZIU/DYrwdxLzlHEUD+23UAeCgcrMOMFjEasNZgXEv1/KzGWUMi+S3QDrLRR/PFeun8amBVpz/rUMoa159Vl3GZoJgEG9yaaftxTPRG8EDJIrD03Snsp0VJYX8hA6I0ZWgD1o84AiVnyxBFrhTTpXjCeWkWOgk8Ul9iXA3DSIwgumJLpG0cEJgL13AkHyMm84LxVbWFNRdz1TY4FNsIFfb5howvcS13znPsGyv1pTzXGmYk1WBkKzAILvnwP3ZhMKkY9yky8Au7MjLhyCOu12wEE0WEmMW0vYXIKVFXeTsODO08VH7qCiKvQdDuEQxuAq5c9ioWWhblQpyM1XpTxmRB6NB9xL+U843egtq89LhzTYplby8gn85axFJzRIih0dxIzpgu5xEKH4L5QfAQd+xH2XyQWRDAqdLyX2DixiRJxpusXvOtFz6EMxGyiaYEo5Xe0BEp9jmzw7qH/cekjzX7OLly5ht9Y/0eiazEHszMKCKEfuD8xi9XC2KLE2mHzViw4wMEthQW8cvTPAuvsOQUE/VdaZ0Q3gQZ17oK0dQBbHVg6BmC6pCXuuf4vx8Q1w1bhJP1O92fShi3vt2q9Jp+EfPITq5okfua8fpPoOOfhG46mlWdSjWXzLM06AubUANYrpMnMnTtfBbBd/uZSGXNkyIoCzPjWnUvbRSJNGle9i9qvmQCIC7SVBwp1RUvsnNKwIualxQyy4ckupwbw5S2FeTYlJdYW07guZjqMSLuggl8p6A2tu6FwKduEWemMRXP3hRqdktBrWlBIcZZ4sD7k3LtjVtnfkhc2zTWF21LzO94xIq259NF4nlDCF8dwix9dv3Z+zblWSANgFEyQjtBVfDgL2LziVTaPNMu60/oeVs3MaVwDm+GmdC83K9/d3mXVtLNmjXXcU8mtv1X3HHwDU4AVp5e0SE6t7F1scWauwhnEoLksSJPOIs37OeNYPTcO/m8ik3OvjcQMwdqYy1PGCGjnjJEqxZ1LaiEoIASZ6Pek3PM62Atl/Ke44PfkA+cmXRe69dmhw1lP/PxgZw+le68MFCbviadQunfTu25iBwZD1BZkG1JyqnjN4pjpeCsDga5pCaID3k93Q+8wM67ontytBfkklM1LMJNjgOYey58E1oPx0Vr8bfATfszybx2yHb8AAAAASUVORK5CYII=",NN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAnCAYAAACFSPFPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAd3SURBVHgB1VhNbxxZFT314XbbDnKFQRokFq4IKaxQesQOCbkCCohEEM8viPMDkNviB8RewBI7v4D0moXboGRQIpi2YDdC6WYDQozSRow0mtFMykps91dVzTmvXjllj+0pz0iR5kmt6q56777zzr333FsNnBiHf0I0eISt/T9iCa95uCdvOB5uZ0Dg+FjEax6fAzPJ0EOCdSfD3v4jLH1Vhg7fQXj4CO9WmeucZaA+QOy8jVjf0xTLsyNs6vcZ8+8RfCMbYnXiI9S9b/wCnWwLwWAat5Eh9KawXfspurgomNOGWJq7ifZpwLmZTq7runGxg5Ukw92ag6x2E63nBHX5jIOUh4uKI8vQHz1G43MG/sd7Ce7O3IQzSdFJXAJOcN1L0R8m2NWcKkAqg8maCOf+giyZYOvgnePs1P6F7gxdIuZ8F3e8DFvw8C4TYeXS5Hy3nBzOOQACXlb4aSSX0Br9EKEzRNv/P8JsDgvjb2NPbGnu3BPG1g006aLYdbDI+AkyB3GaYYcsdV1+Zt7O5543/HOerRBqzDi4770k6iQ/5dSvGJhkauqfiAc/QCN9A8u83Z55gvbBjxGk4OZc57kEkyD0/0P2vlvNTZUD+KxBYPd4ucJP094KnM2chaqBWwwfX3K8fGiCuTEEltx/o1X7NV31EGv+ewagAHQpBZ0XVHR/gn4VN12IGaMbdawwVppcGOADrONbeJBOE9gEmE3QOfAQZR763qcI6v/g/B/xWR2on6NTxajMjPRkID3JjJ50GaCh+x1ccxms3icM6G/isvNLk2ntAriu9b8jczawXWWPyjrDDNkgIwrou7O38BZ/32e2hMOUm34ER1lUBjGuITxghlUFYvaoMkmVPHURKU3n8tOb4NSuop4xEg1uIHI9PCXA3mRCGWA20fiS3EmgC0aZmfqZmBti57QYqsSMgKg2FUA0TJb8DQv2Z9d7H32msimqtSnMsyQ0ZTxjHFEsW2S1R6C76QR7qCGyCVCNmcMthCp6NY/a4VC0fv7qJNIZSNw20Crdiyh8S9pcgYyCNTJ4OIM7TkqXZYaZLkZYP40ZA0Ztgutjhcgv80TPGBe7WU5p/9ItPChtKM+YE1FLOqX7y4NF/pb5q4hmSmuOHfAhBdIxuqTDrPGA6+XnPg0t4a/UhE1cP82AYQFGZbuTBcTDq4yHBPGLnyBSm2CnBTop5zYOruYtxIn1OkDsECSzsoM8K9f4HWVAjujlVZnQKpTTGoiIfp6uuF8+GVN6wxHVQ1ZqC0BgBJafe/s30MtYsUtATYYlH+C291+8xZ9rg5+xdmV4quCesMIXc13RzY/QRdkqBW3V1KRrMj7+PlWVmcQNtyxA+VWC16WOFQLWsEB0qO3p99Bn9T7GjiYOrrDFWDAJsKz4Y3AbRnzPuM0M1zIhQ/GQ6QnFDbWBwbicvolmrWc2WzWs8cSOqjiwc6SmbKD4TN8bRRzR6GKhNxq2PnVHV/N9tF/9JjazHGekknEERmP8JqmzpzTdG7WBWdRyP8Hzwn1q1lmVd1PnmKwHZRb8mNU6Retw2sTZ0WAidB2tWzTsRLn/8mxkhTeS4FpW+niDp8mRdtIxGr7agsfMCjJVGORpVmd5Ih+ltMyO5KG413c/pGuzHKSaccba78WU2hAL0szNrATAqreYMZFOMepRB5RVscRtTHHS92SWtP6OTXV5TPKYsMFbdHOGLa1xPkKbhrMRhY1It7lZdFBDUx2hBanAD9wps1auDwTWNz7fQHzwBx2S+mK1ZJ9iZwKaVXjwPfR4wk3qUMt1Ne1I7ASmfdJdUx+jz14Y49Q08WtU29ijvtDGopTYHiBkIHfZru54wPx4joWXpvckWlMfYr72qcmsWIE4FVPq6QLnBXr1J2wTGLQSQRq7nuq1pGmELWB3dyTt9iCIF01hDYqArNnNWa/ajJtrRcAbJl08FcDhUMxY//nvG1ELZHg8Yj/SMyfo2IXIFtFUJearR6QiOWuNGelPjN8FXnTDZtrqyRdA9sI7nHrZxslzXVjP9hhLu37CWLPpqOy5NglzYKxHkRfTl5uvskYb1G7l8WFTdb64bzZX802mRHexpiisoxx4X+tZKtbMQ3rErKeaqxmTgBbNVV8NU0oQTMF2EZQSOiqqoX6ObBXaYt0RlmLHBK7uJ2OEDFwUwMn0suKF9js4PvI9CES2jXfsA20SUD2DAoSulG14E7aPev/ZOcqehgUiAMagssZuHkgYx9QNClkgmffywthXpS4jKVi/dOvVu5UBw/Rt+L/FA252mx+ld1eA6o9ZFqQzeXnYs6dpGxYYNy9v5ODI6Hxx0gGBT9ewyXbU/Oab5hVcZGS/wYroPHlf3f7Bn82LXDU7zdyGEbpHeFYuCVWGyb5kH3ui8+RitYqMgV51c+YFT+2pXBJSbe8ds7eVixvOA+Md4hlV8L4Wj0rtILuzdrkV+KJha1gkpdU/EqrwKgUqhGJ4zL9Hvuh1pQhM02qW7z+/IM3WVkjlvmPs0fVymf6WO7SV+bUPxY7pIC84vvK79lnDNu3612q7aEG+VuMzRKB3uVDQbQ8AAAAASUVORK5CYII=";wb.init();const Lw=[{id:"Classic350",title:"Classic 350",images:[SN,EN,xN],description:"The new Classic 350 traces its bloodline to the 1950 Royal Enfield G2—and this perfectly-proportioned silhouette has been in fashion ever since. In its gleaming new avatar, the Classic continues to represent an era in which motorcycles had impeccable road manners and unforgettable style. From burnished bronze to desert blue, this thoroughbred motorcycle is now available in seven striking new colourways inspired by its past, present and future."},{id:"Meteor350",title:"Meteor 350",images:[_h,TN,AN],description:"The new Metero 350 traces its bloodline to the 1950 Royal Enfield G2—and this perfectly-proportioned silhouette has been in fashion ever since. In its gleaming new avatar, the Classic continues to represent an era in which motorcycles had impeccable road manners and unforgettable style. From burnished bronze to desert blue, this thoroughbred motorcycle is now available in seven striking new colourways inspired by its past, present and future."},{id:"Bullet350",title:"Bullet 350",images:[Oh,CN,_N],description:"The new Bullet 350 traces its bloodline to the 1950 Royal Enfield G2—and this perfectly-proportioned silhouette has been in fashion ever since. In its gleaming new avatar, the Classic continues to represent an era in which motorcycles had impeccable road manners and unforgettable style. From burnished bronze to desert blue, this thoroughbred motorcycle is now available in seven striking new colourways inspired by its past, present and future."},{id:"Hunter350",title:"Hunter 350",images:[Rh,ON,RN],description:"The new Hunter 350 traces its bloodline to the 1950 Royal Enfield G2—and this perfectly-proportioned silhouette has been in fashion ever since. In its gleaming new avatar, the Classic continues to represent an era in which motorcycles had impeccable road manners and unforgettable style. From burnished bronze to desert blue, this thoroughbred motorcycle is now available in seven striking new colourways inspired by its past, present and future."}],kN=()=>g.jsxs("div",{className:"display-section mx-auto py-16",children:[g.jsx("div",{className:"bike-model-bar-wrapper mb-10",children:g.jsxs("div",{className:"containerCustom bike-model-bar flex flex-col md:flex-row justify-between items-center gap-4 ",children:[g.jsx("div",{className:"left",children:g.jsx("img",{src:jw,alt:"royal enfield logo"})}),g.jsx("div",{className:"center",children:g.jsx("ul",{className:"bike-links flex flex-wrap justify-center gap-4",children:Lw.map(t=>g.jsx("li",{className:"bike-link",children:g.jsx("a",{href:`#${t.id}`,className:"text-blue-600 hover:underline",children:t.title})},t.id))})}),g.jsx("div",{className:"right",children:g.jsx("img",{src:jw,alt:"royal enfield logo"})})]})}),Lw.map(t=>g.jsxs("div",{className:"singel-bike-display mb-16",id:t.id,children:[g.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[g.jsx("div",{className:"w-full md:w-1/2",children:g.jsx("img",{src:t.images[0],alt:t.title,"data-aos":"fade-up-right",className:"w-full h-full object-cover"})}),g.jsxs("div",{className:"w-full md:w-1/2 flex flex-col gap-2",children:[g.jsx("img",{src:t.images[1],alt:t.title,"data-aos":"fade-up-right",className:"w-full h-1/2 object-cover single-bike-display-img"}),g.jsx("img",{src:t.images[2],alt:t.title,"data-aos":"fade-up-right",className:"w-full h-1/2 object-cover single-bike-display-img"})]})]}),g.jsx("div",{className:"bike-animated-primary-btn  text-center",children:g.jsx("a",{href:t.link||"#prebooking",children:g.jsxs("button",{className:"btn primary-btn inline-flex items-center gap-3  py-3 bg-transparent border-0 shadow-0 text-white transition-all duration-300",children:[g.jsx("img",{id:"btn-left-bike",src:MN,alt:"btn image"}),g.jsx("p",{children:"Book Now"}),g.jsx("img",{id:"btn-right-bike",src:NN,alt:"btn image"})]})})}),g.jsx("div",{className:"single-bike-text mt-[-50px] max-w-4xl mx-auto text-center","data-aos":"fade-up",children:g.jsx("p",{className:"text-gray-700 leading-relaxed",children:t.description})})]},t.id))]});function Pw(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function cp(t,e){t===void 0&&(t={}),e===void 0&&(e={});const i=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>i.indexOf(r)<0).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:Pw(e[r])&&Pw(t[r])&&Object.keys(e[r]).length>0&&cp(t[r],e[r])})}const mS={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ur(){const t=typeof document<"u"?document:{};return cp(t,mS),t}const DN={document:mS,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Ut(){const t=typeof window<"u"?window:{};return cp(t,DN),t}function IN(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function jN(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function gS(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Gc(){return Date.now()}function LN(t){const e=Ut();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function PN(t,e){e===void 0&&(e="x");const i=Ut();let r,l,c;const d=LN(t);return i.WebKitCSSMatrix?(l=d.transform||d.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(p=>p.replace(",",".")).join(", ")),c=new i.WebKitCSSMatrix(l==="none"?"":l)):(c=d.MozTransform||d.OTransform||d.MsTransform||d.msTransform||d.transform||d.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=c.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=c.m41:r.length===16?l=parseFloat(r[12]):l=parseFloat(r[4])),e==="y"&&(i.WebKitCSSMatrix?l=c.m42:r.length===16?l=parseFloat(r[13]):l=parseFloat(r[5])),l||0}function vc(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function BN(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function un(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const r=i<0||arguments.length<=i?void 0:arguments[i];if(r!=null&&!BN(r)){const l=Object.keys(Object(r)).filter(c=>e.indexOf(c)<0);for(let c=0,d=l.length;c<d;c+=1){const p=l[c],h=Object.getOwnPropertyDescriptor(r,p);h!==void 0&&h.enumerable&&(vc(t[p])&&vc(r[p])?r[p].__swiper__?t[p]=r[p]:un(t[p],r[p]):!vc(t[p])&&vc(r[p])?(t[p]={},r[p].__swiper__?t[p]=r[p]:un(t[p],r[p])):t[p]=r[p])}}}return t}function yc(t,e,i){t.style.setProperty(e,i)}function vS(t){let{swiper:e,targetPosition:i,side:r}=t;const l=Ut(),c=-e.translate;let d=null,p;const h=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const m=i>c?"next":"prev",v=(w,x)=>m==="next"&&w>=x||m==="prev"&&w<=x,b=()=>{p=new Date().getTime(),d===null&&(d=p);const w=Math.max(Math.min((p-d)/h,1),0),x=.5-Math.cos(w*Math.PI)/2;let T=c+x*(i-c);if(v(T,i)&&(T=i),e.wrapperEl.scrollTo({[r]:T}),v(T,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:T})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(b)};b()}function _i(t,e){e===void 0&&(e="");const i=Ut(),r=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&r.push(...t.assignedElements()),e?r.filter(l=>l.matches(e)):r}function zN(t,e){const i=[e];for(;i.length>0;){const r=i.shift();if(t===r)return!0;i.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function UN(t,e){const i=Ut();let r=e.contains(t);return!r&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(r=[...e.assignedElements()].includes(t),r||(r=zN(t,e))),r}function qc(t){try{console.warn(t);return}catch{}}function Mh(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:IN(e)),i}function HN(t,e){const i=[];for(;t.previousElementSibling;){const r=t.previousElementSibling;e?r.matches(e)&&i.push(r):i.push(r),t=r}return i}function VN(t,e){const i=[];for(;t.nextElementSibling;){const r=t.nextElementSibling;e?r.matches(e)&&i.push(r):i.push(r),t=r}return i}function pa(t,e){return Ut().getComputedStyle(t,null).getPropertyValue(e)}function Bw(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function GN(t,e){const i=[];let r=t.parentElement;for(;r;)i.push(r),r=r.parentElement;return i}function zw(t,e,i){const r=Ut();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function Uw(t,e){e===void 0&&(e=""),typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:i=>i}).createHTML(e):t.innerHTML=e}let Zf;function qN(){const t=Ut(),e=ur();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function yS(){return Zf||(Zf=qN()),Zf}let Jf;function YN(t){let{userAgent:e}=t===void 0?{}:t;const i=yS(),r=Ut(),l=r.navigator.platform,c=e||r.navigator.userAgent,d={ios:!1,android:!1},p=r.screen.width,h=r.screen.height,m=c.match(/(Android);?[\s\/]+([\d.]+)?/);let v=c.match(/(iPad).*OS\s([\d_]+)/);const b=c.match(/(iPod)(.*OS\s([\d_]+))?/),w=!v&&c.match(/(iPhone\sOS|iOS)\s([\d_]+)/),x=l==="Win32";let T=l==="MacIntel";const I=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!v&&T&&i.touch&&I.indexOf(`${p}x${h}`)>=0&&(v=c.match(/(Version)\/([\d.]+)/),v||(v=[0,1,"13_0_0"]),T=!1),m&&!x&&(d.os="android",d.android=!0),(v||w||b)&&(d.os="ios",d.ios=!0),d}function wS(t){return t===void 0&&(t={}),Jf||(Jf=YN(t)),Jf}let eh;function FN(){const t=Ut(),e=wS();let i=!1;function r(){const p=t.navigator.userAgent.toLowerCase();return p.indexOf("safari")>=0&&p.indexOf("chrome")<0&&p.indexOf("android")<0}if(r()){const p=String(t.navigator.userAgent);if(p.includes("Version/")){const[h,m]=p.split("Version/")[1].split(" ")[0].split(".").map(v=>Number(v));i=h<16||h===16&&m<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),c=r(),d=c||l&&e.ios;return{isSafari:i||c,needPerspectiveFix:i,need3dFix:d,isWebView:l}}function bS(){return eh||(eh=FN()),eh}function XN(t){let{swiper:e,on:i,emit:r}=t;const l=Ut();let c=null,d=null;const p=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},h=()=>{!e||e.destroyed||!e.initialized||(c=new ResizeObserver(b=>{d=l.requestAnimationFrame(()=>{const{width:w,height:x}=e;let T=w,I=x;b.forEach(G=>{let{contentBoxSize:E,contentRect:L,target:k}=G;k&&k!==e.el||(T=L?L.width:(E[0]||E).inlineSize,I=L?L.height:(E[0]||E).blockSize)}),(T!==w||I!==x)&&p()})}),c.observe(e.el))},m=()=>{d&&l.cancelAnimationFrame(d),c&&c.unobserve&&e.el&&(c.unobserve(e.el),c=null)},v=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){h();return}l.addEventListener("resize",p),l.addEventListener("orientationchange",v)}),i("destroy",()=>{m(),l.removeEventListener("resize",p),l.removeEventListener("orientationchange",v)})}function $N(t){let{swiper:e,extendParams:i,on:r,emit:l}=t;const c=[],d=Ut(),p=function(v,b){b===void 0&&(b={});const w=d.MutationObserver||d.WebkitMutationObserver,x=new w(T=>{if(e.__preventObserver__)return;if(T.length===1){l("observerUpdate",T[0]);return}const I=function(){l("observerUpdate",T[0])};d.requestAnimationFrame?d.requestAnimationFrame(I):d.setTimeout(I,0)});x.observe(v,{attributes:typeof b.attributes>"u"?!0:b.attributes,childList:e.isElement||(typeof b.childList>"u"?!0:b).childList,characterData:typeof b.characterData>"u"?!0:b.characterData}),c.push(x)},h=()=>{if(e.params.observer){if(e.params.observeParents){const v=GN(e.hostEl);for(let b=0;b<v.length;b+=1)p(v[b])}p(e.hostEl,{childList:e.params.observeSlideChildren}),p(e.wrapperEl,{attributes:!1})}},m=()=>{c.forEach(v=>{v.disconnect()}),c.splice(0,c.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",h),r("destroy",m)}var KN={on(t,e,i){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const l=i?"unshift":"push";return t.split(" ").forEach(c=>{r.eventsListeners[c]||(r.eventsListeners[c]=[]),r.eventsListeners[c][l](e)}),r},once(t,e,i){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function l(){r.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];e.apply(r,d)}return l.__emitterProxy=e,r.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const r=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[r](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(r=>{typeof e>"u"?i.eventsListeners[r]=[]:i.eventsListeners[r]&&i.eventsListeners[r].forEach((l,c)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[r].splice(c,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,r;for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return typeof c[0]=="string"||Array.isArray(c[0])?(e=c[0],i=c.slice(1,c.length),r=t):(e=c[0].events,i=c[0].data,r=c[0].context||t),i.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(h=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(m=>{m.apply(r,[h,...i])}),t.eventsListeners&&t.eventsListeners[h]&&t.eventsListeners[h].forEach(m=>{m.apply(r,i)})}),t}};function WN(){const t=this;let e,i;const r=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=r.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=r.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(pa(r,"padding-left")||0,10)-parseInt(pa(r,"padding-right")||0,10),i=i-parseInt(pa(r,"padding-top")||0,10)-parseInt(pa(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function QN(){const t=this;function e(J,ie){return parseFloat(J.getPropertyValue(t.getDirectionLabel(ie))||0)}const i=t.params,{wrapperEl:r,slidesEl:l,size:c,rtlTranslate:d,wrongRTL:p}=t,h=t.virtual&&i.virtual.enabled,m=h?t.virtual.slides.length:t.slides.length,v=_i(l,`.${t.params.slideClass}, swiper-slide`),b=h?t.virtual.slides.length:v.length;let w=[];const x=[],T=[];let I=i.slidesOffsetBefore;typeof I=="function"&&(I=i.slidesOffsetBefore.call(t));let G=i.slidesOffsetAfter;typeof G=="function"&&(G=i.slidesOffsetAfter.call(t));const E=t.snapGrid.length,L=t.slidesGrid.length;let k=i.spaceBetween,Y=-I,D=0,A=0;if(typeof c>"u")return;typeof k=="string"&&k.indexOf("%")>=0?k=parseFloat(k.replace("%",""))/100*c:typeof k=="string"&&(k=parseFloat(k)),t.virtualSize=-k,v.forEach(J=>{d?J.style.marginLeft="":J.style.marginRight="",J.style.marginBottom="",J.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(yc(r,"--swiper-centered-offset-before",""),yc(r,"--swiper-centered-offset-after",""));const X=i.grid&&i.grid.rows>1&&t.grid;X?t.grid.initSlides(v):t.grid&&t.grid.unsetSlides();let $;const F=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(J=>typeof i.breakpoints[J].slidesPerView<"u").length>0;for(let J=0;J<b;J+=1){$=0;let ie;if(v[J]&&(ie=v[J]),X&&t.grid.updateSlide(J,ie,v),!(v[J]&&pa(ie,"display")==="none")){if(i.slidesPerView==="auto"){F&&(v[J].style[t.getDirectionLabel("width")]="");const ae=getComputedStyle(ie),oe=ie.style.transform,pe=ie.style.webkitTransform;if(oe&&(ie.style.transform="none"),pe&&(ie.style.webkitTransform="none"),i.roundLengths)$=t.isHorizontal()?zw(ie,"width"):zw(ie,"height");else{const be=e(ae,"width"),M=e(ae,"padding-left"),Z=e(ae,"padding-right"),re=e(ae,"margin-left"),ce=e(ae,"margin-right"),_=ae.getPropertyValue("box-sizing");if(_&&_==="border-box")$=be+re+ce;else{const{clientWidth:K,offsetWidth:se}=ie;$=be+M+Z+re+ce+(se-K)}}oe&&(ie.style.transform=oe),pe&&(ie.style.webkitTransform=pe),i.roundLengths&&($=Math.floor($))}else $=(c-(i.slidesPerView-1)*k)/i.slidesPerView,i.roundLengths&&($=Math.floor($)),v[J]&&(v[J].style[t.getDirectionLabel("width")]=`${$}px`);v[J]&&(v[J].swiperSlideSize=$),T.push($),i.centeredSlides?(Y=Y+$/2+D/2+k,D===0&&J!==0&&(Y=Y-c/2-k),J===0&&(Y=Y-c/2-k),Math.abs(Y)<1/1e3&&(Y=0),i.roundLengths&&(Y=Math.floor(Y)),A%i.slidesPerGroup===0&&w.push(Y),x.push(Y)):(i.roundLengths&&(Y=Math.floor(Y)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&w.push(Y),x.push(Y),Y=Y+$+k),t.virtualSize+=$+k,D=$,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,c)+G,d&&p&&(i.effect==="slide"||i.effect==="coverflow")&&(r.style.width=`${t.virtualSize+k}px`),i.setWrapperSize&&(r.style[t.getDirectionLabel("width")]=`${t.virtualSize+k}px`),X&&t.grid.updateWrapperSize($,w),!i.centeredSlides){const J=[];for(let ie=0;ie<w.length;ie+=1){let ae=w[ie];i.roundLengths&&(ae=Math.floor(ae)),w[ie]<=t.virtualSize-c&&J.push(ae)}w=J,Math.floor(t.virtualSize-c)-Math.floor(w[w.length-1])>1&&w.push(t.virtualSize-c)}if(h&&i.loop){const J=T[0]+k;if(i.slidesPerGroup>1){const ie=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),ae=J*i.slidesPerGroup;for(let oe=0;oe<ie;oe+=1)w.push(w[w.length-1]+ae)}for(let ie=0;ie<t.virtual.slidesBefore+t.virtual.slidesAfter;ie+=1)i.slidesPerGroup===1&&w.push(w[w.length-1]+J),x.push(x[x.length-1]+J),t.virtualSize+=J}if(w.length===0&&(w=[0]),k!==0){const J=t.isHorizontal()&&d?"marginLeft":t.getDirectionLabel("marginRight");v.filter((ie,ae)=>!i.cssMode||i.loop?!0:ae!==v.length-1).forEach(ie=>{ie.style[J]=`${k}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let J=0;T.forEach(ae=>{J+=ae+(k||0)}),J-=k;const ie=J>c?J-c:0;w=w.map(ae=>ae<=0?-I:ae>ie?ie+G:ae)}if(i.centerInsufficientSlides){let J=0;T.forEach(ae=>{J+=ae+(k||0)}),J-=k;const ie=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(J+ie<c){const ae=(c-J-ie)/2;w.forEach((oe,pe)=>{w[pe]=oe-ae}),x.forEach((oe,pe)=>{x[pe]=oe+ae})}}if(Object.assign(t,{slides:v,snapGrid:w,slidesGrid:x,slidesSizesGrid:T}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){yc(r,"--swiper-centered-offset-before",`${-w[0]}px`),yc(r,"--swiper-centered-offset-after",`${t.size/2-T[T.length-1]/2}px`);const J=-t.snapGrid[0],ie=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(ae=>ae+J),t.slidesGrid=t.slidesGrid.map(ae=>ae+ie)}if(b!==m&&t.emit("slidesLengthChange"),w.length!==E&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),x.length!==L&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!h&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const J=`${i.containerModifierClass}backface-hidden`,ie=t.el.classList.contains(J);b<=i.maxBackfaceHiddenSlides?ie||t.el.classList.add(J):ie&&t.el.classList.remove(J)}}function ZN(t){const e=this,i=[],r=e.virtual&&e.params.virtual.enabled;let l=0,c;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const d=p=>r?e.slides[e.getSlideIndexByData(p)]:e.slides[p];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(p=>{i.push(p)});else for(c=0;c<Math.ceil(e.params.slidesPerView);c+=1){const p=e.activeIndex+c;if(p>e.slides.length&&!r)break;i.push(d(p))}else i.push(d(e.activeIndex));for(c=0;c<i.length;c+=1)if(typeof i[c]<"u"){const p=i[c].offsetHeight;l=p>l?p:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function JN(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<e.length;r+=1)e[r].swiperSlideOffset=(t.isHorizontal()?e[r].offsetLeft:e[r].offsetTop)-i-t.cssOverflowAdjustment()}const Hw=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function ek(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:r,rtlTranslate:l,snapGrid:c}=e;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let d=-t;l&&(d=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let p=i.spaceBetween;typeof p=="string"&&p.indexOf("%")>=0?p=parseFloat(p.replace("%",""))/100*e.size:typeof p=="string"&&(p=parseFloat(p));for(let h=0;h<r.length;h+=1){const m=r[h];let v=m.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(v-=r[0].swiperSlideOffset);const b=(d+(i.centeredSlides?e.minTranslate():0)-v)/(m.swiperSlideSize+p),w=(d-c[0]+(i.centeredSlides?e.minTranslate():0)-v)/(m.swiperSlideSize+p),x=-(d-v),T=x+e.slidesSizesGrid[h],I=x>=0&&x<=e.size-e.slidesSizesGrid[h],G=x>=0&&x<e.size-1||T>1&&T<=e.size||x<=0&&T>=e.size;G&&(e.visibleSlides.push(m),e.visibleSlidesIndexes.push(h)),Hw(m,G,i.slideVisibleClass),Hw(m,I,i.slideFullyVisibleClass),m.progress=l?-b:b,m.originalProgress=l?-w:w}}function tk(t){const e=this;if(typeof t>"u"){const v=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*v||0}const i=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:c,isEnd:d,progressLoop:p}=e;const h=c,m=d;if(r===0)l=0,c=!0,d=!0;else{l=(t-e.minTranslate())/r;const v=Math.abs(t-e.minTranslate())<1,b=Math.abs(t-e.maxTranslate())<1;c=v||l<=0,d=b||l>=1,v&&(l=0),b&&(l=1)}if(i.loop){const v=e.getSlideIndexByData(0),b=e.getSlideIndexByData(e.slides.length-1),w=e.slidesGrid[v],x=e.slidesGrid[b],T=e.slidesGrid[e.slidesGrid.length-1],I=Math.abs(t);I>=w?p=(I-w)/T:p=(I+T-x)/T,p>1&&(p-=1)}Object.assign(e,{progress:l,progressLoop:p,isBeginning:c,isEnd:d}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),c&&!h&&e.emit("reachBeginning toEdge"),d&&!m&&e.emit("reachEnd toEdge"),(h&&!c||m&&!d)&&e.emit("fromEdge"),e.emit("progress",l)}const th=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function nk(){const t=this,{slides:e,params:i,slidesEl:r,activeIndex:l}=t,c=t.virtual&&i.virtual.enabled,d=t.grid&&i.grid&&i.grid.rows>1,p=b=>_i(r,`.${i.slideClass}${b}, swiper-slide${b}`)[0];let h,m,v;if(c)if(i.loop){let b=l-t.virtual.slidesBefore;b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),h=p(`[data-swiper-slide-index="${b}"]`)}else h=p(`[data-swiper-slide-index="${l}"]`);else d?(h=e.find(b=>b.column===l),v=e.find(b=>b.column===l+1),m=e.find(b=>b.column===l-1)):h=e[l];h&&(d||(v=VN(h,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!v&&(v=e[0]),m=HN(h,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!m===0&&(m=e[e.length-1]))),e.forEach(b=>{th(b,b===h,i.slideActiveClass),th(b,b===v,i.slideNextClass),th(b,b===m,i.slidePrevClass)}),t.emitSlidesClasses()}const Oc=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,r=e.closest(i());if(r){let l=r.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(r.shadowRoot?l=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(l=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},nh=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Nh=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const d=l,p=[d-e];p.push(...Array.from({length:e}).map((h,m)=>d+r+m)),t.slides.forEach((h,m)=>{p.includes(h.column)&&nh(t,m)});return}const c=l+r-1;if(t.params.rewind||t.params.loop)for(let d=l-e;d<=c+e;d+=1){const p=(d%i+i)%i;(p<l||p>c)&&nh(t,p)}else for(let d=Math.max(l-e,0);d<=Math.min(c+e,i-1);d+=1)d!==l&&(d>c||d<l)&&nh(t,d)};function ik(t){const{slidesGrid:e,params:i}=t,r=t.rtlTranslate?t.translate:-t.translate;let l;for(let c=0;c<e.length;c+=1)typeof e[c+1]<"u"?r>=e[c]&&r<e[c+1]-(e[c+1]-e[c])/2?l=c:r>=e[c]&&r<e[c+1]&&(l=c+1):r>=e[c]&&(l=c);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function ak(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:r,params:l,activeIndex:c,realIndex:d,snapIndex:p}=e;let h=t,m;const v=x=>{let T=x-e.virtual.slidesBefore;return T<0&&(T=e.virtual.slides.length+T),T>=e.virtual.slides.length&&(T-=e.virtual.slides.length),T};if(typeof h>"u"&&(h=ik(e)),r.indexOf(i)>=0)m=r.indexOf(i);else{const x=Math.min(l.slidesPerGroupSkip,h);m=x+Math.floor((h-x)/l.slidesPerGroup)}if(m>=r.length&&(m=r.length-1),h===c&&!e.params.loop){m!==p&&(e.snapIndex=m,e.emit("snapIndexChange"));return}if(h===c&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=v(h);return}const b=e.grid&&l.grid&&l.grid.rows>1;let w;if(e.virtual&&l.virtual.enabled&&l.loop)w=v(h);else if(b){const x=e.slides.find(I=>I.column===h);let T=parseInt(x.getAttribute("data-swiper-slide-index"),10);Number.isNaN(T)&&(T=Math.max(e.slides.indexOf(x),0)),w=Math.floor(T/l.grid.rows)}else if(e.slides[h]){const x=e.slides[h].getAttribute("data-swiper-slide-index");x?w=parseInt(x,10):w=h}else w=h;Object.assign(e,{previousSnapIndex:p,snapIndex:m,previousRealIndex:d,realIndex:w,previousIndex:c,activeIndex:h}),e.initialized&&Nh(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(d!==w&&e.emit("realIndexChange"),e.emit("slideChange"))}function rk(t,e){const i=this,r=i.params;let l=t.closest(`.${r.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(p=>{!l&&p.matches&&p.matches(`.${r.slideClass}, swiper-slide`)&&(l=p)});let c=!1,d;if(l){for(let p=0;p<i.slides.length;p+=1)if(i.slides[p]===l){c=!0,d=p;break}}if(l&&c)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=d;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}r.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var sk={updateSize:WN,updateSlides:QN,updateAutoHeight:ZN,updateSlidesOffset:JN,updateSlidesProgress:ek,updateProgress:tk,updateSlidesClasses:nk,updateActiveIndex:ak,updateClickedSlide:rk};function lk(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:r,translate:l,wrapperEl:c}=e;if(i.virtualTranslate)return r?-l:l;if(i.cssMode)return l;let d=PN(c,t);return d+=e.cssOverflowAdjustment(),r&&(d=-d),d||0}function ok(t,e){const i=this,{rtlTranslate:r,params:l,wrapperEl:c,progress:d}=i;let p=0,h=0;const m=0;i.isHorizontal()?p=r?-t:t:h=t,l.roundLengths&&(p=Math.floor(p),h=Math.floor(h)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?p:h,l.cssMode?c[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-p:-h:l.virtualTranslate||(i.isHorizontal()?p-=i.cssOverflowAdjustment():h-=i.cssOverflowAdjustment(),c.style.transform=`translate3d(${p}px, ${h}px, ${m}px)`);let v;const b=i.maxTranslate()-i.minTranslate();b===0?v=0:v=(t-i.minTranslate())/b,v!==d&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function ck(){return-this.snapGrid[0]}function uk(){return-this.snapGrid[this.snapGrid.length-1]}function dk(t,e,i,r,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),r===void 0&&(r=!0);const c=this,{params:d,wrapperEl:p}=c;if(c.animating&&d.preventInteractionOnTransition)return!1;const h=c.minTranslate(),m=c.maxTranslate();let v;if(r&&t>h?v=h:r&&t<m?v=m:v=t,c.updateProgress(v),d.cssMode){const b=c.isHorizontal();if(e===0)p[b?"scrollLeft":"scrollTop"]=-v;else{if(!c.support.smoothScroll)return vS({swiper:c,targetPosition:-v,side:b?"left":"top"}),!0;p.scrollTo({[b?"left":"top"]:-v,behavior:"smooth"})}return!0}return e===0?(c.setTransition(0),c.setTranslate(v),i&&(c.emit("beforeTransitionStart",e,l),c.emit("transitionEnd"))):(c.setTransition(e),c.setTranslate(v),i&&(c.emit("beforeTransitionStart",e,l),c.emit("transitionStart")),c.animating||(c.animating=!0,c.onTranslateToWrapperTransitionEnd||(c.onTranslateToWrapperTransitionEnd=function(w){!c||c.destroyed||w.target===this&&(c.wrapperEl.removeEventListener("transitionend",c.onTranslateToWrapperTransitionEnd),c.onTranslateToWrapperTransitionEnd=null,delete c.onTranslateToWrapperTransitionEnd,c.animating=!1,i&&c.emit("transitionEnd"))}),c.wrapperEl.addEventListener("transitionend",c.onTranslateToWrapperTransitionEnd))),!0}var fk={getTranslate:lk,setTranslate:ok,minTranslate:ck,maxTranslate:uk,translateTo:dk};function hk(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function SS(t){let{swiper:e,runCallbacks:i,direction:r,step:l}=t;const{activeIndex:c,previousIndex:d}=e;let p=r;p||(c>d?p="next":c<d?p="prev":p="reset"),e.emit(`transition${l}`),i&&p==="reset"?e.emit(`slideResetTransition${l}`):i&&c!==d&&(e.emit(`slideChangeTransition${l}`),p==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`))}function pk(t,e){t===void 0&&(t=!0);const i=this,{params:r}=i;r.cssMode||(r.autoHeight&&i.updateAutoHeight(),SS({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function mk(t,e){t===void 0&&(t=!0);const i=this,{params:r}=i;i.animating=!1,!r.cssMode&&(i.setTransition(0),SS({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var gk={setTransition:hk,transitionStart:pk,transitionEnd:mk};function vk(t,e,i,r,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const c=this;let d=t;d<0&&(d=0);const{params:p,snapGrid:h,slidesGrid:m,previousIndex:v,activeIndex:b,rtlTranslate:w,wrapperEl:x,enabled:T}=c;if(!T&&!r&&!l||c.destroyed||c.animating&&p.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=c.params.speed);const I=Math.min(c.params.slidesPerGroupSkip,d);let G=I+Math.floor((d-I)/c.params.slidesPerGroup);G>=h.length&&(G=h.length-1);const E=-h[G];if(p.normalizeSlideIndex)for(let X=0;X<m.length;X+=1){const $=-Math.floor(E*100),F=Math.floor(m[X]*100),J=Math.floor(m[X+1]*100);typeof m[X+1]<"u"?$>=F&&$<J-(J-F)/2?d=X:$>=F&&$<J&&(d=X+1):$>=F&&(d=X)}if(c.initialized&&d!==b&&(!c.allowSlideNext&&(w?E>c.translate&&E>c.minTranslate():E<c.translate&&E<c.minTranslate())||!c.allowSlidePrev&&E>c.translate&&E>c.maxTranslate()&&(b||0)!==d))return!1;d!==(v||0)&&i&&c.emit("beforeSlideChangeStart"),c.updateProgress(E);let L;d>b?L="next":d<b?L="prev":L="reset";const k=c.virtual&&c.params.virtual.enabled;if(!(k&&l)&&(w&&-E===c.translate||!w&&E===c.translate))return c.updateActiveIndex(d),p.autoHeight&&c.updateAutoHeight(),c.updateSlidesClasses(),p.effect!=="slide"&&c.setTranslate(E),L!=="reset"&&(c.transitionStart(i,L),c.transitionEnd(i,L)),!1;if(p.cssMode){const X=c.isHorizontal(),$=w?E:-E;if(e===0)k&&(c.wrapperEl.style.scrollSnapType="none",c._immediateVirtual=!0),k&&!c._cssModeVirtualInitialSet&&c.params.initialSlide>0?(c._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{x[X?"scrollLeft":"scrollTop"]=$})):x[X?"scrollLeft":"scrollTop"]=$,k&&requestAnimationFrame(()=>{c.wrapperEl.style.scrollSnapType="",c._immediateVirtual=!1});else{if(!c.support.smoothScroll)return vS({swiper:c,targetPosition:$,side:X?"left":"top"}),!0;x.scrollTo({[X?"left":"top"]:$,behavior:"smooth"})}return!0}const A=bS().isSafari;return k&&!l&&A&&c.isElement&&c.virtual.update(!1,!1,d),c.setTransition(e),c.setTranslate(E),c.updateActiveIndex(d),c.updateSlidesClasses(),c.emit("beforeTransitionStart",e,r),c.transitionStart(i,L),e===0?c.transitionEnd(i,L):c.animating||(c.animating=!0,c.onSlideToWrapperTransitionEnd||(c.onSlideToWrapperTransitionEnd=function($){!c||c.destroyed||$.target===this&&(c.wrapperEl.removeEventListener("transitionend",c.onSlideToWrapperTransitionEnd),c.onSlideToWrapperTransitionEnd=null,delete c.onSlideToWrapperTransitionEnd,c.transitionEnd(i,L))}),c.wrapperEl.addEventListener("transitionend",c.onSlideToWrapperTransitionEnd)),!0}function yk(t,e,i,r){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);const c=l.grid&&l.params.grid&&l.params.grid.rows>1;let d=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)d=d+l.virtual.slidesBefore;else{let p;if(c){const w=d*l.params.grid.rows;p=l.slides.find(x=>x.getAttribute("data-swiper-slide-index")*1===w).column}else p=l.getSlideIndexByData(d);const h=c?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:m}=l.params;let v=l.params.slidesPerView;v==="auto"?v=l.slidesPerViewDynamic():(v=Math.ceil(parseFloat(l.params.slidesPerView,10)),m&&v%2===0&&(v=v+1));let b=h-p<v;if(m&&(b=b||p<Math.ceil(v/2)),r&&m&&l.params.slidesPerView!=="auto"&&!c&&(b=!1),b){const w=m?p<l.activeIndex?"prev":"next":p-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:w,slideTo:!0,activeSlideIndex:w==="next"?p+1:p-h+1,slideRealIndex:w==="next"?l.realIndex:void 0})}if(c){const w=d*l.params.grid.rows;d=l.slides.find(x=>x.getAttribute("data-swiper-slide-index")*1===w).column}else d=l.getSlideIndexByData(d)}return requestAnimationFrame(()=>{l.slideTo(d,e,i,r)}),l}function wk(t,e,i){e===void 0&&(e=!0);const r=this,{enabled:l,params:c,animating:d}=r;if(!l||r.destroyed)return r;typeof t>"u"&&(t=r.params.speed);let p=c.slidesPerGroup;c.slidesPerView==="auto"&&c.slidesPerGroup===1&&c.slidesPerGroupAuto&&(p=Math.max(r.slidesPerViewDynamic("current",!0),1));const h=r.activeIndex<c.slidesPerGroupSkip?1:p,m=r.virtual&&c.virtual.enabled;if(c.loop){if(d&&!m&&c.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&c.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+h,t,e,i)}),!0}return c.rewind&&r.isEnd?r.slideTo(0,t,e,i):r.slideTo(r.activeIndex+h,t,e,i)}function bk(t,e,i){e===void 0&&(e=!0);const r=this,{params:l,snapGrid:c,slidesGrid:d,rtlTranslate:p,enabled:h,animating:m}=r;if(!h||r.destroyed)return r;typeof t>"u"&&(t=r.params.speed);const v=r.virtual&&l.virtual.enabled;if(l.loop){if(m&&!v&&l.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const b=p?r.translate:-r.translate;function w(L){return L<0?-Math.floor(Math.abs(L)):Math.floor(L)}const x=w(b),T=c.map(L=>w(L)),I=l.freeMode&&l.freeMode.enabled;let G=c[T.indexOf(x)-1];if(typeof G>"u"&&(l.cssMode||I)){let L;c.forEach((k,Y)=>{x>=k&&(L=Y)}),typeof L<"u"&&(G=I?c[L]:c[L>0?L-1:L])}let E=0;if(typeof G<"u"&&(E=d.indexOf(G),E<0&&(E=r.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(E=E-r.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),l.rewind&&r.isBeginning){const L=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(L,t,e,i)}else if(l.loop&&r.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{r.slideTo(E,t,e,i)}),!0;return r.slideTo(E,t,e,i)}function Sk(t,e,i){e===void 0&&(e=!0);const r=this;if(!r.destroyed)return typeof t>"u"&&(t=r.params.speed),r.slideTo(r.activeIndex,t,e,i)}function Ek(t,e,i,r){e===void 0&&(e=!0),r===void 0&&(r=.5);const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);let c=l.activeIndex;const d=Math.min(l.params.slidesPerGroupSkip,c),p=d+Math.floor((c-d)/l.params.slidesPerGroup),h=l.rtlTranslate?l.translate:-l.translate;if(h>=l.snapGrid[p]){const m=l.snapGrid[p],v=l.snapGrid[p+1];h-m>(v-m)*r&&(c+=l.params.slidesPerGroup)}else{const m=l.snapGrid[p-1],v=l.snapGrid[p];h-m<=(v-m)*r&&(c-=l.params.slidesPerGroup)}return c=Math.max(c,0),c=Math.min(c,l.slidesGrid.length-1),l.slideTo(c,t,e,i)}function xk(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,r=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.getSlideIndexWhenGrid(t.clickedIndex),c;const d=t.isElement?"swiper-slide":`.${e.slideClass}`,p=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;c=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(c):l>(p?(t.slides.length-r)/2-(t.params.grid.rows-1):t.slides.length-r)?(t.loopFix(),l=t.getSlideIndex(_i(i,`${d}[data-swiper-slide-index="${c}"]`)[0]),gS(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var Tk={slideTo:vk,slideToLoop:yk,slideNext:wk,slidePrev:bk,slideReset:Sk,slideToClosest:Ek,slideToClickedSlide:xk};function Ak(t,e){const i=this,{params:r,slidesEl:l}=i;if(!r.loop||i.virtual&&i.params.virtual.enabled)return;const c=()=>{_i(l,`.${r.slideClass}, swiper-slide`).forEach((x,T)=>{x.setAttribute("data-swiper-slide-index",T)})},d=()=>{const w=_i(l,`.${r.slideBlankClass}`);w.forEach(x=>{x.remove()}),w.length>0&&(i.recalcSlides(),i.updateSlides())},p=i.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||p)&&d();const h=r.slidesPerGroup*(p?r.grid.rows:1),m=i.slides.length%h!==0,v=p&&i.slides.length%r.grid.rows!==0,b=w=>{for(let x=0;x<w;x+=1){const T=i.isElement?Mh("swiper-slide",[r.slideBlankClass]):Mh("div",[r.slideClass,r.slideBlankClass]);i.slidesEl.append(T)}};if(m){if(r.loopAddBlankSlides){const w=h-i.slides.length%h;b(w),i.recalcSlides(),i.updateSlides()}else qc("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");c()}else if(v){if(r.loopAddBlankSlides){const w=r.grid.rows-i.slides.length%r.grid.rows;b(w),i.recalcSlides(),i.updateSlides()}else qc("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");c()}else c();i.loopFix({slideRealIndex:t,direction:r.centeredSlides?void 0:"next",initial:e})}function Ck(t){let{slideRealIndex:e,slideTo:i=!0,direction:r,setTranslate:l,activeSlideIndex:c,initial:d,byController:p,byMousewheel:h}=t===void 0?{}:t;const m=this;if(!m.params.loop)return;m.emit("beforeLoopFix");const{slides:v,allowSlidePrev:b,allowSlideNext:w,slidesEl:x,params:T}=m,{centeredSlides:I,initialSlide:G}=T;if(m.allowSlidePrev=!0,m.allowSlideNext=!0,m.virtual&&T.virtual.enabled){i&&(!T.centeredSlides&&m.snapIndex===0?m.slideTo(m.virtual.slides.length,0,!1,!0):T.centeredSlides&&m.snapIndex<T.slidesPerView?m.slideTo(m.virtual.slides.length+m.snapIndex,0,!1,!0):m.snapIndex===m.snapGrid.length-1&&m.slideTo(m.virtual.slidesBefore,0,!1,!0)),m.allowSlidePrev=b,m.allowSlideNext=w,m.emit("loopFix");return}let E=T.slidesPerView;E==="auto"?E=m.slidesPerViewDynamic():(E=Math.ceil(parseFloat(T.slidesPerView,10)),I&&E%2===0&&(E=E+1));const L=T.slidesPerGroupAuto?E:T.slidesPerGroup;let k=I?Math.max(L,Math.ceil(E/2)):L;k%L!==0&&(k+=L-k%L),k+=T.loopAdditionalSlides,m.loopedSlides=k;const Y=m.grid&&T.grid&&T.grid.rows>1;v.length<E+k||m.params.effect==="cards"&&v.length<E+k*2?qc("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):Y&&T.grid.fill==="row"&&qc("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const D=[],A=[],X=Y?Math.ceil(v.length/T.grid.rows):v.length,$=d&&X-G<E&&!I;let F=$?G:m.activeIndex;typeof c>"u"?c=m.getSlideIndex(v.find(M=>M.classList.contains(T.slideActiveClass))):F=c;const J=r==="next"||!r,ie=r==="prev"||!r;let ae=0,oe=0;const be=(Y?v[c].column:c)+(I&&typeof l>"u"?-E/2+.5:0);if(be<k){ae=Math.max(k-be,L);for(let M=0;M<k-be;M+=1){const Z=M-Math.floor(M/X)*X;if(Y){const re=X-Z-1;for(let ce=v.length-1;ce>=0;ce-=1)v[ce].column===re&&D.push(ce)}else D.push(X-Z-1)}}else if(be+E>X-k){oe=Math.max(be-(X-k*2),L),$&&(oe=Math.max(oe,E-X+G+1));for(let M=0;M<oe;M+=1){const Z=M-Math.floor(M/X)*X;Y?v.forEach((re,ce)=>{re.column===Z&&A.push(ce)}):A.push(Z)}}if(m.__preventObserver__=!0,requestAnimationFrame(()=>{m.__preventObserver__=!1}),m.params.effect==="cards"&&v.length<E+k*2&&(A.includes(c)&&A.splice(A.indexOf(c),1),D.includes(c)&&D.splice(D.indexOf(c),1)),ie&&D.forEach(M=>{v[M].swiperLoopMoveDOM=!0,x.prepend(v[M]),v[M].swiperLoopMoveDOM=!1}),J&&A.forEach(M=>{v[M].swiperLoopMoveDOM=!0,x.append(v[M]),v[M].swiperLoopMoveDOM=!1}),m.recalcSlides(),T.slidesPerView==="auto"?m.updateSlides():Y&&(D.length>0&&ie||A.length>0&&J)&&m.slides.forEach((M,Z)=>{m.grid.updateSlide(Z,M,m.slides)}),T.watchSlidesProgress&&m.updateSlidesOffset(),i){if(D.length>0&&ie){if(typeof e>"u"){const M=m.slidesGrid[F],re=m.slidesGrid[F+ae]-M;h?m.setTranslate(m.translate-re):(m.slideTo(F+Math.ceil(ae),0,!1,!0),l&&(m.touchEventsData.startTranslate=m.touchEventsData.startTranslate-re,m.touchEventsData.currentTranslate=m.touchEventsData.currentTranslate-re))}else if(l){const M=Y?D.length/T.grid.rows:D.length;m.slideTo(m.activeIndex+M,0,!1,!0),m.touchEventsData.currentTranslate=m.translate}}else if(A.length>0&&J)if(typeof e>"u"){const M=m.slidesGrid[F],re=m.slidesGrid[F-oe]-M;h?m.setTranslate(m.translate-re):(m.slideTo(F-oe,0,!1,!0),l&&(m.touchEventsData.startTranslate=m.touchEventsData.startTranslate-re,m.touchEventsData.currentTranslate=m.touchEventsData.currentTranslate-re))}else{const M=Y?A.length/T.grid.rows:A.length;m.slideTo(m.activeIndex-M,0,!1,!0)}}if(m.allowSlidePrev=b,m.allowSlideNext=w,m.controller&&m.controller.control&&!p){const M={slideRealIndex:e,direction:r,setTranslate:l,activeSlideIndex:c,byController:!0};Array.isArray(m.controller.control)?m.controller.control.forEach(Z=>{!Z.destroyed&&Z.params.loop&&Z.loopFix({...M,slideTo:Z.params.slidesPerView===T.slidesPerView?i:!1})}):m.controller.control instanceof m.constructor&&m.controller.control.params.loop&&m.controller.control.loopFix({...M,slideTo:m.controller.control.params.slidesPerView===T.slidesPerView?i:!1})}m.emit("loopFix")}function _k(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||!i||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach(l=>{const c=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;r[c]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),r.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Ok={loopCreate:Ak,loopFix:Ck,loopDestroy:_k};function Rk(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Mk(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Nk={setGrabCursor:Rk,unsetGrabCursor:Mk};function kk(t,e){e===void 0&&(e=this);function i(r){if(!r||r===ur()||r===Ut())return null;r.assignedSlot&&(r=r.assignedSlot);const l=r.closest(t);return!l&&!r.getRootNode?null:l||i(r.getRootNode().host)}return i(e)}function Vw(t,e,i){const r=Ut(),{params:l}=t,c=l.edgeSwipeDetection,d=l.edgeSwipeThreshold;return c&&(i<=d||i>=r.innerWidth-d)?c==="prevent"?(e.preventDefault(),!0):!1:!0}function Dk(t){const e=this,i=ur();let r=t;r.originalEvent&&(r=r.originalEvent);const l=e.touchEventsData;if(r.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==r.pointerId)return;l.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(l.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Vw(e,r,r.targetTouches[0].pageX);return}const{params:c,touches:d,enabled:p}=e;if(!p||!c.simulateTouch&&r.pointerType==="mouse"||e.animating&&c.preventInteractionOnTransition)return;!e.animating&&c.cssMode&&c.loop&&e.loopFix();let h=r.target;if(c.touchEventsTarget==="wrapper"&&!UN(h,e.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||l.isTouched&&l.isMoved)return;const m=!!c.noSwipingClass&&c.noSwipingClass!=="",v=r.composedPath?r.composedPath():r.path;m&&r.target&&r.target.shadowRoot&&v&&(h=v[0]);const b=c.noSwipingSelector?c.noSwipingSelector:`.${c.noSwipingClass}`,w=!!(r.target&&r.target.shadowRoot);if(c.noSwiping&&(w?kk(b,h):h.closest(b))){e.allowClick=!0;return}if(c.swipeHandler&&!h.closest(c.swipeHandler))return;d.currentX=r.pageX,d.currentY=r.pageY;const x=d.currentX,T=d.currentY;if(!Vw(e,r,x))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=x,d.startY=T,l.touchStartTime=Gc(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,c.threshold>0&&(l.allowThresholdMove=!1);let I=!0;h.matches(l.focusableElements)&&(I=!1,h.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==h&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!h.matches(l.focusableElements))&&i.activeElement.blur();const G=I&&e.allowTouchMove&&c.touchStartPreventDefault;(c.touchStartForcePreventDefault||G)&&!h.isContentEditable&&r.preventDefault(),c.freeMode&&c.freeMode.enabled&&e.freeMode&&e.animating&&!c.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",r)}function Ik(t){const e=ur(),i=this,r=i.touchEventsData,{params:l,touches:c,rtlTranslate:d,enabled:p}=i;if(!p||!l.simulateTouch&&t.pointerType==="mouse")return;let h=t;if(h.originalEvent&&(h=h.originalEvent),h.type==="pointermove"&&(r.touchId!==null||h.pointerId!==r.pointerId))return;let m;if(h.type==="touchmove"){if(m=[...h.changedTouches].find(D=>D.identifier===r.touchId),!m||m.identifier!==r.touchId)return}else m=h;if(!r.isTouched){r.startMoving&&r.isScrolling&&i.emit("touchMoveOpposite",h);return}const v=m.pageX,b=m.pageY;if(h.preventedByNestedSwiper){c.startX=v,c.startY=b;return}if(!i.allowTouchMove){h.target.matches(r.focusableElements)||(i.allowClick=!1),r.isTouched&&(Object.assign(c,{startX:v,startY:b,currentX:v,currentY:b}),r.touchStartTime=Gc());return}if(l.touchReleaseOnEdges&&!l.loop)if(i.isVertical()){if(b<c.startY&&i.translate<=i.maxTranslate()||b>c.startY&&i.translate>=i.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(d&&(v>c.startX&&-i.translate<=i.maxTranslate()||v<c.startX&&-i.translate>=i.minTranslate()))return;if(!d&&(v<c.startX&&i.translate<=i.maxTranslate()||v>c.startX&&i.translate>=i.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(r.focusableElements)&&e.activeElement!==h.target&&h.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&h.target===e.activeElement&&h.target.matches(r.focusableElements)){r.isMoved=!0,i.allowClick=!1;return}r.allowTouchCallbacks&&i.emit("touchMove",h),c.previousX=c.currentX,c.previousY=c.currentY,c.currentX=v,c.currentY=b;const w=c.currentX-c.startX,x=c.currentY-c.startY;if(i.params.threshold&&Math.sqrt(w**2+x**2)<i.params.threshold)return;if(typeof r.isScrolling>"u"){let D;i.isHorizontal()&&c.currentY===c.startY||i.isVertical()&&c.currentX===c.startX?r.isScrolling=!1:w*w+x*x>=25&&(D=Math.atan2(Math.abs(x),Math.abs(w))*180/Math.PI,r.isScrolling=i.isHorizontal()?D>l.touchAngle:90-D>l.touchAngle)}if(r.isScrolling&&i.emit("touchMoveOpposite",h),typeof r.startMoving>"u"&&(c.currentX!==c.startX||c.currentY!==c.startY)&&(r.startMoving=!0),r.isScrolling||h.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;i.allowClick=!1,!l.cssMode&&h.cancelable&&h.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&h.stopPropagation();let T=i.isHorizontal()?w:x,I=i.isHorizontal()?c.currentX-c.previousX:c.currentY-c.previousY;l.oneWayMovement&&(T=Math.abs(T)*(d?1:-1),I=Math.abs(I)*(d?1:-1)),c.diff=T,T*=l.touchRatio,d&&(T=-T,I=-I);const G=i.touchesDirection;i.swipeDirection=T>0?"prev":"next",i.touchesDirection=I>0?"prev":"next";const E=i.params.loop&&!l.cssMode,L=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!r.isMoved){if(E&&L&&i.loopFix({direction:i.swipeDirection}),r.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const D=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(D)}r.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",h)}if(new Date().getTime(),l._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&G!==i.touchesDirection&&E&&L&&Math.abs(T)>=1){Object.assign(c,{startX:v,startY:b,currentX:v,currentY:b,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}i.emit("sliderMove",h),r.isMoved=!0,r.currentTranslate=T+r.startTranslate;let k=!0,Y=l.resistanceRatio;if(l.touchReleaseOnEdges&&(Y=0),T>0?(E&&L&&r.allowThresholdMove&&r.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(l.slidesPerView!=="auto"&&i.slides.length-l.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>i.minTranslate()&&(k=!1,l.resistance&&(r.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+r.startTranslate+T)**Y))):T<0&&(E&&L&&r.allowThresholdMove&&r.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(l.slidesPerView!=="auto"&&i.slides.length-l.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),r.currentTranslate<i.maxTranslate()&&(k=!1,l.resistance&&(r.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-r.startTranslate-T)**Y))),k&&(h.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(r.currentTranslate=r.startTranslate),l.threshold>0)if(Math.abs(T)>l.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,c.startX=c.currentX,c.startY=c.currentY,r.currentTranslate=r.startTranslate,c.diff=i.isHorizontal()?c.currentX-c.startX:c.currentY-c.startY;return}}else{r.currentTranslate=r.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(r.currentTranslate),i.setTranslate(r.currentTranslate))}function jk(t){const e=this,i=e.touchEventsData;let r=t;r.originalEvent&&(r=r.originalEvent);let l;if(r.type==="touchend"||r.type==="touchcancel"){if(l=[...r.changedTouches].find(D=>D.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||r.pointerId!==i.pointerId)return;l=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:d,touches:p,rtlTranslate:h,slidesGrid:m,enabled:v}=e;if(!v||!d.simulateTouch&&r.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",r),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&d.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}d.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const b=Gc(),w=b-i.touchStartTime;if(e.allowClick){const D=r.path||r.composedPath&&r.composedPath();e.updateClickedSlide(D&&D[0]||r.target,D),e.emit("tap click",r),w<300&&b-i.lastClickTime<300&&e.emit("doubleTap doubleClick",r)}if(i.lastClickTime=Gc(),gS(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||p.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let x;if(d.followFinger?x=h?e.translate:-e.translate:x=-i.currentTranslate,d.cssMode)return;if(d.freeMode&&d.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:x});return}const T=x>=-e.maxTranslate()&&!e.params.loop;let I=0,G=e.slidesSizesGrid[0];for(let D=0;D<m.length;D+=D<d.slidesPerGroupSkip?1:d.slidesPerGroup){const A=D<d.slidesPerGroupSkip-1?1:d.slidesPerGroup;typeof m[D+A]<"u"?(T||x>=m[D]&&x<m[D+A])&&(I=D,G=m[D+A]-m[D]):(T||x>=m[D])&&(I=D,G=m[m.length-1]-m[m.length-2])}let E=null,L=null;d.rewind&&(e.isBeginning?L=d.virtual&&d.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(E=0));const k=(x-m[I])/G,Y=I<d.slidesPerGroupSkip-1?1:d.slidesPerGroup;if(w>d.longSwipesMs){if(!d.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(k>=d.longSwipesRatio?e.slideTo(d.rewind&&e.isEnd?E:I+Y):e.slideTo(I)),e.swipeDirection==="prev"&&(k>1-d.longSwipesRatio?e.slideTo(I+Y):L!==null&&k<0&&Math.abs(k)>d.longSwipesRatio?e.slideTo(L):e.slideTo(I))}else{if(!d.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(r.target===e.navigation.nextEl||r.target===e.navigation.prevEl)?r.target===e.navigation.nextEl?e.slideTo(I+Y):e.slideTo(I):(e.swipeDirection==="next"&&e.slideTo(E!==null?E:I+Y),e.swipeDirection==="prev"&&e.slideTo(L!==null?L:I))}}function Gw(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:l,snapGrid:c}=t,d=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const p=d&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!p?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!d?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=r,t.params.watchOverflow&&c!==t.snapGrid&&t.checkOverflow()}function Lk(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Pk(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let l;const c=t.maxTranslate()-t.minTranslate();c===0?l=0:l=(t.translate-t.minTranslate())/c,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Bk(t){const e=this;Oc(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function zk(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ES=(t,e)=>{const i=ur(),{params:r,el:l,wrapperEl:c,device:d}=t,p=!!r.nested,h=e==="on"?"addEventListener":"removeEventListener",m=e;!l||typeof l=="string"||(i[h]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:p}),l[h]("touchstart",t.onTouchStart,{passive:!1}),l[h]("pointerdown",t.onTouchStart,{passive:!1}),i[h]("touchmove",t.onTouchMove,{passive:!1,capture:p}),i[h]("pointermove",t.onTouchMove,{passive:!1,capture:p}),i[h]("touchend",t.onTouchEnd,{passive:!0}),i[h]("pointerup",t.onTouchEnd,{passive:!0}),i[h]("pointercancel",t.onTouchEnd,{passive:!0}),i[h]("touchcancel",t.onTouchEnd,{passive:!0}),i[h]("pointerout",t.onTouchEnd,{passive:!0}),i[h]("pointerleave",t.onTouchEnd,{passive:!0}),i[h]("contextmenu",t.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&l[h]("click",t.onClick,!0),r.cssMode&&c[h]("scroll",t.onScroll),r.updateOnWindowResize?t[m](d.ios||d.android?"resize orientationchange observerUpdate":"resize observerUpdate",Gw,!0):t[m]("observerUpdate",Gw,!0),l[h]("load",t.onLoad,{capture:!0}))};function Uk(){const t=this,{params:e}=t;t.onTouchStart=Dk.bind(t),t.onTouchMove=Ik.bind(t),t.onTouchEnd=jk.bind(t),t.onDocumentTouchStart=zk.bind(t),e.cssMode&&(t.onScroll=Pk.bind(t)),t.onClick=Lk.bind(t),t.onLoad=Bk.bind(t),ES(t,"on")}function Hk(){ES(this,"off")}var Vk={attachEvents:Uk,detachEvents:Hk};const qw=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Gk(){const t=this,{realIndex:e,initialized:i,params:r,el:l}=t,c=r.breakpoints;if(!c||c&&Object.keys(c).length===0)return;const d=ur(),p=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",h=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?t.el:d.querySelector(r.breakpointsBase),m=t.getBreakpoint(c,p,h);if(!m||t.currentBreakpoint===m)return;const b=(m in c?c[m]:void 0)||t.originalParams,w=qw(t,r),x=qw(t,b),T=t.params.grabCursor,I=b.grabCursor,G=r.enabled;w&&!x?(l.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!w&&x&&(l.classList.add(`${r.containerModifierClass}grid`),(b.grid.fill&&b.grid.fill==="column"||!b.grid.fill&&r.grid.fill==="column")&&l.classList.add(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),T&&!I?t.unsetGrabCursor():!T&&I&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof b[A]>"u")return;const X=r[A]&&r[A].enabled,$=b[A]&&b[A].enabled;X&&!$&&t[A].disable(),!X&&$&&t[A].enable()});const E=b.direction&&b.direction!==r.direction,L=r.loop&&(b.slidesPerView!==r.slidesPerView||E),k=r.loop;E&&i&&t.changeDirection(),un(t.params,b);const Y=t.params.enabled,D=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),G&&!Y?t.disable():!G&&Y&&t.enable(),t.currentBreakpoint=m,t.emit("_beforeBreakpoint",b),i&&(L?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!k&&D?(t.loopCreate(e),t.updateSlides()):k&&!D&&t.loopDestroy()),t.emit("breakpoint",b)}function qk(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let r=!1;const l=Ut(),c=e==="window"?l.innerHeight:i.clientHeight,d=Object.keys(t).map(p=>{if(typeof p=="string"&&p.indexOf("@")===0){const h=parseFloat(p.substr(1));return{value:c*h,point:p}}return{value:p,point:p}});d.sort((p,h)=>parseInt(p.value,10)-parseInt(h.value,10));for(let p=0;p<d.length;p+=1){const{point:h,value:m}=d[p];e==="window"?l.matchMedia(`(min-width: ${m}px)`).matches&&(r=h):m<=i.clientWidth&&(r=h)}return r||"max"}var Yk={setBreakpoint:Gk,getBreakpoint:qk};function Fk(t,e){const i=[];return t.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(l=>{r[l]&&i.push(e+l)}):typeof r=="string"&&i.push(e+r)}),i}function Xk(){const t=this,{classNames:e,params:i,rtl:r,el:l,device:c}=t,d=Fk(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:r},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:c.android},{ios:c.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...d),l.classList.add(...e),t.emitContainerClasses()}function $k(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Kk={addClasses:Xk,removeClasses:$k};function Wk(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:r}=i;if(r){const l=t.slides.length-1,c=t.slidesGrid[l]+t.slidesSizesGrid[l]+r*2;t.isLocked=t.size>c}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Qk={checkOverflow:Wk},kh={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Zk(t,e){return function(r){r===void 0&&(r={});const l=Object.keys(r)[0],c=r[l];if(typeof c!="object"||c===null){un(e,r);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in c)){un(e,r);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),un(e,r)}}const ih={eventsEmitter:KN,update:sk,translate:fk,transition:gk,slide:Tk,loop:Ok,grabCursor:Nk,events:Vk,breakpoints:Yk,checkOverflow:Qk,classes:Kk},ah={};let up=class Si{constructor(){let e,i;for(var r=arguments.length,l=new Array(r),c=0;c<r;c++)l[c]=arguments[c];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=un({},i),e&&!i.el&&(i.el=e);const d=ur();if(i.el&&typeof i.el=="string"&&d.querySelectorAll(i.el).length>1){const v=[];return d.querySelectorAll(i.el).forEach(b=>{const w=un({},i,{el:b});v.push(new Si(w))}),v}const p=this;p.__swiper__=!0,p.support=yS(),p.device=wS({userAgent:i.userAgent}),p.browser=bS(),p.eventsListeners={},p.eventsAnyListeners=[],p.modules=[...p.__modules__],i.modules&&Array.isArray(i.modules)&&p.modules.push(...i.modules);const h={};p.modules.forEach(v=>{v({params:i,swiper:p,extendParams:Zk(i,h),on:p.on.bind(p),once:p.once.bind(p),off:p.off.bind(p),emit:p.emit.bind(p)})});const m=un({},kh,h);return p.params=un({},m,ah,i),p.originalParams=un({},p.params),p.passedParams=un({},i),p.params&&p.params.on&&Object.keys(p.params.on).forEach(v=>{p.on(v,p.params.on[v])}),p.params&&p.params.onAny&&p.onAny(p.params.onAny),Object.assign(p,{enabled:p.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return p.params.direction==="horizontal"},isVertical(){return p.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:p.params.allowSlideNext,allowSlidePrev:p.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:p.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:p.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),p.emit("_swiper"),p.params.init&&p.init(),p}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:r}=this,l=_i(i,`.${r.slideClass}, swiper-slide`),c=Bw(l[0]);return Bw(e)-c}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(i=>i.getAttribute("data-swiper-slide-index")*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e=e%Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const e=this,{slidesEl:i,params:r}=e;e.slides=_i(i,`.${r.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const r=this;e=Math.min(Math.max(e,0),1);const l=r.minTranslate(),d=(r.maxTranslate()-l)*e+l;r.translateTo(d,typeof i>"u"?0:i),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(r=>{const l=e.getSlideClasses(r);i.push({slideEl:r,classNames:l}),e.emit("_slideClass",r,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const r=this,{params:l,slides:c,slidesGrid:d,slidesSizesGrid:p,size:h,activeIndex:m}=r;let v=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let b=c[m]?Math.ceil(c[m].swiperSlideSize):0,w;for(let x=m+1;x<c.length;x+=1)c[x]&&!w&&(b+=Math.ceil(c[x].swiperSlideSize),v+=1,b>h&&(w=!0));for(let x=m-1;x>=0;x-=1)c[x]&&!w&&(b+=c[x].swiperSlideSize,v+=1,b>h&&(w=!0))}else if(e==="current")for(let b=m+1;b<c.length;b+=1)(i?d[b]+p[b]-d[m]<h:d[b]-d[m]<h)&&(v+=1);else for(let b=m-1;b>=0;b-=1)d[m]-d[b]<h&&(v+=1);return v}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:r}=e;r.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(d=>{d.complete&&Oc(e,d)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const d=e.rtlTranslate?e.translate*-1:e.translate,p=Math.min(Math.max(d,e.maxTranslate()),e.minTranslate());e.setTranslate(p),e.updateActiveIndex(),e.updateSlidesClasses()}let c;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)l(),r.autoHeight&&e.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){const d=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;c=e.slideTo(d.length-1,0,!1,!0)}else c=e.slideTo(e.activeIndex,0,!1,!0);c||l()}r.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const r=this,l=r.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${l}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(c=>{e==="vertical"?c.style.width="":c.style.height=""}),r.emit("changeDirection"),i&&r.update()),r}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let r=e||i.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=i,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let d=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(l()):_i(r,l())[0];return!d&&i.params.createElements&&(d=Mh("div",i.params.wrapperClass),r.append(d),_i(r,`.${i.params.slideClass}`).forEach(p=>{d.append(p)})),Object.assign(i,{el:r,wrapperEl:d,slidesEl:i.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:d,hostEl:i.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||pa(r,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||pa(r,"direction")==="rtl"),wrongRTL:pa(d,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(void 0,!0),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(c=>{c.complete?Oc(i,c):c.addEventListener("load",d=>{Oc(i,d.target)})}),Nh(i),i.initialized=!0,Nh(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const r=this,{params:l,el:c,wrapperEl:d,slides:p}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),l.loop&&r.loopDestroy(),i&&(r.removeClasses(),c&&typeof c!="string"&&c.removeAttribute("style"),d&&d.removeAttribute("style"),p&&p.length&&p.forEach(h=>{h.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),h.removeAttribute("style"),h.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(h=>{r.off(h)}),e!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),jN(r)),r.destroyed=!0),null}static extendDefaults(e){un(ah,e)}static get extendedDefaults(){return ah}static get defaults(){return kh}static installModule(e){Si.prototype.__modules__||(Si.prototype.__modules__=[]);const i=Si.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Si.installModule(i)),Si):(Si.installModule(e),Si)}};Object.keys(ih).forEach(t=>{Object.keys(ih[t]).forEach(e=>{up.prototype[e]=ih[t][e]})});up.use([XN,$N]);const xS=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function sr(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ns(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>i.indexOf(r)<0).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:sr(e[r])&&sr(t[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?t[r]=e[r]:ns(t[r],e[r]):t[r]=e[r]})}function TS(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function AS(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function CS(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function _S(t){t===void 0&&(t="");const e=t.split(" ").map(r=>r.trim()).filter(r=>!!r),i=[];return e.forEach(r=>{i.indexOf(r)<0&&i.push(r)}),i.join(" ")}function Jk(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function eD(t){let{swiper:e,slides:i,passedParams:r,changedParams:l,nextEl:c,prevEl:d,scrollbarEl:p,paginationEl:h}=t;const m=l.filter(F=>F!=="children"&&F!=="direction"&&F!=="wrapperClass"),{params:v,pagination:b,navigation:w,scrollbar:x,virtual:T,thumbs:I}=e;let G,E,L,k,Y,D,A,X;l.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&v.thumbs&&(!v.thumbs.swiper||v.thumbs.swiper.destroyed)&&(G=!0),l.includes("controller")&&r.controller&&r.controller.control&&v.controller&&!v.controller.control&&(E=!0),l.includes("pagination")&&r.pagination&&(r.pagination.el||h)&&(v.pagination||v.pagination===!1)&&b&&!b.el&&(L=!0),l.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||p)&&(v.scrollbar||v.scrollbar===!1)&&x&&!x.el&&(k=!0),l.includes("navigation")&&r.navigation&&(r.navigation.prevEl||d)&&(r.navigation.nextEl||c)&&(v.navigation||v.navigation===!1)&&w&&!w.prevEl&&!w.nextEl&&(Y=!0);const $=F=>{e[F]&&(e[F].destroy(),F==="navigation"?(e.isElement&&(e[F].prevEl.remove(),e[F].nextEl.remove()),v[F].prevEl=void 0,v[F].nextEl=void 0,e[F].prevEl=void 0,e[F].nextEl=void 0):(e.isElement&&e[F].el.remove(),v[F].el=void 0,e[F].el=void 0))};l.includes("loop")&&e.isElement&&(v.loop&&!r.loop?D=!0:!v.loop&&r.loop?A=!0:X=!0),m.forEach(F=>{if(sr(v[F])&&sr(r[F]))Object.assign(v[F],r[F]),(F==="navigation"||F==="pagination"||F==="scrollbar")&&"enabled"in r[F]&&!r[F].enabled&&$(F);else{const J=r[F];(J===!0||J===!1)&&(F==="navigation"||F==="pagination"||F==="scrollbar")?J===!1&&$(F):v[F]=r[F]}}),m.includes("controller")&&!E&&e.controller&&e.controller.control&&v.controller&&v.controller.control&&(e.controller.control=v.controller.control),l.includes("children")&&i&&T&&v.virtual.enabled?(T.slides=i,T.update(!0)):l.includes("virtual")&&T&&v.virtual.enabled&&(i&&(T.slides=i),T.update(!0)),l.includes("children")&&i&&v.loop&&(X=!0),G&&I.init()&&I.update(!0),E&&(e.controller.control=v.controller.control),L&&(e.isElement&&(!h||typeof h=="string")&&(h=document.createElement("div"),h.classList.add("swiper-pagination"),h.part.add("pagination"),e.el.appendChild(h)),h&&(v.pagination.el=h),b.init(),b.render(),b.update()),k&&(e.isElement&&(!p||typeof p=="string")&&(p=document.createElement("div"),p.classList.add("swiper-scrollbar"),p.part.add("scrollbar"),e.el.appendChild(p)),p&&(v.scrollbar.el=p),x.init(),x.updateSize(),x.setTranslate()),Y&&(e.isElement&&((!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-button-next"),Uw(c,e.hostEl.constructor.nextButtonSvg),c.part.add("button-next"),e.el.appendChild(c)),(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-button-prev"),Uw(d,e.hostEl.constructor.prevButtonSvg),d.part.add("button-prev"),e.el.appendChild(d))),c&&(v.navigation.nextEl=c),d&&(v.navigation.prevEl=d),w.init(),w.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),l.includes("direction")&&e.changeDirection(r.direction,!1),(D||X)&&e.loopDestroy(),(A||X)&&e.loopCreate(),e.update()}function tD(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},r={},l={};ns(i,kh),i._emitClasses=!0,i.init=!1;const c={},d=xS.map(h=>h.replace(/_/,"")),p=Object.assign({},t);return Object.keys(p).forEach(h=>{typeof t[h]>"u"||(d.indexOf(h)>=0?sr(t[h])?(i[h]={},l[h]={},ns(i[h],t[h]),ns(l[h],t[h])):(i[h]=t[h],l[h]=t[h]):h.search(/on[A-Z]/)===0&&typeof t[h]=="function"?e?r[`${h[2].toLowerCase()}${h.substr(3)}`]=t[h]:i.on[`${h[2].toLowerCase()}${h.substr(3)}`]=t[h]:c[h]=t[h])}),["navigation","pagination","scrollbar"].forEach(h=>{i[h]===!0&&(i[h]={}),i[h]===!1&&delete i[h]}),{params:i,passedParams:l,rest:c,events:r}}function nD(t,e){let{el:i,nextEl:r,prevEl:l,paginationEl:c,scrollbarEl:d,swiper:p}=t;TS(e)&&r&&l&&(p.params.navigation.nextEl=r,p.originalParams.navigation.nextEl=r,p.params.navigation.prevEl=l,p.originalParams.navigation.prevEl=l),AS(e)&&c&&(p.params.pagination.el=c,p.originalParams.pagination.el=c),CS(e)&&d&&(p.params.scrollbar.el=d,p.originalParams.scrollbar.el=d),p.init(i)}function iD(t,e,i,r,l){const c=[];if(!e)return c;const d=h=>{c.indexOf(h)<0&&c.push(h)};if(i&&r){const h=r.map(l),m=i.map(l);h.join("")!==m.join("")&&d("children"),r.length!==i.length&&d("children")}return xS.filter(h=>h[0]==="_").map(h=>h.replace(/_/,"")).forEach(h=>{if(h in t&&h in e)if(sr(t[h])&&sr(e[h])){const m=Object.keys(t[h]),v=Object.keys(e[h]);m.length!==v.length?d(h):(m.forEach(b=>{t[h][b]!==e[h][b]&&d(h)}),v.forEach(b=>{t[h][b]!==e[h][b]&&d(h)}))}else t[h]!==e[h]&&d(h)}),c}const aD=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.emit("_virtualUpdated"),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Yc(){return Yc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Yc.apply(this,arguments)}function OS(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function RS(t){const e=[];return ze.Children.toArray(t).forEach(i=>{OS(i)?e.push(i):i.props&&i.props.children&&RS(i.props.children).forEach(r=>e.push(r))}),e}function rD(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return ze.Children.toArray(t).forEach(r=>{if(OS(r))e.push(r);else if(r.props&&r.props.slot&&i[r.props.slot])i[r.props.slot].push(r);else if(r.props&&r.props.children){const l=RS(r.props.children);l.length>0?l.forEach(c=>e.push(c)):i["container-end"].push(r)}else i["container-end"].push(r)}),{slides:e,slots:i}}function sD(t,e,i){if(!i)return null;const r=v=>{let b=v;return v<0?b=e.length+v:b>=e.length&&(b=b-e.length),b},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:c,to:d}=i,p=t.params.loop?-e.length:0,h=t.params.loop?e.length*2:e.length,m=[];for(let v=p;v<h;v+=1)v>=c&&v<=d&&m.push(e[r(v)]);return m.map((v,b)=>ze.cloneElement(v,{swiper:t,style:l,key:v.props.virtualIndex||v.key||`slide-${b}`}))}function _l(t,e){return typeof window>"u"?N.useEffect(t,e):N.useLayoutEffect(t,e)}const Yw=N.createContext(null),lD=N.createContext(null),dp=N.forwardRef(function(t,e){let{className:i,tag:r="div",wrapperTag:l="div",children:c,onSwiper:d,...p}=t===void 0?{}:t,h=!1;const[m,v]=N.useState("swiper"),[b,w]=N.useState(null),[x,T]=N.useState(!1),I=N.useRef(!1),G=N.useRef(null),E=N.useRef(null),L=N.useRef(null),k=N.useRef(null),Y=N.useRef(null),D=N.useRef(null),A=N.useRef(null),X=N.useRef(null),{params:$,passedParams:F,rest:J,events:ie}=tD(p),{slides:ae,slots:oe}=rD(c),pe=()=>{T(!x)};Object.assign($.on,{_containerClasses(ce,_){v(_)}});const be=()=>{Object.assign($.on,ie),h=!0;const ce={...$};if(delete ce.wrapperClass,E.current=new up(ce),E.current.virtual&&E.current.params.virtual.enabled){E.current.virtual.slides=ae;const _={cache:!1,slides:ae,renderExternal:w,renderExternalUpdate:!1};ns(E.current.params.virtual,_),ns(E.current.originalParams.virtual,_)}};G.current||be(),E.current&&E.current.on("_beforeBreakpoint",pe);const M=()=>{h||!ie||!E.current||Object.keys(ie).forEach(ce=>{E.current.on(ce,ie[ce])})},Z=()=>{!ie||!E.current||Object.keys(ie).forEach(ce=>{E.current.off(ce,ie[ce])})};N.useEffect(()=>()=>{E.current&&E.current.off("_beforeBreakpoint",pe)}),N.useEffect(()=>{!I.current&&E.current&&(E.current.emitSlidesClasses(),I.current=!0)}),_l(()=>{if(e&&(e.current=G.current),!!G.current)return E.current.destroyed&&be(),nD({el:G.current,nextEl:Y.current,prevEl:D.current,paginationEl:A.current,scrollbarEl:X.current,swiper:E.current},$),d&&!E.current.destroyed&&d(E.current),()=>{E.current&&!E.current.destroyed&&E.current.destroy(!0,!1)}},[]),_l(()=>{M();const ce=iD(F,L.current,ae,k.current,_=>_.key);return L.current=F,k.current=ae,ce.length&&E.current&&!E.current.destroyed&&eD({swiper:E.current,slides:ae,passedParams:F,changedParams:ce,nextEl:Y.current,prevEl:D.current,scrollbarEl:X.current,paginationEl:A.current}),()=>{Z()}}),_l(()=>{aD(E.current)},[b]);function re(){return $.virtual?sD(E.current,ae,b):ae.map((ce,_)=>ze.cloneElement(ce,{swiper:E.current,swiperSlideIndex:_}))}return ze.createElement(r,Yc({ref:G,className:_S(`${m}${i?` ${i}`:""}`)},J),ze.createElement(lD.Provider,{value:E.current},oe["container-start"],ze.createElement(l,{className:Jk($.wrapperClass)},oe["wrapper-start"],re(),oe["wrapper-end"]),TS($)&&ze.createElement(ze.Fragment,null,ze.createElement("div",{ref:D,className:"swiper-button-prev"}),ze.createElement("div",{ref:Y,className:"swiper-button-next"})),CS($)&&ze.createElement("div",{ref:X,className:"swiper-scrollbar"}),AS($)&&ze.createElement("div",{ref:A,className:"swiper-pagination"}),oe["container-end"]))});dp.displayName="Swiper";const Ol=N.forwardRef(function(t,e){let{tag:i="div",children:r,className:l="",swiper:c,zoom:d,lazy:p,virtualIndex:h,swiperSlideIndex:m,...v}=t===void 0?{}:t;const b=N.useRef(null),[w,x]=N.useState("swiper-slide"),[T,I]=N.useState(!1);function G(Y,D,A){D===b.current&&x(A)}_l(()=>{if(typeof m<"u"&&(b.current.swiperSlideIndex=m),e&&(e.current=b.current),!(!b.current||!c)){if(c.destroyed){w!=="swiper-slide"&&x("swiper-slide");return}return c.on("_slideClass",G),()=>{c&&c.off("_slideClass",G)}}}),_l(()=>{c&&b.current&&!c.destroyed&&x(c.getSlideClasses(b.current))},[c]);const E={isActive:w.indexOf("swiper-slide-active")>=0,isVisible:w.indexOf("swiper-slide-visible")>=0,isPrev:w.indexOf("swiper-slide-prev")>=0,isNext:w.indexOf("swiper-slide-next")>=0},L=()=>typeof r=="function"?r(E):r,k=()=>{I(!0)};return ze.createElement(i,Yc({ref:b,className:_S(`${w}${l?` ${l}`:""}`),"data-swiper-slide-index":h,onLoad:k},v),d&&ze.createElement(Yw.Provider,{value:E},ze.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof d=="number"?d:void 0},L(),p&&!T&&ze.createElement("div",{className:"swiper-lazy-preloader"}))),!d&&ze.createElement(Yw.Provider,{value:E},L(),p&&!T&&ze.createElement("div",{className:"swiper-lazy-preloader"})))});Ol.displayName="SwiperSlide";const oD="/assets/royal%20enfield1-D0m4VlYV.png",cD="/assets/royal%20enfield2-CdVU-KO4.png",uD="/assets/royal%20enfield3-B6eEkiS9.png",dD="/assets/royal%20enfield4-CzS9SRJI.png",fD="/assets/royal%20enfield5--F8mt7bt.png",hD="/assets/royal%20enfield6-DipBvVzx.png",pD="/assets/royal%20enfield7-j3-WSbfg.png",mD="/assets/royal%20enfield8-Dst5Z7z-.png",gD="/assets/royal%20enfield9-CX4eq1Z4.png",vD="/assets/royal%20enfield10-B6oLDGPg.png",yD="/assets/royal%20enfield11-DEva7DaR.png",wD="/assets/royal%20enfield11-DEva7DaR.png",bD=[oD,cD,uD,dD,fD,hD,pD,mD,gD,vD,yD,wD],SD=()=>g.jsx("div",{className:"image-carousel w-full py-5",style:{backgroundColor:"#131313"},children:g.jsx("div",{className:"text-center",children:g.jsx("div",{className:"w-full py-10",style:{backgroundColor:"#131313"},children:g.jsx(dp,{spaceBetween:20,slidesPerView:3,loop:!0,autoplay:{delay:2e3,disableOnInteraction:!1},breakpoints:{640:{slidesPerView:2},768:{slidesPerView:3},1024:{slidesPerView:4}},className:"testimonialSwiper",children:bD.map((t,e)=>g.jsx(Ol,{className:"swiper-slide",children:g.jsx("img",{src:t,alt:`slider image ${e+1}`,className:"mx-auto"})},e))})})})});/*!
* sweetalert2 v11.22.2
* Released under the MIT License.
*/function MS(t,e,i){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function ED(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fw(t,e){return t.get(MS(t,e))}function xD(t,e,i){ED(t,e),e.set(t,i)}function TD(t,e,i){return t.set(MS(t,e),i),i}const AD=100,Se={},CD=()=>{Se.previousActiveElement instanceof HTMLElement?(Se.previousActiveElement.focus(),Se.previousActiveElement=null):document.body&&document.body.focus()},_D=t=>new Promise(e=>{if(!t)return e();const i=window.scrollX,r=window.scrollY;Se.restoreFocusTimeout=setTimeout(()=>{CD(),e()},AD),window.scrollTo(i,r)}),NS="swal2-",OD=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],q=OD.reduce((t,e)=>(t[e]=NS+e,t),{}),RD=["success","warning","info","question","error"],Fc=RD.reduce((t,e)=>(t[e]=NS+e,t),{}),kS="SweetAlert2:",fp=t=>t.charAt(0).toUpperCase()+t.slice(1),zt=t=>{console.warn(`${kS} ${typeof t=="object"?t.join(" "):t}`)},dr=t=>{console.error(`${kS} ${t}`)},Xw=[],MD=t=>{Xw.includes(t)||(Xw.push(t),zt(t))},DS=(t,e=null)=>{MD(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},mu=t=>typeof t=="function"?t():t,hp=t=>t&&typeof t.toPromise=="function",ql=t=>hp(t)?t.toPromise():Promise.resolve(t),pp=t=>t&&Promise.resolve(t)===t,Ht=()=>document.body.querySelector(`.${q.container}`),Yl=t=>{const e=Ht();return e?e.querySelector(t):null},hn=t=>Yl(`.${t}`),Ye=()=>hn(q.popup),us=()=>hn(q.icon),ND=()=>hn(q["icon-content"]),IS=()=>hn(q.title),mp=()=>hn(q["html-container"]),jS=()=>hn(q.image),gp=()=>hn(q["progress-steps"]),gu=()=>hn(q["validation-message"]),ni=()=>Yl(`.${q.actions} .${q.confirm}`),ds=()=>Yl(`.${q.actions} .${q.cancel}`),fr=()=>Yl(`.${q.actions} .${q.deny}`),kD=()=>hn(q["input-label"]),fs=()=>Yl(`.${q.loader}`),Fl=()=>hn(q.actions),LS=()=>hn(q.footer),vu=()=>hn(q["timer-progress-bar"]),vp=()=>hn(q.close),DD=`
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`,yp=()=>{const t=Ye();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),i=Array.from(e).sort((c,d)=>{const p=parseInt(c.getAttribute("tabindex")||"0"),h=parseInt(d.getAttribute("tabindex")||"0");return p>h?1:p<h?-1:0}),r=t.querySelectorAll(DD),l=Array.from(r).filter(c=>c.getAttribute("tabindex")!=="-1");return[...new Set(i.concat(l))].filter(c=>Zt(c))},wp=()=>Ri(document.body,q.shown)&&!Ri(document.body,q["toast-shown"])&&!Ri(document.body,q["no-backdrop"]),yu=()=>{const t=Ye();return t?Ri(t,q.toast):!1},ID=()=>{const t=Ye();return t?t.hasAttribute("data-loading"):!1},pn=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html"),l=r.querySelector("head");l&&Array.from(l.childNodes).forEach(d=>{t.appendChild(d)});const c=r.querySelector("body");c&&Array.from(c.childNodes).forEach(d=>{d instanceof HTMLVideoElement||d instanceof HTMLAudioElement?t.appendChild(d.cloneNode(!0)):t.appendChild(d)})}},Ri=(t,e)=>{if(!e)return!1;const i=e.split(/\s+/);for(let r=0;r<i.length;r++)if(!t.classList.contains(i[r]))return!1;return!0},jD=(t,e)=>{Array.from(t.classList).forEach(i=>{!Object.values(q).includes(i)&&!Object.values(Fc).includes(i)&&!Object.values(e.showClass||{}).includes(i)&&t.classList.remove(i)})},fn=(t,e,i)=>{if(jD(t,e),!e.customClass)return;const r=e.customClass[i];if(r){if(typeof r!="string"&&!r.forEach){zt(`Invalid type of customClass.${i}! Expected string or iterable object, got "${typeof r}"`);return}Xe(t,r)}},wu=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${q.popup} > .${q[e]}`);case"checkbox":return t.querySelector(`.${q.popup} > .${q.checkbox} input`);case"radio":return t.querySelector(`.${q.popup} > .${q.radio} input:checked`)||t.querySelector(`.${q.popup} > .${q.radio} input:first-child`);case"range":return t.querySelector(`.${q.popup} > .${q.range} input`);default:return t.querySelector(`.${q.popup} > .${q.input}`)}},PS=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},BS=(t,e,i)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(l=>{i?l.classList.add(r):l.classList.remove(r)}):i?t.classList.add(r):t.classList.remove(r)}))},Xe=(t,e)=>{BS(t,e,!0)},On=(t,e)=>{BS(t,e,!1)},ma=(t,e)=>{const i=Array.from(t.children);for(let r=0;r<i.length;r++){const l=i[r];if(l instanceof HTMLElement&&Ri(l,e))return l}},er=(t,e,i)=>{i===`${parseInt(i)}`&&(i=parseInt(i)),i||parseInt(i)===0?t.style.setProperty(e,typeof i=="number"?`${i}px`:i):t.style.removeProperty(e)},Ct=(t,e="flex")=>{t&&(t.style.display=e)},It=t=>{t&&(t.style.display="none")},bp=(t,e="block")=>{t&&new MutationObserver(()=>{Xl(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},$w=(t,e,i,r)=>{const l=t.querySelector(e);l&&l.style.setProperty(i,r)},Xl=(t,e,i="flex")=>{e?Ct(t,i):It(t)},Zt=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),LD=()=>!Zt(ni())&&!Zt(fr())&&!Zt(ds()),Dh=t=>t.scrollHeight>t.clientHeight,PD=(t,e)=>{let i=t;for(;i&&i!==e;){if(Dh(i))return!0;i=i.parentElement}return!1},zS=t=>{const e=window.getComputedStyle(t),i=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return i>0||r>0},Sp=(t,e=!1)=>{const i=vu();i&&Zt(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout(()=>{i.style.transition=`width ${t/1e3}s linear`,i.style.width="0%"},10))},BD=()=>{const t=vu();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const i=parseInt(window.getComputedStyle(t).width),r=e/i*100;t.style.width=`${r}%`},zD=()=>typeof window>"u"||typeof document>"u",UD=`
 <div aria-labelledby="${q.title}" aria-describedby="${q["html-container"]}" class="${q.popup}" tabindex="-1">
   <button type="button" class="${q.close}"></button>
   <ul class="${q["progress-steps"]}"></ul>
   <div class="${q.icon}"></div>
   <img class="${q.image}" />
   <h2 class="${q.title}" id="${q.title}"></h2>
   <div class="${q["html-container"]}" id="${q["html-container"]}"></div>
   <input class="${q.input}" id="${q.input}" />
   <input type="file" class="${q.file}" />
   <div class="${q.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${q.select}" id="${q.select}"></select>
   <div class="${q.radio}"></div>
   <label class="${q.checkbox}">
     <input type="checkbox" id="${q.checkbox}" />
     <span class="${q.label}"></span>
   </label>
   <textarea class="${q.textarea}" id="${q.textarea}"></textarea>
   <div class="${q["validation-message"]}" id="${q["validation-message"]}"></div>
   <div class="${q.actions}">
     <div class="${q.loader}"></div>
     <button type="button" class="${q.confirm}"></button>
     <button type="button" class="${q.deny}"></button>
     <button type="button" class="${q.cancel}"></button>
   </div>
   <div class="${q.footer}"></div>
   <div class="${q["timer-progress-bar-container"]}">
     <div class="${q["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),HD=()=>{const t=Ht();return t?(t.remove(),On([document.documentElement,document.body],[q["no-backdrop"],q["toast-shown"],q["has-column"]]),!0):!1},Xa=()=>{Se.currentInstance.resetValidationMessage()},VD=()=>{const t=Ye(),e=ma(t,q.input),i=ma(t,q.file),r=t.querySelector(`.${q.range} input`),l=t.querySelector(`.${q.range} output`),c=ma(t,q.select),d=t.querySelector(`.${q.checkbox} input`),p=ma(t,q.textarea);e.oninput=Xa,i.onchange=Xa,c.onchange=Xa,d.onchange=Xa,p.oninput=Xa,r.oninput=()=>{Xa(),l.value=r.value},r.onchange=()=>{Xa(),l.value=r.value}},GD=t=>typeof t=="string"?document.querySelector(t):t,qD=t=>{const e=Ye();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},YD=t=>{window.getComputedStyle(t).direction==="rtl"&&Xe(Ht(),q.rtl)},FD=t=>{const e=HD();if(zD()){dr("SweetAlert2 requires document to initialize");return}const i=document.createElement("div");i.className=q.container,e&&Xe(i,q["no-transition"]),pn(i,UD),i.dataset.swal2Theme=t.theme;const r=GD(t.target);r.appendChild(i),t.topLayer&&(i.setAttribute("popover",""),i.showPopover()),qD(t),YD(r),VD()},Ep=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?XD(t,e):t&&pn(e,t)},XD=(t,e)=>{t.jquery?$D(e,t):pn(e,t.toString())},$D=(t,e)=>{if(t.textContent="",0 in e)for(let i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},KD=(t,e)=>{const i=Fl(),r=fs();!i||!r||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?It(i):Ct(i),fn(i,e,"actions"),WD(i,r,e),pn(r,e.loaderHtml||""),fn(r,e,"loader"))};function WD(t,e,i){const r=ni(),l=fr(),c=ds();!r||!l||!c||(sh(r,"confirm",i),sh(l,"deny",i),sh(c,"cancel",i),QD(r,l,c,i),i.reverseButtons&&(i.toast?(t.insertBefore(c,r),t.insertBefore(l,r)):(t.insertBefore(c,e),t.insertBefore(l,e),t.insertBefore(r,e))))}function QD(t,e,i,r){if(!r.buttonsStyling){On([t,e,i],q.styled);return}Xe([t,e,i],q.styled),r.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&i.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),rh(t),rh(e),rh(i)}function rh(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const i=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${i}`))}function sh(t,e,i){const r=fp(e);Xl(t,i[`show${r}Button`],"inline-block"),pn(t,i[`${e}ButtonText`]||""),t.setAttribute("aria-label",i[`${e}ButtonAriaLabel`]||""),t.className=q[e],fn(t,i,`${e}Button`)}const ZD=(t,e)=>{const i=vp();i&&(pn(i,e.closeButtonHtml||""),fn(i,e,"closeButton"),Xl(i,e.showCloseButton),i.setAttribute("aria-label",e.closeButtonAriaLabel||""))},JD=(t,e)=>{const i=Ht();i&&(eI(i,e.backdrop),tI(i,e.position),nI(i,e.grow),fn(i,e,"container"))};function eI(t,e){typeof e=="string"?t.style.background=e:e||Xe([document.documentElement,document.body],q["no-backdrop"])}function tI(t,e){e&&(e in q?Xe(t,q[e]):(zt('The "position" parameter is not valid, defaulting to "center"'),Xe(t,q.center)))}function nI(t,e){e&&Xe(t,q[`grow-${e}`])}var it={innerParams:new WeakMap,domCache:new WeakMap};const iI=["input","file","range","select","radio","checkbox","textarea"],aI=(t,e)=>{const i=Ye();if(!i)return;const r=it.innerParams.get(t),l=!r||e.input!==r.input;iI.forEach(c=>{const d=ma(i,q[c]);d&&(lI(c,e.inputAttributes),d.className=q[c],l&&It(d))}),e.input&&(l&&rI(e),oI(e))},rI=t=>{if(!t.input)return;if(!gt[t.input]){dr(`Unexpected type of input! Expected ${Object.keys(gt).join(" | ")}, got "${t.input}"`);return}const e=US(t.input);if(!e)return;const i=gt[t.input](e,t);Ct(e),t.inputAutoFocus&&setTimeout(()=>{PS(i)})},sI=t=>{for(let e=0;e<t.attributes.length;e++){const i=t.attributes[e].name;["id","type","value","style"].includes(i)||t.removeAttribute(i)}},lI=(t,e)=>{const i=Ye();if(!i)return;const r=wu(i,t);if(r){sI(r);for(const l in e)r.setAttribute(l,e[l])}},oI=t=>{if(!t.input)return;const e=US(t.input);e&&fn(e,t,"input")},xp=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},$l=(t,e,i)=>{if(i.inputLabel){const r=document.createElement("label"),l=q["input-label"];r.setAttribute("for",t.id),r.className=l,typeof i.customClass=="object"&&Xe(r,i.customClass.inputLabel),r.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",r)}},US=t=>{const e=Ye();if(e)return ma(e,q[t]||q.input)},Xc=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:pp(e)||zt(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},gt={};gt.text=gt.email=gt.password=gt.number=gt.tel=gt.url=gt.search=gt.date=gt["datetime-local"]=gt.time=gt.week=gt.month=(t,e)=>(Xc(t,e.inputValue),$l(t,t,e),xp(t,e),t.type=e.input,t);gt.file=(t,e)=>($l(t,t,e),xp(t,e),t);gt.range=(t,e)=>{const i=t.querySelector("input"),r=t.querySelector("output");return Xc(i,e.inputValue),i.type=e.input,Xc(r,e.inputValue),$l(i,t,e),t};gt.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const i=document.createElement("option");pn(i,e.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,t.appendChild(i)}return $l(t,t,e),t};gt.radio=t=>(t.textContent="",t);gt.checkbox=(t,e)=>{const i=wu(Ye(),"checkbox");i.value="1",i.checked=!!e.inputValue;const r=t.querySelector("span");return pn(r,e.inputPlaceholder||e.inputLabel),i};gt.textarea=(t,e)=>{Xc(t,e.inputValue),xp(t,e),$l(t,t,e);const i=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(Ye()).width),l=()=>{if(!document.body.contains(t))return;const c=t.offsetWidth+i(t);c>r?Ye().style.width=`${c}px`:er(Ye(),"width",e.width)};new MutationObserver(l).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const cI=(t,e)=>{const i=mp();i&&(bp(i),fn(i,e,"htmlContainer"),e.html?(Ep(e.html,i),Ct(i,"block")):e.text?(i.textContent=e.text,Ct(i,"block")):It(i),aI(t,e))},uI=(t,e)=>{const i=LS();i&&(bp(i),Xl(i,e.footer,"block"),e.footer&&Ep(e.footer,i),fn(i,e,"footer"))},dI=(t,e)=>{const i=it.innerParams.get(t),r=us();if(!r)return;if(i&&e.icon===i.icon){Ww(r,e),Kw(r,e);return}if(!e.icon&&!e.iconHtml){It(r);return}if(e.icon&&Object.keys(Fc).indexOf(e.icon)===-1){dr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),It(r);return}Ct(r),Ww(r,e),Kw(r,e),Xe(r,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",HS)},Kw=(t,e)=>{for(const[i,r]of Object.entries(Fc))e.icon!==i&&On(t,r);Xe(t,e.icon&&Fc[e.icon]),pI(t,e),HS(),fn(t,e,"icon")},HS=()=>{const t=Ye();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),i=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<i.length;r++)i[r].style.backgroundColor=e},fI=t=>`
  ${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div>
  ${t.animation?'<div class="swal2-success-fix"></div>':""}
  ${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}
`,hI=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,Ww=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let i=t.innerHTML,r="";e.iconHtml?r=Qw(e.iconHtml):e.icon==="success"?(r=fI(e),i=i.replace(/ style=".*?"/g,"")):e.icon==="error"?r=hI:e.icon&&(r=Qw({question:"?",warning:"!",info:"i"}[e.icon])),i.trim()!==r.trim()&&pn(t,r)},pI=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const i of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])$w(t,i,"background-color",e.iconColor);$w(t,".swal2-success-ring","border-color",e.iconColor)}},Qw=t=>`<div class="${q["icon-content"]}">${t}</div>`,mI=(t,e)=>{const i=jS();if(i){if(!e.imageUrl){It(i);return}Ct(i,""),i.setAttribute("src",e.imageUrl),i.setAttribute("alt",e.imageAlt||""),er(i,"width",e.imageWidth),er(i,"height",e.imageHeight),i.className=q.image,fn(i,e,"image")}};let Tp=!1,VS=0,GS=0,qS=0,YS=0;const gI=t=>{t.addEventListener("mousedown",$c),document.body.addEventListener("mousemove",Kc),t.addEventListener("mouseup",Wc),t.addEventListener("touchstart",$c),document.body.addEventListener("touchmove",Kc),t.addEventListener("touchend",Wc)},vI=t=>{t.removeEventListener("mousedown",$c),document.body.removeEventListener("mousemove",Kc),t.removeEventListener("mouseup",Wc),t.removeEventListener("touchstart",$c),document.body.removeEventListener("touchmove",Kc),t.removeEventListener("touchend",Wc)},$c=t=>{const e=Ye();if(t.target===e||us().contains(t.target)){Tp=!0;const i=FS(t);VS=i.clientX,GS=i.clientY,qS=parseInt(e.style.insetInlineStart)||0,YS=parseInt(e.style.insetBlockStart)||0,Xe(e,"swal2-dragging")}},Kc=t=>{const e=Ye();if(Tp){let{clientX:i,clientY:r}=FS(t);e.style.insetInlineStart=`${qS+(i-VS)}px`,e.style.insetBlockStart=`${YS+(r-GS)}px`}},Wc=()=>{const t=Ye();Tp=!1,On(t,"swal2-dragging")},FS=t=>{let e=0,i=0;return t.type.startsWith("mouse")?(e=t.clientX,i=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,i=t.touches[0].clientY),{clientX:e,clientY:i}},yI=(t,e)=>{const i=Ht(),r=Ye();if(!(!i||!r)){if(e.toast){er(i,"width",e.width),r.style.width="100%";const l=fs();l&&r.insertBefore(l,us())}else er(r,"width",e.width);er(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),It(gu()),wI(r,e),e.draggable&&!e.toast?(Xe(r,q.draggable),gI(r)):(On(r,q.draggable),vI(r))}},wI=(t,e)=>{const i=e.showClass||{};t.className=`${q.popup} ${Zt(t)?i.popup:""}`,e.toast?(Xe([document.documentElement,document.body],q["toast-shown"]),Xe(t,q.toast)):Xe(t,q.modal),fn(t,e,"popup"),typeof e.customClass=="string"&&Xe(t,e.customClass),e.icon&&Xe(t,q[`icon-${e.icon}`])},bI=(t,e)=>{const i=gp();if(!i)return;const{progressSteps:r,currentProgressStep:l}=e;if(!r||r.length===0||l===void 0){It(i);return}Ct(i),i.textContent="",l>=r.length&&zt("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((c,d)=>{const p=SI(c);if(i.appendChild(p),d===l&&Xe(p,q["active-progress-step"]),d!==r.length-1){const h=EI(e);i.appendChild(h)}})},SI=t=>{const e=document.createElement("li");return Xe(e,q["progress-step"]),pn(e,t),e},EI=t=>{const e=document.createElement("li");return Xe(e,q["progress-step-line"]),t.progressStepsDistance&&er(e,"width",t.progressStepsDistance),e},xI=(t,e)=>{const i=IS();i&&(bp(i),Xl(i,e.title||e.titleText,"block"),e.title&&Ep(e.title,i),e.titleText&&(i.innerText=e.titleText),fn(i,e,"title"))},XS=(t,e)=>{yI(t,e),JD(t,e),bI(t,e),dI(t,e),mI(t,e),xI(t,e),ZD(t,e),cI(t,e),KD(t,e),uI(t,e);const i=Ye();typeof e.didRender=="function"&&i&&e.didRender(i),Se.eventEmitter.emit("didRender",i)},TI=()=>Zt(Ye()),$S=()=>{var t;return(t=ni())===null||t===void 0?void 0:t.click()},AI=()=>{var t;return(t=fr())===null||t===void 0?void 0:t.click()},CI=()=>{var t;return(t=ds())===null||t===void 0?void 0:t.click()},hs=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),KS=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},_I=(t,e,i)=>{KS(t),e.toast||(t.keydownHandler=r=>RI(e,r,i),t.keydownTarget=e.keydownListenerCapture?window:Ye(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},Ih=(t,e)=>{var i;const r=yp();if(r.length){t=t+e,t===-2&&(t=r.length-1),t===r.length?t=0:t===-1&&(t=r.length-1),r[t].focus();return}(i=Ye())===null||i===void 0||i.focus()},WS=["ArrowRight","ArrowDown"],OI=["ArrowLeft","ArrowUp"],RI=(t,e,i)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?MI(e,t):e.key==="Tab"?NI(e):[...WS,...OI].includes(e.key)?kI(e.key):e.key==="Escape"&&DI(e,t,i)))},MI=(t,e)=>{if(!mu(e.allowEnterKey))return;const i=wu(Ye(),e.input);if(t.target&&i&&t.target instanceof HTMLElement&&t.target.outerHTML===i.outerHTML){if(["textarea","file"].includes(e.input))return;$S(),t.preventDefault()}},NI=t=>{const e=t.target,i=yp();let r=-1;for(let l=0;l<i.length;l++)if(e===i[l]){r=l;break}t.shiftKey?Ih(r,-1):Ih(r,1),t.stopPropagation(),t.preventDefault()},kI=t=>{const e=Fl(),i=ni(),r=fr(),l=ds();if(!e||!i||!r||!l)return;const c=[i,r,l];if(document.activeElement instanceof HTMLElement&&!c.includes(document.activeElement))return;const d=WS.includes(t)?"nextElementSibling":"previousElementSibling";let p=document.activeElement;if(p){for(let h=0;h<e.children.length;h++){if(p=p[d],!p)return;if(p instanceof HTMLButtonElement&&Zt(p))break}p instanceof HTMLButtonElement&&p.focus()}},DI=(t,e,i)=>{t.preventDefault(),mu(e.allowEscapeKey)&&i(hs.esc)};var rs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const II=()=>{const t=Ht();Array.from(document.body.children).forEach(i=>{i.contains(t)||(i.hasAttribute("aria-hidden")&&i.setAttribute("data-previous-aria-hidden",i.getAttribute("aria-hidden")||""),i.setAttribute("aria-hidden","true"))})},QS=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},ZS=typeof window<"u"&&!!window.GestureEvent,jI=()=>{if(ZS&&!Ri(document.body,q.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,Xe(document.body,q.iosfix),LI()}},LI=()=>{const t=Ht();if(!t)return;let e;t.ontouchstart=i=>{e=PI(i)},t.ontouchmove=i=>{e&&(i.preventDefault(),i.stopPropagation())}},PI=t=>{const e=t.target,i=Ht(),r=mp();return!i||!r||BI(t)||zI(t)?!1:e===i||!Dh(i)&&e instanceof HTMLElement&&!PD(e,r)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Dh(r)&&r.contains(e))},BI=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",zI=t=>t.touches&&t.touches.length>1,UI=()=>{if(Ri(document.body,q.iosfix)){const t=parseInt(document.body.style.top,10);On(document.body,q.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},HI=()=>{const t=document.createElement("div");t.className=q["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let is=null;const VI=t=>{is===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(is=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${is+HI()}px`)},GI=()=>{is!==null&&(document.body.style.paddingRight=`${is}px`,is=null)};function JS(t,e,i,r){yu()?Zw(t,r):(_D(i).then(()=>Zw(t,r)),KS(Se)),ZS?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),wp()&&(GI(),UI(),QS()),qI()}function qI(){On([document.documentElement,document.body],[q.shown,q["height-auto"],q["no-backdrop"],q["toast-shown"]])}function ga(t){t=FI(t);const e=rs.swalPromiseResolve.get(this),i=YI(this);this.isAwaitingPromise?t.isDismissed||(Kl(this),e(t)):i&&e(t)}const YI=t=>{const e=Ye();if(!e)return!1;const i=it.innerParams.get(t);if(!i||Ri(e,i.hideClass.popup))return!1;On(e,i.showClass.popup),Xe(e,i.hideClass.popup);const r=Ht();return On(r,i.showClass.backdrop),Xe(r,i.hideClass.backdrop),XI(t,e,i),!0};function eE(t){const e=rs.swalPromiseReject.get(this);Kl(this),e&&e(t)}const Kl=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,it.innerParams.get(t)||t._destroy())},FI=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),XI=(t,e,i)=>{var r;const l=Ht(),c=zS(e);typeof i.willClose=="function"&&i.willClose(e),(r=Se.eventEmitter)===null||r===void 0||r.emit("willClose",e),c?$I(t,e,l,i.returnFocus,i.didClose):JS(t,l,i.returnFocus,i.didClose)},$I=(t,e,i,r,l)=>{Se.swalCloseEventFinishedCallback=JS.bind(null,t,i,r,l);const c=function(d){if(d.target===e){var p;(p=Se.swalCloseEventFinishedCallback)===null||p===void 0||p.call(Se),delete Se.swalCloseEventFinishedCallback,e.removeEventListener("animationend",c),e.removeEventListener("transitionend",c)}};e.addEventListener("animationend",c),e.addEventListener("transitionend",c)},Zw=(t,e)=>{setTimeout(()=>{var i;typeof e=="function"&&e.bind(t.params)(),(i=Se.eventEmitter)===null||i===void 0||i.emit("didClose"),t._destroy&&t._destroy()})},ss=t=>{let e=Ye();if(e||new Wt,e=Ye(),!e)return;const i=fs();yu()?It(us()):KI(e,t),Ct(i),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},KI=(t,e)=>{const i=Fl(),r=fs();!i||!r||(!e&&Zt(ni())&&(e=ni()),Ct(i),e&&(It(e),r.setAttribute("data-button-to-replace",e.className),i.insertBefore(r,e)),Xe([t,i],q.loading))},WI=(t,e)=>{e.input==="select"||e.input==="radio"?tj(t,e):["text","email","number","tel","textarea"].some(i=>i===e.input)&&(hp(e.inputValue)||pp(e.inputValue))&&(ss(ni()),nj(t,e))},QI=(t,e)=>{const i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return ZI(i);case"radio":return JI(i);case"file":return ej(i);default:return e.inputAutoTrim?i.value.trim():i.value}},ZI=t=>t.checked?1:0,JI=t=>t.checked?t.value:null,ej=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,tj=(t,e)=>{const i=Ye();if(!i)return;const r=l=>{e.input==="select"?ij(i,Qc(l),e):e.input==="radio"&&aj(i,Qc(l),e)};hp(e.inputOptions)||pp(e.inputOptions)?(ss(ni()),ql(e.inputOptions).then(l=>{t.hideLoading(),r(l)})):typeof e.inputOptions=="object"?r(e.inputOptions):dr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},nj=(t,e)=>{const i=t.getInput();i&&(It(i),ql(e.inputValue).then(r=>{i.value=e.input==="number"?`${parseFloat(r)||0}`:`${r}`,Ct(i),i.focus(),t.hideLoading()}).catch(r=>{dr(`Error in inputValue promise: ${r}`),i.value="",Ct(i),i.focus(),t.hideLoading()}))};function ij(t,e,i){const r=ma(t,q.select);if(!r)return;const l=(c,d,p)=>{const h=document.createElement("option");h.value=p,pn(h,d),h.selected=tE(p,i.inputValue),c.appendChild(h)};e.forEach(c=>{const d=c[0],p=c[1];if(Array.isArray(p)){const h=document.createElement("optgroup");h.label=d,h.disabled=!1,r.appendChild(h),p.forEach(m=>l(h,m[1],m[0]))}else l(r,p,d)}),r.focus()}function aj(t,e,i){const r=ma(t,q.radio);if(!r)return;e.forEach(c=>{const d=c[0],p=c[1],h=document.createElement("input"),m=document.createElement("label");h.type="radio",h.name=q.radio,h.value=d,tE(d,i.inputValue)&&(h.checked=!0);const v=document.createElement("span");pn(v,p),v.className=q.label,m.appendChild(h),m.appendChild(v),r.appendChild(m)});const l=r.querySelectorAll("input");l.length&&l[0].focus()}const Qc=t=>{const e=[];return t instanceof Map?t.forEach((i,r)=>{let l=i;typeof l=="object"&&(l=Qc(l)),e.push([r,l])}):Object.keys(t).forEach(i=>{let r=t[i];typeof r=="object"&&(r=Qc(r)),e.push([i,r])}),e},tE=(t,e)=>!!e&&e.toString()===t.toString(),rj=t=>{const e=it.innerParams.get(t);t.disableButtons(),e.input?nE(t,"confirm"):Cp(t,!0)},sj=t=>{const e=it.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?nE(t,"deny"):Ap(t,!1)},lj=(t,e)=>{t.disableButtons(),e(hs.cancel)},nE=(t,e)=>{const i=it.innerParams.get(t);if(!i.input){dr(`The "input" parameter is needed to be set when using returnInputValueOn${fp(e)}`);return}const r=t.getInput(),l=QI(t,i);i.inputValidator?oj(t,l,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(i.validationMessage||r.validationMessage)):e==="deny"?Ap(t,l):Cp(t,l)},oj=(t,e,i)=>{const r=it.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>ql(r.inputValidator(e,r.validationMessage))).then(c=>{t.enableButtons(),t.enableInput(),c?t.showValidationMessage(c):i==="deny"?Ap(t,e):Cp(t,e)})},Ap=(t,e)=>{const i=it.innerParams.get(t||void 0);i.showLoaderOnDeny&&ss(fr()),i.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>ql(i.preDeny(e,i.validationMessage))).then(l=>{l===!1?(t.hideLoading(),Kl(t)):t.close({isDenied:!0,value:typeof l>"u"?e:l})}).catch(l=>iE(t||void 0,l))):t.close({isDenied:!0,value:e})},Jw=(t,e)=>{t.close({isConfirmed:!0,value:e})},iE=(t,e)=>{t.rejectPromise(e)},Cp=(t,e)=>{const i=it.innerParams.get(t||void 0);i.showLoaderOnConfirm&&ss(),i.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>ql(i.preConfirm(e,i.validationMessage))).then(l=>{Zt(gu())||l===!1?(t.hideLoading(),Kl(t)):Jw(t,typeof l>"u"?e:l)}).catch(l=>iE(t||void 0,l))):Jw(t,e)};function Zc(){const t=it.innerParams.get(this);if(!t)return;const e=it.domCache.get(this);It(e.loader),yu()?t.icon&&Ct(us()):cj(e),On([e.popup,e.actions],q.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const cj=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Ct(e[0],"inline-block"):LD()&&It(t.actions)};function aE(){const t=it.innerParams.get(this),e=it.domCache.get(this);return e?wu(e.popup,t.input):null}function rE(t,e,i){const r=it.domCache.get(t);e.forEach(l=>{r[l].disabled=i})}function sE(t,e){const i=Ye();if(!(!i||!t))if(t.type==="radio"){const r=i.querySelectorAll(`[name="${q.radio}"]`);for(let l=0;l<r.length;l++)r[l].disabled=e}else t.disabled=e}function lE(){rE(this,["confirmButton","denyButton","cancelButton"],!1)}function oE(){rE(this,["confirmButton","denyButton","cancelButton"],!0)}function cE(){sE(this.getInput(),!1)}function uE(){sE(this.getInput(),!0)}function dE(t){const e=it.domCache.get(this),i=it.innerParams.get(this);pn(e.validationMessage,t),e.validationMessage.className=q["validation-message"],i.customClass&&i.customClass.validationMessage&&Xe(e.validationMessage,i.customClass.validationMessage),Ct(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",q["validation-message"]),PS(r),Xe(r,q.inputerror))}function fE(){const t=it.domCache.get(this);t.validationMessage&&It(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),On(e,q.inputerror))}const as={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},uj=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],dj={allowEnterKey:void 0},fj=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],hE=t=>Object.prototype.hasOwnProperty.call(as,t),pE=t=>uj.indexOf(t)!==-1,mE=t=>dj[t],hj=t=>{hE(t)||zt(`Unknown parameter "${t}"`)},pj=t=>{fj.includes(t)&&zt(`The parameter "${t}" is incompatible with toasts`)},mj=t=>{const e=mE(t);e&&DS(t,e)},gE=t=>{t.backdrop===!1&&t.allowOutsideClick&&zt('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&zt(`Invalid theme "${t.theme}"`);for(const e in t)hj(e),t.toast&&pj(e),mj(e)};function vE(t){const e=Ht(),i=Ye(),r=it.innerParams.get(this);if(!i||Ri(i,r.hideClass.popup)){zt("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const l=gj(t),c=Object.assign({},r,l);gE(c),e.dataset.swal2Theme=c.theme,XS(this,c),it.innerParams.set(this,c),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const gj=t=>{const e={};return Object.keys(t).forEach(i=>{pE(i)?e[i]=t[i]:zt(`Invalid parameter to update: ${i}`)}),e};function yE(){const t=it.domCache.get(this),e=it.innerParams.get(this);if(!e){wE(this);return}t.popup&&Se.swalCloseEventFinishedCallback&&(Se.swalCloseEventFinishedCallback(),delete Se.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),Se.eventEmitter.emit("didDestroy"),vj(this)}const vj=t=>{wE(t),delete t.params,delete Se.keydownHandler,delete Se.keydownTarget,delete Se.currentInstance},wE=t=>{t.isAwaitingPromise?(lh(it,t),t.isAwaitingPromise=!0):(lh(rs,t),lh(it,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},lh=(t,e)=>{for(const i in t)t[i].delete(e)};var yj=Object.freeze({__proto__:null,_destroy:yE,close:ga,closeModal:ga,closePopup:ga,closeToast:ga,disableButtons:oE,disableInput:uE,disableLoading:Zc,enableButtons:lE,enableInput:cE,getInput:aE,handleAwaitingPromise:Kl,hideLoading:Zc,rejectPromise:eE,resetValidationMessage:fE,showValidationMessage:dE,update:vE});const wj=(t,e,i)=>{t.toast?bj(t,e,i):(Ej(e),xj(e),Tj(t,e,i))},bj=(t,e,i)=>{e.popup.onclick=()=>{t&&(Sj(t)||t.timer||t.input)||i(hs.close)}},Sj=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let Jc=!1;const Ej=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(Jc=!0)}}},xj=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(i){t.popup.onmouseup=()=>{},(i.target===t.popup||i.target instanceof HTMLElement&&t.popup.contains(i.target))&&(Jc=!0)}}},Tj=(t,e,i)=>{e.container.onclick=r=>{if(Jc){Jc=!1;return}r.target===e.container&&mu(t.allowOutsideClick)&&i(hs.backdrop)}},Aj=t=>typeof t=="object"&&t.jquery,eb=t=>t instanceof Element||Aj(t),Cj=t=>{const e={};return typeof t[0]=="object"&&!eb(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((i,r)=>{const l=t[r];typeof l=="string"||eb(l)?e[i]=l:l!==void 0&&dr(`Unexpected type of ${i}! Expected "string" or "Element", got ${typeof l}`)}),e};function _j(...t){return new this(...t)}function Oj(t){class e extends this{_main(r,l){return super._main(r,Object.assign({},t,l))}}return e}const Rj=()=>Se.timeout&&Se.timeout.getTimerLeft(),bE=()=>{if(Se.timeout)return BD(),Se.timeout.stop()},SE=()=>{if(Se.timeout){const t=Se.timeout.start();return Sp(t),t}},Mj=()=>{const t=Se.timeout;return t&&(t.running?bE():SE())},Nj=t=>{if(Se.timeout){const e=Se.timeout.increase(t);return Sp(e,!0),e}},kj=()=>!!(Se.timeout&&Se.timeout.isRunning());let tb=!1;const jh={};function Dj(t="data-swal-template"){jh[t]=this,tb||(document.body.addEventListener("click",Ij),tb=!0)}const Ij=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const i in jh){const r=e.getAttribute(i);if(r){jh[i].fire({template:r});return}}};class jj{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,i){const r=this._getHandlersByEventName(e);r.includes(i)||r.push(i)}once(e,i){const r=(...l)=>{this.removeListener(e,r),i.apply(this,l)};this.on(e,r)}emit(e,...i){this._getHandlersByEventName(e).forEach(r=>{try{r.apply(this,i)}catch(l){console.error(l)}})}removeListener(e,i){const r=this._getHandlersByEventName(e),l=r.indexOf(i);l>-1&&r.splice(l,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}Se.eventEmitter=new jj;const Lj=(t,e)=>{Se.eventEmitter.on(t,e)},Pj=(t,e)=>{Se.eventEmitter.once(t,e)},Bj=(t,e)=>{if(!t){Se.eventEmitter.reset();return}e?Se.eventEmitter.removeListener(t,e):Se.eventEmitter.removeAllListeners(t)};var zj=Object.freeze({__proto__:null,argsToParams:Cj,bindClickHandler:Dj,clickCancel:CI,clickConfirm:$S,clickDeny:AI,enableLoading:ss,fire:_j,getActions:Fl,getCancelButton:ds,getCloseButton:vp,getConfirmButton:ni,getContainer:Ht,getDenyButton:fr,getFocusableElements:yp,getFooter:LS,getHtmlContainer:mp,getIcon:us,getIconContent:ND,getImage:jS,getInputLabel:kD,getLoader:fs,getPopup:Ye,getProgressSteps:gp,getTimerLeft:Rj,getTimerProgressBar:vu,getTitle:IS,getValidationMessage:gu,increaseTimer:Nj,isDeprecatedParameter:mE,isLoading:ID,isTimerRunning:kj,isUpdatableParameter:pE,isValidParameter:hE,isVisible:TI,mixin:Oj,off:Bj,on:Lj,once:Pj,resumeTimer:SE,showLoading:ss,stopTimer:bE,toggleTimer:Mj});class Uj{constructor(e,i){this.callback=e,this.remaining=i,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const i=this.running;return i&&this.stop(),this.remaining+=e,i&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const EE=["swal-title","swal-html","swal-footer"],Hj=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const i=e.content;return Kj(i),Object.assign(Vj(i),Gj(i),qj(i),Yj(i),Fj(i),Xj(i),$j(i,EE))},Vj=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(r=>{lr(r,["name","value"]);const l=r.getAttribute("name"),c=r.getAttribute("value");!l||!c||(typeof as[l]=="boolean"?e[l]=c!=="false":typeof as[l]=="object"?e[l]=JSON.parse(c):e[l]=c)}),e},Gj=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(r=>{const l=r.getAttribute("name"),c=r.getAttribute("value");!l||!c||(e[l]=new Function(`return ${c}`)())}),e},qj=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(r=>{lr(r,["type","color","aria-label"]);const l=r.getAttribute("type");!l||!["confirm","cancel","deny"].includes(l)||(e[`${l}ButtonText`]=r.innerHTML,e[`show${fp(l)}Button`]=!0,r.hasAttribute("color")&&(e[`${l}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(e[`${l}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),e},Yj=t=>{const e={},i=t.querySelector("swal-image");return i&&(lr(i,["src","width","height","alt"]),i.hasAttribute("src")&&(e.imageUrl=i.getAttribute("src")||void 0),i.hasAttribute("width")&&(e.imageWidth=i.getAttribute("width")||void 0),i.hasAttribute("height")&&(e.imageHeight=i.getAttribute("height")||void 0),i.hasAttribute("alt")&&(e.imageAlt=i.getAttribute("alt")||void 0)),e},Fj=t=>{const e={},i=t.querySelector("swal-icon");return i&&(lr(i,["type","color"]),i.hasAttribute("type")&&(e.icon=i.getAttribute("type")),i.hasAttribute("color")&&(e.iconColor=i.getAttribute("color")),e.iconHtml=i.innerHTML),e},Xj=t=>{const e={},i=t.querySelector("swal-input");i&&(lr(i,["type","label","placeholder","value"]),e.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(e.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(e.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(e.inputValue=i.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach(l=>{lr(l,["value"]);const c=l.getAttribute("value");if(!c)return;const d=l.innerHTML;e.inputOptions[c]=d})),e},$j=(t,e)=>{const i={};for(const r in e){const l=e[r],c=t.querySelector(l);c&&(lr(c,[]),i[l.replace(/^swal-/,"")]=c.innerHTML.trim())}return i},Kj=t=>{const e=EE.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(i=>{const r=i.tagName.toLowerCase();e.includes(r)||zt(`Unrecognized element <${r}>`)})},lr=(t,e)=>{Array.from(t.attributes).forEach(i=>{e.indexOf(i.name)===-1&&zt([`Unrecognized attribute "${i.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},xE=10,Wj=t=>{const e=Ht(),i=Ye();typeof t.willOpen=="function"&&t.willOpen(i),Se.eventEmitter.emit("willOpen",i);const l=window.getComputedStyle(document.body).overflowY;Jj(e,i,t),setTimeout(()=>{Qj(e,i)},xE),wp()&&(Zj(e,t.scrollbarPadding,l),II()),!yu()&&!Se.previousActiveElement&&(Se.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(i)),Se.eventEmitter.emit("didOpen",i),On(e,q["no-transition"])},eu=t=>{const e=Ye();if(t.target!==e)return;const i=Ht();e.removeEventListener("animationend",eu),e.removeEventListener("transitionend",eu),i.style.overflowY="auto"},Qj=(t,e)=>{zS(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",eu),e.addEventListener("transitionend",eu)):t.style.overflowY="auto"},Zj=(t,e,i)=>{jI(),e&&i!=="hidden"&&VI(i),setTimeout(()=>{t.scrollTop=0})},Jj=(t,e,i)=>{Xe(t,i.showClass.backdrop),i.animation?(e.style.setProperty("opacity","0","important"),Ct(e,"grid"),setTimeout(()=>{Xe(e,i.showClass.popup),e.style.removeProperty("opacity")},xE)):Ct(e,"grid"),Xe([document.documentElement,document.body],q.shown),i.heightAuto&&i.backdrop&&!i.toast&&Xe([document.documentElement,document.body],q["height-auto"])};var nb={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function eL(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=nb.email),t.input==="url"&&(t.inputValidator=nb.url))}function tL(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(zt('Target parameter is not valid, defaulting to "body"'),t.target="body")}function nL(t){eL(t),t.showLoaderOnConfirm&&!t.preConfirm&&zt(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),tL(t),typeof t.title=="string"&&(t.title=t.title.split(`
`).join("<br />")),FD(t)}let Wn;var wc=new WeakMap;class yt{constructor(...e){if(xD(this,wc,void 0),typeof window>"u")return;Wn=this;const i=Object.freeze(this.constructor.argsToParams(e));this.params=i,this.isAwaitingPromise=!1,TD(wc,this,this._main(Wn.params))}_main(e,i={}){if(gE(Object.assign({},i,e)),Se.currentInstance){const c=rs.swalPromiseResolve.get(Se.currentInstance),{isAwaitingPromise:d}=Se.currentInstance;Se.currentInstance._destroy(),d||c({isDismissed:!0}),wp()&&QS()}Se.currentInstance=Wn;const r=aL(e,i);nL(r),Object.freeze(r),Se.timeout&&(Se.timeout.stop(),delete Se.timeout),clearTimeout(Se.restoreFocusTimeout);const l=rL(Wn);return XS(Wn,r),it.innerParams.set(Wn,r),iL(Wn,l,r)}then(e){return Fw(wc,this).then(e)}finally(e){return Fw(wc,this).finally(e)}}const iL=(t,e,i)=>new Promise((r,l)=>{const c=d=>{t.close({isDismissed:!0,dismiss:d})};rs.swalPromiseResolve.set(t,r),rs.swalPromiseReject.set(t,l),e.confirmButton.onclick=()=>{rj(t)},e.denyButton.onclick=()=>{sj(t)},e.cancelButton.onclick=()=>{lj(t,c)},e.closeButton.onclick=()=>{c(hs.close)},wj(i,e,c),_I(Se,i,c),WI(t,i),Wj(i),sL(Se,i,c),lL(e,i),setTimeout(()=>{e.container.scrollTop=0})}),aL=(t,e)=>{const i=Hj(t),r=Object.assign({},as,e,i,t);return r.showClass=Object.assign({},as.showClass,r.showClass),r.hideClass=Object.assign({},as.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},rL=t=>{const e={popup:Ye(),container:Ht(),actions:Fl(),confirmButton:ni(),denyButton:fr(),cancelButton:ds(),loader:fs(),closeButton:vp(),validationMessage:gu(),progressSteps:gp()};return it.domCache.set(t,e),e},sL=(t,e,i)=>{const r=vu();It(r),e.timer&&(t.timeout=new Uj(()=>{i("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Ct(r),fn(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Sp(e.timer)})))},lL=(t,e)=>{if(!e.toast){if(!mu(e.allowEnterKey)){DS("allowEnterKey"),uL();return}oL(t)||cL(t,e)||Ih(-1,1)}},oL=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const i of e)if(i instanceof HTMLElement&&Zt(i))return i.focus(),!0;return!1},cL=(t,e)=>e.focusDeny&&Zt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Zt(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Zt(t.confirmButton)?(t.confirmButton.focus(),!0):!1,uL=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const t=new Date,e=localStorage.getItem("swal-initiation");e?(t.getTime()-Date.parse(e))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const i=document.createElement("audio");i.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",i.loop=!0,document.body.appendChild(i),setTimeout(()=>{i.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${t}`)}yt.prototype.disableButtons=oE;yt.prototype.enableButtons=lE;yt.prototype.getInput=aE;yt.prototype.disableInput=uE;yt.prototype.enableInput=cE;yt.prototype.hideLoading=Zc;yt.prototype.disableLoading=Zc;yt.prototype.showValidationMessage=dE;yt.prototype.resetValidationMessage=fE;yt.prototype.close=ga;yt.prototype.closePopup=ga;yt.prototype.closeModal=ga;yt.prototype.closeToast=ga;yt.prototype.rejectPromise=eE;yt.prototype.update=vE;yt.prototype._destroy=yE;Object.assign(yt,zj);Object.keys(yj).forEach(t=>{yt[t]=function(...e){return Wn&&Wn[t]?Wn[t](...e):null}});yt.DismissReason=hs;yt.version="11.22.2";const Wt=yt;Wt.default=Wt;typeof document<"u"&&function(t,e){var i=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=e);else try{i.innerHTML=e}catch{i.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const dL="/assets/bike-SUVIHF3e.svg",fL=()=>{const[t,e]=N.useState({modelName:"Classic 350",userName:"",email:"",mobileNo:"",status:"pending",updatedBy:"manager01"}),[i,r]=N.useState(!1),l=N.useRef(null),c=N.useRef(null),d=N.useRef(null),p=N.useRef([]),h="^(?:\\+88)?01[3-9]\\d{8}$",m=new RegExp(h);console.log(m);const v=w=>{e(x=>({...x,[w.target.name]:w.target.value}))},b=w=>{if(w.preventDefault(),!m.test(t.mobileNo)){Wt.fire({title:"Invalid Mobile Number",text:"Please enter a valid mobile number (with or without +88)",icon:"error"});return}c.current&&(c.current.style.transition="transform 1s ease-in-out, opacity 0.5s ease-in-out",c.current.style.transform="translateX(100vw)",c.current.style.opacity="translateX(100vw)");const x=Wt.mixin({customClass:{confirmButton:"btn btn-success",cancelButton:"btn btn-danger"},buttonsStyling:!1});x.fire({title:"Are you sure?",text:"You are booking for a Bike from MotoHunters, Rangpur",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, Sumbit it!",cancelButtonText:"No, cancel!",reverseButtons:!0}).then(T=>{T.isConfirmed?(x.fire({title:"Submitted!",text:`Form submitted successfully!
We will call you soon from our showroom.`,icon:"success"}),r(!0),console.log(t),fetch("https://webserver.motohunters.com/add-prebooking",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).then(I=>I.text()).then(I=>{console.log(I),I.insertedId&&Wt({title:"Good job!",text:"You Successfully Book Your Bike from Moto Hunters, Rangpur!",icon:"success",button:"Great!"})}),l.current.style.display="none"):T.dismiss===Wt.DismissReason.cancel&&x.fire({title:"Cancelled",text:"Your Canceled your Pre-booking :)",icon:"error"})}),setTimeout(()=>{r(!1)},4e3)};return N.useEffect(()=>{p.current.forEach(w=>{w.addEventListener("focus",()=>{const x=w.offsetLeft;c.current&&(c.current.style.transform=`translateX(${x}px)`)})})},[]),g.jsx("div",{className:"prebooking-section py-16",id:"prebooking",children:g.jsxs("div",{className:"containerCustom prebooking-section-content-wrapper mx-auto ",children:[g.jsxs("div",{className:"prebooking-text-content ",children:[g.jsx("h2",{className:"",children:"PREBOOKING"}),g.jsxs("p",{className:"text-lg",children:["Starts at just ",g.jsx("span",{className:"",children:"25,000"})," BDT"]})]}),g.jsxs("div",{className:"prebooking-form w-full pt-16",children:[g.jsxs("div",{id:"formContainer",className:"form-container relative",children:[g.jsx("div",{className:"bike-path",children:g.jsx("img",{src:dL,className:"bike",id:"bike",width:"150",alt:"bike",ref:c})}),g.jsxs("form",{id:"bikeForm",className:" ",onSubmit:b,ref:l,children:[g.jsxs("select",{className:"form-field",name:"modelName",value:t.model,onChange:v,ref:w=>p.current[0]=w,children:[g.jsx("option",{children:"Classic 350"}),g.jsx("option",{children:"Meteor 350"}),g.jsx("option",{children:"Bullet 350"}),g.jsx("option",{children:"Hunter 350"})]}),g.jsx("input",{type:"text",className:"form-field",placeholder:"Name: Adom Smith",name:"userName",required:!0,value:t.name,onChange:v,ref:w=>p.current[1]=w}),g.jsx("input",{type:"text",className:"form-field ",placeholder:"Address: Street, District, Division",name:"address",required:!0,value:t.address,onChange:v,ref:w=>p.current[2]=w}),g.jsx("input",{type:"text",className:"form-field ",placeholder:"Mobile No: 01X XXXX XXXX",name:"mobileNo",required:!0,value:t.mobile,onChange:v,ref:w=>p.current[3]=w}),g.jsx("div",{className:"prebooking-btn-container text-center",children:g.jsx("button",{type:"submit",className:"submit-btn",children:g.jsx("span",{className:"btn-text",children:"GO"})})})]})]}),i&&g.jsx("div",{className:"message mt-4 text-green-600 text-center font-medium",id:"successMessage",ref:d,children:"Form Submitted Successfully!"})]})]})})},hL=()=>g.jsxs("div",{children:[g.jsx(pS,{}),g.jsx(bN,{}),g.jsx(kN,{}),g.jsx(fL,{}),g.jsx(SD,{})]}),pL=({singlePreBooking:t,rowNumber:e,preBookings:i,setPreBookings:r})=>{const l=c=>{console.log("Deleted CLicked"),Wt.fire({title:"Are you sure?",text:"Once deleted, you will not be able to recover this Pre-Booking Submission!",icon:"warning",buttons:!0,dangerMode:!0}).then(d=>{d?(console.log("delectHandler: "+c),fetch(`https://webserver.motohunters.com/prebooking/${c}/delete`,{method:"DELETE"}).then(p=>p.json()).then(p=>{if(console.log(p),p.deletedCount){const h=i.filter(m=>m._id!==c);r(h)}}),Wt.fire("Your deleted a Pre-Booking Submission !",{icon:"success"})):Wt.fire("Your imaginary file is safe!")})};return console.log(t),g.jsxs("tr",{className:"prebookingRow",children:[g.jsx("th",{className:"rowNumber",children:e}),g.jsx("td",{children:t?.userName}),g.jsx("td",{children:t?.modelName}),g.jsx("td",{children:t?.mobileNo}),g.jsx("td",{children:t?.address}),g.jsx("td",{children:t?.status}),g.jsx("td",{children:t.status==="delivered"||t.status==="canceled"?g.jsx(g.Fragment,{children:g.jsx(Pt,{to:`/pre-bookings/view/${t._id}`,children:g.jsx("button",{className:"btn btn-ghost btn-xs ",children:"View Details"})})}):g.jsxs("div",{children:[g.jsx(Pt,{to:`/pre-bookings/edit/${t._id}`,children:g.jsx("button",{className:"btn btn-ghost btn-xs ",children:"Edit"})}),g.jsx("button",{className:"btn btn-ghost btn-xs",onClick:()=>l(t._id),children:"Delete"})]})})]})},mL=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),TE=t=>Array.isArray(t)&&t.every(e=>typeof e=="object"&&!(e instanceof Array)),gL=t=>Array.isArray(t)&&t.every(e=>Array.isArray(e)),vL=t=>Array.from(t.map(e=>Object.keys(e)).reduce((e,i)=>new Set([...e,...i]),[])),yL=(t,e)=>{e=e||vL(t);let i=e,r=e;TE(e)&&(i=e.map(c=>c.label),r=e.map(c=>c.key));const l=t.map(c=>r.map(d=>wL(d,c)));return[i,...l]},wL=(t,e)=>{const i=t.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,l,c,d){const p=r[l];if(p==null)d.splice(1);else return p},e);return i===void 0?t in e?e[t]:"":i},bL=t=>typeof t>"u"||t===null?"":t,AE=(t,e=",",i='"')=>t.filter(r=>r).map(r=>r.map(l=>bL(l)).map(l=>`${i}${l}${i}`).join(e)).join(`
`),SL=(t,e,i,r)=>AE(e?[e,...t]:t,i,r),EL=(t,e,i,r)=>AE(yL(t,e),i,r),xL=(t,e,i,r)=>e?`${e.join(i)}
${t}`:t.replace(/"/g,'""'),CE=(t,e,i,r)=>{if(TE(t))return EL(t,e,i,r);if(gL(t))return SL(t,e,i,r);if(typeof t=="string")return xL(t,e,i);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},_E=(t,e,i,r,l)=>{const c=CE(t,i,r,l),d=mL()?"application/csv":"text/csv",p=new Blob([e?"\uFEFF":"",c],{type:d}),h=`data:${d};charset=utf-8,${e?"\uFEFF":""}${c}`,m=window.URL||window.webkitURL;return typeof m.createObjectURL>"u"?h:m.createObjectURL(p)};var oh={exports:{}},ch,ib;function TL(){if(ib)return ch;ib=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ch=t,ch}var uh,ab;function AL(){if(ab)return uh;ab=1;var t=TL();function e(){}function i(){}return i.resetWarningCache=e,uh=function(){function r(d,p,h,m,v,b){if(b!==t){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}r.isRequired=r;function l(){return r}var c={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:e};return c.PropTypes=c,c},uh}var rb;function CL(){return rb||(rb=1,oh.exports=AL()()),oh.exports}var An=CL();const OE={data:An.oneOfType([An.string,An.array,An.func]).isRequired,headers:An.array,target:An.string,separator:An.string,filename:An.string,uFEFF:An.bool,onClick:An.func,asyncOnClick:An.bool,enclosingCharacter:An.string},RE={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},_L={target:"_blank"};class KL extends ze.Component{static defaultProps=Object.assign(RE,_L);static propTypes=OE;constructor(e){super(e),this.state={}}buildURI(){return _E(...arguments)}componentDidMount(){const{data:e,headers:i,separator:r,enclosingCharacter:l,uFEFF:c,target:d,specs:p,replace:h}=this.props;this.state.page=window.open(this.buildURI(e,c,i,r,l),d,p,h)}getWindow(){return this.state.page}render(){return null}}let OL=class extends ze.Component{static defaultProps=RE;static propTypes=OE;constructor(e){super(e),this.buildURI=this.buildURI.bind(this)}buildURI(){return _E(...arguments)}handleLegacy(e,i=!1){if(window.navigator.msSaveOrOpenBlob){e.preventDefault();const{data:r,headers:l,separator:c,filename:d,enclosingCharacter:p,uFEFF:h}=this.props,m=i&&typeof r=="function"?r():r;let v=new Blob([h?"\uFEFF":"",CE(m,l,c,p)]);return window.navigator.msSaveBlob(v,d),!1}}handleAsyncClick(e){const i=r=>{if(r===!1){e.preventDefault();return}this.handleLegacy(e,!0)};this.props.onClick(e,i)}handleSyncClick(e){if(this.props.onClick(e)===!1){e.preventDefault();return}this.handleLegacy(e)}handleClick(){return e=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(e):this.handleSyncClick(e);this.handleLegacy(e)}}render(){const{data:e,headers:i,separator:r,filename:l,uFEFF:c,children:d,onClick:p,asyncOnClick:h,enclosingCharacter:m,...v}=this.props,w=typeof window>"u"?"":this.buildURI(e,c,i,r,m);return g.jsx("a",{download:l,...v,ref:x=>this.link=x,target:"_self",href:w,onClick:this.handleClick(),children:d})}};const RL=OL;var ME={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},sb=ze.createContext&&ze.createContext(ME),ML=["attr","size","title"];function NL(t,e){if(t==null)return{};var i=kL(t,e),r,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(l=0;l<c.length;l++)r=c[l],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function kL(t,e){if(t==null)return{};var i={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;i[r]=t[r]}return i}function tu(){return tu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},tu.apply(this,arguments)}function lb(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,r)}return i}function nu(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?lb(Object(i),!0).forEach(function(r){DL(t,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):lb(Object(i)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))})}return t}function DL(t,e,i){return e=IL(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function IL(t){var e=jL(t,"string");return typeof e=="symbol"?e:e+""}function jL(t,e){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var r=i.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function NE(t){return t&&t.map((e,i)=>ze.createElement(e.tag,nu({key:i},e.attr),NE(e.child)))}function LL(t){return e=>ze.createElement(PL,tu({attr:nu({},t.attr)},e),NE(t.child))}function PL(t){var e=i=>{var{attr:r,size:l,title:c}=t,d=NL(t,ML),p=l||i.size||"1em",h;return i.className&&(h=i.className),t.className&&(h=(h?h+" ":"")+t.className),ze.createElement("svg",tu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,r,d,{className:h,style:nu(nu({color:t.color||i.color},i.style),t.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ze.createElement("title",null,c),t.children)};return sb!==void 0?ze.createElement(sb.Consumer,null,i=>e(i)):e(ME)}function BL(t){return LL({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"},child:[]}]})(t)}const zL=()=>{const t=Vh(),[e,i]=N.useState(t),[r,l]=N.useState(""),c=t.map(d=>({...d,mobileNo:`'${d.mobileNo}'`}));return N.useEffect(()=>{if(!r)i(t);else{const d=t.filter(p=>p.status.toLowerCase()===r.toLowerCase());i(d)}},[r,t]),g.jsx("div",{children:g.jsxs("div",{className:"w-full overflow-x-auto pt-10 pb-40",children:[g.jsxs("div",{className:"flex md:flex-row flex-col justify-between md:pr-16",children:[g.jsxs("form",{className:"filter flex flex-row  flex-nowrap overflow-x-scroll items-center gap-2 mb-4",children:[g.jsx("p",{children:"Filter By Status:"}),g.jsx("input",{className:"btn",type:"button",value:"All",onClick:()=>l("")}),g.jsx("input",{className:"btn",type:"button",value:"Pending",onClick:()=>l("pending")}),g.jsx("input",{className:"btn",type:"button",value:"Confirmed",onClick:()=>l("confirmed")}),g.jsx("input",{className:"btn",type:"button",value:"In Progress",onClick:()=>l("in progress")}),g.jsx("input",{className:"btn",type:"button",value:"Delivered",onClick:()=>l("delivered")}),g.jsx("input",{className:"btn",type:"button",value:"Canceled",onClick:()=>l("canceled")})]}),g.jsx("button",{children:g.jsxs(RL,{data:c,filename:"MotoHunters-All-Prebooking.csv",target:"_blank",className:"flex items-center gap-1 hover:text-red-200",children:[g.jsx(BL,{})," Export All-Bookings"]})})]}),e.length===0?g.jsx("div",{className:"text-center text-red-500 font-semibold py-10",children:"No pre-bookings found for this filter."}):g.jsxs("table",{className:"table table-xs w-full",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"#"}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Model"}),g.jsx("th",{children:"Mobile"}),g.jsx("th",{children:"Address"}),g.jsx("th",{children:"Status"}),g.jsx("th",{children:"Action"})]})}),g.jsx("tbody",{children:e.map((d,p)=>g.jsx(pL,{singlePreBooking:d,rowNumber:p+1,preBookings:e,setPreBookings:i},d._id))})]})]})})},UL=()=>{const t=Vh(),e=jl(),r=Rn().state?.from?.pathname||"/pre-bookings",l=c=>{c.preventDefault();const d=c.target.bikeColor.value,p=c.target.status.value,h=c.target.paymentMethod.value,m=c.target.amountOfMoney.value,v={bikeColor:d,status:p,paymentMethod:h,amountOfMoney:m};v?(fetch(`https://webserver.motohunters.com/prebooking/edit/${t._id}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(v)}).then(b=>b.json()).then(b=>console.log(b)),Wt.fire({icon:"success",html:`You Updated the Prebooking data;</br> <span style="font-size: 16px;">Prebooking Unique ID: "${t._id}"; </br> Ordered By "${t.userName} :)"</span>`}).then(()=>{e(r,{replace:!0})})):Wt.fire("Your imaginary file is safe!")};return g.jsx("div",{className:"containerCustom editPrebooking  mx-auto pb-[200px]",children:g.jsx("form",{onSubmit:l,children:g.jsxs("div",{className:"flex flex-col gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"PreOrder ID"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"email",name:"email",defaultValue:t?._id,readOnly:!0})]}),g.jsxs("div",{className:"row flex flex-row gap-4",children:[g.jsxs("div",{className:"col  w-1/2",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Model Name"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"modelName",defaultValue:t?.modelName,readOnly:!0})]}),g.jsxs("div",{className:"col  w-1/2 editableInputField",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Bike Color"})}),g.jsxs("select",{className:"border-black-300 py-1 input input-bordered w-full ",name:"bikeColor",defaultValue:t?.bikeColor,children:[g.jsxs("optgroup",{label:"Bullet 350",children:[g.jsx("option",{value:"Black Cold",children:"Black Cold"}),g.jsx("option",{value:"Standard - Black",children:"Standard - Black"}),g.jsx("option",{value:"Standard - Maroon",children:"Standard - Maroon"})]}),g.jsxs("optgroup",{label:"Meteor 350",children:[g.jsx("option",{value:"Supernova Red",children:"Supernova Red"}),g.jsx("option",{value:"Supernova Blue",children:"Supernova Blue"}),g.jsx("option",{value:"Stellar Blue",children:"Stellar Blue"}),g.jsx("option",{value:"Stellar Black",children:"Stellar Black"}),g.jsx("option",{value:"Stellar Red",children:"Stellar Red"})]}),g.jsxs("optgroup",{label:"Hunter 350",children:[g.jsx("option",{value:"Rebel Black",children:"Rebel Black"}),g.jsx("option",{value:"Rebel Blue",children:"Rebel Blue"}),g.jsx("option",{value:"Rebel Red",children:"Rebel Red"})]}),g.jsxs("optgroup",{label:"Classic 350",children:[g.jsx("option",{value:"Dark Gunmetal Grey",children:"Dark Gunmetal Grey"}),g.jsx("option",{value:"Dark Stealth Black",children:"Dark Stealth Black"}),g.jsx("option",{value:"Chrome Red",children:"Chrome Red"}),g.jsx("option",{value:"Chrome Bronze",children:"Chrome Bronze"}),g.jsx("option",{value:"Halcyon Black",children:"Halcyon Black"}),g.jsx("option",{value:"Halcyon Green",children:"Halcyon Green"})]})]})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Customer Name"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"userName",defaultValue:t?.userName,readOnly:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Mobile Number"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"mobileNo",defaultValue:t?.mobileNo,readOnly:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Address"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"address",defaultValue:t?.address,readOnly:!0})]}),g.jsxs("div",{className:"editableInputField",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Pre-order Status"})}),g.jsxs("select",{className:"border-black-300 py-1 input input-bordered w-full ",name:"status",defaultValue:t?.status||"Pending",required:!0,children:[g.jsx("option",{value:"pending",children:"Pending"}),g.jsx("option",{value:"confirmed",children:"Confirm"}),g.jsx("option",{value:"canceled",children:"Cancel"}),g.jsx("option",{value:"in progress",children:"In Progress"}),g.jsx("option",{value:"delivered",children:"Delivered"})]})]}),g.jsxs("div",{className:"row flex flex-row gap-4",children:[g.jsxs("div",{className:"col  w-1/2 editableInputField",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Payment Method"})}),g.jsxs("select",{name:"paymentMethod",id:"paymentMethod",className:"border-black-300 py-1 input input-bordered w-full",defaultValue:t?.paymentMethod,children:[g.jsx("option",{value:"",children:"Select Payment Method"}),g.jsxs("optgroup",{label:"Mobile Banking",children:[g.jsx("option",{value:"bKash",children:"bKash"}),g.jsx("option",{value:"Nagad",children:"Nagad"}),g.jsx("option",{value:"Rocket",children:"Rocket (DBBL)"}),g.jsx("option",{value:"Upay",children:"Upay"}),g.jsx("option",{value:"Tap",children:"Tap"})]}),g.jsxs("optgroup",{label:"Bank Transfer",children:[g.jsx("option",{value:"Bank Transfer - BRAC",children:"Bank Transfer (BRAC Bank)"}),g.jsx("option",{value:"Bank Transfer - DBBL",children:"Bank Transfer (DBBL)"}),g.jsx("option",{value:"Bank Transfer - City",children:"Bank Transfer (City Bank)"}),g.jsx("option",{value:"Bank Transfer - Others",children:"Bank Transfer (Others)"})]}),g.jsxs("optgroup",{label:"Card Payment",children:[g.jsx("option",{value:"Visa",children:"Visa"}),g.jsx("option",{value:"MasterCard",children:"MasterCard"}),g.jsx("option",{value:"American Express",children:"American Express"}),g.jsx("option",{value:"Card Payment -  Others",children:"Others"})]}),g.jsxs("optgroup",{label:"Payment Gateway",children:[g.jsx("option",{value:"SSLCOMMERZ",children:"SSLCommerz"}),g.jsx("option",{value:"ShurjoPay",children:"ShurjoPay"}),g.jsx("option",{value:"PortWallet",children:"PortWallet"})]}),g.jsxs("optgroup",{label:"Cash",children:[g.jsx("option",{value:"Cash on Delivery",children:"Cash on Hand"}),g.jsx("option",{value:"Cash in Advance",children:"Cash in Advance"})]})]})]}),g.jsxs("div",{className:"col  w-1/2",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Amount of Tk."})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"number",name:"amountOfMoney",defaultValue:t?.amountOfMoney})]})]}),g.jsx("input",{className:"btn bg-[#fdcfcf] hover:bg-red w-full mt-4",type:"submit",value:"Update PreOrder"})]})})})},HL=()=>{const t=Vh(),e=jl(),r=Rn().state?.from?.pathname||"/pre-bookings",l=c=>{c.preventDefault(),e(r,{replace:!0})};return g.jsx("div",{className:"containerCustom editPrebooking  mx-auto pb-[200px]",children:g.jsx("form",{onSubmit:l,children:g.jsxs("div",{className:"flex flex-col gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"PreOrder ID"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"email",name:"email",defaultValue:t?._id,readOnly:!0})]}),g.jsxs("div",{className:"row flex flex-row gap-4",children:[g.jsxs("div",{className:"col  w-1/2",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Model Name"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"modelName",defaultValue:t?.modelName,readOnly:!0})]}),g.jsxs("div",{className:"col  w-1/2 editableInputField",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Bike Color"})}),g.jsxs("select",{className:"border-black-300 py-1 input input-bordered w-full ",name:"bikeColor",defaultValue:t?.bikeColor?t?.bikeColor:"N/A",readOnly:!0,children:[g.jsxs("optgroup",{label:"Bullet 350",children:[g.jsx("option",{disabled:!0,value:"Black Cold",children:"Black Cold"}),g.jsx("option",{disabled:!0,value:"Standard - Black",children:"Standard - Black"}),g.jsx("option",{disabled:!0,value:"Standard - Maroon",children:"Standard - Maroon"})]}),g.jsxs("optgroup",{label:"Meteor 350",children:[g.jsx("option",{disabled:!0,value:"Supernova Red",children:"Supernova Red"}),g.jsx("option",{disabled:!0,value:"Supernova Blue",children:"Supernova Blue"}),g.jsx("option",{disabled:!0,value:"Stellar Blue",children:"Stellar Blue"}),g.jsx("option",{disabled:!0,value:"Stellar Black",children:"Stellar Black"}),g.jsx("option",{disabled:!0,value:"Stellar Red",children:"Stellar Red"})]}),g.jsxs("optgroup",{label:"Hunter 350",children:[g.jsx("option",{disabled:!0,value:"Rebel Black",children:"Rebel Black"}),g.jsx("option",{disabled:!0,value:"Rebel Blue",children:"Rebel Blue"}),g.jsx("option",{disabled:!0,value:"Rebel Red",children:"Rebel Red"})]}),g.jsxs("optgroup",{label:"Classic 350",children:[g.jsx("option",{disabled:!0,value:"Dark Gunmetal Grey",children:"Dark Gunmetal Grey"}),g.jsx("option",{disabled:!0,value:"Dark Stealth Black",children:"Dark Stealth Black"}),g.jsx("option",{disabled:!0,value:"Chrome Red",children:"Chrome Red"}),g.jsx("option",{disabled:!0,value:"Chrome Bronze",children:"Chrome Bronze"}),g.jsx("option",{disabled:!0,value:"Halcyon Black",children:"Halcyon Black"}),g.jsx("option",{disabled:!0,value:"Halcyon Green",children:"Halcyon Green"})]})]})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Customer Name"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"userName",defaultValue:t?.userName,readOnly:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Mobile Number"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"mobileNo",defaultValue:t?.mobileNo,readOnly:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Address"})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"text",name:"address",defaultValue:t?.address,readOnly:!0})]}),g.jsxs("div",{className:"editableInputField",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Pre-order Status"})}),g.jsxs("select",{className:"border-black-300 py-1 input input-bordered w-full ",name:"status",defaultValue:t?.status||"Pending",readOnly:!0,children:[g.jsx("option",{disabled:!0,value:"pending",children:"Pending"}),g.jsx("option",{disabled:!0,value:"confirmed",children:"Confirm"}),g.jsx("option",{disabled:!0,value:"canceled",children:"Cancel"}),g.jsx("option",{disabled:!0,value:"in progress",children:"In Progress"}),g.jsx("option",{disabled:!0,value:"delivered",children:"Delivered"})]})]}),g.jsxs("div",{className:"row flex flex-row gap-4",children:[g.jsxs("div",{className:"col  w-1/2 editableInputField",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Payment Method"})}),g.jsxs("select",{name:"paymentMethod",id:"paymentMethod",className:"border-black-300 py-1 input input-bordered w-full",defaultValue:t?.paymentMethod||"N/A",readOnly:!0,children:[g.jsx("option",{disabled:!0,value:"",children:"Select Payment Method"}),g.jsxs("optgroup",{label:"Mobile Banking",children:[g.jsx("option",{disabled:!0,value:"bKash",children:"bKash"}),g.jsx("option",{disabled:!0,value:"Nagad",children:"Nagad"}),g.jsx("option",{disabled:!0,value:"Rocket",children:"Rocket (DBBL)"}),g.jsx("option",{disabled:!0,value:"Upay",children:"Upay"}),g.jsx("option",{disabled:!0,value:"Tap",children:"Tap"})]}),g.jsxs("optgroup",{label:"Bank Transfer",children:[g.jsx("option",{disabled:!0,value:"Bank Transfer - BRAC",children:"Bank Transfer (BRAC Bank)"}),g.jsx("option",{disabled:!0,value:"Bank Transfer - DBBL",children:"Bank Transfer (DBBL)"}),g.jsx("option",{disabled:!0,value:"Bank Transfer - City",children:"Bank Transfer (City Bank)"}),g.jsx("option",{disabled:!0,value:"Bank Transfer - Others",children:"Bank Transfer (Others)"})]}),g.jsxs("optgroup",{label:"Card Payment",children:[g.jsx("option",{disabled:!0,value:"Visa",children:"Visa"}),g.jsx("option",{disabled:!0,value:"MasterCard",children:"MasterCard"}),g.jsx("option",{disabled:!0,value:"American Express",children:"American Express"}),g.jsx("option",{disabled:!0,value:"Card Payment -  Others",children:"Others"})]}),g.jsxs("optgroup",{label:"Payment Gateway",children:[g.jsx("option",{disabled:!0,value:"SSLCOMMERZ",children:"SSLCommerz"}),g.jsx("option",{disabled:!0,value:"ShurjoPay",children:"ShurjoPay"}),g.jsx("option",{disabled:!0,value:"PortWallet",children:"PortWallet"})]}),g.jsxs("optgroup",{label:"Cash",children:[g.jsx("option",{disabled:!0,value:"Cash on Delivery",children:"Cash on Hand"}),g.jsx("option",{disabled:!0,value:"Cash in Advance",children:"Cash in Advance"})]})]})]}),g.jsxs("div",{className:"col  w-1/2",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Amount of Tk."})}),g.jsx("input",{className:"border-black-300 py-1 input input-bordered w-full",type:"number",name:"amountOfMoney",defaultValue:t?.amountOfMoney||"N/A",readOnly:!0})]})]}),g.jsx("input",{className:"btn bg-[#fdcfcf] hover:bg-red w-full mt-4",type:"submit",value:"Ok! Back to Home"})]})})})},VL=()=>g.jsx("div",{className:"hero hero-wrapper single-bike-hero-wrapper",children:g.jsxs(dp,{loop:!0,className:"mySwiper",children:[g.jsx(Ol,{children:g.jsxs("div",{className:"hero-Slider-content",children:[g.jsx("h1",{className:"hero-title",children:"Classic 350"}),g.jsx("p",{className:"hero-sub-title",children:"Rangpur"})]})}),g.jsx(Ol,{children:g.jsx("div",{className:"hero-Slider-content",children:g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-8"}),g.jsxs("div",{className:"col-md-4",children:[g.jsx("h3",{className:"sliderTitle",children:"HOW DO YOU IMPROVE AN ICON? YOU DON’T."}),g.jsx("p",{className:"sliderParagraph",children:"The Classic 350’s signature stance seamlessly carries over into 2024, with an upright riding posture that is both commanding and comfortable. Its amply-cushioned seat, perfectly-positioned footpegs and well-spaced handlebars allow you to ride uninterrupted for hours and make the Classic an easy ride in the city, on the highway or up among the mountains"})]})]})})}),g.jsx(Ol,{children:g.jsx("div",{className:"hero-Slider-content",children:g.jsx("div",{className:"row",children:g.jsxs("div",{className:"col-md-4",children:[g.jsx("h3",{className:"sliderTitle",children:"HOW DO YOU IMPROVE AN ICON? YOU DON’T."}),g.jsx("p",{className:"sliderParagraph",children:"The Classic 350’s signature stance seamlessly carries over into 2024, with an upright riding posture that is both commanding and comfortable. Its amply-cushioned seat, perfectly-positioned footpegs and well-spaced handlebars allow you to ride uninterrupted for hours and make the Classic an easy ride in the city, on the highway or up among the mountains"})]})})})})]})}),GL=()=>g.jsxs("div",{children:[g.jsx(pS,{}),g.jsx(VL,{})]}),qL=()=>{const t=jl(),{signIn:e,loading:i}=N.useContext(Gl),l=Rn().state?.from?.pathname||"/pre-bookings";console.log(l);const[c,d]=N.useState(""),[p,h]=N.useState(""),m=N.useRef(),[v,b]=N.useState(!1),[w,x]=N.useState(null),T=G0(op);new xi,new Ti;const I=async L=>{L.preventDefault(),d("");const k=L.target.email.value,Y=L.target.password.value;console.log(w);try{const D=await fetch("https://webserver.motohunters.com/admin-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:k,password:Y})}),A=await D.json();if(!D.ok){D.status===429?h(A.message||"Too many attempts. Try again later."):h(A.message||"Invalid credentials");return}localStorage.setItem("adminToken",A.token),e(k,Y).then(X=>{const $=X.user;d("User Login successfully"),x($),Wt.fire({position:"top-end",icon:"success",title:"Login Succesfull",showConfirmButton:!1,timer:1500}),t(l,{replace:!0})}).catch(X=>{Wt.fire({title:"Login Faild",text:"Put the right credentials",icon:"error"})})}catch{h("Server error. Please try again later.")}},G=()=>{k0(T).then(L=>{console.log("You Logout Successfully"),x(null),console.log(w)}).catch(L=>{console.log(L.message)})},E=L=>{const k=m.current.value;if(!k){alert("Please Put Your Email!");return}console.log(k),sO(T,k).then(Y=>{alert("Check Your Email!")}).catch(Y=>{alert(Y.message)})};return g.jsx("div",{children:g.jsx("div",{className:"hero min-h-[680px] bg-gray-100 loginsection",children:g.jsx("div",{className:"w-full mx-auto hero-content flex-col lg:flex-col",children:w?g.jsxs("div",{children:[g.jsx("div",{className:"text-center lg:text-left",children:g.jsx("h1",{className:"text-5xl font-bold",children:"Login now!"})}),g.jsx("button",{onClick:()=>G(),children:"Sign Out"})]}):g.jsxs("div",{children:[g.jsx("div",{className:"text-center lg:text-left mb-5",children:g.jsx("h1",{className:"text-5xl font-bold",children:"Login now!"})}),g.jsx("div",{className:"card flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100 ",children:g.jsxs("form",{onSubmit:I,className:"card-body items-start",children:[g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text ",children:"Email"})}),g.jsx("input",{type:"text",placeholder:"email",name:"email",ref:m,className:"input input-bordered"}),g.jsx("label",{className:"label",children:g.jsx("span",{className:"label-text",children:"Password"})}),g.jsx("input",{type:"password",placeholder:"password",name:"password",className:"input input-bordered"}),g.jsxs("label",{className:"label",children:[g.jsxs("p",{children:["Not Registerd?"," ",g.jsx(Pt,{to:"/register",className:"label-text-alt link link-hover",children:"PLease Register"})]}),g.jsx("p",{className:"label-text-alt link link-hover",onClick:E,children:"Forgot password?"})]}),g.jsx("p",{className:"text-warning",children:p}),g.jsx("p",{className:"text-success",children:c}),g.jsx("input",{className:"btn",type:"submit",value:"Login"})]})})]})})})})},dh=({children:t})=>{const e=Rn();console.log(e);const{user:i,loading:r}=N.useContext(Gl);return r?g.jsx("progress",{className:"progress w-56"}):g.jsx("div",{children:i?t:g.jsx(z2,{to:"/admin-login",state:{from:e},replace:!0})})},YL=()=>g.jsx("div",{className:"w-full notFoundsecton",children:g.jsx("div",{className:"flex items-center justify-center h-screen bg-gray-100 px-4",children:g.jsxs("div",{className:"text-center",children:[g.jsx("h1",{className:"text-6xl font-bold text-red-500 mb-4",children:"404"}),g.jsx("h2",{className:"text-2xl font-semibold text-gray-700 mb-2",children:"Page Not Found"}),g.jsx("p",{className:"text-gray-600 mb-6",children:"Sorry, the page you are looking for doesn't exist or has been moved."}),g.jsx(Pt,{to:"/",className:"inline-block bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded",children:"⬅ Back to Home"})]})})}),ob="/assets/Moto-Hunters-Logo-5JnWSVKX.png",FL=()=>{const{user:t,logout:e}=N.useContext(Gl),i=()=>{e().then(()=>{}).catch(r=>{console.log()})};return g.jsx("div",{className:"h-screen flex flex-col ",children:g.jsxs("div",{className:" flex justify-end",children:[g.jsx("div",{className:"dashboard-left w-1/4 ",children:g.jsxs("div",{className:"dashboardMenus",children:[g.jsxs("nav",{className:"dashboardMenusTop  flex flex-col  gap-3 text-left p-10",children:[g.jsx(Pt,{to:"/",children:g.jsx("img",{src:ob,alt:"Moto-Hunters-Logo.png"})}),g.jsx(Pt,{to:"/pre-bookings",className:"btn block text-white-700 hover:text-red-500 py-2 bg-gray-200",children:"All Pre-Bookings"}),g.jsx(Pt,{to:"/dashboard/bikes",className:"btn block text-white-700 hover:text-red-500 py-2 bg-gray-200",children:"Manage Bikes"}),g.jsx(Pt,{to:"/dashboard/settings",className:"btn block text-white-700 hover:text-red-500 py-2 bg-gray-200",children:"Settings"})]}),g.jsx("div",{className:"dashboardLogout",children:g.jsx("nav",{className:"dashboardMenusTop  flex flex-col gap-20 text-left p-10",children:g.jsx(Pt,{to:"/",className:"btn block text-white-700 hover:text-red-500 py-2 bg-gray-200",onClick:i,children:"Logout"})})})]})}),g.jsxs("main",{className:"dashboard-right w-3/4 pt-20",children:[g.jsx("div",{className:"nav-left flex-shrink-0 md:hidden",children:g.jsx(Pt,{to:"/",children:g.jsx("img",{src:ob,alt:"Moto Hunters",className:"h-20 w-auto"})})}),g.jsx(Ub,{})]})]})})},XL=uA([{path:"/",element:g.jsx(ZM,{}),children:[{path:"/",element:g.jsx(hL,{})},{path:"/bike/classic-350",element:g.jsx(GL,{})},{path:"/admin-login",element:g.jsx(qL,{})}]},{path:"/pre-bookings",element:g.jsx(FL,{}),children:[{path:"/pre-bookings",element:g.jsx(dh,{children:g.jsx(zL,{})}),loader:async()=>{const t=localStorage.getItem("adminToken");return fetch("https://webserver.motohunters.com/prebooking",{headers:{Authorization:`Bearer ${t}`}})}},{path:"/pre-bookings/edit/:id",element:g.jsx(dh,{children:g.jsx(UL,{})}),loader:async({params:t})=>{const e=localStorage.getItem("adminToken");return fetch(`https://webserver.motohunters.com/prebooking/${t.id}`,{headers:{Authorization:`Bearer ${e}`}})}},{path:"/pre-bookings/view/:id",element:g.jsx(dh,{children:g.jsx(HL,{})}),loader:async({params:t})=>{const e=localStorage.getItem("adminToken");return fetch(`https://webserver.motohunters.com/prebooking/${t.id}`,{headers:{Authorization:`Bearer ${e}`}})}}]},{path:"/*",element:g.jsx(YL,{})}]);wb.init();Yx.createRoot(document.getElementById("root")).render(g.jsx(N.StrictMode,{children:g.jsx(YM,{children:g.jsx(xA,{router:XL})})}));export{ze as R,Ka as _,N as r};
