Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/admin.medimeet.codeskitter.site/assets/
Upload File :
Current File : /home/users/unlimited/www/admin.medimeet.codeskitter.site/assets/index-C50MwByD.js

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-BGHL639E.js","assets/HasPermission-BP0YFq1v.js","assets/index-Ntz7vSIm.js","assets/SettingData-DaA8YzRn.js","assets/input-BS5AKlHW.js","assets/index-DHZdk_rm.js","assets/index.esm-BgKkBPdO.js","assets/image-Bvdr-O-Y.js","assets/tr-DxO73Jya.js","assets/use-clickable-BAx6nmpu.js","assets/visually-hidden.style-C5P7rhbc.js","assets/Dashboard-hsh9VnWV.css","assets/Topbar-D6JbgIsx.js","assets/index-DRh_GsH6.js","assets/index-D7BryrGD.js","assets/index--qiJ8GQ7.js","assets/menu-list-mZ34RvWI.js","assets/useMutation-DiBhxv_U.js","assets/ForgetPassword-DNtz98E5.js","assets/input-group-CydZNcsv.js","assets/input-element-BOjIoCl2.js","assets/v-stack-CTgEkihf.js","assets/Login-CAikyNgg.js","assets/radio-BBfwax5w.js","assets/split-CzYrjwZo.js","assets/Sidebar-DcO_oEAY.js","assets/index-DW8kqjNB.js","assets/index-BJOOeoXU.js","assets/index-DmSFd1Sz.js","assets/Queue-7jL-R0pz.js","assets/today-D_vLUvRX.js","assets/grid-BCC7IeIL.js","assets/select-CE7kM0jz.js","assets/list-D99hU98N.js"])))=>i.map(i=>d[i]);
var Mv=e=>{throw TypeError(e)};var vh=(e,t,n)=>t.has(e)||Mv("Cannot "+n);var A=(e,t,n)=>(vh(e,t,"read from private field"),n?n.call(e):t.get(e)),oe=(e,t,n)=>t.has(e)?Mv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,r)=>(vh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ft=(e,t,n)=>(vh(e,t,"access private method"),n);var Du=(e,t,n,r)=>({set _(i){K(e,t,i,n)},get _(){return A(e,t,r)}});function vR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ou=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function BK(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var tx={exports:{}},Vd={},nx={exports:{}},Z={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ru=Symbol.for("react.element"),bR=Symbol.for("react.portal"),SR=Symbol.for("react.fragment"),wR=Symbol.for("react.strict_mode"),xR=Symbol.for("react.profiler"),kR=Symbol.for("react.provider"),_R=Symbol.for("react.context"),CR=Symbol.for("react.forward_ref"),TR=Symbol.for("react.suspense"),ER=Symbol.for("react.memo"),PR=Symbol.for("react.lazy"),Dv=Symbol.iterator;function RR(e){return e===null||typeof e!="object"?null:(e=Dv&&e[Dv]||e["@@iterator"],typeof e=="function"?e:null)}var rx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ix=Object.assign,ox={};function ta(e,t,n){this.props=e,this.context=t,this.refs=ox,this.updater=n||rx}ta.prototype.isReactComponent={};ta.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ta.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sx(){}sx.prototype=ta.prototype;function Fg(e,t,n){this.props=e,this.context=t,this.refs=ox,this.updater=n||rx}var Ng=Fg.prototype=new sx;Ng.constructor=Fg;ix(Ng,ta.prototype);Ng.isPureReactComponent=!0;var Ov=Array.isArray,ax=Object.prototype.hasOwnProperty,Lg={current:null},lx={key:!0,ref:!0,__self:!0,__source:!0};function ux(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)ax.call(t,r)&&!lx.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ru,type:e,key:o,ref:s,props:i,_owner:Lg.current}}function AR(e,t){return{$$typeof:ru,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zg(e){return typeof e=="object"&&e!==null&&e.$$typeof===ru}function MR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $v=/\/+/g;function bh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?MR(""+e.key):t.toString(36)}function hc(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ru:case bR:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+bh(s,0):r,Ov(i)?(n="",e!=null&&(n=e.replace($v,"$&/")+"/"),hc(i,t,n,"",function(u){return u})):i!=null&&(zg(i)&&(i=AR(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace($v,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Ov(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+bh(o,a);s+=hc(o,t,n,l,i)}else if(l=RR(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+bh(o,a++),s+=hc(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function $u(e,t,n){if(e==null)return e;var r=[],i=0;return hc(e,r,"","",function(o){return t.call(n,o,i++)}),r}function DR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var At={current:null},pc={transition:null},OR={ReactCurrentDispatcher:At,ReactCurrentBatchConfig:pc,ReactCurrentOwner:Lg};function cx(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:$u,forEach:function(e,t,n){$u(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $u(e,function(){t++}),t},toArray:function(e){return $u(e,function(t){return t})||[]},only:function(e){if(!zg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=ta;Z.Fragment=SR;Z.Profiler=xR;Z.PureComponent=Fg;Z.StrictMode=wR;Z.Suspense=TR;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OR;Z.act=cx;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ix({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Lg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ax.call(t,l)&&!lx.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ru,type:e.type,key:i,ref:o,props:r,_owner:s}};Z.createContext=function(e){return e={$$typeof:_R,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kR,_context:e},e.Consumer=e};Z.createElement=ux;Z.createFactory=function(e){var t=ux.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:CR,render:e}};Z.isValidElement=zg;Z.lazy=function(e){return{$$typeof:PR,_payload:{_status:-1,_result:e},_init:DR}};Z.memo=function(e,t){return{$$typeof:ER,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=pc.transition;pc.transition={};try{e()}finally{pc.transition=t}};Z.unstable_act=cx;Z.useCallback=function(e,t){return At.current.useCallback(e,t)};Z.useContext=function(e){return At.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return At.current.useDeferredValue(e)};Z.useEffect=function(e,t){return At.current.useEffect(e,t)};Z.useId=function(){return At.current.useId()};Z.useImperativeHandle=function(e,t,n){return At.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return At.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return At.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return At.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return At.current.useReducer(e,t,n)};Z.useRef=function(e){return At.current.useRef(e)};Z.useState=function(e){return At.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return At.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return At.current.useTransition()};Z.version="18.3.1";nx.exports=Z;var w=nx.exports;const ur=nu(w),Bp=vR({__proto__:null,default:ur},[w]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $R=w,IR=Symbol.for("react.element"),FR=Symbol.for("react.fragment"),NR=Object.prototype.hasOwnProperty,LR=$R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zR={key:!0,ref:!0,__self:!0,__source:!0};function dx(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)NR.call(t,r)&&!zR.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:IR,type:e,key:o,ref:s,props:i,_owner:LR.current}}Vd.Fragment=FR;Vd.jsx=dx;Vd.jsxs=dx;tx.exports=Vd;var M=tx.exports;function VK(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function jR(){return!!(globalThis!=null&&globalThis.document)}function BR(e){return e.parentElement&&BR(e.parentElement)?!0:e.hidden}function UK(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function WK(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function VR(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const Iv=e=>e?"":void 0,HK=e=>e?!0:void 0;function Vp(e){return Array.isArray(e)}function Nt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Vp(e)}function UR(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function WR(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Up(e){if(e==null)return e;const{unitless:t}=WR(e);return t||typeof e=="number"?`${e}px`:e}const fx=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,jg=e=>Object.fromEntries(Object.entries(e).sort(fx));function Fv(e){const t=jg(e);return Object.assign(Object.values(t),t)}function HR(e){const t=Object.keys(jg(e));return new Set(t)}function Nv(e){if(!e)return e;e=Up(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Ia(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Up(e)})`),t&&n.push("and",`(max-width: ${Up(t)})`),n.join(" ")}function YR(e){if(!e)return null;e.base=e.base??"0px";const t=Fv(e),n=Object.entries(e).sort(fx).map(([o,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?Nv(u):void 0,{_minW:Nv(s),breakpoint:o,minW:s,maxW:u,maxWQuery:Ia(null,u),minWQuery:Ia(s),minMaxQuery:Ia(s,u)}}),r=HR(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const s=Object.keys(o);return s.length>0&&s.every(a=>r.has(a))},asObject:jg(e),asArray:Fv(e),details:n,get(o){return n.find(s=>s.breakpoint===o)},media:[null,...t.map(o=>Ia(o)).slice(1)],toArrayValue(o){if(!Nt(o))throw new Error("toArrayValue: value must be an object");const s=i.map(a=>o[a]??null);for(;UR(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,a,l)=>{const u=i[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function Bg(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function GR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zi(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var c;const u=w.useContext(a);if(!u&&n){const d=new Error(o??GR(r,i));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Nn=(...e)=>e.filter(Boolean).join(" ");function qR(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}const KR=e=>{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const l=e(r,i,o,s);return a.set(i,l),l}},hx=KR(qR),QR=e=>e.default||e;function Vg(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function XR(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const ZR=e=>typeof e=="function";function nr(e,...t){return ZR(e)?e(...t):e}function JR(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=s=>{const a={};for(let l=0;l<s.length;l++){const u=s[l];n[u]&&(Object.defineProperty(a,u,n[u]),delete n[u])}return a},o=s=>i(Array.isArray(s)?s:r.filter(s));return t.map(o).concat(i(r))}function Lv(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){if(Nt(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(i==null?void 0:i(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=o(c,f)}return l}return t(s,a)}return o(e)}var Gc={exports:{}};Gc.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",y="[object Function]",m="[object GeneratorFunction]",v="[object Map]",S="[object Number]",g="[object Null]",h="[object Object]",p="[object Proxy]",x="[object RegExp]",C="[object Set]",R="[object String]",P="[object Undefined]",D="[object WeakMap]",I="[object ArrayBuffer]",B="[object DataView]",xe="[object Float32Array]",Xe="[object Float64Array]",at="[object Int8Array]",Ge="[object Int16Array]",jn="[object Int32Array]",$e="[object Uint8Array]",Dt="[object Uint8ClampedArray]",F="[object Uint16Array]",H="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,re={};re[xe]=re[Xe]=re[at]=re[Ge]=re[jn]=re[$e]=re[Dt]=re[F]=re[H]=!0,re[a]=re[l]=re[I]=re[c]=re[B]=re[d]=re[f]=re[y]=re[v]=re[S]=re[h]=re[x]=re[C]=re[R]=re[D]=!1;var Ht=typeof Ou=="object"&&Ou&&Ou.Object===Object&&Ou,Kr=typeof self=="object"&&self&&self.Object===Object&&self,Ze=Ht||Kr||Function("return this")(),Bn=t&&!t.nodeType&&t,Hi=Bn&&!0&&e&&!e.nodeType&&e,Uo=Hi&&Hi.exports===Bn,Qr=Uo&&Ht.process,Vn=function(){try{var b=Hi&&Hi.require&&Hi.require("util").types;return b||Qr&&Qr.binding&&Qr.binding("util")}catch{}}(),sh=Vn&&Vn.isTypedArray;function o2(b,_,T){switch(T.length){case 0:return b.call(_);case 1:return b.call(_,T[0]);case 2:return b.call(_,T[0],T[1]);case 3:return b.call(_,T[0],T[1],T[2])}return b.apply(_,T)}function s2(b,_){for(var T=-1,j=Array(b);++T<b;)j[T]=_(T);return j}function a2(b){return function(_){return b(_)}}function l2(b,_){return b==null?void 0:b[_]}function u2(b,_){return function(T){return b(_(T))}}var c2=Array.prototype,d2=Function.prototype,_u=Object.prototype,ah=Ze["__core-js_shared__"],Cu=d2.toString,Xr=_u.hasOwnProperty,hv=function(){var b=/[^.]+$/.exec(ah&&ah.keys&&ah.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),pv=_u.toString,f2=Cu.call(Object),h2=RegExp("^"+Cu.call(Xr).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tu=Uo?Ze.Buffer:void 0,mv=Ze.Symbol,gv=Ze.Uint8Array;Tu&&Tu.allocUnsafe;var yv=u2(Object.getPrototypeOf,Object),vv=Object.create,p2=_u.propertyIsEnumerable,m2=c2.splice,Yi=mv?mv.toStringTag:void 0,Eu=function(){try{var b=ch(Object,"defineProperty");return b({},"",{}),b}catch{}}(),g2=Tu?Tu.isBuffer:void 0,bv=Math.max,y2=Date.now,Sv=ch(Ze,"Map"),ma=ch(Object,"create"),v2=function(){function b(){}return function(_){if(!qi(_))return{};if(vv)return vv(_);b.prototype=_;var T=new b;return b.prototype=void 0,T}}();function Gi(b){var _=-1,T=b==null?0:b.length;for(this.clear();++_<T;){var j=b[_];this.set(j[0],j[1])}}function b2(){this.__data__=ma?ma(null):{},this.size=0}function S2(b){var _=this.has(b)&&delete this.__data__[b];return this.size-=_?1:0,_}function w2(b){var _=this.__data__;if(ma){var T=_[b];return T===r?void 0:T}return Xr.call(_,b)?_[b]:void 0}function x2(b){var _=this.__data__;return ma?_[b]!==void 0:Xr.call(_,b)}function k2(b,_){var T=this.__data__;return this.size+=this.has(b)?0:1,T[b]=ma&&_===void 0?r:_,this}Gi.prototype.clear=b2,Gi.prototype.delete=S2,Gi.prototype.get=w2,Gi.prototype.has=x2,Gi.prototype.set=k2;function fr(b){var _=-1,T=b==null?0:b.length;for(this.clear();++_<T;){var j=b[_];this.set(j[0],j[1])}}function _2(){this.__data__=[],this.size=0}function C2(b){var _=this.__data__,T=Pu(_,b);if(T<0)return!1;var j=_.length-1;return T==j?_.pop():m2.call(_,T,1),--this.size,!0}function T2(b){var _=this.__data__,T=Pu(_,b);return T<0?void 0:_[T][1]}function E2(b){return Pu(this.__data__,b)>-1}function P2(b,_){var T=this.__data__,j=Pu(T,b);return j<0?(++this.size,T.push([b,_])):T[j][1]=_,this}fr.prototype.clear=_2,fr.prototype.delete=C2,fr.prototype.get=T2,fr.prototype.has=E2,fr.prototype.set=P2;function Wo(b){var _=-1,T=b==null?0:b.length;for(this.clear();++_<T;){var j=b[_];this.set(j[0],j[1])}}function R2(){this.size=0,this.__data__={hash:new Gi,map:new(Sv||fr),string:new Gi}}function A2(b){var _=Au(this,b).delete(b);return this.size-=_?1:0,_}function M2(b){return Au(this,b).get(b)}function D2(b){return Au(this,b).has(b)}function O2(b,_){var T=Au(this,b),j=T.size;return T.set(b,_),this.size+=T.size==j?0:1,this}Wo.prototype.clear=R2,Wo.prototype.delete=A2,Wo.prototype.get=M2,Wo.prototype.has=D2,Wo.prototype.set=O2;function Ho(b){var _=this.__data__=new fr(b);this.size=_.size}function $2(){this.__data__=new fr,this.size=0}function I2(b){var _=this.__data__,T=_.delete(b);return this.size=_.size,T}function F2(b){return this.__data__.get(b)}function N2(b){return this.__data__.has(b)}function L2(b,_){var T=this.__data__;if(T instanceof fr){var j=T.__data__;if(!Sv||j.length<n-1)return j.push([b,_]),this.size=++T.size,this;T=this.__data__=new Wo(j)}return T.set(b,_),this.size=T.size,this}Ho.prototype.clear=$2,Ho.prototype.delete=I2,Ho.prototype.get=F2,Ho.prototype.has=N2,Ho.prototype.set=L2;function z2(b,_){var T=hh(b),j=!T&&fh(b),te=!T&&!j&&Cv(b),ye=!T&&!j&&!te&&Ev(b),Re=T||j||te||ye,le=Re?s2(b.length,String):[],Ae=le.length;for(var wn in b)Re&&(wn=="length"||te&&(wn=="offset"||wn=="parent")||ye&&(wn=="buffer"||wn=="byteLength"||wn=="byteOffset")||kv(wn,Ae))||le.push(wn);return le}function lh(b,_,T){(T!==void 0&&!Mu(b[_],T)||T===void 0&&!(_ in b))&&uh(b,_,T)}function j2(b,_,T){var j=b[_];(!(Xr.call(b,_)&&Mu(j,T))||T===void 0&&!(_ in b))&&uh(b,_,T)}function Pu(b,_){for(var T=b.length;T--;)if(Mu(b[T][0],_))return T;return-1}function uh(b,_,T){_=="__proto__"&&Eu?Eu(b,_,{configurable:!0,enumerable:!0,value:T,writable:!0}):b[_]=T}var B2=eR();function Ru(b){return b==null?b===void 0?P:g:Yi&&Yi in Object(b)?tR(b):aR(b)}function wv(b){return ga(b)&&Ru(b)==a}function V2(b){if(!qi(b)||oR(b))return!1;var _=mh(b)?h2:G;return _.test(dR(b))}function U2(b){return ga(b)&&Tv(b.length)&&!!re[Ru(b)]}function W2(b){if(!qi(b))return sR(b);var _=_v(b),T=[];for(var j in b)j=="constructor"&&(_||!Xr.call(b,j))||T.push(j);return T}function xv(b,_,T,j,te){b!==_&&B2(_,function(ye,Re){if(te||(te=new Ho),qi(ye))H2(b,_,Re,T,xv,j,te);else{var le=j?j(dh(b,Re),ye,Re+"",b,_,te):void 0;le===void 0&&(le=ye),lh(b,Re,le)}},Pv)}function H2(b,_,T,j,te,ye,Re){var le=dh(b,T),Ae=dh(_,T),wn=Re.get(Ae);if(wn){lh(b,T,wn);return}var Yt=ye?ye(le,Ae,T+"",b,_,Re):void 0,ya=Yt===void 0;if(ya){var gh=hh(Ae),yh=!gh&&Cv(Ae),Av=!gh&&!yh&&Ev(Ae);Yt=Ae,gh||yh||Av?hh(le)?Yt=le:fR(le)?Yt=X2(le):yh?(ya=!1,Yt=q2(Ae)):Av?(ya=!1,Yt=Q2(Ae)):Yt=[]:hR(Ae)||fh(Ae)?(Yt=le,fh(le)?Yt=pR(le):(!qi(le)||mh(le))&&(Yt=nR(Ae))):ya=!1}ya&&(Re.set(Ae,Yt),te(Yt,Ae,j,ye,Re),Re.delete(Ae)),lh(b,T,Yt)}function Y2(b,_){return uR(lR(b,_,Rv),b+"")}var G2=Eu?function(b,_){return Eu(b,"toString",{configurable:!0,enumerable:!1,value:gR(_),writable:!0})}:Rv;function q2(b,_){return b.slice()}function K2(b){var _=new b.constructor(b.byteLength);return new gv(_).set(new gv(b)),_}function Q2(b,_){var T=K2(b.buffer);return new b.constructor(T,b.byteOffset,b.length)}function X2(b,_){var T=-1,j=b.length;for(_||(_=Array(j));++T<j;)_[T]=b[T];return _}function Z2(b,_,T,j){var te=!T;T||(T={});for(var ye=-1,Re=_.length;++ye<Re;){var le=_[ye],Ae=void 0;Ae===void 0&&(Ae=b[le]),te?uh(T,le,Ae):j2(T,le,Ae)}return T}function J2(b){return Y2(function(_,T){var j=-1,te=T.length,ye=te>1?T[te-1]:void 0,Re=te>2?T[2]:void 0;for(ye=b.length>3&&typeof ye=="function"?(te--,ye):void 0,Re&&rR(T[0],T[1],Re)&&(ye=te<3?void 0:ye,te=1),_=Object(_);++j<te;){var le=T[j];le&&b(_,le,j,ye)}return _})}function eR(b){return function(_,T,j){for(var te=-1,ye=Object(_),Re=j(_),le=Re.length;le--;){var Ae=Re[++te];if(T(ye[Ae],Ae,ye)===!1)break}return _}}function Au(b,_){var T=b.__data__;return iR(_)?T[typeof _=="string"?"string":"hash"]:T.map}function ch(b,_){var T=l2(b,_);return V2(T)?T:void 0}function tR(b){var _=Xr.call(b,Yi),T=b[Yi];try{b[Yi]=void 0;var j=!0}catch{}var te=pv.call(b);return j&&(_?b[Yi]=T:delete b[Yi]),te}function nR(b){return typeof b.constructor=="function"&&!_v(b)?v2(yv(b)):{}}function kv(b,_){var T=typeof b;return _=_??s,!!_&&(T=="number"||T!="symbol"&&ve.test(b))&&b>-1&&b%1==0&&b<_}function rR(b,_,T){if(!qi(T))return!1;var j=typeof _;return(j=="number"?ph(T)&&kv(_,T.length):j=="string"&&_ in T)?Mu(T[_],b):!1}function iR(b){var _=typeof b;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?b!=="__proto__":b===null}function oR(b){return!!hv&&hv in b}function _v(b){var _=b&&b.constructor,T=typeof _=="function"&&_.prototype||_u;return b===T}function sR(b){var _=[];if(b!=null)for(var T in Object(b))_.push(T);return _}function aR(b){return pv.call(b)}function lR(b,_,T){return _=bv(_===void 0?b.length-1:_,0),function(){for(var j=arguments,te=-1,ye=bv(j.length-_,0),Re=Array(ye);++te<ye;)Re[te]=j[_+te];te=-1;for(var le=Array(_+1);++te<_;)le[te]=j[te];return le[_]=T(Re),o2(b,this,le)}}function dh(b,_){if(!(_==="constructor"&&typeof b[_]=="function")&&_!="__proto__")return b[_]}var uR=cR(G2);function cR(b){var _=0,T=0;return function(){var j=y2(),te=o-(j-T);if(T=j,te>0){if(++_>=i)return arguments[0]}else _=0;return b.apply(void 0,arguments)}}function dR(b){if(b!=null){try{return Cu.call(b)}catch{}try{return b+""}catch{}}return""}function Mu(b,_){return b===_||b!==b&&_!==_}var fh=wv(function(){return arguments}())?wv:function(b){return ga(b)&&Xr.call(b,"callee")&&!p2.call(b,"callee")},hh=Array.isArray;function ph(b){return b!=null&&Tv(b.length)&&!mh(b)}function fR(b){return ga(b)&&ph(b)}var Cv=g2||yR;function mh(b){if(!qi(b))return!1;var _=Ru(b);return _==y||_==m||_==u||_==p}function Tv(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function qi(b){var _=typeof b;return b!=null&&(_=="object"||_=="function")}function ga(b){return b!=null&&typeof b=="object"}function hR(b){if(!ga(b)||Ru(b)!=h)return!1;var _=yv(b);if(_===null)return!0;var T=Xr.call(_,"constructor")&&_.constructor;return typeof T=="function"&&T instanceof T&&Cu.call(T)==f2}var Ev=sh?a2(sh):U2;function pR(b){return Z2(b,Pv(b))}function Pv(b){return ph(b)?z2(b):W2(b)}var mR=J2(function(b,_,T,j){xv(b,_,T,j)});function gR(b){return function(){return b}}function Rv(b){return b}function yR(){return!1}e.exports=mR})(Gc,Gc.exports);var eA=Gc.exports;const hn=nu(eA);function tA(e,t=[]){const n=w.useRef(e);return w.useEffect(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}const ml=globalThis!=null&&globalThis.document?w.useLayoutEffect:w.useEffect,zv=(e,t)=>{const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function nA(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function rA(...e){return t=>{e.forEach(n=>{nA(n,t)})}}function iA(...e){return w.useMemo(()=>rA(...e),e)}function oA(e,t){const n=tA(e);w.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Je={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Un=e=>px(t=>e(t,"&"),"[role=group]","[data-group]",".group"),hr=e=>px(t=>e(t,"~ &"),"[data-peer]",".peer"),px=(e,...t)=>t.map(e).join(", "),bs={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Un(Je.open),_groupClosed:Un(Je.closed),_groupHover:Un(Je.hover),_peerHover:hr(Je.hover),_groupFocus:Un(Je.focus),_peerFocus:hr(Je.focus),_groupFocusVisible:Un(Je.focusVisible),_peerFocusVisible:hr(Je.focusVisible),_groupActive:Un(Je.active),_peerActive:hr(Je.active),_groupDisabled:Un(Je.disabled),_peerDisabled:hr(Je.disabled),_groupInvalid:Un(Je.invalid),_peerInvalid:hr(Je.invalid),_groupChecked:Un(Je.checked),_peerChecked:hr(Je.checked),_groupFocusWithin:Un(Je.focusWithin),_peerFocusWithin:hr(Je.focusWithin),_peerPlaceholderShown:hr(Je.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},mx=Object.keys(bs),sA=e=>/!(important)?$/.test(e),jv=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,aA=(e,t)=>n=>{const r=String(t),i=sA(r),o=jv(r),s=e?`${e}.${o}`:o;let a=Nt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=jv(a),i?`${a} !important`:a};function Ug(e){const{scale:t,transform:n,compose:r}=e;return(o,s)=>{const a=aA(t,o)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const Iu=(...e)=>t=>e.reduce((n,r)=>r(n),t);function on(e,t){return n=>{const r={property:n,scale:e};return r.transform=Ug({scale:e,transform:t}),r}}const lA=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function uA(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:lA(t),transform:n?Ug({scale:n,compose:r}):r}}const gx=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function cA(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...gx].join(" ")}function dA(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...gx].join(" ")}const fA={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},hA={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function pA(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const mA={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Wp={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},gA=new Set(Object.values(Wp)),Hp=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),yA=e=>e.trim();function vA(e,t){if(e==null||Hp.has(e))return e;if(!(Yp(e)||Hp.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const a=o.includes("-gradient")?o:`${o}-gradient`,[l,...u]=s.split(",").map(yA).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Wp?Wp[l]:l;u.unshift(c);const d=u.map(f=>{if(gA.has(f))return f;const y=f.indexOf(" "),[m,v]=y!==-1?[f.substr(0,y),f.substr(y+1)]:[f],S=Yp(v)?v:v&&v.split(" "),g=`colors.${m}`,h=g in t.__cssMap?t.__cssMap[g].varRef:m;return S?[h,...Array.isArray(S)?S:[S]].join(" "):h});return`${a}(${d.join(", ")})`}const Yp=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),bA=(e,t)=>vA(e,t??{});function SA(e){return/^var\(--.+\)$/.test(e)}const wA=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Wn=e=>t=>`${e}(${t})`,ee={filter(e){return e!=="auto"?e:fA},backdropFilter(e){return e!=="auto"?e:hA},ring(e){return pA(ee.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?cA():e==="auto-gpu"?dA():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=wA(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(SA(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:bA,blur:Wn("blur"),opacity:Wn("opacity"),brightness:Wn("brightness"),contrast:Wn("contrast"),dropShadow:Wn("drop-shadow"),grayscale:Wn("grayscale"),hueRotate:e=>Wn("hue-rotate")(ee.degree(e)),invert:Wn("invert"),saturate:Wn("saturate"),sepia:Wn("sepia"),bgImage(e){return e==null||Yp(e)||Hp.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=mA[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},k={borderWidths:on("borderWidths"),borderStyles:on("borderStyles"),colors:on("colors"),borders:on("borders"),gradients:on("gradients",ee.gradient),radii:on("radii",ee.px),space:on("space",Iu(ee.vh,ee.px)),spaceT:on("space",Iu(ee.vh,ee.px)),degreeT(e){return{property:e,transform:ee.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Ug({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:on("sizes",Iu(ee.vh,ee.px)),sizesT:on("sizes",Iu(ee.vh,ee.fraction)),shadows:on("shadows"),logical:uA,blur:on("blur",ee.blur)},mc={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ee.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:ee.bgClip}};Object.assign(mc,{bgImage:mc.backgroundImage,bgImg:mc.backgroundImage});const ue={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ue,{rounded:ue.borderRadius,roundedTop:ue.borderTopRadius,roundedTopLeft:ue.borderTopLeftRadius,roundedTopRight:ue.borderTopRightRadius,roundedTopStart:ue.borderStartStartRadius,roundedTopEnd:ue.borderStartEndRadius,roundedBottom:ue.borderBottomRadius,roundedBottomLeft:ue.borderBottomLeftRadius,roundedBottomRight:ue.borderBottomRightRadius,roundedBottomStart:ue.borderEndStartRadius,roundedBottomEnd:ue.borderEndEndRadius,roundedLeft:ue.borderLeftRadius,roundedRight:ue.borderRightRadius,roundedStart:ue.borderInlineStartRadius,roundedEnd:ue.borderInlineEndRadius,borderStart:ue.borderInlineStart,borderEnd:ue.borderInlineEnd,borderTopStartRadius:ue.borderStartStartRadius,borderTopEndRadius:ue.borderStartEndRadius,borderBottomStartRadius:ue.borderEndStartRadius,borderBottomEndRadius:ue.borderEndEndRadius,borderStartRadius:ue.borderInlineStartRadius,borderEndRadius:ue.borderInlineEndRadius,borderStartWidth:ue.borderInlineStartWidth,borderEndWidth:ue.borderInlineEndWidth,borderStartColor:ue.borderInlineStartColor,borderEndColor:ue.borderInlineEndColor,borderStartStyle:ue.borderInlineStartStyle,borderEndStyle:ue.borderInlineEndStyle});const xA={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke"),accentColor:k.colors("accentColor"),textFillColor:k.colors("textFillColor")},qc={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ee.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(qc,{flexDir:qc.flexDirection});const an={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",ee.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(an,{w:an.width,h:an.height,minW:an.minWidth,maxW:an.maxWidth,minH:an.minHeight,maxH:an.maxHeight,overscroll:an.overscrollBehavior,overscrollX:an.overscrollBehaviorX,overscrollY:an.overscrollBehaviorY});const kA={filter:{transform:ee.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",ee.brightness),contrast:k.propT("--chakra-contrast",ee.contrast),hueRotate:k.propT("--chakra-hue-rotate",ee.hueRotate),invert:k.propT("--chakra-invert",ee.invert),saturate:k.propT("--chakra-saturate",ee.saturate),dropShadow:k.propT("--chakra-drop-shadow",ee.dropShadow),backdropFilter:{transform:ee.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",ee.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",ee.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",ee.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",ee.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",ee.saturate)},_A={ring:{transform:ee.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},CA={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ee.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},yx={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function TA(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}const EA=e=>{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const l=e(r,i,o,s);return a.set(i,l),l}},PA=EA(TA),RA={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},AA={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Sh=(e,t,n)=>{const r={},i=PA(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},MA={srOnly:{transform(e){return e===!0?RA:e==="focusable"?AA:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Sh(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Sh(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Sh(t,e,n)}},Ga={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ga,{insetStart:Ga.insetInlineStart,insetEnd:Ga.insetInlineEnd});const Gp={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(Gp,{shadow:Gp.boxShadow});const _e={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(_e,{m:_e.margin,mt:_e.marginTop,mr:_e.marginRight,me:_e.marginInlineEnd,marginEnd:_e.marginInlineEnd,mb:_e.marginBottom,ml:_e.marginLeft,ms:_e.marginInlineStart,marginStart:_e.marginInlineStart,mx:_e.marginX,my:_e.marginY,p:_e.padding,pt:_e.paddingTop,py:_e.paddingY,px:_e.paddingX,pb:_e.paddingBottom,pl:_e.paddingLeft,ps:_e.paddingInlineStart,paddingStart:_e.paddingInlineStart,pr:_e.paddingRight,pe:_e.paddingInlineEnd,paddingEnd:_e.paddingInlineEnd});const DA={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},OA={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",ee.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},$A={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},IA={clipPath:!0,transform:k.propT("transform",ee.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},FA={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},NA={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},Wg=hn({},mc,ue,xA,qc,an,kA,_A,CA,yx,MA,Ga,Gp,_e,DA,OA,$A,IA,FA,NA),LA=Object.assign({},_e,an,qc,yx,Ga),YK=Object.keys(LA),zA=[...Object.keys(Wg),...mx],jA={...Wg,...bs},BA=e=>e in jA,VA=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const s in e){let a=nr(e[s],t);if(a==null)continue;if(a=Nt(a)&&n(a)?r(a):a,!Array.isArray(a)){o[s]=a;continue}const l=a.slice(0,i.length).length;for(let u=0;u<l;u+=1){const c=i==null?void 0:i[u];if(!c){o[s]=a[u];continue}o[c]=o[c]||{},a[u]!=null&&(o[c][s]=a[u])}}return o};function UA(e){const t=[];let n="",r=!1;for(let i=0;i<e.length;i++){const o=e[i];o==="("?(r=!0,n+=o):o===")"?(r=!1,n+=o):o===","&&!r?(t.push(n),n=""):n+=o}return n=n.trim(),n&&t.push(n),t}function WA(e){return/^var\(--.+\)$/.test(e)}const HA=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!WA(t),YA=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[i,o]=UA(t);return t=n(i)??r(o)??r(t),t};function GA(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,s=!1)=>{var c;const a=nr(o,r),l=VA(a)(r);let u={};for(let d in l){const f=l[d];let y=nr(f,r);d in n&&(d=n[d]),HA(d,y)&&(y=YA(r,y));let m=t[d];if(m===!0&&(m={property:d}),Nt(y)){u[d]=u[d]??{},u[d]=hn({},u[d],i(y,!0));continue}let v=((c=m==null?void 0:m.transform)==null?void 0:c.call(m,y,r,a))??y;v=m!=null&&m.processResult?i(v,!0):v;const S=nr(m==null?void 0:m.property,r);if(!s&&(m!=null&&m.static)){const g=nr(m.static,r);u=hn({},u,g)}if(S&&Array.isArray(S)){for(const g of S)u[g]=v;continue}if(S){S==="&"&&Nt(v)?u=hn({},u,v):u[S]=v;continue}if(Nt(v)){u=hn({},u,v);continue}u[d]=v}return u};return i}const vx=e=>t=>GA({theme:t,pseudos:bs,configs:Wg})(e);function GK(e){return e}function we(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function qA(e,t){if(Array.isArray(e))return e;if(Nt(e))return t(e);if(e!=null)return[e]}function KA(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function QA(e){const t=e.__breakpoints;return function(r,i,o,s){var f,y;if(!t)return;const a={},l=qA(o,t.toArrayValue);if(!l)return a;const u=l.length,c=u===1,d=!!r.parts;for(let m=0;m<u;m++){const v=t.details[m],S=t.details[KA(l,m)],g=Ia(v.minW,S==null?void 0:S._minW),h=nr((f=r[i])==null?void 0:f[l[m]],s);if(h){if(d){(y=r.parts)==null||y.forEach(p=>{hn(a,{[p]:c?h[p]:{[g]:h[p]}})});continue}if(!d){c?hn(a,h):a[g]=h;continue}a[g]=h}}return a}}function XA(e){return t=>{const{variant:n,size:r,theme:i}=t,o=QA(i);return hn({},nr(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function na(e){return Vg(e,["styleConfig","size","variant","colorScheme"])}function bx(e){return Nt(e)&&e.reference?e.reference:String(e)}const Ud=(e,...t)=>t.map(bx).join(` ${e} `).replace(/calc/g,""),Bv=(...e)=>`calc(${Ud("+",...e)})`,Vv=(...e)=>`calc(${Ud("-",...e)})`,qp=(...e)=>`calc(${Ud("*",...e)})`,Uv=(...e)=>`calc(${Ud("/",...e)})`,Wv=e=>{const t=bx(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:qp(t,-1)},wr=Object.assign(e=>({add:(...t)=>wr(Bv(e,...t)),subtract:(...t)=>wr(Vv(e,...t)),multiply:(...t)=>wr(qp(e,...t)),divide:(...t)=>wr(Uv(e,...t)),negate:()=>wr(Wv(e)),toString:()=>e.toString()}),{add:Bv,subtract:Vv,multiply:qp,divide:Uv,negate:Wv});function ZA(e,t="-"){return e.replace(/\s+/g,t)}function JA(e){const t=ZA(e.toString());return tM(eM(t))}function eM(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function tM(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function nM(e,t=""){return[t,e].filter(Boolean).join("-")}function rM(e,t){return`var(${e}${t?`, ${t}`:""})`}function iM(e,t=""){return JA(`--${nM(e,t)}`)}function W(e,t,n){const r=iM(e,n);return{variable:r,reference:rM(r,t)}}function oM(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=W(`${e}-${i}`,o);continue}n[r]=W(`${e}-${r}`)}return n}const sM=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function aM(e){return XR(e,sM)}function lM(e){return e.semanticTokens}function uM(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function cM(e){const t=aM(e),n=lM(e),r=o=>mx.includes(o)||o==="default",i={};return Lv(t,(o,s)=>{o!=null&&(i[s.join(".")]={isSemantic:!1,value:o})}),Lv(n,(o,s)=>{o!=null&&(i[s.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(r)}),i}function Hv(e,t){return W(String(e).replace(/\./g,"-"),void 0,t)}function dM(e){var s;const t=cM(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const i={};function o(a,l){const c=[String(a).split(".")[0],l].join(".");if(!t[c])return l;const{reference:f}=Hv(c,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:d,reference:f}=Hv(a,n);if(!u){if(a.startsWith("space")){const m=a.split("."),[v,...S]=m,g=`${v}.-${S.join(".")}`,h=wr.negate(c),p=wr.negate(f);i[g]={value:h,var:d,varRef:p}}r[d]=c,i[a]={value:c,var:d,varRef:f};continue}const y=Nt(c)?c:{default:c};r=hn(r,Object.entries(y).reduce((m,[v,S])=>{if(!S)return m;const g=o(a,`${S}`);if(v==="default")return m[d]=g,m;const h=(bs==null?void 0:bs[v])??v;return m[h]={[d]:g},m},{})),i[a]={value:f,var:d,varRef:f}}return{cssVars:r,cssMap:i}}function fM(e){const t=uM(e),{cssMap:n,cssVars:r}=dM(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:YR(t.breakpoints)}),t}function he(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...c){r();for(const d of c)t[d]=l(d);return he(e,t)}function o(...c){for(const d of c)d in t||(t[d]=l(d));return he(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const y=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:y,selector:`.${y}`,toString:()=>c}}return{parts:i,toPart:l,extend:o,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const hM=he("accordion").parts("root","container","button","panel","icon"),pM=he("alert").parts("title","description","container","icon","spinner"),mM=he("avatar").parts("label","badge","container","excessLabel","group"),gM=he("breadcrumb").parts("link","item","container","separator");he("button").parts();const yM=he("checkbox").parts("control","icon","container","label");he("progress").parts("track","filledTrack","label");const vM=he("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),bM=he("editable").parts("preview","input","textarea"),SM=he("form").parts("container","requiredIndicator","helperText"),wM=he("formError").parts("text","icon"),xM=he("input").parts("addon","field","element","group"),kM=he("list").parts("container","item","icon"),_M=he("menu").parts("button","list","item","groupTitle","icon","command","divider"),CM=he("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),TM=he("numberinput").parts("root","field","stepperGroup","stepper");he("pininput").parts("field");const EM=he("popover").parts("content","header","body","footer","popper","arrow","closeButton"),PM=he("progress").parts("label","filledTrack","track"),RM=he("radio").parts("container","control","label"),AM=he("select").parts("field","icon"),MM=he("slider").parts("container","track","thumb","filledTrack","mark"),DM=he("stat").parts("container","label","helpText","number","icon"),OM=he("switch").parts("container","track","thumb","label"),$M=he("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),IM=he("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),FM=he("tag").parts("container","label","closeButton"),NM=he("card").parts("container","header","body","footer");he("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:LM,defineMultiStyleConfig:zM}=we(hM.keys),jM={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},BM={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},VM={pt:"2",px:"4",pb:"5"},UM={fontSize:"1.25em"},WM=LM({container:jM,button:BM,panel:VM,icon:UM}),HM=zM({baseStyle:WM});function io(e,t,n){return Math.min(Math.max(e,n),t)}class YM extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Fa=YM;function Hg(e){if(typeof e!="string")throw new Fa(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=eD.test(e)?KM(e):e;const n=QM.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(gl(a,2),16)),parseInt(gl(s[3]||"f",2),16)/255]}const r=XM.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const i=ZM.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const o=JM.exec(t);if(o){const[s,a,l,u]=Array.from(o).slice(1).map(parseFloat);if(io(0,100,a)!==a)throw new Fa(e);if(io(0,100,l)!==l)throw new Fa(e);return[...tD(s,a,l),Number.isNaN(u)?1:u]}throw new Fa(e)}function GM(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const Yv=e=>parseInt(e.replace(/_/g,""),36),qM="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=Yv(t.substring(0,3)),r=Yv(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function KM(e){const t=e.toLowerCase().trim(),n=qM[GM(t)];if(!n)throw new Fa(e);return`#${n}`}const gl=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),QM=new RegExp(`^#${gl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),XM=new RegExp(`^#${gl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ZM=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${gl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),JM=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,eD=/^[a-z]+$/i,Gv=e=>Math.round(e*255),tD=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(Gv);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),s=o*(1-Math.abs(i%2-1));let a=0,l=0,u=0;i>=0&&i<1?(a=o,l=s):i>=1&&i<2?(a=s,l=o):i>=2&&i<3?(l=o,u=s):i>=3&&i<4?(l=s,u=o):i>=4&&i<5?(a=s,u=o):i>=5&&i<6&&(a=o,u=s);const c=r-o/2,d=a+c,f=l+c,y=u+c;return[d,f,y].map(Gv)};function nD(e,t,n,r){return`rgba(${io(0,255,e).toFixed()}, ${io(0,255,t).toFixed()}, ${io(0,255,n).toFixed()}, ${parseFloat(io(0,1,r).toFixed(3))})`}function rD(e,t){const[n,r,i,o]=Hg(e);return nD(n,r,i,o-t)}function iD(e){const[t,n,r,i]=Hg(e);let o=s=>{const a=io(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const oD=e=>Object.keys(e).length===0;function sD(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}const Et=(e,t,n)=>{const r=sD(e,`colors.${t}`,t);try{return iD(r),r}catch{return n??"#000000"}},aD=e=>{const[t,n,r]=Hg(e);return(t*299+n*587+r*114)/1e3},lD=e=>t=>{const n=Et(t,e);return aD(n)<128?"dark":"light"},uD=e=>t=>lD(e)(t)==="dark",Us=(e,t)=>n=>{const r=Et(n,e);return rD(r,1-t)};function qv(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${t} 25%,
    transparent 25%,
    transparent 50%,
    ${t} 50%,
    ${t} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${e} ${e}`}}const cD=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function dD(e){const t=cD();return!e||oD(e)?t:e.string&&e.colors?hD(e.string,e.colors):e.string&&!e.colors?fD(e.string):e.colors&&!e.string?pD(e.colors):t}function fD(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function hD(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function pD(e){return e[Math.floor(Math.random()*e.length)]}function U(e,t){return n=>n.colorMode==="dark"?t:e}function Yg(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Sx(e){return Nt(e)&&e.reference?e.reference:String(e)}const Wd=(e,...t)=>t.map(Sx).join(` ${e} `).replace(/calc/g,""),Kv=(...e)=>`calc(${Wd("+",...e)})`,Qv=(...e)=>`calc(${Wd("-",...e)})`,Kp=(...e)=>`calc(${Wd("*",...e)})`,Xv=(...e)=>`calc(${Wd("/",...e)})`,Zv=e=>{const t=Sx(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Kp(t,-1)},xr=Object.assign(e=>({add:(...t)=>xr(Kv(e,...t)),subtract:(...t)=>xr(Qv(e,...t)),multiply:(...t)=>xr(Kp(e,...t)),divide:(...t)=>xr(Xv(e,...t)),negate:()=>xr(Zv(e)),toString:()=>e.toString()}),{add:Kv,subtract:Qv,multiply:Kp,divide:Xv,negate:Zv});function mD(e){return!Number.isInteger(parseFloat(e.toString()))}function gD(e,t="-"){return e.replace(/\s+/g,t)}function wx(e){const t=gD(e.toString());return t.includes("\\.")?e:mD(e)?t.replace(".","\\."):e}function yD(e,t=""){return[t,wx(e)].filter(Boolean).join("-")}function vD(e,t){return`var(${wx(e)}${t?`, ${t}`:""})`}function bD(e,t=""){return`--${yD(e,t)}`}function rt(e,t){const n=bD(e,t==null?void 0:t.prefix);return{variable:n,reference:vD(n,SD(t==null?void 0:t.fallback))}}function SD(e){return e==null?void 0:e.reference}const{definePartsStyle:iu,defineMultiStyleConfig:wD}=we(pM.keys),Kt=W("alert-fg"),Nr=W("alert-bg"),xD=iu({container:{bg:Nr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Kt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Kt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Gg(e){const{theme:t,colorScheme:n}=e,r=Us(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const kD=iu(e=>{const{colorScheme:t}=e,n=Gg(e);return{container:{[Kt.variable]:`colors.${t}.600`,[Nr.variable]:n.light,_dark:{[Kt.variable]:`colors.${t}.200`,[Nr.variable]:n.dark}}}}),_D=iu(e=>{const{colorScheme:t}=e,n=Gg(e);return{container:{[Kt.variable]:`colors.${t}.600`,[Nr.variable]:n.light,_dark:{[Kt.variable]:`colors.${t}.200`,[Nr.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Kt.reference}}}),CD=iu(e=>{const{colorScheme:t}=e,n=Gg(e);return{container:{[Kt.variable]:`colors.${t}.600`,[Nr.variable]:n.light,_dark:{[Kt.variable]:`colors.${t}.200`,[Nr.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Kt.reference}}}),TD=iu(e=>{const{colorScheme:t}=e;return{container:{[Kt.variable]:"colors.white",[Nr.variable]:`colors.${t}.600`,_dark:{[Kt.variable]:"colors.gray.900",[Nr.variable]:`colors.${t}.200`},color:Kt.reference}}}),ED={subtle:kD,"left-accent":_D,"top-accent":CD,solid:TD},PD=wD({baseStyle:xD,variants:ED,defaultProps:{variant:"subtle",colorScheme:"blue"}}),xx={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},RD={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},AD={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},kx={...xx,...RD,container:AD},MD=e=>typeof e=="function";function Pt(e,...t){return MD(e)?e(...t):e}const{definePartsStyle:_x,defineMultiStyleConfig:DD}=we(mM.keys),Ss=W("avatar-border-color"),qa=W("avatar-bg"),yl=W("avatar-font-size"),Ws=W("avatar-size"),OD={borderRadius:"full",border:"0.2em solid",borderColor:Ss.reference,[Ss.variable]:"white",_dark:{[Ss.variable]:"colors.gray.800"}},$D={bg:qa.reference,fontSize:yl.reference,width:Ws.reference,height:Ws.reference,lineHeight:"1",[qa.variable]:"colors.gray.200",_dark:{[qa.variable]:"colors.whiteAlpha.400"}},ID=e=>{const{name:t,theme:n}=e,r=t?dD({string:t}):"colors.gray.400",i=uD(r)(n);let o="white";return i||(o="gray.800"),{bg:qa.reference,fontSize:yl.reference,color:o,borderColor:Ss.reference,verticalAlign:"top",width:Ws.reference,height:Ws.reference,"&:not([data-loaded])":{[qa.variable]:r},[Ss.variable]:"colors.white",_dark:{[Ss.variable]:"colors.gray.800"}}},FD={fontSize:yl.reference,lineHeight:"1"},ND=_x(e=>({badge:Pt(OD,e),excessLabel:Pt($D,e),container:Pt(ID,e),label:FD}));function Zr(e){const t=e!=="100%"?kx[e]:void 0;return _x({container:{[Ws.variable]:t??e,[yl.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ws.variable]:t??e,[yl.variable]:`calc(${t??e} / 2.5)`}})}const LD={"2xs":Zr(4),xs:Zr(6),sm:Zr(8),md:Zr(12),lg:Zr(16),xl:Zr(24),"2xl":Zr(32),full:Zr("100%")},zD=DD({baseStyle:ND,sizes:LD,defaultProps:{size:"md"}}),He=oM("badge",["bg","color","shadow"]),jD={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:He.bg.reference,color:He.color.reference,boxShadow:He.shadow.reference},BD=e=>{const{colorScheme:t,theme:n}=e,r=Us(`${t}.500`,.6)(n);return{[He.bg.variable]:`colors.${t}.500`,[He.color.variable]:"colors.white",_dark:{[He.bg.variable]:r,[He.color.variable]:"colors.whiteAlpha.800"}}},VD=e=>{const{colorScheme:t,theme:n}=e,r=Us(`${t}.200`,.16)(n);return{[He.bg.variable]:`colors.${t}.100`,[He.color.variable]:`colors.${t}.800`,_dark:{[He.bg.variable]:r,[He.color.variable]:`colors.${t}.200`}}},UD=e=>{const{colorScheme:t,theme:n}=e,r=Us(`${t}.200`,.8)(n);return{[He.color.variable]:`colors.${t}.500`,_dark:{[He.color.variable]:r},[He.shadow.variable]:`inset 0 0 0px 1px ${He.color.reference}`}},WD={solid:BD,subtle:VD,outline:UD},Ka={baseStyle:jD,variants:WD,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:HD,definePartsStyle:YD}=we(gM.keys),wh=W("breadcrumb-link-decor"),GD={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:wh.reference,[wh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[wh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},qD=YD({link:GD}),KD=HD({baseStyle:qD}),QD={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},Cx=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.100","whiteAlpha.200")(e)},_active:{bg:U("gray.200","whiteAlpha.300")(e)}};const r=Us(`${t}.200`,.12)(n),i=Us(`${t}.200`,.24)(n);return{color:U(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:U(`${t}.50`,r)(e)},_active:{bg:U(`${t}.100`,i)(e)}}},XD=e=>{const{colorScheme:t}=e,n=U("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Pt(Cx,e)}},ZD={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},JD=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=U("gray.100","whiteAlpha.200")(e);return{bg:a,color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:U("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=ZD[t]??{},s=U(n,`${t}.200`)(e);return{bg:s,color:U(r,"gray.800")(e),_hover:{bg:U(i,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:U(o,`${t}.400`)(e)}}},eO=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:U(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:U(`${t}.700`,`${t}.500`)(e)}}},tO={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},nO={ghost:Cx,outline:XD,solid:JD,link:eO,unstyled:tO},rO={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},iO={baseStyle:QD,variants:nO,sizes:rO,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:vo,defineMultiStyleConfig:oO}=we(NM.keys),Kc=W("card-bg"),Ar=W("card-padding"),Tx=W("card-shadow"),gc=W("card-radius"),Ex=W("card-border-width","0"),Px=W("card-border-color"),sO=vo({container:{[Kc.variable]:"colors.chakra-body-bg",backgroundColor:Kc.reference,boxShadow:Tx.reference,borderRadius:gc.reference,color:"chakra-body-text",borderWidth:Ex.reference,borderColor:Px.reference},body:{padding:Ar.reference,flex:"1 1 0%"},header:{padding:Ar.reference},footer:{padding:Ar.reference}}),aO={sm:vo({container:{[gc.variable]:"radii.base",[Ar.variable]:"space.3"}}),md:vo({container:{[gc.variable]:"radii.md",[Ar.variable]:"space.5"}}),lg:vo({container:{[gc.variable]:"radii.xl",[Ar.variable]:"space.7"}})},lO={elevated:vo({container:{[Tx.variable]:"shadows.base",_dark:{[Kc.variable]:"colors.gray.700"}}}),outline:vo({container:{[Ex.variable]:"1px",[Px.variable]:"colors.chakra-border-color"}}),filled:vo({container:{[Kc.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ar.variable]:0},header:{[Ar.variable]:0},footer:{[Ar.variable]:0}}},uO=oO({baseStyle:sO,variants:lO,sizes:aO,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:yc,defineMultiStyleConfig:cO}=we(yM.keys),Qa=W("checkbox-size"),dO=e=>{const{colorScheme:t}=e;return{w:Qa.reference,h:Qa.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e),_hover:{bg:U(`${t}.600`,`${t}.300`)(e),borderColor:U(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:U("gray.200","transparent")(e),bg:U("gray.200","whiteAlpha.300")(e),color:U("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e)},_disabled:{bg:U("gray.100","whiteAlpha.100")(e),borderColor:U("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:U("red.500","red.300")(e)}}},fO={_disabled:{cursor:"not-allowed"}},hO={userSelect:"none",_disabled:{opacity:.4}},pO={transitionProperty:"transform",transitionDuration:"normal"},mO=yc(e=>({icon:pO,container:fO,control:Pt(dO,e),label:hO})),gO={sm:yc({control:{[Qa.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:yc({control:{[Qa.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:yc({control:{[Qa.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},ri=cO({baseStyle:mO,sizes:gO,defaultProps:{size:"md",colorScheme:"blue"}}),Xa=rt("close-button-size"),va=rt("close-button-bg"),yO={w:[Xa.reference],h:[Xa.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[va.variable]:"colors.blackAlpha.100",_dark:{[va.variable]:"colors.whiteAlpha.100"}},_active:{[va.variable]:"colors.blackAlpha.200",_dark:{[va.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:va.reference},vO={lg:{[Xa.variable]:"sizes.10",fontSize:"md"},md:{[Xa.variable]:"sizes.8",fontSize:"xs"},sm:{[Xa.variable]:"sizes.6",fontSize:"2xs"}},bO={baseStyle:yO,sizes:vO,defaultProps:{size:"md"}},{variants:SO,defaultProps:wO}=Ka,xO={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:He.bg.reference,color:He.color.reference,boxShadow:He.shadow.reference},kO={baseStyle:xO,variants:SO,defaultProps:wO},_O={w:"100%",mx:"auto",maxW:"prose",px:"4"},CO={baseStyle:_O},TO={opacity:.6,borderColor:"inherit"},EO={borderStyle:"solid"},PO={borderStyle:"dashed"},RO={solid:EO,dashed:PO},AO={baseStyle:TO,variants:RO,defaultProps:{variant:"solid"}},{definePartsStyle:Qp,defineMultiStyleConfig:MO}=we(vM.keys),xh=W("drawer-bg"),kh=W("drawer-box-shadow");function Yo(e){return Qp(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const DO={bg:"blackAlpha.600",zIndex:"modal"},OO={display:"flex",zIndex:"modal",justifyContent:"center"},$O=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[xh.variable]:"colors.white",[kh.variable]:"shadows.lg",_dark:{[xh.variable]:"colors.gray.700",[kh.variable]:"shadows.dark-lg"},bg:xh.reference,boxShadow:kh.reference}},IO={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},FO={position:"absolute",top:"2",insetEnd:"3"},NO={px:"6",py:"2",flex:"1",overflow:"auto"},LO={px:"6",py:"4"},zO=Qp(e=>({overlay:DO,dialogContainer:OO,dialog:Pt($O,e),header:IO,closeButton:FO,body:NO,footer:LO})),jO={xs:Yo("xs"),sm:Yo("md"),md:Yo("lg"),lg:Yo("2xl"),xl:Yo("4xl"),full:Yo("full")},BO=MO({baseStyle:zO,sizes:jO,defaultProps:{size:"xs"}}),{definePartsStyle:VO,defineMultiStyleConfig:UO}=we(bM.keys),WO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},HO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},YO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},GO=VO({preview:WO,input:HO,textarea:YO}),qO=UO({baseStyle:GO}),{definePartsStyle:KO,defineMultiStyleConfig:QO}=we(SM.keys),ws=W("form-control-color"),XO={marginStart:"1",[ws.variable]:"colors.red.500",_dark:{[ws.variable]:"colors.red.300"},color:ws.reference},ZO={mt:"2",[ws.variable]:"colors.gray.600",_dark:{[ws.variable]:"colors.whiteAlpha.600"},color:ws.reference,lineHeight:"normal",fontSize:"sm"},JO=KO({container:{width:"100%",position:"relative"},requiredIndicator:XO,helperText:ZO}),e$=QO({baseStyle:JO}),{definePartsStyle:t$,defineMultiStyleConfig:n$}=we(wM.keys),xs=W("form-error-color"),r$={[xs.variable]:"colors.red.500",_dark:{[xs.variable]:"colors.red.300"},color:xs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},i$={marginEnd:"0.5em",[xs.variable]:"colors.red.500",_dark:{[xs.variable]:"colors.red.300"},color:xs.reference},o$=t$({text:r$,icon:i$}),s$=n$({baseStyle:o$}),a$={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},l$={baseStyle:a$},u$={fontFamily:"heading",fontWeight:"bold"},c$={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},d$={baseStyle:u$,sizes:c$,defaultProps:{size:"xl"}},{definePartsStyle:_r,defineMultiStyleConfig:f$}=we(xM.keys),Qo=W("input-height"),Xo=W("input-font-size"),Zo=W("input-padding"),Jo=W("input-border-radius"),h$=_r({addon:{height:Qo.reference,fontSize:Xo.reference,px:Zo.reference,borderRadius:Jo.reference},field:{width:"100%",height:Qo.reference,fontSize:Xo.reference,px:Zo.reference,borderRadius:Jo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Jr={lg:{[Xo.variable]:"fontSizes.lg",[Zo.variable]:"space.4",[Jo.variable]:"radii.md",[Qo.variable]:"sizes.12"},md:{[Xo.variable]:"fontSizes.md",[Zo.variable]:"space.4",[Jo.variable]:"radii.md",[Qo.variable]:"sizes.10"},sm:{[Xo.variable]:"fontSizes.sm",[Zo.variable]:"space.3",[Jo.variable]:"radii.sm",[Qo.variable]:"sizes.8"},xs:{[Xo.variable]:"fontSizes.xs",[Zo.variable]:"space.2",[Jo.variable]:"radii.sm",[Qo.variable]:"sizes.6"}},p$={lg:_r({field:Jr.lg,group:Jr.lg}),md:_r({field:Jr.md,group:Jr.md}),sm:_r({field:Jr.sm,group:Jr.sm}),xs:_r({field:Jr.xs,group:Jr.xs})};function qg(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||U("blue.500","blue.300")(e),errorBorderColor:n||U("red.500","red.300")(e)}}const m$=_r(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qg(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:U("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Et(t,r),boxShadow:`0 0 0 1px ${Et(t,r)}`},_focusVisible:{zIndex:1,borderColor:Et(t,n),boxShadow:`0 0 0 1px ${Et(t,n)}`}},addon:{border:"1px solid",borderColor:U("inherit","whiteAlpha.50")(e),bg:U("gray.100","whiteAlpha.300")(e)}}}),g$=_r(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qg(e);return{field:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e),_hover:{bg:U("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Et(t,r)},_focusVisible:{bg:"transparent",borderColor:Et(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e)}}}),y$=_r(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qg(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Et(t,r),boxShadow:`0px 1px 0px 0px ${Et(t,r)}`},_focusVisible:{borderColor:Et(t,n),boxShadow:`0px 1px 0px 0px ${Et(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),v$=_r({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),b$={outline:m$,filled:g$,flushed:y$,unstyled:v$},fe=f$({baseStyle:h$,sizes:p$,variants:b$,defaultProps:{size:"md",variant:"outline"}}),_h=W("kbd-bg"),S$={[_h.variable]:"colors.gray.100",_dark:{[_h.variable]:"colors.whiteAlpha.100"},bg:_h.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},w$={baseStyle:S$},x$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},k$={baseStyle:x$},{defineMultiStyleConfig:_$,definePartsStyle:C$}=we(kM.keys),T$={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},E$=C$({icon:T$}),P$=_$({baseStyle:E$}),{defineMultiStyleConfig:R$,definePartsStyle:A$}=we(_M.keys),qn=W("menu-bg"),Ch=W("menu-shadow"),M$={[qn.variable]:"#fff",[Ch.variable]:"shadows.sm",_dark:{[qn.variable]:"colors.gray.700",[Ch.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:qn.reference,boxShadow:Ch.reference},D$={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[qn.variable]:"colors.gray.100",_dark:{[qn.variable]:"colors.whiteAlpha.100"}},_active:{[qn.variable]:"colors.gray.200",_dark:{[qn.variable]:"colors.whiteAlpha.200"}},_expanded:{[qn.variable]:"colors.gray.100",_dark:{[qn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:qn.reference},O$={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},$$={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},I$={opacity:.6},F$={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},N$={transitionProperty:"common",transitionDuration:"normal"},L$=A$({button:N$,list:M$,item:D$,groupTitle:O$,icon:$$,command:I$,divider:F$}),z$=R$({baseStyle:L$}),{defineMultiStyleConfig:j$,definePartsStyle:Xp}=we(CM.keys),Th=W("modal-bg"),Eh=W("modal-shadow"),B$={bg:"blackAlpha.600",zIndex:"modal"},V$=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},U$=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Th.variable]:"colors.white",[Eh.variable]:"shadows.lg",_dark:{[Th.variable]:"colors.gray.700",[Eh.variable]:"shadows.dark-lg"},bg:Th.reference,boxShadow:Eh.reference}},W$={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},H$={position:"absolute",top:"2",insetEnd:"3"},Y$=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},G$={px:"6",py:"4"},q$=Xp(e=>({overlay:B$,dialogContainer:Pt(V$,e),dialog:Pt(U$,e),header:W$,closeButton:H$,body:Pt(Y$,e),footer:G$}));function xn(e){return Xp(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const K$={xs:xn("xs"),sm:xn("sm"),md:xn("md"),lg:xn("lg"),xl:xn("xl"),"2xl":xn("2xl"),"3xl":xn("3xl"),"4xl":xn("4xl"),"5xl":xn("5xl"),"6xl":xn("6xl"),full:xn("full")},Q$=j$({baseStyle:q$,sizes:K$,defaultProps:{size:"md"}}),Rx={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:X$,definePartsStyle:Ax}=we(TM.keys),Kg=rt("number-input-stepper-width"),Mx=rt("number-input-input-padding"),Z$=xr(Kg).add("0.5rem").toString(),Ph=rt("number-input-bg"),Rh=rt("number-input-color"),Ah=rt("number-input-border-color"),J$={[Kg.variable]:"sizes.6",[Mx.variable]:Z$},eI=e=>{var t;return((t=Pt(fe.baseStyle,e))==null?void 0:t.field)??{}},tI={width:Kg.reference},nI={borderStart:"1px solid",borderStartColor:Ah.reference,color:Rh.reference,bg:Ph.reference,[Rh.variable]:"colors.chakra-body-text",[Ah.variable]:"colors.chakra-border-color",_dark:{[Rh.variable]:"colors.whiteAlpha.800",[Ah.variable]:"colors.whiteAlpha.300"},_active:{[Ph.variable]:"colors.gray.200",_dark:{[Ph.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},rI=Ax(e=>({root:J$,field:Pt(eI,e)??{},stepperGroup:tI,stepper:nI}));function Fu(e){var o,s;const t=(o=fe.sizes)==null?void 0:o[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",i=Rx.fontSizes[r];return Ax({field:{...t.field,paddingInlineEnd:Mx.reference,verticalAlign:"top"},stepper:{fontSize:xr(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const iI={xs:Fu("xs"),sm:Fu("sm"),md:Fu("md"),lg:Fu("lg")},oI=X$({baseStyle:rI,sizes:iI,variants:fe.variants,defaultProps:fe.defaultProps});var Aw;const sI={...(Aw=fe.baseStyle)==null?void 0:Aw.field,textAlign:"center"},aI={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var Mw;const lI={outline:e=>{var t,n;return((n=Pt((t=fe.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Pt((t=fe.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Pt((t=fe.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((Mw=fe.variants)==null?void 0:Mw.unstyled.field)??{}},uI={baseStyle:sI,sizes:aI,variants:lI,defaultProps:fe.defaultProps},{defineMultiStyleConfig:cI,definePartsStyle:dI}=we(EM.keys),Nu=rt("popper-bg"),fI=rt("popper-arrow-bg"),Jv=rt("popper-arrow-shadow-color"),hI={zIndex:"popover"},pI={[Nu.variable]:"colors.white",bg:Nu.reference,[fI.variable]:Nu.reference,[Jv.variable]:"colors.gray.200",_dark:{[Nu.variable]:"colors.gray.700",[Jv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},mI={px:3,py:2,borderBottomWidth:"1px"},gI={px:3,py:2},yI={px:3,py:2,borderTopWidth:"1px"},vI={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},bI=dI({popper:hI,content:pI,header:mI,body:gI,footer:yI,closeButton:vI}),SI=cI({baseStyle:bI}),{defineMultiStyleConfig:wI,definePartsStyle:Na}=we(PM.keys),xI=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=U(qv(),qv("1rem","rgba(0,0,0,0.1)"))(e),s=U(`${t}.500`,`${t}.200`)(e),a=`linear-gradient(
    to right,
    transparent 0%,
    ${Et(n,s)} 50%,
    transparent 100%
  )`;return{...!r&&i&&o,...r?{bgImage:a}:{bgColor:s}}},kI={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},_I=e=>({bg:U("gray.100","whiteAlpha.300")(e)}),CI=e=>({transitionProperty:"common",transitionDuration:"slow",...xI(e)}),TI=Na(e=>({label:kI,filledTrack:CI(e),track:_I(e)})),EI={xs:Na({track:{h:"1"}}),sm:Na({track:{h:"2"}}),md:Na({track:{h:"3"}}),lg:Na({track:{h:"4"}})},PI=wI({sizes:EI,baseStyle:TI,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:RI,definePartsStyle:vc}=we(RM.keys),AI=e=>{var n;const t=(n=Pt(ri.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},MI=vc(e=>{var t,n;return{label:(t=ri.baseStyle)==null?void 0:t.call(ri,e).label,container:(n=ri.baseStyle)==null?void 0:n.call(ri,e).container,control:AI(e)}}),DI={md:vc({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:vc({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:vc({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},OI=RI({baseStyle:MI,sizes:DI,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$I,definePartsStyle:II}=we(AM.keys),Lu=W("select-bg");var Dw;const FI={...(Dw=fe.baseStyle)==null?void 0:Dw.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Lu.reference,[Lu.variable]:"colors.white",_dark:{[Lu.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Lu.reference}},NI={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},LI=II({field:FI,icon:NI}),zu={paddingInlineEnd:"8"};var Ow,$w,Iw,Fw,Nw,Lw,zw,jw;const zI={lg:{...(Ow=fe.sizes)==null?void 0:Ow.lg,field:{...($w=fe.sizes)==null?void 0:$w.lg.field,...zu}},md:{...(Iw=fe.sizes)==null?void 0:Iw.md,field:{...(Fw=fe.sizes)==null?void 0:Fw.md.field,...zu}},sm:{...(Nw=fe.sizes)==null?void 0:Nw.sm,field:{...(Lw=fe.sizes)==null?void 0:Lw.sm.field,...zu}},xs:{...(zw=fe.sizes)==null?void 0:zw.xs,field:{...(jw=fe.sizes)==null?void 0:jw.xs.field,...zu},icon:{insetEnd:"1"}}},jI=$I({baseStyle:LI,sizes:zI,variants:fe.variants,defaultProps:fe.defaultProps}),Mh=W("skeleton-start-color"),Dh=W("skeleton-end-color"),BI={[Mh.variable]:"colors.gray.100",[Dh.variable]:"colors.gray.400",_dark:{[Mh.variable]:"colors.gray.800",[Dh.variable]:"colors.gray.600"},background:Mh.reference,borderColor:Dh.reference,opacity:.7,borderRadius:"sm"},VI={baseStyle:BI},Oh=W("skip-link-bg"),UI={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Oh.variable]:"colors.white",_dark:{[Oh.variable]:"colors.gray.700"},bg:Oh.reference}},WI={baseStyle:UI},{defineMultiStyleConfig:HI,definePartsStyle:Hd}=we(MM.keys),To=W("slider-thumb-size"),vl=W("slider-track-size"),ai=W("slider-bg"),YI=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Yg({orientation:t,vertical:{h:"100%",px:wr(To.reference).divide(2).toString()},horizontal:{w:"100%",py:wr(To.reference).divide(2).toString()}})}},GI=e=>({...Yg({orientation:e.orientation,horizontal:{h:vl.reference},vertical:{w:vl.reference}}),overflow:"hidden",borderRadius:"sm",[ai.variable]:"colors.gray.200",_dark:{[ai.variable]:"colors.whiteAlpha.200"},_disabled:{[ai.variable]:"colors.gray.300",_dark:{[ai.variable]:"colors.whiteAlpha.300"}},bg:ai.reference}),qI=e=>{const{orientation:t}=e;return{...Yg({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:To.reference,h:To.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},KI=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ai.variable]:`colors.${t}.500`,_dark:{[ai.variable]:`colors.${t}.200`},bg:ai.reference}},QI=Hd(e=>({container:YI(e),track:GI(e),thumb:qI(e),filledTrack:KI(e)})),XI=Hd({container:{[To.variable]:"sizes.4",[vl.variable]:"sizes.1"}}),ZI=Hd({container:{[To.variable]:"sizes.3.5",[vl.variable]:"sizes.1"}}),JI=Hd({container:{[To.variable]:"sizes.2.5",[vl.variable]:"sizes.0.5"}}),e5={lg:XI,md:ZI,sm:JI},t5=HI({baseStyle:QI,sizes:e5,defaultProps:{size:"md",colorScheme:"blue"}}),ro=rt("spinner-size"),n5={width:[ro.reference],height:[ro.reference]},r5={xs:{[ro.variable]:"sizes.3"},sm:{[ro.variable]:"sizes.4"},md:{[ro.variable]:"sizes.6"},lg:{[ro.variable]:"sizes.8"},xl:{[ro.variable]:"sizes.12"}},i5={baseStyle:n5,sizes:r5,defaultProps:{size:"md"}},{defineMultiStyleConfig:o5,definePartsStyle:Dx}=we(DM.keys),s5={fontWeight:"medium"},a5={opacity:.8,marginBottom:"2"},l5={verticalAlign:"baseline",fontWeight:"semibold"},u5={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},c5=Dx({container:{},label:s5,helpText:a5,number:l5,icon:u5}),d5={md:Dx({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},f5=o5({baseStyle:c5,sizes:d5,defaultProps:{size:"md"}}),{defineMultiStyleConfig:h5,definePartsStyle:La}=we(["stepper","step","title","description","indicator","separator","icon","number"]),kr=W("stepper-indicator-size"),es=W("stepper-icon-size"),ts=W("stepper-title-font-size"),za=W("stepper-description-font-size"),ba=W("stepper-accent-color"),p5=La(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ba.variable]:`colors.${e}.500`,_dark:{[ba.variable]:`colors.${e}.200`}},title:{fontSize:ts.reference,fontWeight:"medium"},description:{fontSize:za.reference,color:"chakra-subtle-text"},number:{fontSize:ts.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:es.reference,height:es.reference},indicator:{flexShrink:0,borderRadius:"full",width:kr.reference,height:kr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ba.reference},"&[data-status=complete]":{bg:ba.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ba.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${kr.reference} - 8px)`,top:`calc(${kr.reference} + 4px)`,insetStart:`calc(${kr.reference} / 2 - 1px)`}}})),m5=h5({baseStyle:p5,sizes:{xs:La({stepper:{[kr.variable]:"sizes.4",[es.variable]:"sizes.3",[ts.variable]:"fontSizes.xs",[za.variable]:"fontSizes.xs"}}),sm:La({stepper:{[kr.variable]:"sizes.6",[es.variable]:"sizes.4",[ts.variable]:"fontSizes.sm",[za.variable]:"fontSizes.xs"}}),md:La({stepper:{[kr.variable]:"sizes.8",[es.variable]:"sizes.5",[ts.variable]:"fontSizes.md",[za.variable]:"fontSizes.sm"}}),lg:La({stepper:{[kr.variable]:"sizes.10",[es.variable]:"sizes.6",[ts.variable]:"fontSizes.lg",[za.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:g5,definePartsStyle:bc}=we(OM.keys),Za=rt("switch-track-width"),bo=rt("switch-track-height"),$h=rt("switch-track-diff"),y5=xr.subtract(Za,bo),Zp=rt("switch-thumb-x"),Sa=rt("switch-bg"),v5=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Za.reference],height:[bo.reference],transitionProperty:"common",transitionDuration:"fast",[Sa.variable]:"colors.gray.300",_dark:{[Sa.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Sa.variable]:`colors.${t}.500`,_dark:{[Sa.variable]:`colors.${t}.200`}},bg:Sa.reference}},b5={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[bo.reference],height:[bo.reference],_checked:{transform:`translateX(${Zp.reference})`}},S5=bc(e=>({container:{[$h.variable]:y5,[Zp.variable]:$h.reference,_rtl:{[Zp.variable]:xr($h).negate().toString()}},track:v5(e),thumb:b5})),w5={sm:bc({container:{[Za.variable]:"1.375rem",[bo.variable]:"sizes.3"}}),md:bc({container:{[Za.variable]:"1.875rem",[bo.variable]:"sizes.4"}}),lg:bc({container:{[Za.variable]:"2.875rem",[bo.variable]:"sizes.6"}})},x5=g5({baseStyle:S5,sizes:w5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:k5,definePartsStyle:ks}=we($M.keys),_5=ks({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Qc={"&[data-is-numeric=true]":{textAlign:"end"}},C5=ks(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Qc},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Qc},caption:{color:U("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),T5=ks(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Qc},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Qc},caption:{color:U("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e)},td:{background:U(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),E5={simple:C5,striped:T5,unstyled:{}},P5={sm:ks({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:ks({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ks({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},R5=k5({baseStyle:_5,variants:E5,sizes:P5,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),It=W("tabs-color"),An=W("tabs-bg"),ju=W("tabs-border-color"),{defineMultiStyleConfig:A5,definePartsStyle:rr}=we(IM.keys),M5=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},D5=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},O5=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},$5={p:4},I5=rr(e=>({root:M5(e),tab:D5(e),tablist:O5(e),tabpanel:$5})),F5={sm:rr({tab:{py:1,px:4,fontSize:"sm"}}),md:rr({tab:{fontSize:"md",py:2,px:4}}),lg:rr({tab:{fontSize:"lg",py:3,px:4}})},N5=rr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[It.variable]:`colors.${t}.600`,_dark:{[It.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[An.variable]:"colors.gray.200",_dark:{[An.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:It.reference,bg:An.reference}}}),L5=rr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ju.variable]:"transparent",_selected:{[It.variable]:`colors.${t}.600`,[ju.variable]:"colors.white",_dark:{[It.variable]:`colors.${t}.300`,[ju.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ju.reference},color:It.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),z5=rr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[An.variable]:"colors.gray.50",_dark:{[An.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[An.variable]:"colors.white",[It.variable]:`colors.${t}.600`,_dark:{[An.variable]:"colors.gray.800",[It.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:It.reference,bg:An.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),j5=rr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Et(n,`${t}.700`),bg:Et(n,`${t}.100`)}}}}),B5=rr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[It.variable]:"colors.gray.600",_dark:{[It.variable]:"inherit"},_selected:{[It.variable]:"colors.white",[An.variable]:`colors.${t}.600`,_dark:{[It.variable]:"colors.gray.800",[An.variable]:`colors.${t}.300`}},color:It.reference,bg:An.reference}}}),V5=rr({}),U5={line:N5,enclosed:L5,"enclosed-colored":z5,"soft-rounded":j5,"solid-rounded":B5,unstyled:V5},W5=A5({baseStyle:I5,sizes:F5,variants:U5,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:H5,definePartsStyle:So}=we(FM.keys),eb=W("tag-bg"),tb=W("tag-color"),Ih=W("tag-shadow"),Sc=W("tag-min-height"),wc=W("tag-min-width"),xc=W("tag-font-size"),kc=W("tag-padding-inline"),Y5={fontWeight:"medium",lineHeight:1.2,outline:0,[tb.variable]:He.color.reference,[eb.variable]:He.bg.reference,[Ih.variable]:He.shadow.reference,color:tb.reference,bg:eb.reference,boxShadow:Ih.reference,borderRadius:"md",minH:Sc.reference,minW:wc.reference,fontSize:xc.reference,px:kc.reference,_focusVisible:{[Ih.variable]:"shadows.outline"}},G5={lineHeight:1.2,overflow:"visible"},q5={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},K5=So({container:Y5,label:G5,closeButton:q5}),Q5={sm:So({container:{[Sc.variable]:"sizes.5",[wc.variable]:"sizes.5",[xc.variable]:"fontSizes.xs",[kc.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:So({container:{[Sc.variable]:"sizes.6",[wc.variable]:"sizes.6",[xc.variable]:"fontSizes.sm",[kc.variable]:"space.2"}}),lg:So({container:{[Sc.variable]:"sizes.8",[wc.variable]:"sizes.8",[xc.variable]:"fontSizes.md",[kc.variable]:"space.3"}})},X5={subtle:So(e=>{var t;return{container:(t=Ka.variants)==null?void 0:t.subtle(e)}}),solid:So(e=>{var t;return{container:(t=Ka.variants)==null?void 0:t.solid(e)}}),outline:So(e=>{var t;return{container:(t=Ka.variants)==null?void 0:t.outline(e)}})},Z5=H5({variants:X5,baseStyle:K5,sizes:Q5,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Bw;const J5={...(Bw=fe.baseStyle)==null?void 0:Bw.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Vw;const eF={outline:e=>{var t;return((t=fe.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=fe.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=fe.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Vw=fe.variants)==null?void 0:Vw.unstyled.field)??{}};var Uw,Ww,Hw,Yw;const tF={xs:((Uw=fe.sizes)==null?void 0:Uw.xs.field)??{},sm:((Ww=fe.sizes)==null?void 0:Ww.sm.field)??{},md:((Hw=fe.sizes)==null?void 0:Hw.md.field)??{},lg:((Yw=fe.sizes)==null?void 0:Yw.lg.field)??{}},nF={baseStyle:J5,sizes:tF,variants:eF,defaultProps:{size:"md",variant:"outline"}},Bu=rt("tooltip-bg"),Fh=rt("tooltip-fg"),rF=rt("popper-arrow-bg"),iF={bg:Bu.reference,color:Fh.reference,[Bu.variable]:"colors.gray.700",[Fh.variable]:"colors.whiteAlpha.900",_dark:{[Bu.variable]:"colors.gray.300",[Fh.variable]:"colors.gray.900"},[rF.variable]:Bu.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},oF={baseStyle:iF},sF={Accordion:HM,Alert:PD,Avatar:zD,Badge:Ka,Breadcrumb:KD,Button:iO,Checkbox:ri,CloseButton:bO,Code:kO,Container:CO,Divider:AO,Drawer:BO,Editable:qO,Form:e$,FormError:s$,FormLabel:l$,Heading:d$,Input:fe,Kbd:w$,Link:k$,List:P$,Menu:z$,Modal:Q$,NumberInput:oI,PinInput:uI,Popover:SI,Progress:PI,Radio:OI,Select:jI,Skeleton:VI,SkipLink:WI,Slider:t5,Spinner:i5,Stat:f5,Switch:x5,Table:R5,Tabs:W5,Tag:Z5,Textarea:nF,Tooltip:oF,Card:uO,Stepper:m5},aF={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},lF={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},uF={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},cF={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},dF={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},fF={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},hF={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},pF={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},mF={property:fF,easing:hF,duration:pF},gF={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},yF={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},vF={breakpoints:lF,zIndices:gF,radii:cF,blur:yF,colors:uF,...Rx,sizes:kx,shadows:dF,space:xx,borders:aF,transition:mF},bF={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},SF={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},wF=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function xF(e){return Nt(e)?wF.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const kF="ltr",_F={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Ox={semanticTokens:bF,direction:kF,...vF,components:sF,styles:SF,config:_F};function CF(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function TF(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var EF=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(TF(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=CF(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),mt="-ms-",Xc="-moz-",ce="-webkit-",$x="comm",Qg="rule",Xg="decl",PF="@import",Ix="@keyframes",RF="@layer",AF=Math.abs,Yd=String.fromCharCode,MF=Object.assign;function DF(e,t){return ut(e,0)^45?(((t<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}function Fx(e){return e.trim()}function OF(e,t){return(e=t.exec(e))?e[0]:e}function de(e,t,n){return e.replace(t,n)}function Jp(e,t){return e.indexOf(t)}function ut(e,t){return e.charCodeAt(t)|0}function bl(e,t,n){return e.slice(t,n)}function Zn(e){return e.length}function Zg(e){return e.length}function Vu(e,t){return t.push(e),e}function $F(e,t){return e.map(t).join("")}var Gd=1,Hs=1,Nx=0,Ut=0,Ke=0,ra="";function qd(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Gd,column:Hs,length:s,return:""}}function wa(e,t){return MF(qd("",null,null,"",null,null,0),e,{length:-e.length},t)}function IF(){return Ke}function FF(){return Ke=Ut>0?ut(ra,--Ut):0,Hs--,Ke===10&&(Hs=1,Gd--),Ke}function Qt(){return Ke=Ut<Nx?ut(ra,Ut++):0,Hs++,Ke===10&&(Hs=1,Gd++),Ke}function ir(){return ut(ra,Ut)}function _c(){return Ut}function ou(e,t){return bl(ra,e,t)}function Sl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Lx(e){return Gd=Hs=1,Nx=Zn(ra=e),Ut=0,[]}function zx(e){return ra="",e}function Cc(e){return Fx(ou(Ut-1,em(e===91?e+2:e===40?e+1:e)))}function NF(e){for(;(Ke=ir())&&Ke<33;)Qt();return Sl(e)>2||Sl(Ke)>3?"":" "}function LF(e,t){for(;--t&&Qt()&&!(Ke<48||Ke>102||Ke>57&&Ke<65||Ke>70&&Ke<97););return ou(e,_c()+(t<6&&ir()==32&&Qt()==32))}function em(e){for(;Qt();)switch(Ke){case e:return Ut;case 34:case 39:e!==34&&e!==39&&em(Ke);break;case 40:e===41&&em(e);break;case 92:Qt();break}return Ut}function zF(e,t){for(;Qt()&&e+Ke!==57;)if(e+Ke===84&&ir()===47)break;return"/*"+ou(t,Ut-1)+"*"+Yd(e===47?e:Qt())}function jF(e){for(;!Sl(ir());)Qt();return ou(e,Ut)}function BF(e){return zx(Tc("",null,null,null,[""],e=Lx(e),0,[0],e))}function Tc(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,f=0,y=0,m=0,v=1,S=1,g=1,h=0,p="",x=i,C=o,R=r,P=p;S;)switch(m=h,h=Qt()){case 40:if(m!=108&&ut(P,d-1)==58){Jp(P+=de(Cc(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:P+=Cc(h);break;case 9:case 10:case 13:case 32:P+=NF(m);break;case 92:P+=LF(_c()-1,7);continue;case 47:switch(ir()){case 42:case 47:Vu(VF(zF(Qt(),_c()),t,n),l);break;default:P+="/"}break;case 123*v:a[u++]=Zn(P)*g;case 125*v:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:g==-1&&(P=de(P,/\f/g,"")),y>0&&Zn(P)-d&&Vu(y>32?rb(P+";",r,n,d-1):rb(de(P," ","")+";",r,n,d-2),l);break;case 59:P+=";";default:if(Vu(R=nb(P,t,n,u,c,i,a,p,x=[],C=[],d),o),h===123)if(c===0)Tc(P,t,R,R,x,o,d,a,C);else switch(f===99&&ut(P,3)===110?100:f){case 100:case 108:case 109:case 115:Tc(e,R,R,r&&Vu(nb(e,R,R,0,0,i,a,p,i,x=[],d),C),i,C,d,a,r?x:C);break;default:Tc(P,R,R,R,[""],C,0,a,C)}}u=c=y=0,v=g=1,p=P="",d=s;break;case 58:d=1+Zn(P),y=m;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&FF()==125)continue}switch(P+=Yd(h),h*v){case 38:g=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(Zn(P)-1)*g,g=1;break;case 64:ir()===45&&(P+=Cc(Qt())),f=ir(),c=d=Zn(p=P+=jF(_c())),h++;break;case 45:m===45&&Zn(P)==2&&(v=0)}}return o}function nb(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,f=i===0?o:[""],y=Zg(f),m=0,v=0,S=0;m<r;++m)for(var g=0,h=bl(e,d+1,d=AF(v=s[m])),p=e;g<y;++g)(p=Fx(v>0?f[g]+" "+h:de(h,/&\f/g,f[g])))&&(l[S++]=p);return qd(e,t,n,i===0?Qg:a,l,u,c)}function VF(e,t,n){return qd(e,t,n,$x,Yd(IF()),bl(e,2,-2),0)}function rb(e,t,n,r){return qd(e,t,n,Xg,bl(e,0,r),bl(e,r+1,-1),r)}function _s(e,t){for(var n="",r=Zg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function UF(e,t,n,r){switch(e.type){case RF:if(e.children.length)break;case PF:case Xg:return e.return=e.return||e.value;case $x:return"";case Ix:return e.return=e.value+"{"+_s(e.children,r)+"}";case Qg:e.value=e.props.join(",")}return Zn(n=_s(e.children,r))?e.return=e.value+"{"+n+"}":""}function WF(e){var t=Zg(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function HF(e){return function(t){t.root||(t=t.return)&&e(t)}}var ib=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function jx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var YF=function(t,n,r){for(var i=0,o=0;i=o,o=ir(),i===38&&o===12&&(n[r]=1),!Sl(o);)Qt();return ou(t,Ut)},GF=function(t,n){var r=-1,i=44;do switch(Sl(i)){case 0:i===38&&ir()===12&&(n[r]=1),t[r]+=YF(Ut-1,n,r);break;case 2:t[r]+=Cc(i);break;case 4:if(i===44){t[++r]=ir()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Yd(i)}while(i=Qt());return t},qF=function(t,n){return zx(GF(Lx(t),n))},ob=new WeakMap,KF=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ob.get(r))&&!i){ob.set(t,!0);for(var o=[],s=qF(n,o),a=r.props,l=0,u=0;l<s.length;l++)for(var c=0;c<a.length;c++,u++)t.props[u]=o[l]?s[l].replace(/&\f/g,a[c]):a[c]+" "+s[l]}}},QF=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Bx(e,t){switch(DF(e,t)){case 5103:return ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+Xc+e+mt+e+e;case 6828:case 4268:return ce+e+mt+e+e;case 6165:return ce+e+mt+"flex-"+e+e;case 5187:return ce+e+de(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+mt+"flex-$1$2")+e;case 5443:return ce+e+mt+"flex-item-"+de(e,/flex-|-self/,"")+e;case 4675:return ce+e+mt+"flex-line-pack"+de(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+mt+de(e,"shrink","negative")+e;case 5292:return ce+e+mt+de(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+de(e,"-grow","")+ce+e+mt+de(e,"grow","positive")+e;case 4554:return ce+de(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return de(de(de(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return de(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return de(de(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return de(e,/(.+)-inline(.+)/,ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zn(e)-1-t>6)switch(ut(e,t+1)){case 109:if(ut(e,t+4)!==45)break;case 102:return de(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+Xc+(ut(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Jp(e,"stretch")?Bx(de(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ut(e,t+1)!==115)break;case 6444:switch(ut(e,Zn(e)-3-(~Jp(e,"!important")&&10))){case 107:return de(e,":",":"+ce)+e;case 101:return de(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(ut(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+mt+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return ce+e+mt+de(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+mt+de(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+mt+de(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+mt+e+e}return e}var XF=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Xg:t.return=Bx(t.value,t.length);break;case Ix:return _s([wa(t,{value:de(t.value,"@","@"+ce)})],i);case Qg:if(t.length)return $F(t.props,function(o){switch(OF(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _s([wa(t,{props:[de(o,/:(read-\w+)/,":"+Xc+"$1")]})],i);case"::placeholder":return _s([wa(t,{props:[de(o,/:(plac\w+)/,":"+ce+"input-$1")]}),wa(t,{props:[de(o,/:(plac\w+)/,":"+Xc+"$1")]}),wa(t,{props:[de(o,/:(plac\w+)/,mt+"input-$1")]})],i)}return""})}},ZF=[XF],JF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||ZF,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),g=1;g<S.length;g++)o[S[g]]=!0;a.push(v)});var l,u=[KF,QF];{var c,d=[UF,HF(function(v){c.insert(v)})],f=WF(u.concat(i,d)),y=function(S){return _s(BF(S),f)};l=function(S,g,h,p){c=h,y(S?S+"{"+g.styles+"}":g.styles),p&&(m.inserted[g.name]=!0)}}var m={key:n,sheet:new EF({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(a),m};function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zc.apply(null,arguments)}var Vx={exports:{}},me={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var st=typeof Symbol=="function"&&Symbol.for,Jg=st?Symbol.for("react.element"):60103,ey=st?Symbol.for("react.portal"):60106,Kd=st?Symbol.for("react.fragment"):60107,Qd=st?Symbol.for("react.strict_mode"):60108,Xd=st?Symbol.for("react.profiler"):60114,Zd=st?Symbol.for("react.provider"):60109,Jd=st?Symbol.for("react.context"):60110,ty=st?Symbol.for("react.async_mode"):60111,ef=st?Symbol.for("react.concurrent_mode"):60111,tf=st?Symbol.for("react.forward_ref"):60112,nf=st?Symbol.for("react.suspense"):60113,eN=st?Symbol.for("react.suspense_list"):60120,rf=st?Symbol.for("react.memo"):60115,of=st?Symbol.for("react.lazy"):60116,tN=st?Symbol.for("react.block"):60121,nN=st?Symbol.for("react.fundamental"):60117,rN=st?Symbol.for("react.responder"):60118,iN=st?Symbol.for("react.scope"):60119;function en(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jg:switch(e=e.type,e){case ty:case ef:case Kd:case Xd:case Qd:case nf:return e;default:switch(e=e&&e.$$typeof,e){case Jd:case tf:case of:case rf:case Zd:return e;default:return t}}case ey:return t}}}function Ux(e){return en(e)===ef}me.AsyncMode=ty;me.ConcurrentMode=ef;me.ContextConsumer=Jd;me.ContextProvider=Zd;me.Element=Jg;me.ForwardRef=tf;me.Fragment=Kd;me.Lazy=of;me.Memo=rf;me.Portal=ey;me.Profiler=Xd;me.StrictMode=Qd;me.Suspense=nf;me.isAsyncMode=function(e){return Ux(e)||en(e)===ty};me.isConcurrentMode=Ux;me.isContextConsumer=function(e){return en(e)===Jd};me.isContextProvider=function(e){return en(e)===Zd};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jg};me.isForwardRef=function(e){return en(e)===tf};me.isFragment=function(e){return en(e)===Kd};me.isLazy=function(e){return en(e)===of};me.isMemo=function(e){return en(e)===rf};me.isPortal=function(e){return en(e)===ey};me.isProfiler=function(e){return en(e)===Xd};me.isStrictMode=function(e){return en(e)===Qd};me.isSuspense=function(e){return en(e)===nf};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kd||e===ef||e===Xd||e===Qd||e===nf||e===eN||typeof e=="object"&&e!==null&&(e.$$typeof===of||e.$$typeof===rf||e.$$typeof===Zd||e.$$typeof===Jd||e.$$typeof===tf||e.$$typeof===nN||e.$$typeof===rN||e.$$typeof===iN||e.$$typeof===tN)};me.typeOf=en;Vx.exports=me;var oN=Vx.exports,Wx=oN,sN={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aN={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hx={};Hx[Wx.ForwardRef]=sN;Hx[Wx.Memo]=aN;var lN=!0;function Yx(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var ny=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||lN===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ry=function(t,n,r){ny(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function uN(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dN=/[A-Z]|^ms/g,fN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gx=function(t){return t.charCodeAt(1)===45},sb=function(t){return t!=null&&typeof t!="boolean"},Nh=jx(function(e){return Gx(e)?e:e.replace(dN,"-$&").toLowerCase()}),ab=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fN,function(r,i,o){return Jn={name:i,styles:o,next:Jn},i})}return cN[t]!==1&&!Gx(t)&&typeof n=="number"&&n!==0?n+"px":n};function wl(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Jn={name:i.name,styles:i.styles,next:Jn},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Jn={name:s.name,styles:s.styles,next:Jn},s=s.next;var a=o.styles+";";return a}return hN(e,t,n)}case"function":{if(e!==void 0){var l=Jn,u=n(e);return Jn=l,wl(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function hN(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=wl(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":sb(a)&&(r+=Nh(o)+":"+ab(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)sb(s[l])&&(r+=Nh(o)+":"+ab(o,s[l])+";");else{var u=wl(e,t,s);switch(o){case"animation":case"animationName":{r+=Nh(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var lb=/label:\s*([^\s;{]+)\s*(;|$)/g,Jn;function sf(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Jn=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=wl(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=wl(n,t,e[a]),r){var l=o;i+=l[a]}lb.lastIndex=0;for(var u="",c;(c=lb.exec(i))!==null;)u+="-"+c[1];var d=uN(i)+u;return{name:d,styles:i,next:Jn}}var pN=function(t){return t()},qx=Bp.useInsertionEffect?Bp.useInsertionEffect:!1,Kx=qx||pN,ub=qx||w.useLayoutEffect,iy=w.createContext(typeof HTMLElement<"u"?JF({key:"css"}):null);iy.Provider;var mN=function(){return w.useContext(iy)},oy=function(t){return w.forwardRef(function(n,r){var i=w.useContext(iy);return t(n,i,r)})},Eo=w.createContext({}),qK=function(){return w.useContext(Eo)},gN=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Zc({},t,n)},yN=ib(function(e){return ib(function(t){return gN(e,t)})}),vN=function(t){var n=w.useContext(Eo);return t.theme!==n&&(n=yN(n)(t.theme)),w.createElement(Eo.Provider,{value:n},t.children)},sy={}.hasOwnProperty,tm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bN=function(t,n){var r={};for(var i in n)sy.call(n,i)&&(r[i]=n[i]);return r[tm]=t,r},SN=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return ny(n,r,i),Kx(function(){return ry(n,r,i)}),null},wN=oy(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[tm],o=[r],s="";typeof e.className=="string"?s=Yx(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=sf(o,void 0,w.useContext(Eo));s+=t.key+"-"+a.name;var l={};for(var u in e)sy.call(e,u)&&u!=="css"&&u!==tm&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),w.createElement(w.Fragment,null,w.createElement(SN,{cache:t,serialized:a,isStringTag:typeof i=="string"}),w.createElement(i,l))}),xN=wN,cb=function(t,n){var r=arguments;if(n==null||!sy.call(n,"css"))return w.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=xN,o[1]=bN(t,n);for(var s=2;s<i;s++)o[s]=r[s];return w.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(cb||(cb={}));var af=oy(function(e,t){var n=e.styles,r=sf([n],void 0,w.useContext(Eo)),i=w.useRef();return ub(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),ub(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&ry(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function kN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sf(t)}function _N(){var e=kN.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const ay=w.createContext({});ay.displayName="ColorModeContext";function su(){const e=w.useContext(ay);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function db(e,t){const{colorMode:n}=su();return n==="dark"?t:e}const Uu={light:"chakra-ui-light",dark:"chakra-ui-dark"};function CN(e={}){const{preventTransition:t=!0,nonce:n}=e,r={setDataset:i=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Uu.dark:Uu.light),document.body.classList.remove(i?Uu.light:Uu.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),s=a=>{i(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(s):o.addEventListener("change",s),()=>{typeof o.removeListener=="function"?o.removeListener(s):o.removeEventListener("change",s)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const TN="chakra-ui-color-mode";function EN(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const PN=EN(TN),fb=()=>{},RN=jR()?w.useLayoutEffect:w.useEffect;function hb(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const Qx=function(t){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:s}={},colorModeManager:a=PN}=t,l=mN(),u=o==="dark"?"dark":"light",[c,d]=w.useState(()=>hb(a,u)),[f,y]=w.useState(()=>hb(a)),{getSystemTheme:m,setClassName:v,setDataset:S,addListener:g}=w.useMemo(()=>CN({preventTransition:s,nonce:l==null?void 0:l.nonce}),[s,l==null?void 0:l.nonce]),h=o==="system"&&!c?f:c,p=w.useCallback(R=>{const P=R==="system"?m():R;d(P),v(P==="dark"),S(P),a.set(P)},[a,m,v,S]);RN(()=>{o==="system"&&y(m())},[]),w.useEffect(()=>{const R=a.get();if(R){p(R);return}if(o==="system"){p("system");return}p(u)},[a,u,o,p]);const x=w.useCallback(()=>{p(h==="dark"?"light":"dark")},[h,p]);w.useEffect(()=>{if(i)return g(p)},[i,g,p]);const C=w.useMemo(()=>({colorMode:n??h,toggleColorMode:n?fb:x,setColorMode:n?fb:p,forced:n!==void 0}),[h,x,p,n]);return M.jsx(ay.Provider,{value:C,children:r})};Qx.displayName="ColorModeProvider";const Xx=String.raw,Zx=Xx`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,AN=()=>M.jsx(af,{styles:Zx}),MN=({scope:e=""})=>M.jsx(af,{styles:Xx`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${Zx}
    `});function DN(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=w.useMemo(()=>fM(n),[n]);return M.jsxs(vN,{theme:i,children:[M.jsx(ON,{root:t}),r]})}function ON({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return M.jsx(af,{styles:n=>({[t]:n.__cssVars})})}zi({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function KK(e){return zi({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function $N(){const{colorMode:e}=su();return M.jsx(af,{styles:t=>{const n=hx(t,"styles.global"),r=nr(n,{theme:t,colorMode:e});return r?vx(r)(t):void 0}})}const[IN,FN]=zi({strict:!1,name:"PortalManagerContext"});function Jx(e){const{children:t,zIndex:n}=e;return M.jsx(IN,{value:{zIndex:n},children:t})}Jx.displayName="PortalManager";const ly=w.createContext({getDocument(){return document},getWindow(){return window}});ly.displayName="EnvironmentContext";function QK({defer:e}={}){const[,t]=w.useReducer(n=>n+1,0);return ml(()=>{e&&t()},[e]),w.useContext(ly)}function ek(e){const{children:t,environment:n,disabled:r}=e,i=w.useRef(null),o=w.useMemo(()=>n||{getDocument:()=>{var a;return((a=i.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=i.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return M.jsxs(ly.Provider,{value:o,children:[t,s&&M.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}ek.displayName="EnvironmentProvider";const NN=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=M.jsx(ek,{environment:a,disabled:u,children:t});return M.jsx(DN,{theme:s,cssVarsRoot:l,children:M.jsxs(Qx,{colorModeManager:n,options:s.config,children:[o?M.jsx(MN,{scope:i}):M.jsx(AN,{}),!c&&M.jsx($N,{}),r?M.jsx(Jx,{zIndex:r,children:d}):d]})})},tk=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),lf=w.createContext({}),au=w.createContext(null),uf=typeof document<"u",uy=uf?w.useLayoutEffect:w.useEffect,nk=w.createContext({strict:!1}),cy=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),LN="framerAppearId",rk="data-"+cy(LN);function zN(e,t,n,r){const{visualElement:i}=w.useContext(lf),o=w.useContext(nk),s=w.useContext(au),a=w.useContext(tk).reducedMotion,l=w.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;w.useInsertionEffect(()=>{u&&u.update(n,s)});const c=w.useRef(!!(n[rk]&&!window.HandoffComplete));return uy(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function ns(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function jN(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ns(n)&&(n.current=r))},[t])}function xl(e){return typeof e=="string"||Array.isArray(e)}function cf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const dy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fy=["initial",...dy];function df(e){return cf(e.animate)||fy.some(t=>xl(e[t]))}function ik(e){return!!(df(e)||e.variants)}function BN(e,t){if(df(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xl(n)?n:void 0,animate:xl(r)?r:void 0}}return e.inherit!==!1?t:{}}function VN(e){const{initial:t,animate:n}=BN(e,w.useContext(lf));return w.useMemo(()=>({initial:t,animate:n}),[pb(t),pb(n)])}function pb(e){return Array.isArray(e)?e.join(" "):e}const mb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},kl={};for(const e in mb)kl[e]={isEnabled:t=>mb[e].some(n=>!!t[n])};function UN(e){for(const t in e)kl[t]={...kl[t],...e[t]}}const hy=w.createContext({}),ok=w.createContext({}),WN=Symbol.for("motionComponentSymbol");function HN({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&UN(e);function o(a,l){let u;const c={...w.useContext(tk),...a,layoutId:YN(a)},{isStatic:d}=c,f=VN(a),y=r(a,d);if(!d&&uf){f.visualElement=zN(i,y,c,t);const m=w.useContext(ok),v=w.useContext(nk).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,v,e,m))}return w.createElement(lf.Provider,{value:f},u&&f.visualElement?w.createElement(u,{visualElement:f.visualElement,...c}):null,n(i,a,jN(y,f.visualElement,l),y,d,f.visualElement))}const s=w.forwardRef(o);return s[WN]=i,s}function YN({layoutId:e}){const t=w.useContext(hy).id;return t&&e!==void 0?t+"-"+e:e}function GN(e){function t(r,i={}){return HN(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const qN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function py(e){return typeof e!="string"||e.includes("-")?!1:!!(qN.indexOf(e)>-1||/[A-Z]/.test(e))}const Jc={};function KN(e){Object.assign(Jc,e)}const lu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],No=new Set(lu);function sk(e,{layout:t,layoutId:n}){return No.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jc[e]||e==="opacity")}const Wt=e=>!!(e&&e.getVelocity),QN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XN=lu.length;function ZN(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<XN;s++){const a=lu[s];if(e[a]!==void 0){const l=QN[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const ak=e=>t=>typeof t=="string"&&t.startsWith(e),lk=ak("--"),nm=ak("var(--"),JN=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,eL=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$i=(e,t,n)=>Math.min(Math.max(n,e),t),Lo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ja={...Lo,transform:e=>$i(0,1,e)},Wu={...Lo,default:1},el=e=>Math.round(e*1e5)/1e5,ff=/(-)?([\d]*\.?[\d])+/g,uk=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tL=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function uu(e){return typeof e=="string"}const cu=e=>({test:t=>uu(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ti=cu("deg"),or=cu("%"),Y=cu("px"),nL=cu("vh"),rL=cu("vw"),gb={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)},yb={...Lo,transform:Math.round},ck={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:ti,rotateX:ti,rotateY:ti,rotateZ:ti,scale:Wu,scaleX:Wu,scaleY:Wu,scaleZ:Wu,skew:ti,skewX:ti,skewY:ti,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:Ja,originX:gb,originY:gb,originZ:Y,zIndex:yb,fillOpacity:Ja,strokeOpacity:Ja,numOctaves:yb};function my(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(lk(d)){o[d]=f;continue}const y=ck[d],m=eL(f,y);if(No.has(d)){if(l=!0,s[d]=m,!c)continue;f!==(y.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):i[d]=m}if(t.transform||(l||r?i.transform=ZN(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:y=0}=a;i.transformOrigin=`${d} ${f} ${y}`}}const gy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dk(e,t,n){for(const r in t)!Wt(t[r])&&!sk(r,n)&&(e[r]=t[r])}function iL({transformTemplate:e},t,n){return w.useMemo(()=>{const r=gy();return my(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function oL(e,t,n){const r=e.style||{},i={};return dk(i,r,e),Object.assign(i,iL(e,t,n)),e.transformValues?e.transformValues(i):i}function sL(e,t,n){const r={},i=oL(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const aL=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ed(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||aL.has(e)}let fk=e=>!ed(e);function lL(e){e&&(fk=t=>t.startsWith("on")?!ed(t):e(t))}try{lL(require("@emotion/is-prop-valid").default)}catch{}function uL(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(fk(i)||n===!0&&ed(i)||!t&&!ed(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function vb(e,t,n){return typeof e=="string"?e:Y.transform(t+n*e)}function cL(e,t,n){const r=vb(t,e.x,e.width),i=vb(n,e.y,e.height);return`${r} ${i}`}const dL={offset:"stroke-dashoffset",array:"stroke-dasharray"},fL={offset:"strokeDashoffset",array:"strokeDasharray"};function hL(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?dL:fL;e[o.offset]=Y.transform(-r);const s=Y.transform(t),a=Y.transform(n);e[o.array]=`${s} ${a}`}function yy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(my(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:m,dimensions:v}=e;y.transform&&(v&&(m.transform=y.transform),delete y.transform),v&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=cL(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),s!==void 0&&hL(y,s,a,l,!1)}const hk=()=>({...gy(),attrs:{}}),vy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pL(e,t,n,r){const i=w.useMemo(()=>{const o=hk();return yy(o,t,{enableHardwareAcceleration:!1},vy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};dk(o,e.style,e),i.style={...o,...i.style}}return i}function mL(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(py(n)?pL:sL)(r,o,s,n),c={...uL(r,typeof n=="string",e),...l,ref:i},{children:d}=r,f=w.useMemo(()=>Wt(d)?d.get():d,[d]);return w.createElement(n,{...c,children:f})}}function pk(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const mk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gk(e,t,n,r){pk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(mk.has(i)?i:cy(i),t.attrs[i])}function by(e,t){const{style:n}=e,r={};for(const i in n)(Wt(n[i])||t.style&&Wt(t.style[i])||sk(i,e))&&(r[i]=n[i]);return r}function yk(e,t){const n=by(e,t);for(const r in e)if(Wt(e[r])||Wt(t[r])){const i=lu.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Sy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function vk(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const td=e=>Array.isArray(e),gL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yL=e=>td(e)?e[e.length-1]||0:e;function Ec(e){const t=Wt(e)?e.get():e;return gL(t)?t.toValue():t}function vL({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:bL(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const bk=e=>(t,n)=>{const r=w.useContext(lf),i=w.useContext(au),o=()=>vL(e,t,r,i);return n?o():vk(o)};function bL(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=Ec(o[f]);let{initial:s,animate:a}=e;const l=df(e),u=ik(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!cf(d)&&(Array.isArray(d)?d:[d]).forEach(y=>{const m=Sy(e,y);if(!m)return;const{transitionEnd:v,transition:S,...g}=m;for(const h in g){let p=g[h];if(Array.isArray(p)){const x=c?p.length-1:0;p=p[x]}p!==null&&(i[h]=p)}for(const h in v)i[h]=v[h]}),i}const We=e=>e;class bb{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function SL(e){let t=new bb,n=new bb,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const c=t.order[u];c(l),s.has(c)&&(a.schedule(c),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const Hu=["prepare","read","update","preRender","render","postRender"],wL=40;function xL(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Hu.reduce((d,f)=>(d[f]=SL(()=>n=!0),d),{}),s=d=>o[d].process(i),a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,wL),1),i.timestamp=d,i.isProcessing=!0,Hu.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:Hu.reduce((d,f)=>{const y=o[f];return d[f]=(m,v=!1,S=!1)=>(n||l(),y.schedule(m,v,S)),d},{}),cancel:d=>Hu.forEach(f=>o[f].cancel(d)),state:i,steps:o}}const{schedule:Se,cancel:Lr,state:yt,steps:Lh}=xL(typeof requestAnimationFrame<"u"?requestAnimationFrame:We,!0),kL={useVisualState:bk({scrapeMotionValuesFromProps:yk,createRenderState:hk,onMount:(e,t,{renderState:n,latestValues:r})=>{Se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Se.render(()=>{yy(n,r,{enableHardwareAcceleration:!1},vy(t.tagName),e.transformTemplate),gk(t,n)})}})},_L={useVisualState:bk({scrapeMotionValuesFromProps:by,createRenderState:gy})};function CL(e,{forwardMotionProps:t=!1},n,r){return{...py(e)?kL:_L,preloadedFeatures:n,useRender:mL(t),createVisualElement:r,Component:e}}function Cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Sk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function hf(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const TL=e=>t=>Sk(t)&&e(t,hf(t));function Mr(e,t,n,r){return Cr(e,t,TL(n),r)}const EL=(e,t)=>n=>t(e(n)),wi=(...e)=>e.reduce(EL);function wk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Sb=wk("dragHorizontal"),wb=wk("dragVertical");function xk(e){let t=!1;if(e==="y")t=wb();else if(e==="x")t=Sb();else{const n=Sb(),r=wb();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function kk(){const e=xk(!0);return e?(e(),!1):!0}class ji{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xb(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||kk())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Se.update(()=>a[r](o,s))};return Mr(e.current,n,i,{passive:!e.getProps()[r]})}class PL extends ji{mount(){this.unmount=wi(xb(this.node,!0),xb(this.node,!1))}unmount(){}}class RL extends ji{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wi(Cr(this.node.current,"focus",()=>this.onFocus()),Cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _k=(e,t)=>t?e===t?!0:_k(e,t.parentElement):!1;function zh(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,hf(n))}class AL extends ji{constructor(){super(...arguments),this.removeStartListeners=We,this.removeEndListeners=We,this.removeAccessibleListeners=We,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Mr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();Se.update(()=>{!d&&!_k(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Mr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=wi(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||zh("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Se.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Cr(this.node.current,"keyup",s),zh("down",(a,l)=>{this.startPress(a,l)})},n=Cr(this.node.current,"keydown",t),r=()=>{this.isPressing&&zh("cancel",(o,s)=>this.cancelPress(o,s))},i=Cr(this.node.current,"blur",r);this.removeAccessibleListeners=wi(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Se.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!kk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Se.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Mr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Cr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=wi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const rm=new WeakMap,jh=new WeakMap,ML=e=>{const t=rm.get(e.target);t&&t(e)},DL=e=>{e.forEach(ML)};function OL({root:e,...t}){const n=e||document;jh.has(n)||jh.set(n,{});const r=jh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(DL,{root:e,...t})),r[i]}function $L(e,t,n){const r=OL(t);return rm.set(e,n),r.observe(e),()=>{rm.delete(e),r.unobserve(e)}}const IL={some:0,all:1};class FL extends ji{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:IL[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return $L(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(NL(t,n))&&this.startObserver()}unmount(){}}function NL({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LL={inView:{Feature:FL},tap:{Feature:AL},focus:{Feature:RL},hover:{Feature:PL}};function Ck(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function zL(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function jL(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function pf(e,t,n){const r=e.getProps();return Sy(r,t,n!==void 0?n:r.custom,zL(e),jL(e))}let wy=We;const wo=e=>e*1e3,Dr=e=>e/1e3,BL={current:!1},Tk=e=>Array.isArray(e)&&typeof e[0]=="number";function Ek(e){return!!(!e||typeof e=="string"&&Pk[e]||Tk(e)||Array.isArray(e)&&e.every(Ek))}const ja=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ja([0,.65,.55,1]),circOut:ja([.55,0,1,.45]),backIn:ja([.31,.01,.66,-.59]),backOut:ja([.33,1.53,.69,.99])};function Rk(e){if(e)return Tk(e)?ja(e):Array.isArray(e)?e.map(Rk):Pk[e]}function VL(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Rk(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function UL(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Ak=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,WL=1e-7,HL=12;function YL(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Ak(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>WL&&++a<HL);return s}function du(e,t,n,r){if(e===t&&n===r)return We;const i=o=>YL(o,0,1,e,n);return o=>o===0||o===1?o:Ak(i(o),t,r)}const GL=du(.42,0,1,1),qL=du(0,0,.58,1),Mk=du(.42,0,.58,1),KL=e=>Array.isArray(e)&&typeof e[0]!="number",Dk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ok=e=>t=>1-e(1-t),xy=e=>1-Math.sin(Math.acos(e)),$k=Ok(xy),QL=Dk(xy),Ik=du(.33,1.53,.69,.99),ky=Ok(Ik),XL=Dk(ky),ZL=e=>(e*=2)<1?.5*ky(e):.5*(2-Math.pow(2,-10*(e-1))),JL={linear:We,easeIn:GL,easeInOut:Mk,easeOut:qL,circIn:xy,circInOut:QL,circOut:$k,backIn:ky,backInOut:XL,backOut:Ik,anticipate:ZL},kb=e=>{if(Array.isArray(e)){wy(e.length===4);const[t,n,r,i]=e;return du(t,n,r,i)}else if(typeof e=="string")return JL[e];return e},_y=(e,t)=>n=>!!(uu(n)&&tL.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Fk=(e,t,n)=>r=>{if(!uu(r))return r;const[i,o,s,a]=r.match(ff);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ez=e=>$i(0,255,e),Bh={...Lo,transform:e=>Math.round(ez(e))},oo={test:_y("rgb","red"),parse:Fk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bh.transform(e)+", "+Bh.transform(t)+", "+Bh.transform(n)+", "+el(Ja.transform(r))+")"};function tz(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const im={test:_y("#"),parse:tz,transform:oo.transform},rs={test:_y("hsl","hue"),parse:Fk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+or.transform(el(t))+", "+or.transform(el(n))+", "+el(Ja.transform(r))+")"},_t={test:e=>oo.test(e)||im.test(e)||rs.test(e),parse:e=>oo.test(e)?oo.parse(e):rs.test(e)?rs.parse(e):im.parse(e),transform:e=>uu(e)?e:e.hasOwnProperty("red")?oo.transform(e):rs.transform(e)},Fe=(e,t,n)=>-n*e+n*t+e;function Vh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nz({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Vh(l,a,e+1/3),o=Vh(l,a,e),s=Vh(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Uh=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},rz=[im,oo,rs],iz=e=>rz.find(t=>t.test(e));function _b(e){const t=iz(e);let n=t.parse(e);return t===rs&&(n=nz(n)),n}const Nk=(e,t)=>{const n=_b(e),r=_b(t),i={...n};return o=>(i.red=Uh(n.red,r.red,o),i.green=Uh(n.green,r.green,o),i.blue=Uh(n.blue,r.blue,o),i.alpha=Fe(n.alpha,r.alpha,o),oo.transform(i))};function oz(e){var t,n;return isNaN(e)&&uu(e)&&(((t=e.match(ff))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(uk))===null||n===void 0?void 0:n.length)||0)>0}const Lk={regex:JN,countKey:"Vars",token:"${v}",parse:We},zk={regex:uk,countKey:"Colors",token:"${c}",parse:_t.parse},jk={regex:ff,countKey:"Numbers",token:"${n}",parse:Lo.parse};function Wh(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function nd(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Wh(n,Lk),Wh(n,zk),Wh(n,jk),n}function Bk(e){return nd(e).values}function Vk(e){const{values:t,numColors:n,numVars:r,tokenised:i}=nd(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(Lk.token,s[l]):l<r+n?a=a.replace(zk.token,_t.transform(s[l])):a=a.replace(jk.token,el(s[l]));return a}}const sz=e=>typeof e=="number"?0:e;function az(e){const t=Bk(e);return Vk(e)(t.map(sz))}const Ii={test:oz,parse:Bk,createTransformer:Vk,getAnimatableNone:az},Uk=(e,t)=>n=>`${n>0?t:e}`;function Wk(e,t){return typeof e=="number"?n=>Fe(e,t,n):_t.test(e)?Nk(e,t):e.startsWith("var(")?Uk(e,t):Yk(e,t)}const Hk=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Wk(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},lz=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Wk(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Yk=(e,t)=>{const n=Ii.createTransformer(t),r=nd(e),i=nd(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?wi(Hk(r.values,i.values),n):Uk(e,t)},_l=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Cb=(e,t)=>n=>Fe(e,t,n);function uz(e){return typeof e=="number"?Cb:typeof e=="string"?_t.test(e)?Nk:Yk:Array.isArray(e)?Hk:typeof e=="object"?lz:Cb}function cz(e,t,n){const r=[],i=n||uz(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||We:t;a=wi(l,a)}r.push(a)}return r}function Gk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(wy(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=cz(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const d=_l(e[c],e[c+1],u);return s[c](d)};return n?u=>l($i(e[0],e[o-1],u)):l}function dz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=_l(0,t,r);e.push(Fe(n,1,i))}}function fz(e){const t=[0];return dz(t,e.length-1),t}function hz(e,t){return e.map(n=>n*t)}function pz(e,t){return e.map(()=>t||Mk).splice(0,e.length-1)}function rd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=KL(r)?r.map(kb):kb(r),o={done:!1,value:t[0]},s=hz(n&&n.length===t.length?n:fz(t),e),a=Gk(s,t,{ease:Array.isArray(i)?i:pz(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function qk(e,t){return t?e*(1e3/t):0}const mz=5;function Kk(e,t,n){const r=Math.max(t-mz,0);return qk(n-e(r),t-r)}const Tb=.001,gz=.01,yz=10,vz=.05,bz=1;function Sz({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=$i(vz,bz,s),e=$i(gz,yz,Dr(e)),s<1?(i=u=>{const c=u*s,d=c*e,f=c-n,y=om(u,s),m=Math.exp(-d);return Tb-f/y*m},o=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),v=om(Math.pow(u,2),s);return(-i(u)+Tb>0?-1:1)*((f-y)*m)/v}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-.001+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=xz(i,o,a);if(e=wo(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const wz=12;function xz(e,t,n){let r=n;for(let i=1;i<wz;i++)r=r-e(r)/t(r);return r}function om(e,t){return e*Math.sqrt(1-t*t)}const kz=["duration","bounce"],_z=["stiffness","damping","mass"];function Eb(e,t){return t.some(n=>e[n]!==void 0)}function Cz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Eb(e,_z)&&Eb(e,kz)){const n=Sz(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Qk({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=Cz({...r,velocity:-Dr(r.velocity||0)}),y=d||0,m=l/(2*Math.sqrt(a*u)),v=o-i,S=Dr(Math.sqrt(a/u)),g=Math.abs(v)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let h;if(m<1){const p=om(S,m);h=x=>{const C=Math.exp(-m*S*x);return o-C*((y+m*S*v)/p*Math.sin(p*x)+v*Math.cos(p*x))}}else if(m===1)h=p=>o-Math.exp(-S*p)*(v+(y+S*v)*p);else{const p=S*Math.sqrt(m*m-1);h=x=>{const C=Math.exp(-m*S*x),R=Math.min(p*x,300);return o-C*((y+m*S*v)*Math.sinh(R)+p*v*Math.cosh(R))/p}}return{calculatedDuration:f&&c||null,next:p=>{const x=h(p);if(f)s.done=p>=c;else{let C=y;p!==0&&(m<1?C=Kk(h,p,x):C=0);const R=Math.abs(C)<=n,P=Math.abs(o-x)<=t;s.done=R&&P}return s.value=s.done?o:x,s}}}function Pb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=D=>a!==void 0&&D<a||l!==void 0&&D>l,m=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let v=n*t;const S=d+v,g=s===void 0?S:s(S);g!==S&&(v=g-d);const h=D=>-v*Math.exp(-D/r),p=D=>g+h(D),x=D=>{const I=h(D),B=p(D);f.done=Math.abs(I)<=u,f.value=f.done?g:B};let C,R;const P=D=>{y(f.value)&&(C=D,R=Qk({keyframes:[f.value,m(f.value)],velocity:Kk(p,D,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:D=>{let I=!1;return!R&&C===void 0&&(I=!0,x(D),P(D)),C!==void 0&&D>C?R.next(D-C):(!I&&x(D),f)}}}const Tz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Se.update(t,!0),stop:()=>Lr(t),now:()=>yt.isProcessing?yt.timestamp:performance.now()}},Rb=2e4;function Ab(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rb;)t+=n,r=e.next(t);return t>=Rb?1/0:t}const Ez={decay:Pb,inertia:Pb,tween:rd,keyframes:rd,spring:Qk};function id({autoplay:e=!0,delay:t=0,driver:n=Tz,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let y=1,m=!1,v,S;const g=()=>{S=new Promise(G=>{v=G})};g();let h;const p=Ez[i]||rd;let x;p!==rd&&typeof r[0]!="number"&&(x=Gk([0,100],r,{clamp:!1}),r=[0,100]);const C=p({...f,keyframes:r});let R;a==="mirror"&&(R=p({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let P="idle",D=null,I=null,B=null;C.calculatedDuration===null&&o&&(C.calculatedDuration=Ab(C));const{calculatedDuration:xe}=C;let Xe=1/0,at=1/0;xe!==null&&(Xe=xe+s,at=Xe*(o+1)-s);let Ge=0;const jn=G=>{if(I===null)return;y>0&&(I=Math.min(I,G)),y<0&&(I=Math.min(G-at/y,I)),D!==null?Ge=D:Ge=Math.round(G-I)*y;const ve=Ge-t*(y>=0?1:-1),re=y>=0?ve<0:ve>at;Ge=Math.max(ve,0),P==="finished"&&D===null&&(Ge=at);let Ht=Ge,Kr=C;if(o){const Uo=Math.min(Ge,at)/Xe;let Qr=Math.floor(Uo),Vn=Uo%1;!Vn&&Uo>=1&&(Vn=1),Vn===1&&Qr--,Qr=Math.min(Qr,o+1),!!(Qr%2)&&(a==="reverse"?(Vn=1-Vn,s&&(Vn-=s/Xe)):a==="mirror"&&(Kr=R)),Ht=$i(0,1,Vn)*Xe}const Ze=re?{done:!1,value:r[0]}:Kr.next(Ht);x&&(Ze.value=x(Ze.value));let{done:Bn}=Ze;!re&&xe!==null&&(Bn=y>=0?Ge>=at:Ge<=0);const Hi=D===null&&(P==="finished"||P==="running"&&Bn);return d&&d(Ze.value),Hi&&F(),Ze},$e=()=>{h&&h.stop(),h=void 0},Dt=()=>{P="idle",$e(),v(),g(),I=B=null},F=()=>{P="finished",c&&c(),$e(),v()},H=()=>{if(m)return;h||(h=n(jn));const G=h.now();l&&l(),D!==null?I=G-D:(!I||P==="finished")&&(I=G),P==="finished"&&g(),B=I,D=null,P="running",h.start()};e&&H();const q={then(G,ve){return S.then(G,ve)},get time(){return Dr(Ge)},set time(G){G=wo(G),Ge=G,D!==null||!h||y===0?D=G:I=h.now()-G/y},get duration(){const G=C.calculatedDuration===null?Ab(C):C.calculatedDuration;return Dr(G)},get speed(){return y},set speed(G){G===y||!h||(y=G,q.time=Dr(Ge))},get state(){return P},play:H,pause:()=>{P="paused",D=Ge},stop:()=>{m=!0,P!=="idle"&&(P="idle",u&&u(),Dt())},cancel:()=>{B!==null&&jn(B),Dt()},complete:()=>{P="finished"},sample:G=>(I=0,jn(G))};return q}function Pz(e){let t;return()=>(t===void 0&&(t=e()),t)}const Rz=Pz(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Az=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Yu=10,Mz=2e4,Dz=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Ek(t.ease);function Oz(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Rz()&&Az.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(p=>{a=p})};c();let{keyframes:d,duration:f=300,ease:y,times:m}=i;if(Dz(t,i)){const p=id({...i,repeat:0,delay:0});let x={done:!1,value:d[0]};const C=[];let R=0;for(;!x.done&&R<Mz;)x=p.sample(R),C.push(x.value),R+=Yu;m=void 0,d=C,f=R-Yu,y="linear"}const v=VL(e.owner.current,t,d,{...i,duration:f,ease:y,times:m}),S=()=>{u=!1,v.cancel()},g=()=>{u=!0,Se.update(S),a(),c()};return v.onfinish=()=>{u||(e.set(UL(d,i)),r&&r(),g())},{then(p,x){return l.then(p,x)},attachTimeline(p){return v.timeline=p,v.onfinish=null,We},get time(){return Dr(v.currentTime||0)},set time(p){v.currentTime=wo(p)},get speed(){return v.playbackRate},set speed(p){v.playbackRate=p},get duration(){return Dr(f)},play:()=>{s||(v.play(),Lr(S))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:p}=v;if(p){const x=id({...i,autoplay:!1});e.setWithVelocity(x.sample(p-Yu).value,x.sample(p).value,Yu)}g()},complete:()=>{u||v.finish()},cancel:g}}function $z({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:We,pause:We,stop:We,then:o=>(o(),Promise.resolve()),cancel:We,complete:We});return t?id({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Iz={type:"spring",stiffness:500,damping:25,restSpeed:10},Fz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Nz={type:"keyframes",duration:.8},Lz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zz=(e,{keyframes:t})=>t.length>2?Nz:No.has(e)?e.startsWith("scale")?Fz(t[1]):Iz:Lz,sm=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ii.test(t)||t==="0")&&!t.startsWith("url(")),jz=new Set(["brightness","contrast","saturate","opacity"]);function Bz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ff)||[];if(!r)return e;const i=n.replace(r,"");let o=jz.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Vz=/([a-z-]*)\(.*?\)/g,am={...Ii,getAnimatableNone:e=>{const t=e.match(Vz);return t?t.map(Bz).join(" "):e}},Uz={...ck,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:am,WebkitFilter:am},Cy=e=>Uz[e];function Xk(e,t){let n=Cy(e);return n!==am&&(n=Ii),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zk=e=>/^0[^.\s]+$/.test(e);function Wz(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Zk(e)}function Hz(e,t,n,r){const i=sm(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),Wz(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const c=l[u];o[c]=Xk(t,a)}return o}function Yz({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Ty(e,t){return e[t]||e.default||e}const Gz={skipAnimations:!1},Ey=(e,t,n,r={})=>i=>{const o=Ty(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-wo(s);const l=Hz(t,e,n,o),u=l[0],c=l[l.length-1],d=sm(e,u),f=sm(e,c);let y={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Yz(o)||(y={...y,...zz(e,y)}),y.duration&&(y.duration=wo(y.duration)),y.repeatDelay&&(y.repeatDelay=wo(y.repeatDelay)),!d||!f||BL.current||o.type===!1||Gz.skipAnimations)return $z(y);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Oz(t,e,y);if(m)return m}return id(y)};function od(e){return!!(Wt(e)&&e.add)}const Jk=e=>/^\-?\d*\.?\d+$/.test(e);function Py(e,t){e.indexOf(t)===-1&&e.push(t)}function Ry(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ay{constructor(){this.subscriptions=[]}add(t){return Py(this.subscriptions,t),()=>Ry(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const qz=e=>!isNaN(parseFloat(e));class Kz{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=yt;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Se.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=qz(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ay);const r=this.events[t].add(n);return t==="change"?()=>{r(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?qk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ys(e,t){return new Kz(e,t)}const e_=e=>t=>t.test(e),Qz={test:e=>e==="auto",parse:e=>e},t_=[Lo,Y,or,ti,rL,nL,Qz],xa=e=>t_.find(e_(e)),Xz=[...t_,_t,Ii],Zz=e=>Xz.find(e_(e));function Jz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ys(n))}function e4(e,t){const n=pf(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=yL(o[s]);Jz(e,s,a)}}function t4(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),c!=null&&(typeof c=="string"&&(Jk(c)||Zk(c))?c=parseFloat(c):!Zz(c)&&Ii.test(u)&&(c=Xk(l,u)),e.addValue(l,Ys(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function n4(e,t){return t?(t[e]||t.default||t).from:void 0}function r4(e,t,n){const r={};for(const i in e){const o=n4(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function i4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function o4(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function n_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const f=e.getValue(d),y=a[d];if(!f||y===void 0||c&&i4(c,d))continue;const m={delay:n,elapsed:0,...Ty(o||{},d)};if(window.HandoffAppearAnimations){const g=e.getProps()[rk];if(g){const h=window.HandoffAppearAnimations(g,d,f,Se);h!==null&&(m.elapsed=h,m.isHandoff=!0)}}let v=!m.isHandoff&&!o4(f,y);if(m.type==="spring"&&(f.getVelocity()||m.velocity)&&(v=!1),f.animation&&(v=!1),v)continue;f.start(Ey(d,f,y,e.shouldReduceMotion&&No.has(d)?{type:!1}:m));const S=f.animation;od(l)&&(l.add(d),S.then(()=>l.remove(d))),u.push(S)}return s&&Promise.all(u).then(()=>{s&&e4(e,s)}),u}function lm(e,t,n={}){const r=pf(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(n_(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return s4(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function s4(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(a4).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(lm(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function a4(e,t){return e.sortNodePosition(t)}function l4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>lm(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=lm(e,t,n);else{const i=typeof t=="function"?pf(e,t,n.custom):t;r=Promise.all(n_(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const u4=[...dy].reverse(),c4=dy.length;function d4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>l4(e,n,r)))}function f4(e){let t=d4(e);const n=p4();let r=!0;const i=(l,u)=>{const c=pf(e,u);if(c){const{transition:d,transitionEnd:f,...y}=c;l={...l,...y,...f}}return l};function o(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],y=new Set;let m={},v=1/0;for(let g=0;g<c4;g++){const h=u4[g],p=n[h],x=c[h]!==void 0?c[h]:d[h],C=xl(x),R=h===u?p.isActive:null;R===!1&&(v=g);let P=x===d[h]&&x!==c[h]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),p.protectedKeys={...m},!p.isActive&&R===null||!x&&!p.prevProp||cf(x)||typeof x=="boolean")continue;let I=h4(p.prevProp,x)||h===u&&p.isActive&&!P&&C||g>v&&C,B=!1;const xe=Array.isArray(x)?x:[x];let Xe=xe.reduce(i,{});R===!1&&(Xe={});const{prevResolvedValues:at={}}=p,Ge={...at,...Xe},jn=$e=>{I=!0,y.has($e)&&(B=!0,y.delete($e)),p.needsAnimating[$e]=!0};for(const $e in Ge){const Dt=Xe[$e],F=at[$e];if(m.hasOwnProperty($e))continue;let H=!1;td(Dt)&&td(F)?H=!Ck(Dt,F):H=Dt!==F,H?Dt!==void 0?jn($e):y.add($e):Dt!==void 0&&y.has($e)?jn($e):p.protectedKeys[$e]=!0}p.prevProp=x,p.prevResolvedValues=Xe,p.isActive&&(m={...m,...Xe}),r&&e.blockInitialAnimation&&(I=!1),I&&(!P||B)&&f.push(...xe.map($e=>({animation:$e,options:{type:h,...l}})))}if(y.size){const g={};y.forEach(h=>{const p=e.getBaseTarget(h);p!==void 0&&(g[h]=p)}),f.push({animation:g})}let S=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(y=>{var m;return(m=y.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const y in n)n[y].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function h4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ck(t,e):!1}function Ki(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function p4(){return{animate:Ki(!0),whileInView:Ki(),whileHover:Ki(),whileTap:Ki(),whileDrag:Ki(),whileFocus:Ki(),exit:Ki()}}class m4 extends ji{constructor(t){super(t),t.animationState||(t.animationState=f4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),cf(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let g4=0;class y4 extends ji{constructor(){super(...arguments),this.id=g4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const v4={animation:{Feature:m4},exit:{Feature:y4}},Mb=(e,t)=>Math.abs(e-t);function b4(e,t){const n=Mb(e.x,t.x),r=Mb(e.y,t.y);return Math.sqrt(n**2+r**2)}class r_{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Yh(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=b4(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:m}=d,{timestamp:v}=yt;this.history.push({...m,timestamp:v});const{onStart:S,onMove:g}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Hh(f,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Yh(d.type==="pointercancel"?this.lastMoveEventInfo:Hh(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,S),m&&m(d,S)},!Sk(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=hf(t),a=Hh(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=yt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Yh(a,this.history)),this.removeListeners=wi(Mr(this.contextWindow,"pointermove",this.handlePointerMove),Mr(this.contextWindow,"pointerup",this.handlePointerUp),Mr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lr(this.updatePoint)}}function Hh(e,t){return t?{point:t(e.point)}:e}function Db(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yh({point:e},t){return{point:e,delta:Db(e,i_(t)),offset:Db(e,S4(t)),velocity:w4(t,.1)}}function S4(e){return e[0]}function i_(e){return e[e.length-1]}function w4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=i_(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wo(t)));)n--;if(!r)return{x:0,y:0};const o=Dr(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Zt(e){return e.max-e.min}function um(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ob(e,t,n,r=.5){e.origin=r,e.originPoint=Fe(t.min,t.max,e.origin),e.scale=Zt(n)/Zt(t),(um(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Fe(n.min,n.max,e.origin)-e.originPoint,(um(e.translate)||isNaN(e.translate))&&(e.translate=0)}function tl(e,t,n,r){Ob(e.x,t.x,n.x,r?r.originX:void 0),Ob(e.y,t.y,n.y,r?r.originY:void 0)}function $b(e,t,n){e.min=n.min+t.min,e.max=e.min+Zt(t)}function x4(e,t,n){$b(e.x,t.x,n.x),$b(e.y,t.y,n.y)}function Ib(e,t,n){e.min=t.min-n.min,e.max=e.min+Zt(t)}function nl(e,t,n){Ib(e.x,t.x,n.x),Ib(e.y,t.y,n.y)}function k4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Fe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Fe(n,e,r.max):Math.min(e,n)),e}function Fb(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function _4(e,{top:t,left:n,bottom:r,right:i}){return{x:Fb(e.x,n,i),y:Fb(e.y,t,r)}}function Nb(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function C4(e,t){return{x:Nb(e.x,t.x),y:Nb(e.y,t.y)}}function T4(e,t){let n=.5;const r=Zt(e),i=Zt(t);return i>r?n=_l(t.min,t.max-r,e.min):r>i&&(n=_l(e.min,e.max-i,t.min)),$i(0,1,n)}function E4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const cm=.35;function P4(e=cm){return e===!1?e=0:e===!0&&(e=cm),{x:Lb(e,"left","right"),y:Lb(e,"top","bottom")}}function Lb(e,t,n){return{min:zb(e,t),max:zb(e,n)}}function zb(e,t){return typeof e=="number"?e:e[t]||0}const jb=()=>({translate:0,scale:1,origin:0,originPoint:0}),is=()=>({x:jb(),y:jb()}),Bb=()=>({min:0,max:0}),qe=()=>({x:Bb(),y:Bb()});function ln(e){return[e("x"),e("y")]}function o_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function R4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function A4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gh(e){return e===void 0||e===1}function dm({scale:e,scaleX:t,scaleY:n}){return!Gh(e)||!Gh(t)||!Gh(n)}function Xi(e){return dm(e)||s_(e)||e.z||e.rotate||e.rotateX||e.rotateY}function s_(e){return Vb(e.x)||Vb(e.y)}function Vb(e){return e&&e!=="0%"}function sd(e,t,n){const r=e-n,i=t*r;return n+i}function Ub(e,t,n,r,i){return i!==void 0&&(e=sd(e,i,r)),sd(e,n,r)+t}function fm(e,t=0,n=1,r,i){e.min=Ub(e.min,t,n,r,i),e.max=Ub(e.max,t,n,r,i)}function a_(e,{x:t,y:n}){fm(e.x,t.translate,t.scale,t.originPoint),fm(e.y,n.translate,n.scale,n.originPoint)}function M4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&os(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,a_(e,s)),r&&Xi(o.latestValues)&&os(e,o.latestValues))}t.x=Wb(t.x),t.y=Wb(t.y)}function Wb(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ii(e,t){e.min=e.min+t,e.max=e.max+t}function Hb(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Fe(e.min,e.max,o);fm(e,t[n],t[r],s,t.scale)}const D4=["x","scaleX","originX"],O4=["y","scaleY","originY"];function os(e,t){Hb(e.x,t,D4),Hb(e.y,t,O4)}function l_(e,t){return o_(A4(e.getBoundingClientRect(),t))}function $4(e,t,n){const r=l_(e,n),{scroll:i}=t;return i&&(ii(r.x,i.offset.x),ii(r.y,i.offset.y)),r}const u_=({current:e})=>e?e.ownerDocument.defaultView:null,I4=new WeakMap;class F4{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(hf(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:m}=this.getProps();if(f&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=xk(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ln(S=>{let g=this.getAxisMotionValue(S).get()||0;if(or.test(g)){const{projection:h}=this.visualElement;if(h&&h.layout){const p=h.layout.layoutBox[S];p&&(g=Zt(p)*(parseFloat(g)/100))}}this.originPoint[S]=g}),m&&Se.update(()=>m(c,d),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:m,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(y&&this.currentDirection===null){this.currentDirection=N4(S),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),v&&v(c,d)},a=(c,d)=>this.stop(c,d),l=()=>ln(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new r_(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:u_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Se.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Gu(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=k4(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ns(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=_4(i.layoutBox,n):this.constraints=!1,this.elastic=P4(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ln(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=E4(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ns(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=$4(r,i.root,this.visualElement.getTransformPagePoint());let s=C4(i.layout.layoutBox,o);if(n){const a=n(R4(s));this.hasMutatedConstraints=!!a,a&&(s=o_(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ln(c=>{if(!Gu(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ey(t,r,0,n))}stopAnimation(){ln(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ln(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ln(n=>{const{drag:r}=this.getProps();if(!Gu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-Fe(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ns(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ln(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=T4({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ln(s=>{if(!Gu(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Fe(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;I4.set(this.visualElement,this);const t=this.visualElement.current,n=Mr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ns(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Cr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ln(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=cm,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Gu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function N4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class L4 extends ji{constructor(t){super(t),this.removeGroupControls=We,this.removeListeners=We,this.controls=new F4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||We}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yb=e=>(t,n)=>{e&&Se.update(()=>e(t,n))};class z4 extends ji{constructor(){super(...arguments),this.removePointerDownListener=We}onPointerDown(t){this.session=new r_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:u_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Yb(t),onStart:Yb(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Se.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Mr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function j4(){const e=w.useContext(au);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();return w.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function B4(){return V4(w.useContext(au))}function V4(e){return e===null?!0:e.isPresent}const Pc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ka={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Y.test(e))e=parseFloat(e);else return e;const n=Gb(e,t.target.x),r=Gb(e,t.target.y);return`${n}% ${r}%`}},U4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ii.parse(e);if(i.length>5)return r;const o=Ii.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=Fe(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class W4 extends ur.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;KN(H4),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Pc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function c_(e){const[t,n]=j4(),r=w.useContext(hy);return ur.createElement(W4,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(ok),isPresent:t,safeToRemove:n})}const H4={borderRadius:{...ka,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ka,borderTopRightRadius:ka,borderBottomLeftRadius:ka,borderBottomRightRadius:ka,boxShadow:U4},d_=["TopLeft","TopRight","BottomLeft","BottomRight"],Y4=d_.length,qb=e=>typeof e=="string"?parseFloat(e):e,Kb=e=>typeof e=="number"||Y.test(e);function G4(e,t,n,r,i,o){i?(e.opacity=Fe(0,n.opacity!==void 0?n.opacity:1,q4(r)),e.opacityExit=Fe(t.opacity!==void 0?t.opacity:1,0,K4(r))):o&&(e.opacity=Fe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Y4;s++){const a=`border${d_[s]}Radius`;let l=Qb(t,a),u=Qb(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Kb(l)===Kb(u)?(e[a]=Math.max(Fe(qb(l),qb(u),r),0),(or.test(u)||or.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Fe(t.rotate||0,n.rotate||0,r))}function Qb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const q4=f_(0,.5,$k),K4=f_(.5,.95,We);function f_(e,t,n){return r=>r<e?0:r>t?1:n(_l(e,t,r))}function Xb(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Xb(e.x,t.x),Xb(e.y,t.y)}function Zb(e,t,n,r,i){return e-=t,e=sd(e,1/n,r),i!==void 0&&(e=sd(e,1/i,r)),e}function Q4(e,t=0,n=1,r=.5,i,o=e,s=e){if(or.test(t)&&(t=parseFloat(t),t=Fe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Fe(o.min,o.max,r);e===o&&(a-=t),e.min=Zb(e.min,t,n,a,i),e.max=Zb(e.max,t,n,a,i)}function Jb(e,t,[n,r,i],o,s){Q4(e,t[n],t[r],t[i],t.scale,o,s)}const X4=["x","scaleX","originX"],Z4=["y","scaleY","originY"];function eS(e,t,n,r){Jb(e.x,t,X4,n?n.x:void 0,r?r.x:void 0),Jb(e.y,t,Z4,n?n.y:void 0,r?r.y:void 0)}function tS(e){return e.translate===0&&e.scale===1}function h_(e){return tS(e.x)&&tS(e.y)}function J4(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function p_(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function nS(e){return Zt(e.x)/Zt(e.y)}class e3{constructor(){this.members=[]}add(t){Py(this.members,t),t.scheduleRender()}remove(t){if(Ry(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const t3=(e,t)=>e.depth-t.depth;class n3{constructor(){this.children=[],this.isDirty=!1}add(t){Py(this.children,t),this.isDirty=!0}remove(t){Ry(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(t3),this.isDirty=!1,this.children.forEach(t)}}function r3(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Lr(r),e(o-t))};return Se.read(r,!0),()=>Lr(r)}function i3(e){window.MotionDebug&&window.MotionDebug.record(e)}function o3(e){return e instanceof SVGElement&&e.tagName!=="svg"}function s3(e,t,n){const r=Wt(e)?e:Ys(e);return r.start(Ey("",r,t,n)),r.animation}const iS=["","X","Y","Z"],a3={visibility:"hidden"},oS=1e3;let l3=0;const Zi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function m_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=l3++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Zi.totalNodes=Zi.resolvedTargetDeltas=Zi.recalculatedProjection=0,this.nodes.forEach(d3),this.nodes.forEach(g3),this.nodes.forEach(y3),this.nodes.forEach(f3),i3(Zi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new n3)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ay),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=o3(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=r3(f,250),Pc.hasAnimatedSinceResize&&(Pc.hasAnimatedSinceResize=!1,this.nodes.forEach(aS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||x3,{onLayoutAnimationStart:S,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!p_(this.targetLayout,m)||y,p=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||p||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,p);const x={...Ty(v,"layout"),onPlay:S,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||aS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(v3),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sS);return}this.isUpdating||this.nodes.forEach(p3),this.isUpdating=!1,this.nodes.forEach(m3),this.nodes.forEach(u3),this.nodes.forEach(c3),this.clearAllSnapshots();const a=performance.now();yt.delta=$i(0,1e3/60,a-yt.timestamp),yt.timestamp=a,yt.isProcessing=!0,Lh.update.process(yt),Lh.preRender.process(yt),Lh.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(h3),this.sharedNodes.forEach(b3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!h_(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||Xi(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),k3(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return qe();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(ii(a.x,l.offset.x),ii(a.y,l.offset.y)),a}removeElementScroll(s){const a=qe();sn(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;if(u!==this.root&&c&&d.layoutScroll){if(c.isRoot){sn(a,s);const{scroll:f}=this.root;f&&(ii(a.x,-f.offset.x),ii(a.y,-f.offset.y))}ii(a.x,c.offset.x),ii(a.y,c.offset.y)}}return a}applyTransform(s,a=!1){const l=qe();sn(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&os(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Xi(c.latestValues)&&os(l,c.latestValues)}return Xi(this.latestValues)&&os(l,this.latestValues),l}removeTransform(s){const a=qe();sn(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Xi(u.latestValues))continue;dm(u.latestValues)&&u.updateSnapshot();const c=qe(),d=u.measurePageBox();sn(c,d),eS(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Xi(this.latestValues)&&eS(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qe(),this.relativeTargetOrigin=qe(),nl(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=qe(),this.targetWithTransforms=qe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),x4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),a_(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qe(),this.relativeTargetOrigin=qe(),nl(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Zi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||dm(this.parent.latestValues)||s_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;sn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,y=this.treeScale.y;M4(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=is(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=is(),this.projectionDeltaWithTransform=is());const v=this.projectionTransform;tl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=rS(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==f||this.treeScale.y!==y)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Zi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=is();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=qe(),y=l?l.source:void 0,m=this.layout?this.layout.source:void 0,v=y!==m,S=this.getStack(),g=!S||S.members.length<=1,h=!!(v&&!g&&this.options.crossfade===!0&&!this.path.some(w3));this.animationProgress=0;let p;this.mixTargetDelta=x=>{const C=x/1e3;lS(d.x,s.x,C),lS(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),S3(this.relativeTarget,this.relativeTargetOrigin,f,C),p&&J4(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=qe()),sn(p,this.relativeTarget)),v&&(this.animationValues=c,G4(c,u,this.latestValues,C,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{Pc.hasAnimatedSinceResize=!0,this.currentAnimation=s3(0,oS,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&g_(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||qe();const d=Zt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Zt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}sn(a,l),os(a,c),tl(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new e3),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c<iS.length;c++){const d="rotate"+iS[c];l[d]&&(u[d]=l[d],s.setStaticValue(d,0))}s.render();for(const c in u)s.setStaticValue(c,u[c]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return a3;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ec(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ec(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Xi(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=rS(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:y,y:m}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const v in Jc){if(f[v]===void 0)continue;const{correct:S,applyTo:g}=Jc[v],h=u.transform==="none"?f[v]:S(f[v],d);if(g){const p=g.length;for(let x=0;x<p;x++)u[g[x]]=h}else u[v]=h}return this.options.layoutId&&(u.pointerEvents=d===this?Ec(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(sS),this.root.sharedNodes.clear()}}}function u3(e){e.updateLayout()}function c3(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ln(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=Zt(f);f.min=r[d].min,f.max=f.min+y}):g_(o,n.layoutBox,r)&&ln(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=Zt(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=is();tl(a,r,n.layoutBox);const l=is();s?tl(l,e.applyTransform(i,!0),n.measuredBox):tl(l,r,n.layoutBox);const u=!h_(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const m=qe();nl(m,n.layoutBox,f.layoutBox);const v=qe();nl(v,r,y.layoutBox),p_(m,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function d3(e){Zi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function f3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function h3(e){e.clearSnapshot()}function sS(e){e.clearMeasurements()}function p3(e){e.isLayoutDirty=!1}function m3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function aS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function g3(e){e.resolveTargetDelta()}function y3(e){e.calcProjection()}function v3(e){e.resetRotation()}function b3(e){e.removeLeadSnapshot()}function lS(e,t,n){e.translate=Fe(t.translate,0,n),e.scale=Fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function uS(e,t,n,r){e.min=Fe(t.min,n.min,r),e.max=Fe(t.max,n.max,r)}function S3(e,t,n,r){uS(e.x,t.x,n.x,r),uS(e.y,t.y,n.y,r)}function w3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const x3={duration:.45,ease:[.4,0,.1,1]},cS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),dS=cS("applewebkit/")&&!cS("chrome/")?Math.round:We;function fS(e){e.min=dS(e.min),e.max=dS(e.max)}function k3(e){fS(e.x),fS(e.y)}function g_(e,t,n){return e==="position"||e==="preserve-aspect"&&!um(nS(t),nS(n),.2)}const _3=m_({attachResizeListener:(e,t)=>Cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qh={current:void 0},y_=m_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qh.current){const e=new _3({});e.mount(window),e.setOptions({layoutScroll:!0}),qh.current=e}return qh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),C3={pan:{Feature:z4},drag:{Feature:L4,ProjectionNode:y_,MeasureLayout:c_}},T3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function E3(e){const t=T3.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function hm(e,t,n=1){const[r,i]=E3(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Jk(s)?parseFloat(s):s}else return nm(i)?hm(i,t,n+1):i}function P3(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!nm(o))return;const s=hm(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!nm(o))continue;const s=hm(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const R3=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),v_=e=>R3.has(e),A3=e=>Object.keys(e).some(v_),hS=e=>e===Lo||e===Y,pS=(e,t)=>parseFloat(e.split(", ")[t]),mS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return pS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?pS(o[1],e):0}},M3=new Set(["x","y","z"]),D3=lu.filter(e=>!M3.has(e));function O3(e){const t=[];return D3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Gs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mS(4,13),y:mS(5,14)};Gs.translateX=Gs.x;Gs.translateY=Gs.y;const $3=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Gs[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Gs[u](l,o)}),e},I3=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(v_);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=xa(c);const f=t[l];let y;if(td(f)){const m=f.length,v=f[0]===null?1:0;c=f[v],d=xa(c);for(let S=v;S<m&&f[S]!==null;S++)y?wy(xa(f[S])===y):y=xa(f[S])}else y=xa(f);if(d!==y)if(hS(d)&&hS(y)){const m=u.get();typeof m=="string"&&u.set(parseFloat(m)),typeof f=="string"?t[l]=parseFloat(f):Array.isArray(f)&&y===Y&&(t[l]=f.map(parseFloat))}else d!=null&&d.transform&&(y!=null&&y.transform)&&(c===0||f===0)?c===0?u.set(y.transform(c)):t[l]=d.transform(f):(s||(o=O3(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(f))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=$3(t,e,a);return o.length&&o.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),uf&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function F3(e,t,n,r){return A3(t)?I3(e,t,n,r):{target:t,transitionEnd:r}}const N3=(e,t,n,r)=>{const i=P3(e,t,r);return t=i.target,r=i.transitionEnd,F3(e,t,n,r)},pm={current:null},b_={current:!1};function L3(){if(b_.current=!0,!!uf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pm.current=e.matches;e.addListener(t),t()}else pm.current=!1}function z3(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Wt(o))e.addValue(i,o),od(r)&&r.add(i);else if(Wt(s))e.addValue(i,Ys(o,{owner:e})),od(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Ys(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const gS=new WeakMap,S_=Object.keys(kl),j3=S_.length,yS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],B3=fy.length;class V3{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Se.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=df(n),this.isVariantNode=ik(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Wt(f)&&(f.set(a[d],!1),od(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,gS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),b_.current||L3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gS.delete(this.current),this.projection&&this.projection.unmount(),Lr(this.notifyUpdate),Lr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=No.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Se.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<j3;l++){const u=S_[l],{isEnabled:c,Feature:d,ProjectionNode:f,MeasureLayout:y}=kl[u];f&&(s=f),c(n)&&(!this.features[u]&&d&&(this.features[u]=new d(this)),y&&(a=y))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:y}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||d&&ns(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:y})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yS.length;r++){const i=yS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=z3(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<B3;r++){const i=fy[r],o=this.props[i];(xl(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ys(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Sy(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Wt(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ay),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class w_ extends V3{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=r4(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){t4(this,r,s);const a=N3(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function U3(e){return window.getComputedStyle(e)}class W3 extends w_{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(No.has(n)){const r=Cy(n);return r&&r.default||0}else{const r=U3(t),i=(lk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return l_(t,n)}build(t,n,r,i){my(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return by(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Wt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){pk(t,n,r,i)}}class H3 extends w_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(No.has(n)){const r=Cy(n);return r&&r.default||0}return n=mk.has(n)?n:cy(n),t.getAttribute(n)}measureInstanceViewportBox(){return qe()}scrapeMotionValuesFromProps(t,n){return yk(t,n)}build(t,n,r,i){yy(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){gk(t,n,r,i)}mount(t){this.isSVGTag=vy(t.tagName),super.mount(t)}}const Y3=(e,t)=>py(e)?new H3(t,{enableHardwareAcceleration:!1}):new W3(t,{enableHardwareAcceleration:!0}),G3={layout:{ProjectionNode:y_,MeasureLayout:c_}},q3={...v4,...LL,...C3,...G3},K3=GN((e,t)=>CL(e,t,q3,Y3));function x_(){const e=w.useRef(!1);return uy(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Q3(){const e=x_(),[t,n]=w.useState(0),r=w.useCallback(()=>{e.current&&n(t+1)},[t]);return[w.useCallback(()=>Se.postRender(r),[r]),t]}class X3 extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Z3({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),i=w.useRef({width:0,height:0,top:0,left:0});return w.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${o}px !important;
            height: ${s}px !important;
            top: ${a}px !important;
            left: ${l}px !important;
          }
        `),()=>{document.head.removeChild(u)}},[t]),w.createElement(X3,{isPresent:t,childRef:r,sizeRef:i},w.cloneElement(e,{ref:r}))}const Kh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=vk(J3),l=w.useId(),u=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?void 0:[n]);return w.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),w.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=w.createElement(Z3,{isPresent:n},e)),w.createElement(au.Provider,{value:u},e)};function J3(){return new Map}function ej(e){return w.useEffect(()=>()=>e(),[])}const Ji=e=>e.key||"";function tj(e,t){e.forEach(n=>{const r=Ji(n);t.set(r,n)})}function nj(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const rj=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=w.useContext(hy).forceRender||Q3()[0],l=x_(),u=nj(e);let c=u;const d=w.useRef(new Map).current,f=w.useRef(c),y=w.useRef(new Map).current,m=w.useRef(!0);if(uy(()=>{m.current=!1,tj(u,y),f.current=c}),ej(()=>{m.current=!0,y.clear(),d.clear()}),m.current)return w.createElement(w.Fragment,null,c.map(h=>w.createElement(Kh,{key:Ji(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},h)));c=[...c];const v=f.current.map(Ji),S=u.map(Ji),g=v.length;for(let h=0;h<g;h++){const p=v[h];S.indexOf(p)===-1&&!d.has(p)&&d.set(p,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((h,p)=>{if(S.indexOf(p)!==-1)return;const x=y.get(p);if(!x)return;const C=v.indexOf(p);let R=h;if(!R){const P=()=>{d.delete(p);const D=Array.from(y.keys()).filter(I=>!S.includes(I));if(D.forEach(I=>y.delete(I)),f.current=u.filter(I=>{const B=Ji(I);return B===p||D.includes(B)}),!d.size){if(l.current===!1)return;a(),r&&r()}};R=w.createElement(Kh,{key:Ji(x),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:o,mode:s},x),d.set(p,R)}c.splice(C,0,R)}),c=c.map(h=>{const p=h.key;return d.has(p)?h:w.createElement(Kh,{key:Ji(h),isPresent:!0,presenceAffectsLayout:o,mode:s},h)}),w.createElement(w.Fragment,null,d.size?c:c.map(h=>w.cloneElement(h)))},ij=(e,t)=>e.find(n=>n.id===t);function vS(e,t){const n=k_(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function k_(e,t){for(const[n,r]of Object.entries(e))if(ij(r,t))return n}function oj(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function sj(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:s}}var aj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lj=jx(function(e){return aj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uj=lj,cj=function(t){return t!=="theme"},bS=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uj:cj},SS=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},dj=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return ny(n,r,i),Kx(function(){return ry(n,r,i)}),null},fj=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=SS(t,n,r),l=a||bS(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var y=c.length,m=1;m<y;m++)d.push(c[m],f[m])}var v=oy(function(S,g,h){var p=u&&S.as||i,x="",C=[],R=S;if(S.theme==null){R={};for(var P in S)R[P]=S[P];R.theme=w.useContext(Eo)}typeof S.className=="string"?x=Yx(g.registered,C,S.className):S.className!=null&&(x=S.className+" ");var D=sf(d.concat(C),g.registered,R);x+=g.key+"-"+D.name,s!==void 0&&(x+=" "+s);var I=u&&a===void 0?bS(p):l,B={};for(var xe in S)u&&xe==="as"||I(xe)&&(B[xe]=S[xe]);return B.className=x,h&&(B.ref=h),w.createElement(w.Fragment,null,w.createElement(dj,{cache:g,serialized:D,isStringTag:typeof p=="string"}),w.createElement(p,B))});return v.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=d,v.__emotion_forwardProp=a,Object.defineProperty(v,"toString",{value:function(){return"."+s}}),v.withComponent=function(S,g){var h=e(S,Zc({},n,g,{shouldForwardProp:SS(v,g,!0)}));return h.apply(void 0,d)},v}},hj=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],mm=fj.bind(null);hj.forEach(function(e){mm[e]=mm(e)});const pj=new Set([...zA,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),mj=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function gj(e){return(mj.has(e)||!pj.has(e))&&e[0]!=="_"}const yj=QR(mm),vj=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:o,...s}=t,[a]=JR(s,BA),l=nr(e,t),u=VR({},i,l,Bg(a),o),c=vx(u)(t.theme);return r?[c,r]:c};function Qh(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=gj);const i=vj({baseStyle:n}),o=yj(e,r)(i);return w.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:y}=su(),m=y?f:void 0;return w.createElement(o,{ref:u,"data-theme":m,...d},c)})}function bj(){const e=new Map;return new Proxy(Qh,{apply(t,n,r){return Qh(...r)},get(t,n){return e.has(n)||e.set(n,Qh(n)),e.get(n)}})}const Be=bj(),Sj={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},__=w.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=Sj,toastSpacing:c="0.5rem"}=e,[d,f]=w.useState(a),y=B4();zv(()=>{y||r==null||r()},[y]),zv(()=>{f(a)},[a]);const m=()=>f(null),v=()=>f(a),S=()=>{y&&i()};w.useEffect(()=>{y&&o&&i()},[y,o,i]),oA(S,d);const g=w.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=w.useMemo(()=>oj(s),[s]);return M.jsx(K3.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:v,custom:{position:s},style:h,children:M.jsx(Be.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:nr(n,{id:t,onClose:S})})})});__.displayName="ToastComponent";function vn(e){return w.forwardRef(e)}var wj=typeof Element<"u",xj=typeof Map=="function",kj=typeof Set=="function",_j=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Rc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Rc(e[r],t[r]))return!1;return!0}var o;if(xj&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Rc(r.value[1],t.get(r.value[0])))return!1;return!0}if(kj&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(_j&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wj&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Rc(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Cj=function(t,n){try{return Rc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Tj=nu(Cj);function C_(){const e=w.useContext(Eo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function Ej(){const e=su(),t=C_();return{...e,theme:t}}function Pj(e,t,n){if(t==null)return t;const r=i=>{var o,s;return(s=(o=e.__breakpoints)==null?void 0:o.asArray)==null?void 0:s[i]};return r(t)??r(n)??n}function Rj(e,t,n){if(t==null)return t;const r=i=>{var o,s;return(s=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:s.value};return r(t)??r(n)??n}function ZK(e,t,n){const r=C_();return Aj(e,t,n)(r)}function Aj(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const s=i.filter(Boolean),a=r.map((l,u)=>{if(e==="breakpoints")return Pj(o,l,s[u]??l);const c=`${e}.${l}`;return Rj(o,c,s[u]??l)});return Array.isArray(t)?a:a[0]}}function T_(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=Ej(),s=e?hx(i,`components.${e}`):void 0,a=n||s,l=hn({theme:i,colorMode:o},(a==null?void 0:a.defaultProps)??{},Bg(Vg(r,["children"])),(c,d)=>c?void 0:d),u=w.useRef({});if(a){const d=XA(a)(l);Tj(u.current,d)||(u.current=d)}return u.current}function ia(e,t={}){return T_(e,t)}function Mj(e,t={}){return T_(e,t)}const wS={path:M.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[M.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),M.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),M.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},fu=vn((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:s,className:a,__css:l,...u}=e,c=Nn("chakra-icon",a),d=ia("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...d},y={ref:t,focusable:o,className:c,__css:f},m=r??wS.viewBox;if(n&&typeof n!="string")return M.jsx(Be.svg,{as:n,...y,...u});const v=s??wS.path;return M.jsx(Be.svg,{verticalAlign:"middle",viewBox:m,...y,...u,children:v})});fu.displayName="Icon";function Dj(e){return M.jsx(fu,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Oj(e){return M.jsx(fu,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function xS(e){return M.jsx(fu,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const $j=_N({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),mf=vn((e,t)=>{const n=ia("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=na(e),u=Nn("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${$j} ${o} linear infinite`,...n};return M.jsx(Be.div,{ref:t,__css:c,className:u,...l,children:r&&M.jsx(Be.span,{srOnly:!0,children:r})})});mf.displayName="Spinner";const[Ij,My]=zi({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Fj,Dy]=zi({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),E_={info:{icon:Oj,colorScheme:"blue"},warning:{icon:xS,colorScheme:"orange"},success:{icon:Dj,colorScheme:"green"},error:{icon:xS,colorScheme:"red"},loading:{icon:mf,colorScheme:"blue"}};function Nj(e){return E_[e].colorScheme}function Lj(e){return E_[e].icon}const P_=vn(function(t,n){const{status:r="info",addRole:i=!0,...o}=na(t),s=t.colorScheme??Nj(r),a=Mj("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return M.jsx(Ij,{value:{status:r},children:M.jsx(Fj,{value:a,children:M.jsx(Be.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:Nn("chakra-alert",t.className),__css:l})})})});P_.displayName="Alert";function R_(e){const{status:t}=My(),n=Lj(t),r=Dy(),i=t==="loading"?r.spinner:r.icon;return M.jsx(Be.span,{display:"inherit","data-status":t,...e,className:Nn("chakra-alert__icon",e.className),__css:i,children:e.children||M.jsx(n,{h:"100%",w:"100%"})})}R_.displayName="AlertIcon";const A_=vn(function(t,n){const r=Dy(),{status:i}=My();return M.jsx(Be.div,{ref:n,"data-status":i,...t,className:Nn("chakra-alert__title",t.className),__css:r.title})});A_.displayName="AlertTitle";const M_=vn(function(t,n){const{status:r}=My(),i=Dy(),o={display:"inline",...i.description};return M.jsx(Be.div,{ref:n,"data-status":r,...t,className:Nn("chakra-alert__desc",t.className),__css:o})});M_.displayName="AlertDescription";function zj(e){return M.jsx(fu,{focusable:"false","aria-hidden":!0,...e,children:M.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const D_=vn(function(t,n){const r=ia("CloseButton",t),{children:i,isDisabled:o,__css:s,...a}=na(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return M.jsx(Be.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...l,...r,...s},...a,children:i||M.jsx(zj,{width:"1em",height:"1em"})})});D_.displayName="CloseButton";const jj=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return M.jsxs(P_,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[M.jsx(R_,{children:u}),M.jsxs(Be.div,{flex:"1",maxWidth:"100%",children:[i&&M.jsx(A_,{id:c==null?void 0:c.title,children:i}),a&&M.jsx(M_,{id:c==null?void 0:c.description,display:"block",children:a})]}),o&&M.jsx(D_,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function Bj(e={}){const{render:t,toastComponent:n=jj}=e;return i=>typeof t=="function"?t({...i,...e}):M.jsx(n,{...i,...e})}const Vj={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},rl=Uj(Vj);function Uj(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(s=>({...s,[o]:s[o].filter(a=>a.id!=i)}))},notify:(i,o)=>{const s=Wj(i,o),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(i,o)=>{i&&r(s=>{const a={...s},{position:l,index:u}=vS(a,i);return l&&u!==-1&&(a[l][u]={...a[l][u],...o,message:Bj(o)}),a})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=o[u].map(c=>({...c,requestClose:!0})),l),{...o}))},close:i=>{r(o=>{const s=k_(o,i);return s?{...o,[s]:o[s].map(a=>a.id==i?{...a,requestClose:!0}:a)}:o})},isActive:i=>!!vS(rl.getState(),i).position}}let kS=0;function Wj(e,t={}){kS+=1;const n=t.id??kS,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>rl.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var O_={exports:{}},tn={},$_={exports:{}},I_={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(F,H){var q=F.length;F.push(H);e:for(;0<q;){var G=q-1>>>1,ve=F[G];if(0<i(ve,H))F[G]=H,F[q]=ve,q=G;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var H=F[0],q=F.pop();if(q!==H){F[0]=q;e:for(var G=0,ve=F.length,re=ve>>>1;G<re;){var Ht=2*(G+1)-1,Kr=F[Ht],Ze=Ht+1,Bn=F[Ze];if(0>i(Kr,q))Ze<ve&&0>i(Bn,Kr)?(F[G]=Bn,F[Ze]=q,G=Ze):(F[G]=Kr,F[Ht]=q,G=Ht);else if(Ze<ve&&0>i(Bn,q))F[G]=Bn,F[Ze]=q,G=Ze;else break e}}return H}function i(F,H){var q=F.sortIndex-H.sortIndex;return q!==0?q:F.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,m=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(F){for(var H=n(u);H!==null;){if(H.callback===null)r(u);else if(H.startTime<=F)r(u),H.sortIndex=H.expirationTime,t(l,H);else break;H=n(u)}}function x(F){if(v=!1,p(F),!m)if(n(l)!==null)m=!0,$e(C);else{var H=n(u);H!==null&&Dt(x,H.startTime-F)}}function C(F,H){m=!1,v&&(v=!1,g(D),D=-1),y=!0;var q=f;try{for(p(H),d=n(l);d!==null&&(!(d.expirationTime>H)||F&&!xe());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var ve=G(d.expirationTime<=H);H=e.unstable_now(),typeof ve=="function"?d.callback=ve:d===n(l)&&r(l),p(H)}else r(l);d=n(l)}if(d!==null)var re=!0;else{var Ht=n(u);Ht!==null&&Dt(x,Ht.startTime-H),re=!1}return re}finally{d=null,f=q,y=!1}}var R=!1,P=null,D=-1,I=5,B=-1;function xe(){return!(e.unstable_now()-B<I)}function Xe(){if(P!==null){var F=e.unstable_now();B=F;var H=!0;try{H=P(!0,F)}finally{H?at():(R=!1,P=null)}}else R=!1}var at;if(typeof h=="function")at=function(){h(Xe)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,jn=Ge.port2;Ge.port1.onmessage=Xe,at=function(){jn.postMessage(null)}}else at=function(){S(Xe,0)};function $e(F){P=F,R||(R=!0,at())}function Dt(F,H){D=S(function(){F(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,$e(C))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var H=3;break;default:H=f}var q=f;f=H;try{return F()}finally{f=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,H){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var q=f;f=F;try{return H()}finally{f=q}},e.unstable_scheduleCallback=function(F,H,q){var G=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?G+q:G):q=G,F){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=q+ve,F={id:c++,callback:H,priorityLevel:F,startTime:q,expirationTime:ve,sortIndex:-1},q>G?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(v?(g(D),D=-1):v=!0,Dt(x,q-G))):(F.sortIndex=ve,t(l,F),m||y||(m=!0,$e(C))),F},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(F){var H=f;return function(){var q=f;f=H;try{return F.apply(this,arguments)}finally{f=q}}}})(I_);$_.exports=I_;var Hj=$_.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yj=w,Jt=Hj;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var F_=new Set,Cl={};function zo(e,t){qs(e,t),qs(e+"Capture",t)}function qs(e,t){for(Cl[e]=t,e=0;e<t.length;e++)F_.add(t[e])}var zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gm=Object.prototype.hasOwnProperty,Gj=/^[: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]*$/,_S={},CS={};function qj(e){return gm.call(CS,e)?!0:gm.call(_S,e)?!1:Gj.test(e)?CS[e]=!0:(_S[e]=!0,!1)}function Kj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qj(e,t,n,r){if(t===null||typeof t>"u"||Kj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){dt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oy=/[\-:]([a-z])/g;function $y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Oy,$y);dt[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oy,$y);dt[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oy,$y);dt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iy(e,t,n,r){var i=dt.hasOwnProperty(t)?dt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Qj(t,n,i,r)&&(n=null),r||i===null?qj(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Hr=Yj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qu=Symbol.for("react.element"),ss=Symbol.for("react.portal"),as=Symbol.for("react.fragment"),Fy=Symbol.for("react.strict_mode"),ym=Symbol.for("react.profiler"),N_=Symbol.for("react.provider"),L_=Symbol.for("react.context"),Ny=Symbol.for("react.forward_ref"),vm=Symbol.for("react.suspense"),bm=Symbol.for("react.suspense_list"),Ly=Symbol.for("react.memo"),oi=Symbol.for("react.lazy"),z_=Symbol.for("react.offscreen"),TS=Symbol.iterator;function _a(e){return e===null||typeof e!="object"?null:(e=TS&&e[TS]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,Xh;function Ba(e){if(Xh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xh=t&&t[1]||""}return`
`+Xh+e}var Zh=!1;function Jh(e,t){if(!e||Zh)return"";Zh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Zh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ba(e):""}function Xj(e){switch(e.tag){case 5:return Ba(e.type);case 16:return Ba("Lazy");case 13:return Ba("Suspense");case 19:return Ba("SuspenseList");case 0:case 2:case 15:return e=Jh(e.type,!1),e;case 11:return e=Jh(e.type.render,!1),e;case 1:return e=Jh(e.type,!0),e;default:return""}}function Sm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case as:return"Fragment";case ss:return"Portal";case ym:return"Profiler";case Fy:return"StrictMode";case vm:return"Suspense";case bm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L_:return(e.displayName||"Context")+".Consumer";case N_:return(e._context.displayName||"Context")+".Provider";case Ny:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ly:return t=e.displayName||null,t!==null?t:Sm(e.type)||"Memo";case oi:t=e._payload,e=e._init;try{return Sm(e(t))}catch{}}return null}function Zj(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sm(t);case 8:return t===Fy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jj(e){var t=j_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ku(e){e._valueTracker||(e._valueTracker=Jj(e))}function B_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=j_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ad(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wm(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ES(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function V_(e,t){t=t.checked,t!=null&&Iy(e,"checked",t,!1)}function xm(e,t){V_(e,t);var n=Fi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?km(e,t.type,n):t.hasOwnProperty("defaultValue")&&km(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function PS(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function km(e,t,n){(t!=="number"||ad(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Va=Array.isArray;function Cs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Fi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _m(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function RS(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Va(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Fi(n)}}function U_(e,t){var n=Fi(t.value),r=Fi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function AS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function W_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Cm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?W_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Qu,H_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Qu=Qu||document.createElement("div"),Qu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Qu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var il={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eB=["Webkit","ms","Moz","O"];Object.keys(il).forEach(function(e){eB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),il[t]=il[e]})});function Y_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||il.hasOwnProperty(e)&&il[e]?(""+t).trim():t+"px"}function G_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Y_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tB=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tm(e,t){if(t){if(tB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Em(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pm=null;function zy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rm=null,Ts=null,Es=null;function MS(e){if(e=mu(e)){if(typeof Rm!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Sf(t),Rm(e.stateNode,e.type,t))}}function q_(e){Ts?Es?Es.push(e):Es=[e]:Ts=e}function K_(){if(Ts){var e=Ts,t=Es;if(Es=Ts=null,MS(e),t)for(e=0;e<t.length;e++)MS(t[e])}}function Q_(e,t){return e(t)}function X_(){}var ep=!1;function Z_(e,t,n){if(ep)return e(t,n);ep=!0;try{return Q_(e,t,n)}finally{ep=!1,(Ts!==null||Es!==null)&&(X_(),K_())}}function El(e,t){var n=e.stateNode;if(n===null)return null;var r=Sf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var Am=!1;if(zr)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){Am=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{Am=!1}function nB(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ol=!1,ld=null,ud=!1,Mm=null,rB={onError:function(e){ol=!0,ld=e}};function iB(e,t,n,r,i,o,s,a,l){ol=!1,ld=null,nB.apply(rB,arguments)}function oB(e,t,n,r,i,o,s,a,l){if(iB.apply(this,arguments),ol){if(ol){var u=ld;ol=!1,ld=null}else throw Error(O(198));ud||(ud=!0,Mm=u)}}function jo(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function J_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function DS(e){if(jo(e)!==e)throw Error(O(188))}function sB(e){var t=e.alternate;if(!t){if(t=jo(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return DS(i),e;if(o===r)return DS(i),t;o=o.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function eC(e){return e=sB(e),e!==null?tC(e):null}function tC(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=tC(e);if(t!==null)return t;e=e.sibling}return null}var nC=Jt.unstable_scheduleCallback,OS=Jt.unstable_cancelCallback,aB=Jt.unstable_shouldYield,lB=Jt.unstable_requestPaint,Ue=Jt.unstable_now,uB=Jt.unstable_getCurrentPriorityLevel,jy=Jt.unstable_ImmediatePriority,rC=Jt.unstable_UserBlockingPriority,cd=Jt.unstable_NormalPriority,cB=Jt.unstable_LowPriority,iC=Jt.unstable_IdlePriority,gf=null,sr=null;function dB(e){if(sr&&typeof sr.onCommitFiberRoot=="function")try{sr.onCommitFiberRoot(gf,e,void 0,(e.current.flags&128)===128)}catch{}}var Dn=Math.clz32?Math.clz32:pB,fB=Math.log,hB=Math.LN2;function pB(e){return e>>>=0,e===0?32:31-(fB(e)/hB|0)|0}var Xu=64,Zu=4194304;function Ua(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Ua(a):(o&=s,o!==0&&(r=Ua(o)))}else s=n&~i,s!==0?r=Ua(s):o!==0&&(r=Ua(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Dn(t),i=1<<n,r|=e[n],t&=~i;return r}function mB(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gB(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Dn(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=mB(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Dm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oC(){var e=Xu;return Xu<<=1,!(Xu&4194240)&&(Xu=64),e}function tp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dn(t),e[t]=n}function yB(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Dn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function By(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function sC(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var aC,Vy,lC,uC,cC,Om=!1,Ju=[],xi=null,ki=null,_i=null,Pl=new Map,Rl=new Map,li=[],vB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $S(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":ki=null;break;case"mouseover":case"mouseout":_i=null;break;case"pointerover":case"pointerout":Pl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(t.pointerId)}}function Ta(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=mu(t),t!==null&&Vy(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bB(e,t,n,r,i){switch(t){case"focusin":return xi=Ta(xi,e,t,n,r,i),!0;case"dragenter":return ki=Ta(ki,e,t,n,r,i),!0;case"mouseover":return _i=Ta(_i,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Pl.set(o,Ta(Pl.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Rl.set(o,Ta(Rl.get(o)||null,e,t,n,r,i)),!0}return!1}function dC(e){var t=so(e.target);if(t!==null){var n=jo(t);if(n!==null){if(t=n.tag,t===13){if(t=J_(n),t!==null){e.blockedOn=t,cC(e.priority,function(){lC(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ac(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$m(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Pm=r,n.target.dispatchEvent(r),Pm=null}else return t=mu(n),t!==null&&Vy(t),e.blockedOn=n,!1;t.shift()}return!0}function IS(e,t,n){Ac(e)&&n.delete(t)}function SB(){Om=!1,xi!==null&&Ac(xi)&&(xi=null),ki!==null&&Ac(ki)&&(ki=null),_i!==null&&Ac(_i)&&(_i=null),Pl.forEach(IS),Rl.forEach(IS)}function Ea(e,t){e.blockedOn===t&&(e.blockedOn=null,Om||(Om=!0,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,SB)))}function Al(e){function t(i){return Ea(i,e)}if(0<Ju.length){Ea(Ju[0],e);for(var n=1;n<Ju.length;n++){var r=Ju[n];r.blockedOn===e&&(r.blockedOn=null)}}for(xi!==null&&Ea(xi,e),ki!==null&&Ea(ki,e),_i!==null&&Ea(_i,e),Pl.forEach(t),Rl.forEach(t),n=0;n<li.length;n++)r=li[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<li.length&&(n=li[0],n.blockedOn===null);)dC(n),n.blockedOn===null&&li.shift()}var Ps=Hr.ReactCurrentBatchConfig,fd=!0;function wB(e,t,n,r){var i=pe,o=Ps.transition;Ps.transition=null;try{pe=1,Uy(e,t,n,r)}finally{pe=i,Ps.transition=o}}function xB(e,t,n,r){var i=pe,o=Ps.transition;Ps.transition=null;try{pe=4,Uy(e,t,n,r)}finally{pe=i,Ps.transition=o}}function Uy(e,t,n,r){if(fd){var i=$m(e,t,n,r);if(i===null)dp(e,t,r,hd,n),$S(e,r);else if(bB(i,e,t,n,r))r.stopPropagation();else if($S(e,r),t&4&&-1<vB.indexOf(e)){for(;i!==null;){var o=mu(i);if(o!==null&&aC(o),o=$m(e,t,n,r),o===null&&dp(e,t,r,hd,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else dp(e,t,r,null,n)}}var hd=null;function $m(e,t,n,r){if(hd=null,e=zy(r),e=so(e),e!==null)if(t=jo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=J_(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return hd=e,null}function fC(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(uB()){case jy:return 1;case rC:return 4;case cd:case cB:return 16;case iC:return 536870912;default:return 16}default:return 16}}var gi=null,Wy=null,Mc=null;function hC(){if(Mc)return Mc;var e,t=Wy,n=t.length,r,i="value"in gi?gi.value:gi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Mc=i.slice(e,1<r?1-r:void 0)}function Dc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ec(){return!0}function FS(){return!1}function nn(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ec:FS,this.isPropagationStopped=FS,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ec)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ec)},persist:function(){},isPersistent:ec}),t}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hy=nn(oa),pu=Le({},oa,{view:0,detail:0}),kB=nn(pu),np,rp,Pa,yf=Le({},pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yy,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pa&&(Pa&&e.type==="mousemove"?(np=e.screenX-Pa.screenX,rp=e.screenY-Pa.screenY):rp=np=0,Pa=e),np)},movementY:function(e){return"movementY"in e?e.movementY:rp}}),NS=nn(yf),_B=Le({},yf,{dataTransfer:0}),CB=nn(_B),TB=Le({},pu,{relatedTarget:0}),ip=nn(TB),EB=Le({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),PB=nn(EB),RB=Le({},oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AB=nn(RB),MB=Le({},oa,{data:0}),LS=nn(MB),DB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},OB={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"},$B={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IB(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$B[e])?!!t[e]:!1}function Yy(){return IB}var FB=Le({},pu,{key:function(e){if(e.key){var t=DB[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?OB[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yy,charCode:function(e){return e.type==="keypress"?Dc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NB=nn(FB),LB=Le({},yf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zS=nn(LB),zB=Le({},pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yy}),jB=nn(zB),BB=Le({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),VB=nn(BB),UB=Le({},yf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),WB=nn(UB),HB=[9,13,27,32],Gy=zr&&"CompositionEvent"in window,sl=null;zr&&"documentMode"in document&&(sl=document.documentMode);var YB=zr&&"TextEvent"in window&&!sl,pC=zr&&(!Gy||sl&&8<sl&&11>=sl),jS=" ",BS=!1;function mC(e,t){switch(e){case"keyup":return HB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ls=!1;function GB(e,t){switch(e){case"compositionend":return gC(t);case"keypress":return t.which!==32?null:(BS=!0,jS);case"textInput":return e=t.data,e===jS&&BS?null:e;default:return null}}function qB(e,t){if(ls)return e==="compositionend"||!Gy&&mC(e,t)?(e=hC(),Mc=Wy=gi=null,ls=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return pC&&t.locale!=="ko"?null:t.data;default:return null}}var KB={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 VS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!KB[e.type]:t==="textarea"}function yC(e,t,n,r){q_(r),t=pd(t,"onChange"),0<t.length&&(n=new Hy("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var al=null,Ml=null;function QB(e){PC(e,0)}function vf(e){var t=ds(e);if(B_(t))return e}function XB(e,t){if(e==="change")return t}var vC=!1;if(zr){var op;if(zr){var sp="oninput"in document;if(!sp){var US=document.createElement("div");US.setAttribute("oninput","return;"),sp=typeof US.oninput=="function"}op=sp}else op=!1;vC=op&&(!document.documentMode||9<document.documentMode)}function WS(){al&&(al.detachEvent("onpropertychange",bC),Ml=al=null)}function bC(e){if(e.propertyName==="value"&&vf(Ml)){var t=[];yC(t,Ml,e,zy(e)),Z_(QB,t)}}function ZB(e,t,n){e==="focusin"?(WS(),al=t,Ml=n,al.attachEvent("onpropertychange",bC)):e==="focusout"&&WS()}function JB(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vf(Ml)}function e6(e,t){if(e==="click")return vf(t)}function t6(e,t){if(e==="input"||e==="change")return vf(t)}function n6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:n6;function Dl(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!gm.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function HS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function YS(e,t){var n=HS(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=HS(n)}}function SC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wC(){for(var e=window,t=ad();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ad(e.document)}return t}function qy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function r6(e){var t=wC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&SC(n.ownerDocument.documentElement,n)){if(r!==null&&qy(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=YS(n,o);var s=YS(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var i6=zr&&"documentMode"in document&&11>=document.documentMode,us=null,Im=null,ll=null,Fm=!1;function GS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fm||us==null||us!==ad(r)||(r=us,"selectionStart"in r&&qy(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ll&&Dl(ll,r)||(ll=r,r=pd(Im,"onSelect"),0<r.length&&(t=new Hy("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=us)))}function tc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cs={animationend:tc("Animation","AnimationEnd"),animationiteration:tc("Animation","AnimationIteration"),animationstart:tc("Animation","AnimationStart"),transitionend:tc("Transition","TransitionEnd")},ap={},xC={};zr&&(xC=document.createElement("div").style,"AnimationEvent"in window||(delete cs.animationend.animation,delete cs.animationiteration.animation,delete cs.animationstart.animation),"TransitionEvent"in window||delete cs.transitionend.transition);function bf(e){if(ap[e])return ap[e];if(!cs[e])return e;var t=cs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xC)return ap[e]=t[n];return e}var kC=bf("animationend"),_C=bf("animationiteration"),CC=bf("animationstart"),TC=bf("transitionend"),EC=new Map,qS="abort auxClick 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(" ");function Bi(e,t){EC.set(e,t),zo(t,[e])}for(var lp=0;lp<qS.length;lp++){var up=qS[lp],o6=up.toLowerCase(),s6=up[0].toUpperCase()+up.slice(1);Bi(o6,"on"+s6)}Bi(kC,"onAnimationEnd");Bi(_C,"onAnimationIteration");Bi(CC,"onAnimationStart");Bi("dblclick","onDoubleClick");Bi("focusin","onFocus");Bi("focusout","onBlur");Bi(TC,"onTransitionEnd");qs("onMouseEnter",["mouseout","mouseover"]);qs("onMouseLeave",["mouseout","mouseover"]);qs("onPointerEnter",["pointerout","pointerover"]);qs("onPointerLeave",["pointerout","pointerover"]);zo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zo("onBeforeInput",["compositionend","keypress","textInput","paste"]);zo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wa="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(" "),a6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wa));function KS(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,oB(r,t,void 0,e),e.currentTarget=null}function PC(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;KS(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;KS(i,a,u),o=l}}}if(ud)throw e=Mm,ud=!1,Mm=null,e}function ke(e,t){var n=t[Bm];n===void 0&&(n=t[Bm]=new Set);var r=e+"__bubble";n.has(r)||(RC(t,e,2,!1),n.add(r))}function cp(e,t,n){var r=0;t&&(r|=4),RC(n,e,r,t)}var nc="_reactListening"+Math.random().toString(36).slice(2);function Ol(e){if(!e[nc]){e[nc]=!0,F_.forEach(function(n){n!=="selectionchange"&&(a6.has(n)||cp(n,!1,e),cp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nc]||(t[nc]=!0,cp("selectionchange",!1,t))}}function RC(e,t,n,r){switch(fC(t)){case 1:var i=wB;break;case 4:i=xB;break;default:i=Uy}n=i.bind(null,t,n,e),i=void 0,!Am||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function dp(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=so(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Z_(function(){var u=o,c=zy(n),d=[];e:{var f=EC.get(e);if(f!==void 0){var y=Hy,m=e;switch(e){case"keypress":if(Dc(n)===0)break e;case"keydown":case"keyup":y=NB;break;case"focusin":m="focus",y=ip;break;case"focusout":m="blur",y=ip;break;case"beforeblur":case"afterblur":y=ip;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=NS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=CB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=jB;break;case kC:case _C:case CC:y=PB;break;case TC:y=VB;break;case"scroll":y=kB;break;case"wheel":y=WB;break;case"copy":case"cut":case"paste":y=AB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=zS}var v=(t&4)!==0,S=!v&&e==="scroll",g=v?f!==null?f+"Capture":null:f;v=[];for(var h=u,p;h!==null;){p=h;var x=p.stateNode;if(p.tag===5&&x!==null&&(p=x,g!==null&&(x=El(h,g),x!=null&&v.push($l(h,x,p)))),S)break;h=h.return}0<v.length&&(f=new y(f,m,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==Pm&&(m=n.relatedTarget||n.fromElement)&&(so(m)||m[jr]))break e;if((y||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=u,m=m?so(m):null,m!==null&&(S=jo(m),m!==S||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=u),y!==m)){if(v=NS,x="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=zS,x="onPointerLeave",g="onPointerEnter",h="pointer"),S=y==null?f:ds(y),p=m==null?f:ds(m),f=new v(x,h+"leave",y,n,c),f.target=S,f.relatedTarget=p,x=null,so(c)===u&&(v=new v(g,h+"enter",m,n,c),v.target=p,v.relatedTarget=S,x=v),S=x,y&&m)t:{for(v=y,g=m,h=0,p=v;p;p=Go(p))h++;for(p=0,x=g;x;x=Go(x))p++;for(;0<h-p;)v=Go(v),h--;for(;0<p-h;)g=Go(g),p--;for(;h--;){if(v===g||g!==null&&v===g.alternate)break t;v=Go(v),g=Go(g)}v=null}else v=null;y!==null&&QS(d,f,y,v,!1),m!==null&&S!==null&&QS(d,S,m,v,!0)}}e:{if(f=u?ds(u):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var C=XB;else if(VS(f))if(vC)C=t6;else{C=JB;var R=ZB}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=e6);if(C&&(C=C(e,u))){yC(d,C,n,c);break e}R&&R(e,f,u),e==="focusout"&&(R=f._wrapperState)&&R.controlled&&f.type==="number"&&km(f,"number",f.value)}switch(R=u?ds(u):window,e){case"focusin":(VS(R)||R.contentEditable==="true")&&(us=R,Im=u,ll=null);break;case"focusout":ll=Im=us=null;break;case"mousedown":Fm=!0;break;case"contextmenu":case"mouseup":case"dragend":Fm=!1,GS(d,n,c);break;case"selectionchange":if(i6)break;case"keydown":case"keyup":GS(d,n,c)}var P;if(Gy)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else ls?mC(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(pC&&n.locale!=="ko"&&(ls||D!=="onCompositionStart"?D==="onCompositionEnd"&&ls&&(P=hC()):(gi=c,Wy="value"in gi?gi.value:gi.textContent,ls=!0)),R=pd(u,D),0<R.length&&(D=new LS(D,e,null,n,c),d.push({event:D,listeners:R}),P?D.data=P:(P=gC(n),P!==null&&(D.data=P)))),(P=YB?GB(e,n):qB(e,n))&&(u=pd(u,"onBeforeInput"),0<u.length&&(c=new LS("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}PC(d,t)})}function $l(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pd(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=El(e,n),o!=null&&r.unshift($l(e,o,i)),o=El(e,t),o!=null&&r.push($l(e,o,i))),e=e.return}return r}function Go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function QS(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=El(n,o),l!=null&&s.unshift($l(n,l,a))):i||(l=El(n,o),l!=null&&s.push($l(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var l6=/\r\n?/g,u6=/\u0000|\uFFFD/g;function XS(e){return(typeof e=="string"?e:""+e).replace(l6,`
`).replace(u6,"")}function rc(e,t,n){if(t=XS(t),XS(e)!==t&&n)throw Error(O(425))}function md(){}var Nm=null,Lm=null;function zm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jm=typeof setTimeout=="function"?setTimeout:void 0,c6=typeof clearTimeout=="function"?clearTimeout:void 0,ZS=typeof Promise=="function"?Promise:void 0,d6=typeof queueMicrotask=="function"?queueMicrotask:typeof ZS<"u"?function(e){return ZS.resolve(null).then(e).catch(f6)}:jm;function f6(e){setTimeout(function(){throw e})}function fp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Al(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Al(t)}function Ci(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function JS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var sa=Math.random().toString(36).slice(2),er="__reactFiber$"+sa,Il="__reactProps$"+sa,jr="__reactContainer$"+sa,Bm="__reactEvents$"+sa,h6="__reactListeners$"+sa,p6="__reactHandles$"+sa;function so(e){var t=e[er];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jr]||n[er]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=JS(e);e!==null;){if(n=e[er])return n;e=JS(e)}return t}e=n,n=e.parentNode}return null}function mu(e){return e=e[er]||e[jr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ds(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Sf(e){return e[Il]||null}var Vm=[],fs=-1;function Vi(e){return{current:e}}function Te(e){0>fs||(e.current=Vm[fs],Vm[fs]=null,fs--)}function be(e,t){fs++,Vm[fs]=e.current,e.current=t}var Ni={},xt=Vi(Ni),Lt=Vi(!1),Po=Ni;function Ks(e,t){var n=e.type.contextTypes;if(!n)return Ni;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zt(e){return e=e.childContextTypes,e!=null}function gd(){Te(Lt),Te(xt)}function e1(e,t,n){if(xt.current!==Ni)throw Error(O(168));be(xt,t),be(Lt,n)}function AC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,Zj(e)||"Unknown",i));return Le({},n,r)}function yd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Po=xt.current,be(xt,e),be(Lt,Lt.current),!0}function t1(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=AC(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Te(Lt),Te(xt),be(xt,e)):Te(Lt),be(Lt,n)}var br=null,wf=!1,hp=!1;function MC(e){br===null?br=[e]:br.push(e)}function m6(e){wf=!0,MC(e)}function Ui(){if(!hp&&br!==null){hp=!0;var e=0,t=pe;try{var n=br;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}br=null,wf=!1}catch(i){throw br!==null&&(br=br.slice(e+1)),nC(jy,Ui),i}finally{pe=t,hp=!1}}return null}var hs=[],ps=0,vd=null,bd=0,cn=[],dn=0,Ro=null,Tr=1,Er="";function eo(e,t){hs[ps++]=bd,hs[ps++]=vd,vd=e,bd=t}function DC(e,t,n){cn[dn++]=Tr,cn[dn++]=Er,cn[dn++]=Ro,Ro=e;var r=Tr;e=Er;var i=32-Dn(r)-1;r&=~(1<<i),n+=1;var o=32-Dn(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Tr=1<<32-Dn(t)+i|n<<i|r,Er=o+e}else Tr=1<<o|n<<i|r,Er=e}function Ky(e){e.return!==null&&(eo(e,1),DC(e,1,0))}function Qy(e){for(;e===vd;)vd=hs[--ps],hs[ps]=null,bd=hs[--ps],hs[ps]=null;for(;e===Ro;)Ro=cn[--dn],cn[dn]=null,Er=cn[--dn],cn[dn]=null,Tr=cn[--dn],cn[dn]=null}var Xt=null,qt=null,De=!1,Rn=null;function OC(e,t){var n=pn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function n1(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xt=e,qt=Ci(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xt=e,qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ro!==null?{id:Tr,overflow:Er}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xt=e,qt=null,!0):!1;default:return!1}}function Um(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wm(e){if(De){var t=qt;if(t){var n=t;if(!n1(e,t)){if(Um(e))throw Error(O(418));t=Ci(n.nextSibling);var r=Xt;t&&n1(e,t)?OC(r,n):(e.flags=e.flags&-4097|2,De=!1,Xt=e)}}else{if(Um(e))throw Error(O(418));e.flags=e.flags&-4097|2,De=!1,Xt=e}}}function r1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xt=e}function ic(e){if(e!==Xt)return!1;if(!De)return r1(e),De=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zm(e.type,e.memoizedProps)),t&&(t=qt)){if(Um(e))throw $C(),Error(O(418));for(;t;)OC(e,t),t=Ci(t.nextSibling)}if(r1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qt=Ci(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qt=null}}else qt=Xt?Ci(e.stateNode.nextSibling):null;return!0}function $C(){for(var e=qt;e;)e=Ci(e.nextSibling)}function Qs(){qt=Xt=null,De=!1}function Xy(e){Rn===null?Rn=[e]:Rn.push(e)}var g6=Hr.ReactCurrentBatchConfig;function Ra(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function oc(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function i1(e){var t=e._init;return t(e._payload)}function IC(e){function t(g,h){if(e){var p=g.deletions;p===null?(g.deletions=[h],g.flags|=16):p.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(g,h){return g=Ri(g,h),g.index=0,g.sibling=null,g}function o(g,h,p){return g.index=p,e?(p=g.alternate,p!==null?(p=p.index,p<h?(g.flags|=2,h):p):(g.flags|=2,h)):(g.flags|=1048576,h)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,h,p,x){return h===null||h.tag!==6?(h=Sp(p,g.mode,x),h.return=g,h):(h=i(h,p),h.return=g,h)}function l(g,h,p,x){var C=p.type;return C===as?c(g,h,p.props.children,x,p.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===oi&&i1(C)===h.type)?(x=i(h,p.props),x.ref=Ra(g,h,p),x.return=g,x):(x=zc(p.type,p.key,p.props,null,g.mode,x),x.ref=Ra(g,h,p),x.return=g,x)}function u(g,h,p,x){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=wp(p,g.mode,x),h.return=g,h):(h=i(h,p.children||[]),h.return=g,h)}function c(g,h,p,x,C){return h===null||h.tag!==7?(h=ko(p,g.mode,x,C),h.return=g,h):(h=i(h,p),h.return=g,h)}function d(g,h,p){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Sp(""+h,g.mode,p),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case qu:return p=zc(h.type,h.key,h.props,null,g.mode,p),p.ref=Ra(g,null,h),p.return=g,p;case ss:return h=wp(h,g.mode,p),h.return=g,h;case oi:var x=h._init;return d(g,x(h._payload),p)}if(Va(h)||_a(h))return h=ko(h,g.mode,p,null),h.return=g,h;oc(g,h)}return null}function f(g,h,p,x){var C=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return C!==null?null:a(g,h,""+p,x);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case qu:return p.key===C?l(g,h,p,x):null;case ss:return p.key===C?u(g,h,p,x):null;case oi:return C=p._init,f(g,h,C(p._payload),x)}if(Va(p)||_a(p))return C!==null?null:c(g,h,p,x,null);oc(g,p)}return null}function y(g,h,p,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(p)||null,a(h,g,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case qu:return g=g.get(x.key===null?p:x.key)||null,l(h,g,x,C);case ss:return g=g.get(x.key===null?p:x.key)||null,u(h,g,x,C);case oi:var R=x._init;return y(g,h,p,R(x._payload),C)}if(Va(x)||_a(x))return g=g.get(p)||null,c(h,g,x,C,null);oc(h,x)}return null}function m(g,h,p,x){for(var C=null,R=null,P=h,D=h=0,I=null;P!==null&&D<p.length;D++){P.index>D?(I=P,P=null):I=P.sibling;var B=f(g,P,p[D],x);if(B===null){P===null&&(P=I);break}e&&P&&B.alternate===null&&t(g,P),h=o(B,h,D),R===null?C=B:R.sibling=B,R=B,P=I}if(D===p.length)return n(g,P),De&&eo(g,D),C;if(P===null){for(;D<p.length;D++)P=d(g,p[D],x),P!==null&&(h=o(P,h,D),R===null?C=P:R.sibling=P,R=P);return De&&eo(g,D),C}for(P=r(g,P);D<p.length;D++)I=y(P,g,D,p[D],x),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?D:I.key),h=o(I,h,D),R===null?C=I:R.sibling=I,R=I);return e&&P.forEach(function(xe){return t(g,xe)}),De&&eo(g,D),C}function v(g,h,p,x){var C=_a(p);if(typeof C!="function")throw Error(O(150));if(p=C.call(p),p==null)throw Error(O(151));for(var R=C=null,P=h,D=h=0,I=null,B=p.next();P!==null&&!B.done;D++,B=p.next()){P.index>D?(I=P,P=null):I=P.sibling;var xe=f(g,P,B.value,x);if(xe===null){P===null&&(P=I);break}e&&P&&xe.alternate===null&&t(g,P),h=o(xe,h,D),R===null?C=xe:R.sibling=xe,R=xe,P=I}if(B.done)return n(g,P),De&&eo(g,D),C;if(P===null){for(;!B.done;D++,B=p.next())B=d(g,B.value,x),B!==null&&(h=o(B,h,D),R===null?C=B:R.sibling=B,R=B);return De&&eo(g,D),C}for(P=r(g,P);!B.done;D++,B=p.next())B=y(P,g,D,B.value,x),B!==null&&(e&&B.alternate!==null&&P.delete(B.key===null?D:B.key),h=o(B,h,D),R===null?C=B:R.sibling=B,R=B);return e&&P.forEach(function(Xe){return t(g,Xe)}),De&&eo(g,D),C}function S(g,h,p,x){if(typeof p=="object"&&p!==null&&p.type===as&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case qu:e:{for(var C=p.key,R=h;R!==null;){if(R.key===C){if(C=p.type,C===as){if(R.tag===7){n(g,R.sibling),h=i(R,p.props.children),h.return=g,g=h;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===oi&&i1(C)===R.type){n(g,R.sibling),h=i(R,p.props),h.ref=Ra(g,R,p),h.return=g,g=h;break e}n(g,R);break}else t(g,R);R=R.sibling}p.type===as?(h=ko(p.props.children,g.mode,x,p.key),h.return=g,g=h):(x=zc(p.type,p.key,p.props,null,g.mode,x),x.ref=Ra(g,h,p),x.return=g,g=x)}return s(g);case ss:e:{for(R=p.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(g,h.sibling),h=i(h,p.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=wp(p,g.mode,x),h.return=g,g=h}return s(g);case oi:return R=p._init,S(g,h,R(p._payload),x)}if(Va(p))return m(g,h,p,x);if(_a(p))return v(g,h,p,x);oc(g,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(g,h.sibling),h=i(h,p),h.return=g,g=h):(n(g,h),h=Sp(p,g.mode,x),h.return=g,g=h),s(g)):n(g,h)}return S}var Xs=IC(!0),FC=IC(!1),Sd=Vi(null),wd=null,ms=null,Zy=null;function Jy(){Zy=ms=wd=null}function e0(e){var t=Sd.current;Te(Sd),e._currentValue=t}function Hm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rs(e,t){wd=e,Zy=ms=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ft=!0),e.firstContext=null)}function gn(e){var t=e._currentValue;if(Zy!==e)if(e={context:e,memoizedValue:t,next:null},ms===null){if(wd===null)throw Error(O(308));ms=e,wd.dependencies={lanes:0,firstContext:e}}else ms=ms.next=e;return t}var ao=null;function t0(e){ao===null?ao=[e]:ao.push(e)}function NC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,t0(t)):(n.next=i.next,i.next=n),t.interleaved=n,Br(e,r)}function Br(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var si=!1;function n0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function LC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Or(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ti(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Br(e,n)}return i=r.interleaved,i===null?(t.next=t,t0(r)):(t.next=i.next,i.next=t),r.interleaved=t,Br(e,n)}function Oc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,By(e,n)}}function o1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xd(e,t,n,r){var i=e.updateQueue;si=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,c=u=l=null,a=o;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,v=a;switch(f=t,y=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){d=m.call(y,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,f=typeof m=="function"?m.call(y,d,f):m,f==null)break e;d=Le({},d,f);break e;case 2:si=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Mo|=s,e.lanes=s,e.memoizedState=d}}function s1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(O(191,i));i.call(r)}}}var gu={},ar=Vi(gu),Fl=Vi(gu),Nl=Vi(gu);function lo(e){if(e===gu)throw Error(O(174));return e}function r0(e,t){switch(be(Nl,t),be(Fl,e),be(ar,gu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cm(t,e)}Te(ar),be(ar,t)}function Zs(){Te(ar),Te(Fl),Te(Nl)}function zC(e){lo(Nl.current);var t=lo(ar.current),n=Cm(t,e.type);t!==n&&(be(Fl,e),be(ar,n))}function i0(e){Fl.current===e&&(Te(ar),Te(Fl))}var Ie=Vi(0);function kd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pp=[];function o0(){for(var e=0;e<pp.length;e++)pp[e]._workInProgressVersionPrimary=null;pp.length=0}var $c=Hr.ReactCurrentDispatcher,mp=Hr.ReactCurrentBatchConfig,Ao=0,Ne=null,et=null,it=null,_d=!1,ul=!1,Ll=0,y6=0;function ht(){throw Error(O(321))}function s0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function a0(e,t,n,r,i,o){if(Ao=o,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$c.current=e===null||e.memoizedState===null?w6:x6,e=n(r,i),ul){o=0;do{if(ul=!1,Ll=0,25<=o)throw Error(O(301));o+=1,it=et=null,t.updateQueue=null,$c.current=k6,e=n(r,i)}while(ul)}if($c.current=Cd,t=et!==null&&et.next!==null,Ao=0,it=et=Ne=null,_d=!1,t)throw Error(O(300));return e}function l0(){var e=Ll!==0;return Ll=0,e}function Gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Ne.memoizedState=it=e:it=it.next=e,it}function yn(){if(et===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=it===null?Ne.memoizedState:it.next;if(t!==null)it=t,et=e;else{if(e===null)throw Error(O(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},it===null?Ne.memoizedState=it=e:it=it.next=e}return it}function zl(e,t){return typeof t=="function"?t(e):t}function gp(e){var t=yn(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=et,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((Ao&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,Ne.lanes|=c,Mo|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,$n(r,t.memoizedState)||(Ft=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ne.lanes|=o,Mo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yp(e){var t=yn(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);$n(o,t.memoizedState)||(Ft=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function jC(){}function BC(e,t){var n=Ne,r=yn(),i=t(),o=!$n(r.memoizedState,i);if(o&&(r.memoizedState=i,Ft=!0),r=r.queue,u0(WC.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||it!==null&&it.memoizedState.tag&1){if(n.flags|=2048,jl(9,UC.bind(null,n,r,i,t),void 0,null),ot===null)throw Error(O(349));Ao&30||VC(n,t,i)}return i}function VC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function UC(e,t,n,r){t.value=n,t.getSnapshot=r,HC(t)&&YC(e)}function WC(e,t,n){return n(function(){HC(t)&&YC(e)})}function HC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function YC(e){var t=Br(e,1);t!==null&&On(t,e,1,-1)}function a1(e){var t=Gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zl,lastRenderedState:e},t.queue=e,e=e.dispatch=S6.bind(null,Ne,e),[t.memoizedState,e]}function jl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function GC(){return yn().memoizedState}function Ic(e,t,n,r){var i=Gn();Ne.flags|=e,i.memoizedState=jl(1|t,n,void 0,r===void 0?null:r)}function xf(e,t,n,r){var i=yn();r=r===void 0?null:r;var o=void 0;if(et!==null){var s=et.memoizedState;if(o=s.destroy,r!==null&&s0(r,s.deps)){i.memoizedState=jl(t,n,o,r);return}}Ne.flags|=e,i.memoizedState=jl(1|t,n,o,r)}function l1(e,t){return Ic(8390656,8,e,t)}function u0(e,t){return xf(2048,8,e,t)}function qC(e,t){return xf(4,2,e,t)}function KC(e,t){return xf(4,4,e,t)}function QC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function XC(e,t,n){return n=n!=null?n.concat([e]):null,xf(4,4,QC.bind(null,t,e),n)}function c0(){}function ZC(e,t){var n=yn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&s0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function JC(e,t){var n=yn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&s0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function eT(e,t,n){return Ao&21?($n(n,t)||(n=oC(),Ne.lanes|=n,Mo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ft=!0),e.memoizedState=n)}function v6(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=mp.transition;mp.transition={};try{e(!1),t()}finally{pe=n,mp.transition=r}}function tT(){return yn().memoizedState}function b6(e,t,n){var r=Pi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nT(e))rT(t,n);else if(n=NC(e,t,n,r),n!==null){var i=Rt();On(n,e,r,i),iT(n,t,r)}}function S6(e,t,n){var r=Pi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nT(e))rT(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,$n(a,s)){var l=t.interleaved;l===null?(i.next=i,t0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=NC(e,t,i,r),n!==null&&(i=Rt(),On(n,e,r,i),iT(n,t,r))}}function nT(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function rT(e,t){ul=_d=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function iT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,By(e,n)}}var Cd={readContext:gn,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useInsertionEffect:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useSyncExternalStore:ht,useId:ht,unstable_isNewReconciler:!1},w6={readContext:gn,useCallback:function(e,t){return Gn().memoizedState=[e,t===void 0?null:t],e},useContext:gn,useEffect:l1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ic(4194308,4,QC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ic(4,2,e,t)},useMemo:function(e,t){var n=Gn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Gn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=b6.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=Gn();return e={current:e},t.memoizedState=e},useState:a1,useDebugValue:c0,useDeferredValue:function(e){return Gn().memoizedState=e},useTransition:function(){var e=a1(!1),t=e[0];return e=v6.bind(null,e[1]),Gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ne,i=Gn();if(De){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ot===null)throw Error(O(349));Ao&30||VC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,l1(WC.bind(null,r,o,e),[e]),r.flags|=2048,jl(9,UC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Gn(),t=ot.identifierPrefix;if(De){var n=Er,r=Tr;n=(r&~(1<<32-Dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ll++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=y6++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},x6={readContext:gn,useCallback:ZC,useContext:gn,useEffect:u0,useImperativeHandle:XC,useInsertionEffect:qC,useLayoutEffect:KC,useMemo:JC,useReducer:gp,useRef:GC,useState:function(){return gp(zl)},useDebugValue:c0,useDeferredValue:function(e){var t=yn();return eT(t,et.memoizedState,e)},useTransition:function(){var e=gp(zl)[0],t=yn().memoizedState;return[e,t]},useMutableSource:jC,useSyncExternalStore:BC,useId:tT,unstable_isNewReconciler:!1},k6={readContext:gn,useCallback:ZC,useContext:gn,useEffect:u0,useImperativeHandle:XC,useInsertionEffect:qC,useLayoutEffect:KC,useMemo:JC,useReducer:yp,useRef:GC,useState:function(){return yp(zl)},useDebugValue:c0,useDeferredValue:function(e){var t=yn();return et===null?t.memoizedState=e:eT(t,et.memoizedState,e)},useTransition:function(){var e=yp(zl)[0],t=yn().memoizedState;return[e,t]},useMutableSource:jC,useSyncExternalStore:BC,useId:tT,unstable_isNewReconciler:!1};function _n(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ym(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var kf={isMounted:function(e){return(e=e._reactInternals)?jo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Rt(),i=Pi(e),o=Or(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ti(e,o,i),t!==null&&(On(t,e,i,r),Oc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Rt(),i=Pi(e),o=Or(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ti(e,o,i),t!==null&&(On(t,e,i,r),Oc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),r=Pi(e),i=Or(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ti(e,i,r),t!==null&&(On(t,e,r,n),Oc(t,e,r))}};function u1(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Dl(n,r)||!Dl(i,o):!0}function oT(e,t,n){var r=!1,i=Ni,o=t.contextType;return typeof o=="object"&&o!==null?o=gn(o):(i=zt(t)?Po:xt.current,r=t.contextTypes,o=(r=r!=null)?Ks(e,i):Ni),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=kf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function c1(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&kf.enqueueReplaceState(t,t.state,null)}function Gm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},n0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=gn(o):(o=zt(t)?Po:xt.current,i.context=Ks(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ym(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&kf.enqueueReplaceState(i,i.state,null),xd(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Js(e,t){try{var n="",r=t;do n+=Xj(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function vp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _6=typeof WeakMap=="function"?WeakMap:Map;function sT(e,t,n){n=Or(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ed||(Ed=!0,ig=r),qm(e,t)},n}function aT(e,t,n){n=Or(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){qm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){qm(e,t),typeof r!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function d1(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _6;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=L6.bind(null,e,t,n),t.then(e,e))}function f1(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function h1(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Or(-1,1),t.tag=2,Ti(n,t,1))),n.lanes|=1),e)}var C6=Hr.ReactCurrentOwner,Ft=!1;function Ct(e,t,n,r){t.child=e===null?FC(t,null,n,r):Xs(t,e.child,n,r)}function p1(e,t,n,r,i){n=n.render;var o=t.ref;return Rs(t,i),r=a0(e,t,n,r,o,i),n=l0(),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vr(e,t,i)):(De&&n&&Ky(t),t.flags|=1,Ct(e,t,r,i),t.child)}function m1(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!v0(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,lT(e,t,o,r,i)):(e=zc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Dl,n(s,r)&&e.ref===t.ref)return Vr(e,t,i)}return t.flags|=1,e=Ri(o,r),e.ref=t.ref,e.return=t,t.child=e}function lT(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Dl(o,r)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ft=!0);else return t.lanes=e.lanes,Vr(e,t,i)}return Km(e,t,n,r,i)}function uT(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(ys,Gt),Gt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,be(ys,Gt),Gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,be(ys,Gt),Gt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,be(ys,Gt),Gt|=r;return Ct(e,t,i,n),t.child}function cT(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Km(e,t,n,r,i){var o=zt(n)?Po:xt.current;return o=Ks(t,o),Rs(t,i),n=a0(e,t,n,r,o,i),r=l0(),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vr(e,t,i)):(De&&r&&Ky(t),t.flags|=1,Ct(e,t,n,i),t.child)}function g1(e,t,n,r,i){if(zt(n)){var o=!0;yd(t)}else o=!1;if(Rs(t,i),t.stateNode===null)Fc(e,t),oT(t,n,r),Gm(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=gn(u):(u=zt(n)?Po:xt.current,u=Ks(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&c1(t,s,r,u),si=!1;var f=t.memoizedState;s.state=f,xd(t,r,s,i),l=t.memoizedState,a!==r||f!==l||Lt.current||si?(typeof c=="function"&&(Ym(t,n,c,r),l=t.memoizedState),(a=si||u1(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,LC(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:_n(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=gn(l):(l=zt(n)?Po:xt.current,l=Ks(t,l));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&c1(t,s,r,l),si=!1,f=t.memoizedState,s.state=f,xd(t,r,s,i);var m=t.memoizedState;a!==d||f!==m||Lt.current||si?(typeof y=="function"&&(Ym(t,n,y,r),m=t.memoizedState),(u=si||u1(t,n,u,r,f,m,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Qm(e,t,n,r,o,i)}function Qm(e,t,n,r,i,o){cT(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&t1(t,n,!1),Vr(e,t,o);r=t.stateNode,C6.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Xs(t,e.child,null,o),t.child=Xs(t,null,a,o)):Ct(e,t,a,o),t.memoizedState=r.state,i&&t1(t,n,!0),t.child}function dT(e){var t=e.stateNode;t.pendingContext?e1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&e1(e,t.context,!1),r0(e,t.containerInfo)}function y1(e,t,n,r,i){return Qs(),Xy(i),t.flags|=256,Ct(e,t,n,r),t.child}var Xm={dehydrated:null,treeContext:null,retryLane:0};function Zm(e){return{baseLanes:e,cachePool:null,transitions:null}}function fT(e,t,n){var r=t.pendingProps,i=Ie.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),be(Ie,i&1),e===null)return Wm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Tf(s,r,0,null),e=ko(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Zm(n),t.memoizedState=Xm,e):d0(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return T6(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ri(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Ri(a,o):(o=ko(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Zm(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Xm,r}return o=e.child,e=o.sibling,r=Ri(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function d0(e,t){return t=Tf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sc(e,t,n,r){return r!==null&&Xy(r),Xs(t,e.child,null,n),e=d0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function T6(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=vp(Error(O(422))),sc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Tf({mode:"visible",children:r.children},i,0,null),o=ko(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Xs(t,e.child,null,s),t.child.memoizedState=Zm(s),t.memoizedState=Xm,o);if(!(t.mode&1))return sc(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(O(419)),r=vp(o,r,void 0),sc(e,t,s,r)}if(a=(s&e.childLanes)!==0,Ft||a){if(r=ot,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Br(e,i),On(r,e,i,-1))}return y0(),r=vp(Error(O(421))),sc(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=z6.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,qt=Ci(i.nextSibling),Xt=t,De=!0,Rn=null,e!==null&&(cn[dn++]=Tr,cn[dn++]=Er,cn[dn++]=Ro,Tr=e.id,Er=e.overflow,Ro=t),t=d0(t,r.children),t.flags|=4096,t)}function v1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hm(e.return,t,n)}function bp(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function hT(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ct(e,t,r.children,n),r=Ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&v1(e,n,t);else if(e.tag===19)v1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(be(Ie,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&kd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bp(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bp(t,!0,n,null,o);break;case"together":bp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=Ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function E6(e,t,n){switch(t.tag){case 3:dT(t),Qs();break;case 5:zC(t);break;case 1:zt(t.type)&&yd(t);break;case 4:r0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;be(Sd,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(be(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?fT(e,t,n):(be(Ie,Ie.current&1),e=Vr(e,t,n),e!==null?e.sibling:null);be(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hT(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),be(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,uT(e,t,n)}return Vr(e,t,n)}var pT,Jm,mT,gT;pT=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Jm=function(){};mT=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,lo(ar.current);var o=null;switch(n){case"input":i=wm(e,i),r=wm(e,r),o=[];break;case"select":i=Le({},i,{value:void 0}),r=Le({},r,{value:void 0}),o=[];break;case"textarea":i=_m(e,i),r=_m(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=md)}Tm(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Cl.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Cl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ke("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};gT=function(e,t,n,r){n!==r&&(t.flags|=4)};function Aa(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function P6(e,t,n){var r=t.pendingProps;switch(Qy(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return zt(t.type)&&gd(),pt(t),null;case 3:return r=t.stateNode,Zs(),Te(Lt),Te(xt),o0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ic(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rn!==null&&(ag(Rn),Rn=null))),Jm(e,t),pt(t),null;case 5:i0(t);var i=lo(Nl.current);if(n=t.type,e!==null&&t.stateNode!=null)mT(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return pt(t),null}if(e=lo(ar.current),ic(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[er]=t,r[Il]=o,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(i=0;i<Wa.length;i++)ke(Wa[i],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":ES(r,o),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ke("invalid",r);break;case"textarea":RS(r,o),ke("invalid",r)}Tm(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&rc(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&rc(r.textContent,a,e),i=["children",""+a]):Cl.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ke("scroll",r)}switch(n){case"input":Ku(r),PS(r,o,!0);break;case"textarea":Ku(r),AS(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=md)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=W_(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[er]=t,e[Il]=r,pT(e,t,!1,!1),t.stateNode=e;e:{switch(s=Em(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;i<Wa.length;i++)ke(Wa[i],e);i=r;break;case"source":ke("error",e),i=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),i=r;break;case"details":ke("toggle",e),i=r;break;case"input":ES(e,r),i=wm(e,r),ke("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Le({},r,{value:void 0}),ke("invalid",e);break;case"textarea":RS(e,r),i=_m(e,r),ke("invalid",e);break;default:i=r}Tm(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?G_(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&H_(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Tl(e,l):typeof l=="number"&&Tl(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Cl.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ke("scroll",e):l!=null&&Iy(e,o,l,s))}switch(n){case"input":Ku(e),PS(e,r,!1);break;case"textarea":Ku(e),AS(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Fi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Cs(e,!!r.multiple,o,!1):r.defaultValue!=null&&Cs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=md)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)gT(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=lo(Nl.current),lo(ar.current),ic(t)){if(r=t.stateNode,n=t.memoizedProps,r[er]=t,(o=r.nodeValue!==n)&&(e=Xt,e!==null))switch(e.tag){case 3:rc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rc(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[er]=t,t.stateNode=r}return pt(t),null;case 13:if(Te(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(De&&qt!==null&&t.mode&1&&!(t.flags&128))$C(),Qs(),t.flags|=98560,o=!1;else if(o=ic(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(O(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(O(317));o[er]=t}else Qs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pt(t),o=!1}else Rn!==null&&(ag(Rn),Rn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?tt===0&&(tt=3):y0())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return Zs(),Jm(e,t),e===null&&Ol(t.stateNode.containerInfo),pt(t),null;case 10:return e0(t.type._context),pt(t),null;case 17:return zt(t.type)&&gd(),pt(t),null;case 19:if(Te(Ie),o=t.memoizedState,o===null)return pt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Aa(o,!1);else{if(tt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=kd(e),s!==null){for(t.flags|=128,Aa(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return be(Ie,Ie.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ue()>ea&&(t.flags|=128,r=!0,Aa(o,!1),t.lanes=4194304)}else{if(!r)if(e=kd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Aa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!De)return pt(t),null}else 2*Ue()-o.renderingStartTime>ea&&n!==1073741824&&(t.flags|=128,r=!0,Aa(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ue(),t.sibling=null,n=Ie.current,be(Ie,r?n&1|2:n&1),t):(pt(t),null);case 22:case 23:return g0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gt&1073741824&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function R6(e,t){switch(Qy(t),t.tag){case 1:return zt(t.type)&&gd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zs(),Te(Lt),Te(xt),o0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return i0(t),null;case 13:if(Te(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Qs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Ie),null;case 4:return Zs(),null;case 10:return e0(t.type._context),null;case 22:case 23:return g0(),null;case 24:return null;default:return null}}var ac=!1,vt=!1,A6=typeof WeakSet=="function"?WeakSet:Set,z=null;function gs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function eg(e,t,n){try{n()}catch(r){je(e,t,r)}}var b1=!1;function M6(e,t){if(Nm=fd,e=wC(),qy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++c===r&&(l=s),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lm={focusedElem:e,selectionRange:n},fd=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,S=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:_n(t.type,v),S);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(x){je(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=b1,b1=!1,m}function cl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&eg(t,n,o)}i=i.next}while(i!==r)}}function _f(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yT(e){var t=e.alternate;t!==null&&(e.alternate=null,yT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[er],delete t[Il],delete t[Bm],delete t[h6],delete t[p6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vT(e){return e.tag===5||e.tag===3||e.tag===4}function S1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vT(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ng(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=md));else if(r!==4&&(e=e.child,e!==null))for(ng(e,t,n),e=e.sibling;e!==null;)ng(e,t,n),e=e.sibling}function rg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rg(e,t,n),e=e.sibling;e!==null;)rg(e,t,n),e=e.sibling}var lt=null,Pn=!1;function ei(e,t,n){for(n=n.child;n!==null;)bT(e,t,n),n=n.sibling}function bT(e,t,n){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(gf,n)}catch{}switch(n.tag){case 5:vt||gs(n,t);case 6:var r=lt,i=Pn;lt=null,ei(e,t,n),lt=r,Pn=i,lt!==null&&(Pn?(e=lt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lt.removeChild(n.stateNode));break;case 18:lt!==null&&(Pn?(e=lt,n=n.stateNode,e.nodeType===8?fp(e.parentNode,n):e.nodeType===1&&fp(e,n),Al(e)):fp(lt,n.stateNode));break;case 4:r=lt,i=Pn,lt=n.stateNode.containerInfo,Pn=!0,ei(e,t,n),lt=r,Pn=i;break;case 0:case 11:case 14:case 15:if(!vt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&eg(n,t,s),i=i.next}while(i!==r)}ei(e,t,n);break;case 1:if(!vt&&(gs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,t,a)}ei(e,t,n);break;case 21:ei(e,t,n);break;case 22:n.mode&1?(vt=(r=vt)||n.memoizedState!==null,ei(e,t,n),vt=r):ei(e,t,n);break;default:ei(e,t,n)}}function w1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new A6),t.forEach(function(r){var i=j6.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:lt=a.stateNode,Pn=!1;break e;case 3:lt=a.stateNode.containerInfo,Pn=!0;break e;case 4:lt=a.stateNode.containerInfo,Pn=!0;break e}a=a.return}if(lt===null)throw Error(O(160));bT(o,s,i),lt=null,Pn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){je(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ST(t,e),t=t.sibling}function ST(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kn(t,e),Hn(e),r&4){try{cl(3,e,e.return),_f(3,e)}catch(v){je(e,e.return,v)}try{cl(5,e,e.return)}catch(v){je(e,e.return,v)}}break;case 1:kn(t,e),Hn(e),r&512&&n!==null&&gs(n,n.return);break;case 5:if(kn(t,e),Hn(e),r&512&&n!==null&&gs(n,n.return),e.flags&32){var i=e.stateNode;try{Tl(i,"")}catch(v){je(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&V_(i,o),Em(a,s);var u=Em(a,o);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?G_(i,d):c==="dangerouslySetInnerHTML"?H_(i,d):c==="children"?Tl(i,d):Iy(i,c,d,u)}switch(a){case"input":xm(i,o);break;case"textarea":U_(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Cs(i,!!o.multiple,y,!1):f!==!!o.multiple&&(o.defaultValue!=null?Cs(i,!!o.multiple,o.defaultValue,!0):Cs(i,!!o.multiple,o.multiple?[]:"",!1))}i[Il]=o}catch(v){je(e,e.return,v)}}break;case 6:if(kn(t,e),Hn(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){je(e,e.return,v)}}break;case 3:if(kn(t,e),Hn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Al(t.containerInfo)}catch(v){je(e,e.return,v)}break;case 4:kn(t,e),Hn(e);break;case 13:kn(t,e),Hn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(p0=Ue())),r&4&&w1(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(vt=(u=vt)||c,kn(t,e),vt=u):kn(t,e),Hn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(f=z,y=f.child,f.tag){case 0:case 11:case 14:case 15:cl(4,f,f.return);break;case 1:gs(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){je(r,n,v)}}break;case 5:gs(f,f.return);break;case 22:if(f.memoizedState!==null){k1(d);continue}}y!==null?(y.return=f,z=y):k1(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Y_("display",s))}catch(v){je(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){je(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:kn(t,e),Hn(e),r&4&&w1(e);break;case 21:break;default:kn(t,e),Hn(e)}}function Hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vT(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Tl(i,""),r.flags&=-33);var o=S1(e);rg(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=S1(e);ng(e,a,s);break;default:throw Error(O(161))}}catch(l){je(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function D6(e,t,n){z=e,wT(e)}function wT(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ac;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||vt;a=ac;var u=vt;if(ac=s,(vt=l)&&!u)for(z=i;z!==null;)s=z,l=s.child,s.tag===22&&s.memoizedState!==null?_1(i):l!==null?(l.return=s,z=l):_1(i);for(;o!==null;)z=o,wT(o),o=o.sibling;z=i,ac=a,vt=u}x1(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,z=o):x1(e)}}function x1(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:vt||_f(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!vt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:_n(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&s1(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}s1(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Al(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}vt||t.flags&512&&tg(t)}catch(f){je(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function k1(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function _1(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_f(4,t)}catch(l){je(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){je(t,i,l)}}var o=t.return;try{tg(t)}catch(l){je(t,o,l)}break;case 5:var s=t.return;try{tg(t)}catch(l){je(t,s,l)}}}catch(l){je(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var O6=Math.ceil,Td=Hr.ReactCurrentDispatcher,f0=Hr.ReactCurrentOwner,mn=Hr.ReactCurrentBatchConfig,ie=0,ot=null,Qe=null,ct=0,Gt=0,ys=Vi(0),tt=0,Bl=null,Mo=0,Cf=0,h0=0,dl=null,$t=null,p0=0,ea=1/0,gr=null,Ed=!1,ig=null,Ei=null,lc=!1,yi=null,Pd=0,fl=0,og=null,Nc=-1,Lc=0;function Rt(){return ie&6?Ue():Nc!==-1?Nc:Nc=Ue()}function Pi(e){return e.mode&1?ie&2&&ct!==0?ct&-ct:g6.transition!==null?(Lc===0&&(Lc=oC()),Lc):(e=pe,e!==0||(e=window.event,e=e===void 0?16:fC(e.type)),e):1}function On(e,t,n,r){if(50<fl)throw fl=0,og=null,Error(O(185));hu(e,n,r),(!(ie&2)||e!==ot)&&(e===ot&&(!(ie&2)&&(Cf|=n),tt===4&&ui(e,ct)),jt(e,r),n===1&&ie===0&&!(t.mode&1)&&(ea=Ue()+500,wf&&Ui()))}function jt(e,t){var n=e.callbackNode;gB(e,t);var r=dd(e,e===ot?ct:0);if(r===0)n!==null&&OS(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&OS(n),t===1)e.tag===0?m6(C1.bind(null,e)):MC(C1.bind(null,e)),d6(function(){!(ie&6)&&Ui()}),n=null;else{switch(sC(r)){case 1:n=jy;break;case 4:n=rC;break;case 16:n=cd;break;case 536870912:n=iC;break;default:n=cd}n=RT(n,xT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xT(e,t){if(Nc=-1,Lc=0,ie&6)throw Error(O(327));var n=e.callbackNode;if(As()&&e.callbackNode!==n)return null;var r=dd(e,e===ot?ct:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Rd(e,r);else{t=r;var i=ie;ie|=2;var o=_T();(ot!==e||ct!==t)&&(gr=null,ea=Ue()+500,xo(e,t));do try{F6();break}catch(a){kT(e,a)}while(!0);Jy(),Td.current=o,ie=i,Qe!==null?t=0:(ot=null,ct=0,t=tt)}if(t!==0){if(t===2&&(i=Dm(e),i!==0&&(r=i,t=sg(e,i))),t===1)throw n=Bl,xo(e,0),ui(e,r),jt(e,Ue()),n;if(t===6)ui(e,r);else{if(i=e.current.alternate,!(r&30)&&!$6(i)&&(t=Rd(e,r),t===2&&(o=Dm(e),o!==0&&(r=o,t=sg(e,o))),t===1))throw n=Bl,xo(e,0),ui(e,r),jt(e,Ue()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:to(e,$t,gr);break;case 3:if(ui(e,r),(r&130023424)===r&&(t=p0+500-Ue(),10<t)){if(dd(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Rt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=jm(to.bind(null,e,$t,gr),t);break}to(e,$t,gr);break;case 4:if(ui(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Dn(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O6(r/1960))-r,10<r){e.timeoutHandle=jm(to.bind(null,e,$t,gr),r);break}to(e,$t,gr);break;case 5:to(e,$t,gr);break;default:throw Error(O(329))}}}return jt(e,Ue()),e.callbackNode===n?xT.bind(null,e):null}function sg(e,t){var n=dl;return e.current.memoizedState.isDehydrated&&(xo(e,t).flags|=256),e=Rd(e,t),e!==2&&(t=$t,$t=n,t!==null&&ag(t)),e}function ag(e){$t===null?$t=e:$t.push.apply($t,e)}function $6(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!$n(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ui(e,t){for(t&=~h0,t&=~Cf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dn(t),r=1<<n;e[n]=-1,t&=~r}}function C1(e){if(ie&6)throw Error(O(327));As();var t=dd(e,0);if(!(t&1))return jt(e,Ue()),null;var n=Rd(e,t);if(e.tag!==0&&n===2){var r=Dm(e);r!==0&&(t=r,n=sg(e,r))}if(n===1)throw n=Bl,xo(e,0),ui(e,t),jt(e,Ue()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,to(e,$t,gr),jt(e,Ue()),null}function m0(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(ea=Ue()+500,wf&&Ui())}}function Do(e){yi!==null&&yi.tag===0&&!(ie&6)&&As();var t=ie;ie|=1;var n=mn.transition,r=pe;try{if(mn.transition=null,pe=1,e)return e()}finally{pe=r,mn.transition=n,ie=t,!(ie&6)&&Ui()}}function g0(){Gt=ys.current,Te(ys)}function xo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,c6(n)),Qe!==null)for(n=Qe.return;n!==null;){var r=n;switch(Qy(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gd();break;case 3:Zs(),Te(Lt),Te(xt),o0();break;case 5:i0(r);break;case 4:Zs();break;case 13:Te(Ie);break;case 19:Te(Ie);break;case 10:e0(r.type._context);break;case 22:case 23:g0()}n=n.return}if(ot=e,Qe=e=Ri(e.current,null),ct=Gt=t,tt=0,Bl=null,h0=Cf=Mo=0,$t=dl=null,ao!==null){for(t=0;t<ao.length;t++)if(n=ao[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}ao=null}return e}function kT(e,t){do{var n=Qe;try{if(Jy(),$c.current=Cd,_d){for(var r=Ne.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}_d=!1}if(Ao=0,it=et=Ne=null,ul=!1,Ll=0,f0.current=null,n===null||n.return===null){tt=1,Bl=t,Qe=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=ct,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=f1(s);if(y!==null){y.flags&=-257,h1(y,s,a,o,t),y.mode&1&&d1(o,u,t),t=y,l=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(l),t.updateQueue=v}else m.add(l);break e}else{if(!(t&1)){d1(o,u,t),y0();break e}l=Error(O(426))}}else if(De&&a.mode&1){var S=f1(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),h1(S,s,a,o,t),Xy(Js(l,a));break e}}o=l=Js(l,a),tt!==4&&(tt=2),dl===null?dl=[o]:dl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=sT(o,l,t);o1(o,g);break e;case 1:a=l;var h=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ei===null||!Ei.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=aT(o,a,t);o1(o,x);break e}}o=o.return}while(o!==null)}TT(n)}catch(C){t=C,Qe===n&&n!==null&&(Qe=n=n.return);continue}break}while(!0)}function _T(){var e=Td.current;return Td.current=Cd,e===null?Cd:e}function y0(){(tt===0||tt===3||tt===2)&&(tt=4),ot===null||!(Mo&268435455)&&!(Cf&268435455)||ui(ot,ct)}function Rd(e,t){var n=ie;ie|=2;var r=_T();(ot!==e||ct!==t)&&(gr=null,xo(e,t));do try{I6();break}catch(i){kT(e,i)}while(!0);if(Jy(),ie=n,Td.current=r,Qe!==null)throw Error(O(261));return ot=null,ct=0,tt}function I6(){for(;Qe!==null;)CT(Qe)}function F6(){for(;Qe!==null&&!aB();)CT(Qe)}function CT(e){var t=PT(e.alternate,e,Gt);e.memoizedProps=e.pendingProps,t===null?TT(e):Qe=t,f0.current=null}function TT(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=R6(n,t),n!==null){n.flags&=32767,Qe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{tt=6,Qe=null;return}}else if(n=P6(n,t,Gt),n!==null){Qe=n;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);tt===0&&(tt=5)}function to(e,t,n){var r=pe,i=mn.transition;try{mn.transition=null,pe=1,N6(e,t,n,r)}finally{mn.transition=i,pe=r}return null}function N6(e,t,n,r){do As();while(yi!==null);if(ie&6)throw Error(O(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(yB(e,o),e===ot&&(Qe=ot=null,ct=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||lc||(lc=!0,RT(cd,function(){return As(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=mn.transition,mn.transition=null;var s=pe;pe=1;var a=ie;ie|=4,f0.current=null,M6(e,n),ST(n,e),r6(Lm),fd=!!Nm,Lm=Nm=null,e.current=n,D6(n),lB(),ie=a,pe=s,mn.transition=o}else e.current=n;if(lc&&(lc=!1,yi=e,Pd=i),o=e.pendingLanes,o===0&&(Ei=null),dB(n.stateNode),jt(e,Ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ed)throw Ed=!1,e=ig,ig=null,e;return Pd&1&&e.tag!==0&&As(),o=e.pendingLanes,o&1?e===og?fl++:(fl=0,og=e):fl=0,Ui(),null}function As(){if(yi!==null){var e=sC(Pd),t=mn.transition,n=pe;try{if(mn.transition=null,pe=16>e?16:e,yi===null)var r=!1;else{if(e=yi,yi=null,Pd=0,ie&6)throw Error(O(331));var i=ie;for(ie|=4,z=e.current;z!==null;){var o=z,s=o.child;if(z.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:cl(8,c,o)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var f=c.sibling,y=c.return;if(yT(c),c===u){z=null;break}if(f!==null){f.return=y,z=f;break}z=y}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var S=v.sibling;v.sibling=null,v=S}while(v!==null)}}z=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,z=s;else e:for(;z!==null;){if(o=z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:cl(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,z=g;break e}z=o.return}}var h=e.current;for(z=h;z!==null;){s=z;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,z=p;else e:for(s=h;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:_f(9,a)}}catch(C){je(a,a.return,C)}if(a===s){z=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,z=x;break e}z=a.return}}if(ie=i,Ui(),sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(gf,e)}catch{}r=!0}return r}finally{pe=n,mn.transition=t}}return!1}function T1(e,t,n){t=Js(n,t),t=sT(e,t,1),e=Ti(e,t,1),t=Rt(),e!==null&&(hu(e,1,t),jt(e,t))}function je(e,t,n){if(e.tag===3)T1(e,e,n);else for(;t!==null;){if(t.tag===3){T1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ei===null||!Ei.has(r))){e=Js(n,e),e=aT(t,e,1),t=Ti(t,e,1),e=Rt(),t!==null&&(hu(t,1,e),jt(t,e));break}}t=t.return}}function L6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Rt(),e.pingedLanes|=e.suspendedLanes&n,ot===e&&(ct&n)===n&&(tt===4||tt===3&&(ct&130023424)===ct&&500>Ue()-p0?xo(e,0):h0|=n),jt(e,t)}function ET(e,t){t===0&&(e.mode&1?(t=Zu,Zu<<=1,!(Zu&130023424)&&(Zu=4194304)):t=1);var n=Rt();e=Br(e,t),e!==null&&(hu(e,t,n),jt(e,n))}function z6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ET(e,n)}function j6(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),ET(e,n)}var PT;PT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)Ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ft=!1,E6(e,t,n);Ft=!!(e.flags&131072)}else Ft=!1,De&&t.flags&1048576&&DC(t,bd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fc(e,t),e=t.pendingProps;var i=Ks(t,xt.current);Rs(t,n),i=a0(null,t,r,e,i,n);var o=l0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(r)?(o=!0,yd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,n0(t),i.updater=kf,t.stateNode=i,i._reactInternals=t,Gm(t,r,e,n),t=Qm(null,t,r,!0,o,n)):(t.tag=0,De&&o&&Ky(t),Ct(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=V6(r),e=_n(r,e),i){case 0:t=Km(null,t,r,e,n);break e;case 1:t=g1(null,t,r,e,n);break e;case 11:t=p1(null,t,r,e,n);break e;case 14:t=m1(null,t,r,_n(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),Km(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),g1(e,t,r,i,n);case 3:e:{if(dT(t),e===null)throw Error(O(387));r=t.pendingProps,o=t.memoizedState,i=o.element,LC(e,t),xd(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Js(Error(O(423)),t),t=y1(e,t,r,n,i);break e}else if(r!==i){i=Js(Error(O(424)),t),t=y1(e,t,r,n,i);break e}else for(qt=Ci(t.stateNode.containerInfo.firstChild),Xt=t,De=!0,Rn=null,n=FC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qs(),r===i){t=Vr(e,t,n);break e}Ct(e,t,r,n)}t=t.child}return t;case 5:return zC(t),e===null&&Wm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,zm(r,i)?s=null:o!==null&&zm(r,o)&&(t.flags|=32),cT(e,t),Ct(e,t,s,n),t.child;case 6:return e===null&&Wm(t),null;case 13:return fT(e,t,n);case 4:return r0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xs(t,null,r,n):Ct(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),p1(e,t,r,i,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,be(Sd,r._currentValue),r._currentValue=s,o!==null)if($n(o.value,s)){if(o.children===i.children&&!Lt.current){t=Vr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Or(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Hm(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(O(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hm(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ct(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Rs(t,n),i=gn(i),r=r(i),t.flags|=1,Ct(e,t,r,n),t.child;case 14:return r=t.type,i=_n(r,t.pendingProps),i=_n(r.type,i),m1(e,t,r,i,n);case 15:return lT(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),Fc(e,t),t.tag=1,zt(r)?(e=!0,yd(t)):e=!1,Rs(t,n),oT(t,r,i),Gm(t,r,i,n),Qm(null,t,r,!0,e,n);case 19:return hT(e,t,n);case 22:return uT(e,t,n)}throw Error(O(156,t.tag))};function RT(e,t){return nC(e,t)}function B6(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(e,t,n,r){return new B6(e,t,n,r)}function v0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V6(e){if(typeof e=="function")return v0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ny)return 11;if(e===Ly)return 14}return 2}function Ri(e,t){var n=e.alternate;return n===null?(n=pn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zc(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")v0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case as:return ko(n.children,i,o,t);case Fy:s=8,i|=8;break;case ym:return e=pn(12,n,t,i|2),e.elementType=ym,e.lanes=o,e;case vm:return e=pn(13,n,t,i),e.elementType=vm,e.lanes=o,e;case bm:return e=pn(19,n,t,i),e.elementType=bm,e.lanes=o,e;case z_:return Tf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N_:s=10;break e;case L_:s=9;break e;case Ny:s=11;break e;case Ly:s=14;break e;case oi:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=pn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ko(e,t,n,r){return e=pn(7,e,r,t),e.lanes=n,e}function Tf(e,t,n,r){return e=pn(22,e,r,t),e.elementType=z_,e.lanes=n,e.stateNode={isHidden:!1},e}function Sp(e,t,n){return e=pn(6,e,null,t),e.lanes=n,e}function wp(e,t,n){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U6(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tp(0),this.expirationTimes=tp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function b0(e,t,n,r,i,o,s,a,l){return e=new U6(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=pn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},n0(o),e}function W6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ss,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function AT(e){if(!e)return Ni;e=e._reactInternals;e:{if(jo(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(zt(n))return AC(e,n,t)}return t}function MT(e,t,n,r,i,o,s,a,l){return e=b0(n,r,!0,e,i,o,s,a,l),e.context=AT(null),n=e.current,r=Rt(),i=Pi(n),o=Or(r,i),o.callback=t??null,Ti(n,o,i),e.current.lanes=i,hu(e,i,r),jt(e,r),e}function Ef(e,t,n,r){var i=t.current,o=Rt(),s=Pi(i);return n=AT(n),t.context===null?t.context=n:t.pendingContext=n,t=Or(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ti(i,t,s),e!==null&&(On(e,i,s,o),Oc(e,i,s)),s}function Ad(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function E1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function S0(e,t){E1(e,t),(e=e.alternate)&&E1(e,t)}function H6(){return null}var DT=typeof reportError=="function"?reportError:function(e){console.error(e)};function w0(e){this._internalRoot=e}Pf.prototype.render=w0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Ef(e,t,null,null)};Pf.prototype.unmount=w0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Do(function(){Ef(null,e,null,null)}),t[jr]=null}};function Pf(e){this._internalRoot=e}Pf.prototype.unstable_scheduleHydration=function(e){if(e){var t=uC();e={blockedOn:null,target:e,priority:t};for(var n=0;n<li.length&&t!==0&&t<li[n].priority;n++);li.splice(n,0,e),n===0&&dC(e)}};function x0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function P1(){}function Y6(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Ad(s);o.call(u)}}var s=MT(t,r,e,0,null,!1,!1,"",P1);return e._reactRootContainer=s,e[jr]=s.current,Ol(e.nodeType===8?e.parentNode:e),Do(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ad(l);a.call(u)}}var l=b0(e,0,!1,null,null,!1,!1,"",P1);return e._reactRootContainer=l,e[jr]=l.current,Ol(e.nodeType===8?e.parentNode:e),Do(function(){Ef(t,l,n,r)}),l}function Af(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Ad(s);a.call(l)}}Ef(t,s,e,i)}else s=Y6(n,t,e,i,r);return Ad(s)}aC=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ua(t.pendingLanes);n!==0&&(By(t,n|1),jt(t,Ue()),!(ie&6)&&(ea=Ue()+500,Ui()))}break;case 13:Do(function(){var r=Br(e,1);if(r!==null){var i=Rt();On(r,e,1,i)}}),S0(e,1)}};Vy=function(e){if(e.tag===13){var t=Br(e,134217728);if(t!==null){var n=Rt();On(t,e,134217728,n)}S0(e,134217728)}};lC=function(e){if(e.tag===13){var t=Pi(e),n=Br(e,t);if(n!==null){var r=Rt();On(n,e,t,r)}S0(e,t)}};uC=function(){return pe};cC=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};Rm=function(e,t,n){switch(t){case"input":if(xm(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Sf(r);if(!i)throw Error(O(90));B_(r),xm(r,i)}}}break;case"textarea":U_(e,n);break;case"select":t=n.value,t!=null&&Cs(e,!!n.multiple,t,!1)}};Q_=m0;X_=Do;var G6={usingClientEntryPoint:!1,Events:[mu,ds,Sf,q_,K_,m0]},Ma={findFiberByHostInstance:so,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},q6={bundleType:Ma.bundleType,version:Ma.version,rendererPackageName:Ma.rendererPackageName,rendererConfig:Ma.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=eC(e),e===null?null:e.stateNode},findFiberByHostInstance:Ma.findFiberByHostInstance||H6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{gf=uc.inject(q6),sr=uc}catch{}}tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G6;tn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x0(t))throw Error(O(200));return W6(e,t,null,n)};tn.createRoot=function(e,t){if(!x0(e))throw Error(O(299));var n=!1,r="",i=DT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=b0(e,1,!1,null,null,n,!1,r,i),e[jr]=t.current,Ol(e.nodeType===8?e.parentNode:e),new w0(t)};tn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=eC(t),e=e===null?null:e.stateNode,e};tn.flushSync=function(e){return Do(e)};tn.hydrate=function(e,t,n){if(!Rf(t))throw Error(O(200));return Af(null,e,t,!0,n)};tn.hydrateRoot=function(e,t,n){if(!x0(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=DT;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=MT(t,null,e,1,n??null,i,!1,o,s),e[jr]=t.current,Ol(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Pf(t)};tn.render=function(e,t,n){if(!Rf(t))throw Error(O(200));return Af(null,e,t,!1,n)};tn.unmountComponentAtNode=function(e){if(!Rf(e))throw Error(O(40));return e._reactRootContainer?(Do(function(){Af(null,null,e,!1,function(){e._reactRootContainer=null,e[jr]=null})}),!0):!1};tn.unstable_batchedUpdates=m0;tn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rf(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Af(e,t,n,!1,r)};tn.version="18.3.1-next-f1338f8080-20240426";function OT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OT)}catch(e){console.error(e)}}OT(),O_.exports=tn;var Mf=O_.exports;const JK=nu(Mf),[$T,K6]=zi({strict:!1,name:"PortalContext"}),k0="chakra-portal",Q6=".chakra-portal",X6=e=>M.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Z6=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=w.useState(null),o=w.useRef(null),[,s]=w.useState({});w.useEffect(()=>s({}),[]);const a=K6(),l=FN();ml(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;o.current=c.createElement("div"),o.current.className=k0,d.appendChild(o.current),s({});const f=o.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?M.jsx(X6,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return o.current?Mf.createPortal(M.jsx($T,{value:o.current,children:u}),o.current):M.jsx("span",{ref:c=>{c&&i(c)}})},J6=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),s=w.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=k0),l},[i]),[,a]=w.useState({});return ml(()=>a({}),[]),ml(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?Mf.createPortal(M.jsx($T,{value:r?s:null,children:t}),s):null};function Df(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?M.jsx(J6,{containerRef:n,...r}):M.jsx(Z6,{...r})}Df.className=k0;Df.selector=Q6;Df.displayName="Portal";const[eV,eQ]=zi({name:"ToastOptionsContext",strict:!1}),tV=e=>{const t=w.useSyncExternalStore(rl.subscribe,rl.getState,rl.getState),{motionVariants:n,component:r=__,portalProps:i,animatePresenceProps:o}=e,a=Object.keys(t).map(l=>{const u=t[l];return M.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:sj(l),children:M.jsx(rj,{...o,initial:!1,children:u.map(c=>M.jsx(r,{motionVariants:n,...c},c.id))})},l)});return M.jsx(Df,{...i,children:a})},nV=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return M.jsxs(NN,{theme:r,...o,children:[M.jsx(eV,{value:i==null?void 0:i.defaultOptions,children:n}),M.jsx(tV,{...i})]})},rV=nV(Ox);function iV(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=w.useState("pending");w.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=w.useRef(null),f=w.useCallback(()=>{if(!n)return;y();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=v=>{y(),c("loaded"),i==null||i(v)},m.onerror=v=>{y(),c("failed"),o==null||o(v)},d.current=m},[n,s,r,a,i,o,t]),y=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return ml(()=>{if(!l)return u==="loading"&&f(),()=>{y()}},[u,f,l]),l?"loaded":u}const oV=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",hl=Be("div");hl.displayName="Box";const[tQ,sV]=zi({strict:!1,name:"ButtonGroupContext"});function Ha(e){const{children:t,className:n,...r}=e,i=w.isValidElement(t)?w.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=Nn("chakra-button__icon",n);return M.jsx(Be.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}Ha.displayName="ButtonIcon";function lg(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=M.jsx(mf,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...a}=e,l=Nn("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",c=w.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return M.jsx(Be.div,{className:l,...a,__css:c,children:i})}lg.displayName="ButtonSpinner";function aV(e){const[t,n]=w.useState(!e);return{ref:w.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const ug=vn((e,t)=>{const n=sV(),r=ia("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:y,spinnerPlacement:m="start",className:v,as:S,shouldWrapChildren:g,...h}=na(e),p=w.useMemo(()=>{const P={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:x,type:C}=aV(S),R={rightIcon:u,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:g};return M.jsxs(Be.button,{disabled:i||o,ref:iA(t,x),as:S,type:f??C,"data-active":Iv(s),"data-loading":Iv(o),__css:p,className:Nn("chakra-button",v),...h,children:[o&&m==="start"&&M.jsx(lg,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:y}),o?c||M.jsx(Be.span,{opacity:0,children:M.jsx(R1,{...R})}):M.jsx(R1,{...R}),o&&m==="end"&&M.jsx(lg,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:y})]})});ug.displayName="Button";function R1(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i,shouldWrapChildren:o}=e;return o?M.jsxs("span",{style:{display:"contents"},children:[t&&M.jsx(Ha,{marginEnd:i,children:t}),r,n&&M.jsx(Ha,{marginStart:i,children:n})]}):M.jsxs(M.Fragment,{children:[t&&M.jsx(Ha,{marginEnd:i,children:t}),r,n&&M.jsx(Ha,{marginStart:i,children:n})]})}const IT=Be("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});IT.displayName="Center";const lV={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},nQ=vn(function(t,n){const{axis:r="both",...i}=t;return M.jsx(Be.div,{ref:n,__css:lV[r],...i,position:"absolute"})});function Ya(e){return typeof e=="function"}function uV(...e){return t=>e.reduce((n,r)=>r(n),t)}const cV=e=>function(...n){let r=[...n],i=n[n.length-1];return xF(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,uV(...r.map(o=>s=>Ya(o)?o(s):fV(s,o)))(i)},dV=cV(Ox);function fV(...e){return hn({},...e,FT)}function FT(e,t,n,r){if((Ya(e)||Ya(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=Ya(e)?e(...i):e,s=Ya(t)?t(...i):t;return hn({},o,s,FT)};if(Nt(e)&&Vp(t)||Vp(e)&&Nt(t))return t}const cg=vn(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return M.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});cg.displayName="NativeImage";const NT=vn(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:y,...m}=t,v=r!==void 0||i!==void 0,S=u!=null||c||!v,g=iV({...t,crossOrigin:d,ignoreFallback:S}),h=oV(g,f),p={ref:n,objectFit:l,objectPosition:a,...S?m:Vg(m,["onError","onLoad"])};return h?i||M.jsx(Be.img,{as:cg,className:"chakra-image__placeholder",src:r,...p}):M.jsx(Be.img,{as:cg,src:o,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:y,className:"chakra-image",...p})});NT.displayName="Image";const LT=vn(function(t,n){const r=ia("Heading",t),{className:i,...o}=na(t);return M.jsx(Be.h2,{ref:n,className:Nn("chakra-heading",t.className),...o,__css:r})});LT.displayName="Heading";const jc=vn(function(t,n){const r=ia("Text",t),{className:i,align:o,decoration:s,casing:a,...l}=na(t),u=Bg({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return M.jsx(Be.p,{ref:n,className:Nn("chakra-text",t.className),...u,...l,__css:r})});jc.displayName="Text";var zT,A1=Mf;zT=A1.createRoot,A1.hydrateRoot;/**
 * @remix-run/router v1.23.0
 *
 * 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 Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(this,arguments)}var vi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vi||(vi={}));const M1="popstate";function hV(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return dg("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Md(i)}return mV(t,n,null,e)}function Ye(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jT(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pV(){return Math.random().toString(36).substr(2,8)}function D1(e,t){return{usr:e.state,key:e.key,idx:t}}function dg(e,t,n,r){return n===void 0&&(n=null),Vl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?aa(t):t,{state:n,key:t&&t.key||r||pV()})}function Md(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function aa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function mV(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=vi.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Vl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=vi.Pop;let S=c(),g=S==null?null:S-u;u=S,l&&l({action:a,location:v.location,delta:g})}function f(S,g){a=vi.Push;let h=dg(v.location,S,g);u=c()+1;let p=D1(h,u),x=v.createHref(h);try{s.pushState(p,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(x)}o&&l&&l({action:a,location:v.location,delta:1})}function y(S,g){a=vi.Replace;let h=dg(v.location,S,g);u=c();let p=D1(h,u),x=v.createHref(h);s.replaceState(p,"",x),o&&l&&l({action:a,location:v.location,delta:0})}function m(S){let g=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof S=="string"?S:Md(S);return h=h.replace(/ $/,"%20"),Ye(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let v={get action(){return a},get location(){return e(i,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(M1,d),l=S,()=>{i.removeEventListener(M1,d),l=null}},createHref(S){return t(i,S)},createURL:m,encodeLocation(S){let g=m(S);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:y,go(S){return s.go(S)}};return v}var O1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(O1||(O1={}));function gV(e,t,n){return n===void 0&&(n="/"),yV(e,t,n)}function yV(e,t,n,r){let i=typeof t=="string"?aa(t):t,o=_0(i.pathname||"/",n);if(o==null)return null;let s=BT(e);vV(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=AV(o);a=EV(s[l],u)}return a}function BT(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(Ye(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ai([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Ye(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),BT(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:CV(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of VT(o.path))i(o,s,l)}),t}function VT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=VT(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function vV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const bV=/^:[\w-]+$/,SV=3,wV=2,xV=1,kV=10,_V=-2,$1=e=>e==="*";function CV(e,t){let n=e.split("/"),r=n.length;return n.some($1)&&(r+=_V),t&&(r+=wV),n.filter(i=>!$1(i)).reduce((i,o)=>i+(bV.test(o)?SV:o===""?xV:kV),r)}function TV(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function EV(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",d=PV({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d)return null;Object.assign(i,d.params),s.push({params:i,pathname:Ai([o,d.pathname]),pathnameBase:$V(Ai([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=Ai([o,d.pathnameBase]))}return s}function PV(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=RV(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:y}=c;if(f==="*"){let v=a[d]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const m=a[d];return y&&!m?u[f]=void 0:u[f]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function RV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jT(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function AV(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jT(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function MV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?aa(e):e;return{pathname:n?n.startsWith("/")?n:DV(n,t):t,search:IV(r),hash:FV(i)}}function DV(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function OV(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function C0(e,t){let n=OV(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function T0(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=aa(e):(i=Vl({},e),Ye(!i.pathname||!i.pathname.includes("?"),xp("?","pathname","search",i)),Ye(!i.pathname||!i.pathname.includes("#"),xp("#","pathname","hash",i)),Ye(!i.search||!i.search.includes("#"),xp("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=MV(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Ai=e=>e.join("/").replace(/\/\/+/g,"/"),$V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function NV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const UT=["post","put","patch","delete"];new Set(UT);const LV=["get",...UT];new Set(LV);/**
 * React Router v6.30.0
 *
 * 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 Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ul.apply(this,arguments)}const E0=w.createContext(null),zV=w.createContext(null),Wi=w.createContext(null),Of=w.createContext(null),Yr=w.createContext({outlet:null,matches:[],isDataRoute:!1}),WT=w.createContext(null);function jV(e,t){let{relative:n}=t===void 0?{}:t;la()||Ye(!1);let{basename:r,navigator:i}=w.useContext(Wi),{hash:o,pathname:s,search:a}=YT(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Ai([r,s])),i.createHref({pathname:l,search:a,hash:o})}function la(){return w.useContext(Of)!=null}function Bo(){return la()||Ye(!1),w.useContext(Of).location}function HT(e){w.useContext(Wi).static||w.useLayoutEffect(e)}function P0(){let{isDataRoute:e}=w.useContext(Yr);return e?JV():BV()}function BV(){la()||Ye(!1);let e=w.useContext(E0),{basename:t,future:n,navigator:r}=w.useContext(Wi),{matches:i}=w.useContext(Yr),{pathname:o}=Bo(),s=JSON.stringify(C0(i,n.v7_relativeSplatPath)),a=w.useRef(!1);return HT(()=>{a.current=!0}),w.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=T0(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ai([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}function rQ(){let{matches:e}=w.useContext(Yr),t=e[e.length-1];return t?t.params:{}}function YT(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(Wi),{matches:i}=w.useContext(Yr),{pathname:o}=Bo(),s=JSON.stringify(C0(i,r.v7_relativeSplatPath));return w.useMemo(()=>T0(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function VV(e,t){return UV(e,t)}function UV(e,t,n,r){la()||Ye(!1);let{navigator:i,static:o}=w.useContext(Wi),{matches:s}=w.useContext(Yr),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Bo(),d;if(t){var f;let g=typeof t=="string"?aa(t):t;u==="/"||(f=g.pathname)!=null&&f.startsWith(u)||Ye(!1),d=g}else d=c;let y=d.pathname||"/",m=y;if(u!=="/"){let g=u.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=gV(e,{pathname:m}),S=qV(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:Ai([u,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:Ai([u,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),s,n,r);return t&&S?w.createElement(Of.Provider,{value:{location:Ul({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:vi.Pop}},S):S}function WV(){let e=ZV(),t=NV(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const HV=w.createElement(WV,null);class YV extends w.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Yr.Provider,{value:this.props.routeContext},w.createElement(WT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GV(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(E0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Yr.Provider,{value:t},r)}function qV(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Ye(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:y}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||m){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let y,m=!1,v=null,S=null;n&&(y=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||HV,l&&(u<0&&f===0?(eU("route-fallback"),m=!0,S=null):u===f&&(m=!0,S=d.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,f+1)),h=()=>{let p;return y?p=v:m?p=S:d.route.Component?p=w.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=c,w.createElement(GV,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?w.createElement(YV,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:h(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):h()},null)}var GT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(GT||{}),qT=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(qT||{});function KV(e){let t=w.useContext(E0);return t||Ye(!1),t}function QV(e){let t=w.useContext(zV);return t||Ye(!1),t}function XV(e){let t=w.useContext(Yr);return t||Ye(!1),t}function KT(e){let t=XV(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function ZV(){var e;let t=w.useContext(WT),n=QV(),r=KT();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function JV(){let{router:e}=KV(GT.UseNavigateStable),t=KT(qT.UseNavigateStable),n=w.useRef(!1);return HT(()=>{n.current=!0}),w.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ul({fromRouteId:t},o)))},[e,t])}const I1={};function eU(e,t,n){I1[e]||(I1[e]=!0)}function tU(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function iQ(e){let{to:t,replace:n,state:r,relative:i}=e;la()||Ye(!1);let{future:o,static:s}=w.useContext(Wi),{matches:a}=w.useContext(Yr),{pathname:l}=Bo(),u=P0(),c=T0(t,C0(a,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return w.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function nU(e){Ye(!1)}function rU(e){let{basename:t="/",children:n=null,location:r,navigationType:i=vi.Pop,navigator:o,static:s=!1,future:a}=e;la()&&Ye(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:o,static:s,future:Ul({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=aa(r));let{pathname:c="/",search:d="",hash:f="",state:y=null,key:m="default"}=r,v=w.useMemo(()=>{let S=_0(c,l);return S==null?null:{location:{pathname:S,search:d,hash:f,state:y,key:m},navigationType:i}},[l,c,d,f,y,m,i]);return v==null?null:w.createElement(Wi.Provider,{value:u},w.createElement(Of.Provider,{children:n,value:v}))}function oQ(e){let{children:t,location:n}=e;return VV(fg(t),n)}new Promise(()=>{});function fg(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let o=[...t,i];if(r.type===w.Fragment){n.push.apply(n,fg(r.props.children,o));return}r.type!==nU&&Ye(!1),!r.props.index||!r.props.children||Ye(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=fg(r.props.children,o)),n.push(s)}),n}/**
 * React Router DOM v6.30.0
 *
 * 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 hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(this,arguments)}function iU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function oU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sU(e,t){return e.button===0&&(!t||t==="_self")&&!oU(e)}function pg(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function aU(e,t){let n=pg(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const lU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uU="6";try{window.__reactRouterVersion=uU}catch{}const cU="startTransition",F1=Bp[cU];function dU(e){let{basename:t,children:n,future:r,window:i}=e,o=w.useRef();o.current==null&&(o.current=hV({window:i,v5Compat:!0}));let s=o.current,[a,l]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=w.useCallback(d=>{u&&F1?F1(()=>l(d)):l(d)},[l,u]);return w.useLayoutEffect(()=>s.listen(c),[s,c]),w.useEffect(()=>tU(r),[r]),w.createElement(rU,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const fU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sQ=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=iU(t,lU),{basename:y}=w.useContext(Wi),m,v=!1;if(typeof u=="string"&&hU.test(u)&&(m=u,fU))try{let p=new URL(window.location.href),x=u.startsWith("//")?new URL(p.protocol+u):new URL(u),C=_0(x.pathname,y);x.origin===p.origin&&C!=null?u=C+x.search+x.hash:v=!0}catch{}let S=jV(u,{relative:i}),g=pU(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:d});function h(p){r&&r(p),p.defaultPrevented||g(p)}return w.createElement("a",hg({},f,{href:m||S,onClick:v||o?r:h,ref:n,target:l}))});var N1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(N1||(N1={}));var L1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(L1||(L1={}));function pU(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=P0(),u=Bo(),c=YT(e,{relative:s});return w.useCallback(d=>{if(sU(d,n)){d.preventDefault();let f=r!==void 0?r:Md(u)===Md(c);l(e,{replace:f,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}function aQ(e){let t=w.useRef(pg(e)),n=w.useRef(!1),r=Bo(),i=w.useMemo(()=>aU(r.search,n.current?null:t.current),[r.search]),o=P0(),s=w.useCallback((a,l)=>{const u=pg(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,l)},[o,i]);return[i,s]}const mU=dV({initialColorMode:"light",useSystemColorMode:!1,styles:{global:{"::-webkit-scrollbar":{width:"4px",height:"4px"},"::-webkit-scrollbar-thumb":{backgroundColor:"gray.600",borderRadius:"4px"},"::-webkit-scrollbar-track":{backgroundColor:"gray.100"},"::-webkit-scrollbar-thumb:horizontal":{backgroundColor:"gray.600",borderRadius:"4px"},"::-webkit-scrollbar-track:horizontal":{backgroundColor:"gray.100"}}},fonts:{body:"Inter, sans-serif",heading:"Inter, sans-serif",mono:"Inter, monospace"},colors:{main:{50:"#e7f1ff",100:"#d3e6ff",200:"#b0ceff",300:"#81adff",400:"#507aff",500:"#2949ff",600:"#0515ff",700:"#0011ff",800:"#0110df",900:"#041150",950:"#070c5f",default:"#041150"}},components:{Button:{variants:{blackButton:{color:"white",bg:"#000",_hover:{bg:"#000"}},gray:{color:"#000",bg:"gray.100",_hover:{bg:"gray.100"}}}},FormLabel:{baseStyle:{fontSize:"15px"}}}}),gU="modulepreload",yU=function(e){return"/admin/"+e},z1={},yu=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=yU(l),l in z1)return;z1[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":gU,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,y)=>{d.addEventListener("load",f),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var j1={};/**
 * @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 QT=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},vU=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],a=e[n++],l=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},XT={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,a=s?e[i+1]:0,l=i+2<e.length,u=l?e[i+2]:0,c=o>>2,d=(o&3)<<4|a>>4;let f=(a&15)<<2|u>>6,y=u&63;l||(y=64,s||(f=64)),r.push(n[c],n[d],n[f],n[y])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(QT(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):vU(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const u=i<e.length?n[e.charAt(i)]:64;++i;const d=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||a==null||u==null||d==null)throw new bU;const f=o<<2|a>>4;if(r.push(f),u!==64){const y=a<<4&240|u>>2;if(r.push(y),d!==64){const m=u<<6&192|d;r.push(m)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class bU extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const SU=function(e){const t=QT(e);return XT.encodeByteArray(t,!0)},ZT=function(e){return SU(e).replace(/\./g,"")},wU=function(e){try{return XT.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}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 xU(){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 kU=()=>xU().__FIREBASE_DEFAULTS__,_U=()=>{if(typeof process>"u"||typeof j1>"u")return;const e=j1.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},CU=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&wU(e[1]);return t&&JSON.parse(t)},TU=()=>{try{return kU()||_U()||CU()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},JT=()=>{var e;return(e=TU())===null||e===void 0?void 0:e.config};/**
 * @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 EU{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function eE(){try{return typeof indexedDB=="object"}catch{return!1}}function tE(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function PU(){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 RU="FirebaseError";class ua extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=RU,Object.setPrototypeOf(this,ua.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,$f.prototype.create)}}class $f{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?AU(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new ua(i,a,r)}}function AU(e,t){return e.replace(MU,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const MU=/\{\$([^}]+)}/g;function mg(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(B1(o)&&B1(s)){if(!mg(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function B1(e){return e!==null&&typeof e=="object"}/**
 * @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 R0(e){return e&&e._delegate?e._delegate:e}class Li{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,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 no="[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 DU{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new EU;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if($U(t))try{this.getOrInitializeService({instanceIdentifier:no})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=no){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=no){return this.instances.has(t)}getOptions(t=no){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.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 i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:OU(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=no){return this.component?this.component.multipleInstances?t:no:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function OU(e){return e===no?void 0:e}function $U(e){return e.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 IU{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new DU(t,this);return this.providers.set(t,n),n}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 Ce;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Ce||(Ce={}));const FU={debug:Ce.DEBUG,verbose:Ce.VERBOSE,info:Ce.INFO,warn:Ce.WARN,error:Ce.ERROR,silent:Ce.SILENT},NU=Ce.INFO,LU={[Ce.DEBUG]:"log",[Ce.VERBOSE]:"log",[Ce.INFO]:"info",[Ce.WARN]:"warn",[Ce.ERROR]:"error"},zU=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=LU[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class jU{constructor(t){this.name=t,this._logLevel=NU,this._logHandler=zU,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Ce))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?FU[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Ce.DEBUG,...t),this._logHandler(this,Ce.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Ce.VERBOSE,...t),this._logHandler(this,Ce.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Ce.INFO,...t),this._logHandler(this,Ce.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Ce.WARN,...t),this._logHandler(this,Ce.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Ce.ERROR,...t),this._logHandler(this,Ce.ERROR,...t)}}const BU=(e,t)=>t.some(n=>e instanceof n);let V1,U1;function VU(){return V1||(V1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function UU(){return U1||(U1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const nE=new WeakMap,gg=new WeakMap,rE=new WeakMap,kp=new WeakMap,A0=new WeakMap;function WU(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n($r(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&nE.set(n,e)}).catch(()=>{}),A0.set(t,e),t}function HU(e){if(gg.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});gg.set(e,t)}let yg={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return gg.get(e);if(t==="objectStoreNames")return e.objectStoreNames||rE.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return $r(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function YU(e){yg=e(yg)}function GU(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(_p(this),t,...n);return rE.set(r,t.sort?t.sort():[t]),$r(r)}:UU().includes(e)?function(...t){return e.apply(_p(this),t),$r(nE.get(this))}:function(...t){return $r(e.apply(_p(this),t))}}function qU(e){return typeof e=="function"?GU(e):(e instanceof IDBTransaction&&HU(e),BU(e,VU())?new Proxy(e,yg):e)}function $r(e){if(e instanceof IDBRequest)return WU(e);if(kp.has(e))return kp.get(e);const t=qU(e);return t!==e&&(kp.set(e,t),A0.set(t,e)),t}const _p=e=>A0.get(e);function If(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=$r(s);return r&&s.addEventListener("upgradeneeded",l=>{r($r(s.result),l.oldVersion,l.newVersion,$r(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function Cp(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),$r(n).then(()=>{})}const KU=["get","getKey","getAll","getAllKeys","count"],QU=["put","add","delete","clear"],Tp=new Map;function W1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Tp.get(t))return Tp.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=QU.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||KU.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let u=l.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return Tp.set(t,o),o}YU(e=>({...e,get:(t,n,r)=>W1(t,n)||e.get(t,n,r),has:(t,n)=>!!W1(t,n)||e.has(t,n)}));/**
 * @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 XU{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(ZU(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function ZU(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const vg="@firebase/app",H1="0.10.13";/**
 * @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 Ur=new jU("@firebase/app"),JU="@firebase/app-compat",eW="@firebase/analytics-compat",tW="@firebase/analytics",nW="@firebase/app-check-compat",rW="@firebase/app-check",iW="@firebase/auth",oW="@firebase/auth-compat",sW="@firebase/database",aW="@firebase/data-connect",lW="@firebase/database-compat",uW="@firebase/functions",cW="@firebase/functions-compat",dW="@firebase/installations",fW="@firebase/installations-compat",hW="@firebase/messaging",pW="@firebase/messaging-compat",mW="@firebase/performance",gW="@firebase/performance-compat",yW="@firebase/remote-config",vW="@firebase/remote-config-compat",bW="@firebase/storage",SW="@firebase/storage-compat",wW="@firebase/firestore",xW="@firebase/vertexai-preview",kW="@firebase/firestore-compat",_W="firebase";/**
 * @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 bg="[DEFAULT]",CW={[vg]:"fire-core",[JU]:"fire-core-compat",[tW]:"fire-analytics",[eW]:"fire-analytics-compat",[rW]:"fire-app-check",[nW]:"fire-app-check-compat",[iW]:"fire-auth",[oW]:"fire-auth-compat",[sW]:"fire-rtdb",[aW]:"fire-data-connect",[lW]:"fire-rtdb-compat",[uW]:"fire-fn",[cW]:"fire-fn-compat",[dW]:"fire-iid",[fW]:"fire-iid-compat",[hW]:"fire-fcm",[pW]:"fire-fcm-compat",[mW]:"fire-perf",[gW]:"fire-perf-compat",[yW]:"fire-rc",[vW]:"fire-rc-compat",[bW]:"fire-gcs",[SW]:"fire-gcs-compat",[wW]:"fire-fst",[kW]:"fire-fst-compat",[xW]:"fire-vertex","fire-js":"fire-js",[_W]:"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 Dd=new Map,TW=new Map,Sg=new Map;function Y1(e,t){try{e.container.addComponent(t)}catch(n){Ur.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Oo(e){const t=e.name;if(Sg.has(t))return Ur.debug(`There were multiple attempts to register component ${t}.`),!1;Sg.set(t,e);for(const n of Dd.values())Y1(n,e);for(const n of TW.values())Y1(n,e);return!0}function M0(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(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.
 */const EW={"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."},Mi=new $f("app","Firebase",EW);/**
 * @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 PW{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Li("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Mi.create("app-deleted",{appName:this._name})}}function iE(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:bg,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw Mi.create("bad-app-name",{appName:String(i)});if(n||(n=JT()),!n)throw Mi.create("no-options");const o=Dd.get(i);if(o){if(mg(n,o.options)&&mg(r,o.config))return o;throw Mi.create("duplicate-app",{appName:i})}const s=new IU(i);for(const l of Sg.values())s.addComponent(l);const a=new PW(n,r,s);return Dd.set(i,a),a}function RW(e=bg){const t=Dd.get(e);if(!t&&e===bg&&JT())return iE();if(!t)throw Mi.create("no-app",{appName:e});return t}function Di(e,t,n){var r;let i=(r=CW[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${t}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Ur.warn(a.join(" "));return}Oo(new Li(`${i}-version`,()=>({library:i,version:t}),"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 AW="firebase-heartbeat-database",MW=1,Wl="firebase-heartbeat-store";let Ep=null;function oE(){return Ep||(Ep=If(AW,MW,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Wl)}catch(n){console.warn(n)}}}}).catch(e=>{throw Mi.create("idb-open",{originalErrorMessage:e.message})})),Ep}async function DW(e){try{const n=(await oE()).transaction(Wl),r=await n.objectStore(Wl).get(sE(e));return await n.done,r}catch(t){if(t instanceof ua)Ur.warn(t.message);else{const n=Mi.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Ur.warn(n.message)}}}async function G1(e,t){try{const r=(await oE()).transaction(Wl,"readwrite");await r.objectStore(Wl).put(t,sE(e)),await r.done}catch(n){if(n instanceof ua)Ur.warn(n.message);else{const r=Mi.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Ur.warn(r.message)}}}function sE(e){return`${e.name}!${e.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 OW=1024,$W=30*24*60*60*1e3;class IW{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new NW(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=q1();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=$W}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Ur.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=q1(),{heartbeatsToSend:r,unsentEntries:i}=FW(this._heartbeatsCache.heartbeats),o=ZT(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return Ur.warn(n),""}}}function q1(){return new Date().toISOString().substring(0,10)}function FW(e,t=OW){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),K1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),K1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class NW{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return eE()?tE().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await DW(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return G1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return G1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function K1(e){return ZT(JSON.stringify({version:2,heartbeats:e})).length}/**
 * @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 LW(e){Oo(new Li("platform-logger",t=>new XU(t),"PRIVATE")),Oo(new Li("heartbeat",t=>new IW(t),"PRIVATE")),Di(vg,H1,e),Di(vg,H1,"esm2017"),Di("fire-js","")}LW("");var zW="firebase",jW="10.14.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.
 */Di(zW,jW,"app");const aE="@firebase/installations",D0="0.6.9";/**
 * @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 lE=1e4,uE=`w:${D0}`,cE="FIS_v2",BW="https://firebaseinstallations.googleapis.com/v1",VW=60*60*1e3,UW="installations",WW="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 HW={"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."},$o=new $f(UW,WW,HW);function dE(e){return e instanceof ua&&e.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 fE({projectId:e}){return`${BW}/projects/${e}/installations`}function hE(e){return{token:e.token,requestStatus:2,expiresIn:GW(e.expiresIn),creationTime:Date.now()}}async function pE(e,t){const r=(await t.json()).error;return $o.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function mE({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function YW(e,{refreshToken:t}){const n=mE(e);return n.append("Authorization",qW(t)),n}async function gE(e){const t=await e();return t.status>=500&&t.status<600?e():t}function GW(e){return Number(e.replace("s","000"))}function qW(e){return`${cE} ${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.
 */async function KW({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=fE(e),i=mE(e),o=t.getImmediate({optional:!0});if(o){const u=await o.getHeartbeatsHeader();u&&i.append("x-firebase-client",u)}const s={fid:n,authVersion:cE,appId:e.appId,sdkVersion:uE},a={method:"POST",headers:i,body:JSON.stringify(s)},l=await gE(()=>fetch(r,a));if(l.ok){const u=await l.json();return{fid:u.fid||n,registrationStatus:2,refreshToken:u.refreshToken,authToken:hE(u.authToken)}}else throw await pE("Create Installation",l)}/**
 * @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 yE(e){return new Promise(t=>{setTimeout(t,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 QW(e){return btoa(String.fromCharCode(...e)).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 XW=/^[cdef][\w-]{21}$/,wg="";function ZW(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=JW(e);return XW.test(n)?n:wg}catch{return wg}}function JW(e){return QW(e).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 Ff(e){return`${e.appName}!${e.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 vE=new Map;function bE(e,t){const n=Ff(e);SE(n,t),e8(n,t)}function SE(e,t){const n=vE.get(e);if(n)for(const r of n)r(t)}function e8(e,t){const n=t8();n&&n.postMessage({key:e,fid:t}),n8()}let uo=null;function t8(){return!uo&&"BroadcastChannel"in self&&(uo=new BroadcastChannel("[Firebase] FID Change"),uo.onmessage=e=>{SE(e.data.key,e.data.fid)}),uo}function n8(){vE.size===0&&uo&&(uo.close(),uo=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 r8="firebase-installations-database",i8=1,Io="firebase-installations-store";let Pp=null;function O0(){return Pp||(Pp=If(r8,i8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Io)}}})),Pp}async function Od(e,t){const n=Ff(e),i=(await O0()).transaction(Io,"readwrite"),o=i.objectStore(Io),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&bE(e,t.fid),t}async function wE(e){const t=Ff(e),r=(await O0()).transaction(Io,"readwrite");await r.objectStore(Io).delete(t),await r.done}async function Nf(e,t){const n=Ff(e),i=(await O0()).transaction(Io,"readwrite"),o=i.objectStore(Io),s=await o.get(n),a=t(s);return a===void 0?await o.delete(n):await o.put(a,n),await i.done,a&&(!s||s.fid!==a.fid)&&bE(e,a.fid),a}/**
 * @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 $0(e){let t;const n=await Nf(e.appConfig,r=>{const i=o8(r),o=s8(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===wg?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function o8(e){const t=e||{fid:ZW(),registrationStatus:0};return xE(t)}function s8(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject($o.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=a8(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:l8(e)}:{installationEntry:t}}async function a8(e,t){try{const n=await KW(e,t);return Od(e.appConfig,n)}catch(n){throw dE(n)&&n.customData.serverCode===409?await wE(e.appConfig):await Od(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function l8(e){let t=await Q1(e.appConfig);for(;t.registrationStatus===1;)await yE(100),t=await Q1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await $0(e);return r||n}return t}function Q1(e){return Nf(e,t=>{if(!t)throw $o.create("installation-not-found");return xE(t)})}function xE(e){return u8(e)?{fid:e.fid,registrationStatus:0}:e}function u8(e){return e.registrationStatus===1&&e.registrationTime+lE<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 c8({appConfig:e,heartbeatServiceProvider:t},n){const r=d8(e,n),i=YW(e,n),o=t.getImmediate({optional:!0});if(o){const u=await o.getHeartbeatsHeader();u&&i.append("x-firebase-client",u)}const s={installation:{sdkVersion:uE,appId:e.appId}},a={method:"POST",headers:i,body:JSON.stringify(s)},l=await gE(()=>fetch(r,a));if(l.ok){const u=await l.json();return hE(u)}else throw await pE("Generate Auth Token",l)}function d8(e,{fid:t}){return`${fE(e)}/${t}/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 I0(e,t=!1){let n;const r=await Nf(e.appConfig,o=>{if(!kE(o))throw $o.create("not-registered");const s=o.authToken;if(!t&&p8(s))return o;if(s.requestStatus===1)return n=f8(e,t),o;{if(!navigator.onLine)throw $o.create("app-offline");const a=g8(o);return n=h8(e,a),a}});return n?await n:r.authToken}async function f8(e,t){let n=await X1(e.appConfig);for(;n.authToken.requestStatus===1;)await yE(100),n=await X1(e.appConfig);const r=n.authToken;return r.requestStatus===0?I0(e,t):r}function X1(e){return Nf(e,t=>{if(!kE(t))throw $o.create("not-registered");const n=t.authToken;return y8(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function h8(e,t){try{const n=await c8(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Od(e.appConfig,r),n}catch(n){if(dE(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await wE(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Od(e.appConfig,r)}throw n}}function kE(e){return e!==void 0&&e.registrationStatus===2}function p8(e){return e.requestStatus===2&&!m8(e)}function m8(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+VW}function g8(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function y8(e){return e.requestStatus===1&&e.requestTime+lE<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 v8(e){const t=e,{installationEntry:n,registrationPromise:r}=await $0(t);return r?r.catch(console.error):I0(t).catch(console.error),n.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 b8(e,t=!1){const n=e;return await S8(n),(await I0(n,t)).token}async function S8(e){const{registrationPromise:t}=await $0(e);t&&await 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 w8(e){if(!e||!e.options)throw Rp("App Configuration");if(!e.name)throw Rp("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Rp(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Rp(e){return $o.create("missing-app-config-values",{valueName: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 _E="installations",x8="installations-internal",k8=e=>{const t=e.getProvider("app").getImmediate(),n=w8(t),r=M0(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},_8=e=>{const t=e.getProvider("app").getImmediate(),n=M0(t,_E).getImmediate();return{getId:()=>v8(n),getToken:i=>b8(n,i)}};function C8(){Oo(new Li(_E,k8,"PUBLIC")),Oo(new Li(x8,_8,"PRIVATE"))}C8();Di(aE,D0);Di(aE,D0,"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 T8="/firebase-messaging-sw.js",E8="/firebase-cloud-messaging-push-scope",CE="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",P8="https://fcmregistrations.googleapis.com/v1",TE="google.c.a.c_id",R8="google.c.a.c_l",A8="google.c.a.ts",M8="google.c.a.e";var Z1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(Z1||(Z1={}));/**
 * @license
 * Copyright 2018 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 Hl;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(Hl||(Hl={}));/**
 * @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 yr(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function D8(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return 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.
 */const Ap="fcm_token_details_db",O8=5,J1="fcm_token_object_Store";async function $8(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Ap))return null;let t=null;return(await If(Ap,O8,{upgrade:async(r,i,o,s)=>{var a;if(i<2||!r.objectStoreNames.contains(J1))return;const l=s.objectStore(J1),u=await l.index("fcmSenderId").get(e);if(await l.clear(),!!u){if(i===2){const c=u;if(!c.auth||!c.p256dh||!c.endpoint)return;t={token:c.fcmToken,createTime:(a=c.createTime)!==null&&a!==void 0?a:Date.now(),subscriptionOptions:{auth:c.auth,p256dh:c.p256dh,endpoint:c.endpoint,swScope:c.swScope,vapidKey:typeof c.vapidKey=="string"?c.vapidKey:yr(c.vapidKey)}}}else if(i===3){const c=u;t={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:yr(c.auth),p256dh:yr(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:yr(c.vapidKey)}}}else if(i===4){const c=u;t={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:yr(c.auth),p256dh:yr(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:yr(c.vapidKey)}}}}}})).close(),await Cp(Ap),await Cp("fcm_vapid_details_db"),await Cp("undefined"),I8(t)?t:null}function I8(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>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 F8="firebase-messaging-database",N8=1,Yl="firebase-messaging-store";let Mp=null;function EE(){return Mp||(Mp=If(F8,N8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Yl)}}})),Mp}async function L8(e){const t=PE(e),r=await(await EE()).transaction(Yl).objectStore(Yl).get(t);if(r)return r;{const i=await $8(e.appConfig.senderId);if(i)return await F0(e,i),i}}async function F0(e,t){const n=PE(e),i=(await EE()).transaction(Yl,"readwrite");return await i.objectStore(Yl).put(t,n),await i.done,t}function PE({appConfig:e}){return e.appId}/**
 * @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 z8={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},St=new $f("messaging","Messaging",z8);/**
 * @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 j8(e,t){const n=await L0(e),r=RE(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(N0(e.appConfig),i)).json()}catch(s){throw St.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw St.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw St.create("token-subscribe-no-token");return o.token}async function B8(e,t){const n=await L0(e),r=RE(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${N0(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw St.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw St.create("token-update-failed",{errorInfo:s})}if(!o.token)throw St.create("token-update-no-token");return o.token}async function V8(e,t){const r={method:"DELETE",headers:await L0(e)};try{const o=await(await fetch(`${N0(e.appConfig)}/${t}`,r)).json();if(o.error){const s=o.error.message;throw St.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw St.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function N0({projectId:e}){return`${P8}/projects/${e}/registrations`}async function L0({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function RE({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==CE&&(i.web.applicationPubKey=r),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.
 */const U8=7*24*60*60*1e3;async function W8(e){const t=await Y8(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:yr(t.getKey("auth")),p256dh:yr(t.getKey("p256dh"))},r=await L8(e.firebaseDependencies);if(r){if(G8(r.subscriptionOptions,n))return Date.now()>=r.createTime+U8?H8(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await V8(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return ew(e.firebaseDependencies,n)}else return ew(e.firebaseDependencies,n)}async function H8(e,t){try{const n=await B8(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await F0(e.firebaseDependencies,r),n}catch(n){throw n}}async function ew(e,t){const r={token:await j8(e,t),createTime:Date.now(),subscriptionOptions:t};return await F0(e,r),r.token}async function Y8(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:D8(t)})}function G8(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}/**
 * @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 tw(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return q8(t,e),K8(t,e),Q8(t,e),t}function q8(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const i=t.notification.image;i&&(e.notification.image=i);const o=t.notification.icon;o&&(e.notification.icon=o)}function K8(e,t){t.data&&(e.data=t.data)}function Q8(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const a=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;a&&(e.fcmOptions.link=a);const l=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;l&&(e.fcmOptions.analyticsLabel=l)}/**
 * @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 X8(e){return typeof e=="object"&&!!e&&TE in 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 Z8(e){if(!e||!e.options)throw Dp("App Configuration Object");if(!e.name)throw Dp("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw Dp(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Dp(e){return St.create("missing-app-config-values",{valueName: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 J8{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=Z8(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
 * @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 e9(e){try{e.swRegistration=await navigator.serviceWorker.register(T8,{scope:E8}),e.swRegistration.update().catch(()=>{})}catch(t){throw St.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
 * @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 t9(e,t){if(!t&&!e.swRegistration&&await e9(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw St.create("invalid-sw-registration");e.swRegistration=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.
 */async function n9(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=CE)}/**
 * @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 AE(e,t){if(!navigator)throw St.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw St.create("permission-blocked");return await n9(e,t==null?void 0:t.vapidKey),await t9(e,t==null?void 0:t.serviceWorkerRegistration),W8(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.
 */async function r9(e,t,n){const r=i9(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[TE],message_name:n[R8],message_time:n[A8],message_device_time:Math.floor(Date.now()/1e3)})}function i9(e){switch(e){case Hl.NOTIFICATION_CLICKED:return"notification_open";case Hl.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
 * @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.
 */async function o9(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Hl.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(tw(n)):e.onMessageHandler.next(tw(n)));const r=n.data;X8(r)&&r[M8]==="1"&&await r9(e,n.messageType,r)}const nw="@firebase/messaging",rw="0.12.12";/**
 * @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 s9=e=>{const t=new J8(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>o9(t,n)),t},a9=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>AE(t,r)}};function l9(){Oo(new Li("messaging",s9,"PUBLIC")),Oo(new Li("messaging-internal",a9,"PRIVATE")),Di(nw,rw),Di(nw,rw,"esm2017")}/**
 * @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 u9(){try{await tE()}catch{return!1}return typeof window<"u"&&eE()&&PU()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
 * @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 c9(e,t){if(!navigator)throw St.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
 * @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 d9(e=RW()){return u9().then(t=>{if(!t)throw St.create("unsupported-browser")},t=>{throw St.create("indexed-db-unsupported")}),M0(R0(e),"messaging").getImmediate()}async function f9(e,t){return e=R0(e),AE(e,t)}function lQ(e,t){return e=R0(e),c9(e,t)}l9();const h9={apiKey:"AIzaSyDbPhez9-Ty9U1r9sWe_ubm3tw1RZr5dJE",authDomain:"medimeet.codeskitter.site",projectId:"medimeet-1907c",storageBucket:void 0,messagingSenderId:"111288330171",appId:"1:111288330171:web:77b995482a53de0de5869e",measurementId:"G-1L5J5XC6QN"},p9=iE(h9),m9=d9(p9);function ME(e,t){return function(){return e.apply(t,arguments)}}const{toString:g9}=Object.prototype,{getPrototypeOf:z0}=Object,{iterator:Lf,toStringTag:DE}=Symbol,zf=(e=>t=>{const n=g9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ln=e=>(e=e.toLowerCase(),t=>zf(t)===e),jf=e=>t=>typeof t===e,{isArray:ca}=Array,Gl=jf("undefined");function y9(e){return e!==null&&!Gl(e)&&e.constructor!==null&&!Gl(e.constructor)&&Bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const OE=Ln("ArrayBuffer");function v9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&OE(e.buffer),t}const b9=jf("string"),Bt=jf("function"),$E=jf("number"),Bf=e=>e!==null&&typeof e=="object",S9=e=>e===!0||e===!1,Bc=e=>{if(zf(e)!=="object")return!1;const t=z0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(DE in e)&&!(Lf in e)},w9=Ln("Date"),x9=Ln("File"),k9=Ln("Blob"),_9=Ln("FileList"),C9=e=>Bf(e)&&Bt(e.pipe),T9=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bt(e.append)&&((t=zf(e))==="formdata"||t==="object"&&Bt(e.toString)&&e.toString()==="[object FormData]"))},E9=Ln("URLSearchParams"),[P9,R9,A9,M9]=["ReadableStream","Request","Response","Headers"].map(Ln),D9=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ca(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function IE(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,FE=e=>!Gl(e)&&e!==co;function xg(){const{caseless:e}=FE(this)&&this||{},t={},n=(r,i)=>{const o=e&&IE(t,i)||i;Bc(t[o])&&Bc(r)?t[o]=xg(t[o],r):Bc(r)?t[o]=xg({},r):ca(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&vu(arguments[r],n);return t}const O9=(e,t,n,{allOwnKeys:r}={})=>(vu(t,(i,o)=>{n&&Bt(i)?e[o]=ME(i,n):e[o]=i},{allOwnKeys:r}),e),$9=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),I9=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},F9=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&z0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},N9=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},L9=e=>{if(!e)return null;if(ca(e))return e;let t=e.length;if(!$E(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},z9=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&z0(Uint8Array)),j9=(e,t)=>{const r=(e&&e[Lf]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},B9=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},V9=Ln("HTMLFormElement"),U9=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),iw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),W9=Ln("RegExp"),NE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vu(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},H9=e=>{NE(e,(t,n)=>{if(Bt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Bt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Y9=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ca(e)?r(e):r(String(e).split(t)),n},G9=()=>{},q9=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function K9(e){return!!(e&&Bt(e.append)&&e[DE]==="FormData"&&e[Lf])}const Q9=e=>{const t=new Array(10),n=(r,i)=>{if(Bf(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=ca(r)?[]:{};return vu(r,(s,a)=>{const l=n(s,i+1);!Gl(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},X9=Ln("AsyncFunction"),Z9=e=>e&&(Bf(e)||Bt(e))&&Bt(e.then)&&Bt(e.catch),LE=((e,t)=>e?setImmediate:t?((n,r)=>(co.addEventListener("message",({source:i,data:o})=>{i===co&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),co.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bt(co.postMessage)),J9=typeof queueMicrotask<"u"?queueMicrotask.bind(co):typeof process<"u"&&process.nextTick||LE,eH=e=>e!=null&&Bt(e[Lf]),E={isArray:ca,isArrayBuffer:OE,isBuffer:y9,isFormData:T9,isArrayBufferView:v9,isString:b9,isNumber:$E,isBoolean:S9,isObject:Bf,isPlainObject:Bc,isReadableStream:P9,isRequest:R9,isResponse:A9,isHeaders:M9,isUndefined:Gl,isDate:w9,isFile:x9,isBlob:k9,isRegExp:W9,isFunction:Bt,isStream:C9,isURLSearchParams:E9,isTypedArray:z9,isFileList:_9,forEach:vu,merge:xg,extend:O9,trim:D9,stripBOM:$9,inherits:I9,toFlatObject:F9,kindOf:zf,kindOfTest:Ln,endsWith:N9,toArray:L9,forEachEntry:j9,matchAll:B9,isHTMLForm:V9,hasOwnProperty:iw,hasOwnProp:iw,reduceDescriptors:NE,freezeMethods:H9,toObjectSet:Y9,toCamelCase:U9,noop:G9,toFiniteNumber:q9,findKey:IE,global:co,isContextDefined:FE,isSpecCompliantForm:K9,toJSONObject:Q9,isAsyncFn:X9,isThenable:Z9,setImmediate:LE,asap:J9,isIterable:eH};function Q(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}E.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const zE=Q.prototype,jE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jE[e]={value:e}});Object.defineProperties(Q,jE);Object.defineProperty(zE,"isAxiosError",{value:!0});Q.from=(e,t,n,r,i,o)=>{const s=Object.create(zE);return E.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Q.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const tH=null;function kg(e){return E.isPlainObject(e)||E.isArray(e)}function BE(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function ow(e,t,n){return e?e.concat(t).map(function(i,o){return i=BE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function nH(e){return E.isArray(e)&&!e.some(kg)}const rH=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function Vf(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!E.isUndefined(S[v])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(E.isDate(m))return m.toISOString();if(!l&&E.isBlob(m))throw new Q("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(m)||E.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,S){let g=m;if(m&&!S&&typeof m=="object"){if(E.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(E.isArray(m)&&nH(m)||(E.isFileList(m)||E.endsWith(v,"[]"))&&(g=E.toArray(m)))return v=BE(v),g.forEach(function(p,x){!(E.isUndefined(p)||p===null)&&t.append(s===!0?ow([v],x,o):s===null?v:v+"[]",u(p))}),!1}return kg(m)?!0:(t.append(ow(S,v,o),u(m)),!1)}const d=[],f=Object.assign(rH,{defaultVisitor:c,convertValue:u,isVisitable:kg});function y(m,v){if(!E.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),E.forEach(m,function(g,h){(!(E.isUndefined(g)||g===null)&&i.call(t,g,E.isString(h)?h.trim():h,v,f))===!0&&y(g,v?v.concat(h):[h])}),d.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return y(e),t}function sw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function j0(e,t){this._pairs=[],e&&Vf(e,this,t)}const VE=j0.prototype;VE.append=function(t,n){this._pairs.push([t,n])};VE.toString=function(t){const n=t?function(r){return t.call(this,r,sw)}:sw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function iH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function UE(e,t,n){if(!t)return e;const r=n&&n.encode||iH;E.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=E.isURLSearchParams(t)?t.toString():new j0(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class aw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const WE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oH=typeof URLSearchParams<"u"?URLSearchParams:j0,sH=typeof FormData<"u"?FormData:null,aH=typeof Blob<"u"?Blob:null,lH={isBrowser:!0,classes:{URLSearchParams:oH,FormData:sH,Blob:aH},protocols:["http","https","file","blob","url","data"]},B0=typeof window<"u"&&typeof document<"u",_g=typeof navigator=="object"&&navigator||void 0,uH=B0&&(!_g||["ReactNative","NativeScript","NS"].indexOf(_g.product)<0),cH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dH=B0&&window.location.href||"http://localhost",fH=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:B0,hasStandardBrowserEnv:uH,hasStandardBrowserWebWorkerEnv:cH,navigator:_g,origin:dH},Symbol.toStringTag,{value:"Module"})),bt={...fH,...lH};function hH(e,t){return Vf(e,new bt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return bt.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pH(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mH(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function HE(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&E.isArray(i)?i.length:s,l?(E.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!E.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&E.isArray(i[s])&&(i[s]=mH(i[s])),!a)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,i)=>{t(pH(r),i,n,0)}),n}return null}function gH(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const bu={transitional:WE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=E.isObject(t);if(o&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return i?JSON.stringify(HE(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return hH(t,this.formSerializer).toString();if((a=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vf(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),gH(t)):t}],transformResponse:[function(t){const n=this.transitional||bu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Q.from(a,Q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{bu.headers[e]={}});const yH=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vH=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&yH[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lw=Symbol("internals");function Da(e){return e&&String(e).trim().toLowerCase()}function Vc(e){return e===!1||e==null?e:E.isArray(e)?e.map(Vc):String(e)}function bH(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const SH=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Op(e,t,n,r,i){if(E.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function wH(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xH(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Vt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=Da(l);if(!c)throw new Error("header name must be a non-empty string");const d=E.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Vc(a))}const s=(a,l)=>E.forEach(a,(u,c)=>o(u,c,l));if(E.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(E.isString(t)&&(t=t.trim())&&!SH(t))s(vH(t),n);else if(E.isObject(t)&&E.isIterable(t)){let a={},l,u;for(const c of t){if(!E.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?E.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Da(t),t){const r=E.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return bH(i);if(E.isFunction(n))return n.call(this,i,r);if(E.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Da(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Op(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Da(s),s){const a=E.findKey(r,s);a&&(!n||Op(r,r[a],a,n))&&(delete r[a],i=!0)}}return E.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Op(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return E.forEach(this,(i,o)=>{const s=E.findKey(r,o);if(s){n[s]=Vc(i),delete n[o];return}const a=t?wH(o):String(o).trim();a!==o&&delete n[o],n[a]=Vc(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[lw]=this[lw]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Da(s);r[a]||(xH(i,s),r[a]=!0)}return E.isArray(t)?t.forEach(o):o(t),this}};Vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(Vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(Vt);function $p(e,t){const n=this||bu,r=t||n,i=Vt.from(r.headers);let o=r.data;return E.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function YE(e){return!!(e&&e.__CANCEL__)}function da(e,t,n){Q.call(this,e??"canceled",Q.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(da,Q,{__CANCEL__:!0});function GE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kH(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _H(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const y=c&&u-c;return y?Math.round(f*1e3/y):void 0}}function CH(e,t){let n=0,r=1e3/t,i,o;const s=(u,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?s(u,c):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},r-d)))},()=>i&&s(i)]}const $d=(e,t,n=3)=>{let r=0;const i=_H(50,250);return CH(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,u=i(l),c=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},uw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},cw=e=>(...t)=>E.asap(()=>e(...t)),TH=bt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,bt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,EH=bt.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),E.isString(r)&&s.push("path="+r),E.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function PH(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RH(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qE(e,t,n){let r=!PH(t);return e&&(r||n==!1)?RH(e,t):t}const dw=e=>e instanceof Vt?{...e}:e;function Fo(e,t){t=t||{};const n={};function r(u,c,d,f){return E.isPlainObject(u)&&E.isPlainObject(c)?E.merge.call({caseless:f},u,c):E.isPlainObject(c)?E.merge({},c):E.isArray(c)?c.slice():c}function i(u,c,d,f){if(E.isUndefined(c)){if(!E.isUndefined(u))return r(void 0,u,d,f)}else return r(u,c,d,f)}function o(u,c){if(!E.isUndefined(c))return r(void 0,c)}function s(u,c){if(E.isUndefined(c)){if(!E.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c,d)=>i(dw(u),dw(c),d,!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,f=d(e[c],t[c],c);E.isUndefined(f)&&d!==a||(n[c]=f)}),n}const KE=e=>{const t=Fo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=Vt.from(s),t.url=UE(qE(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(E.isFormData(n)){if(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...c].join("; "))}}if(bt.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&TH(t.url))){const u=i&&o&&EH.read(o);u&&s.set(i,u)}return t},AH=typeof XMLHttpRequest<"u",MH=AH&&function(e){return new Promise(function(n,r){const i=KE(e);let o=i.data;const s=Vt.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,c,d,f,y,m;function v(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function g(){if(!S)return;const p=Vt.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:p,config:e,request:S};GE(function(P){n(P),v()},function(P){r(P),v()},C),S=null}"onloadend"in S?S.onloadend=g:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(g)},S.onabort=function(){S&&(r(new Q("Request aborted",Q.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||WE;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new Q(x,C.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,S)),S=null},o===void 0&&s.setContentType(null),"setRequestHeader"in S&&E.forEach(s.toJSON(),function(x,C){S.setRequestHeader(C,x)}),E.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),a&&a!=="json"&&(S.responseType=i.responseType),u&&([f,m]=$d(u,!0),S.addEventListener("progress",f)),l&&S.upload&&([d,y]=$d(l),S.upload.addEventListener("progress",d),S.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(c=p=>{S&&(r(!p||p.type?new da(null,e,S):p),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const h=kH(i.url);if(h&&bt.protocols.indexOf(h)===-1){r(new Q("Unsupported protocol "+h+":",Q.ERR_BAD_REQUEST,e));return}S.send(o||null)})},DH=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof Q?c:new da(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>E.asap(a),l}},OH=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},$H=async function*(e,t){for await(const n of IH(e))yield*OH(n,t)},IH=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},fw=(e,t,n,r)=>{const i=$H(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){a(),l.close();return}let d=c.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Uf=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",QE=Uf&&typeof ReadableStream=="function",FH=Uf&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),XE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},NH=QE&&XE(()=>{let e=!1;const t=new Request(bt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hw=64*1024,Cg=QE&&XE(()=>E.isReadableStream(new Response("").body)),Id={stream:Cg&&(e=>e.body)};Uf&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Id[t]&&(Id[t]=E.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})})(new Response);const LH=async e=>{if(e==null)return 0;if(E.isBlob(e))return e.size;if(E.isSpecCompliantForm(e))return(await new Request(bt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E.isArrayBufferView(e)||E.isArrayBuffer(e))return e.byteLength;if(E.isURLSearchParams(e)&&(e=e+""),E.isString(e))return(await FH(e)).byteLength},zH=async(e,t)=>{const n=E.toFiniteNumber(e.getContentLength());return n??LH(t)},jH=Uf&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=KE(e);u=u?(u+"").toLowerCase():"text";let y=DH([i,o&&o.toAbortSignal()],s),m;const v=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let S;try{if(l&&NH&&n!=="get"&&n!=="head"&&(S=await zH(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(E.isFormData(r)&&(R=C.headers.get("content-type"))&&c.setContentType(R),C.body){const[P,D]=uw(S,$d(cw(l)));r=fw(C.body,hw,P,D)}}E.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;m=new Request(t,{...f,signal:y,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:g?d:void 0});let h=await fetch(m);const p=Cg&&(u==="stream"||u==="response");if(Cg&&(a||p&&v)){const C={};["status","statusText","headers"].forEach(I=>{C[I]=h[I]});const R=E.toFiniteNumber(h.headers.get("content-length")),[P,D]=a&&uw(R,$d(cw(a),!0))||[];h=new Response(fw(h.body,hw,P,()=>{D&&D(),v&&v()}),C)}u=u||"text";let x=await Id[E.findKey(Id,u)||"text"](h,e);return!p&&v&&v(),await new Promise((C,R)=>{GE(C,R,{data:x,headers:Vt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(g){throw v&&v(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,m),{cause:g.cause||g}):Q.from(g,g&&g.code,e,m)}}),Tg={http:tH,xhr:MH,fetch:jH};E.forEach(Tg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pw=e=>`- ${e}`,BH=e=>E.isFunction(e)||e===null||e===!1,ZE={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!BH(n)&&(r=Tg[(s=String(n)).toLowerCase()],r===void 0))throw new Q(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
`+o.map(pw).join(`
`):" "+pw(o[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Tg};function Ip(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new da(null,e)}function mw(e){return Ip(e),e.headers=Vt.from(e.headers),e.data=$p.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ZE.getAdapter(e.adapter||bu.adapter)(e).then(function(r){return Ip(e),r.data=$p.call(e,e.transformResponse,r),r.headers=Vt.from(r.headers),r},function(r){return YE(r)||(Ip(e),r&&r.response&&(r.response.data=$p.call(e,e.transformResponse,r.response),r.response.headers=Vt.from(r.response.headers))),Promise.reject(r)})}const JE="1.9.0",Wf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gw={};Wf.transitional=function(t,n,r){function i(o,s){return"[Axios v"+JE+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Q(i(s," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!gw[s]&&(gw[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};Wf.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function VH(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Q("option "+o+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}}const Uc={assertOptions:VH,validators:Wf},Yn=Uc.validators;let _o=class{constructor(t){this.defaults=t||{},this.interceptors={request:new aw,response:new aw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Uc.assertOptions(r,{silentJSONParsing:Yn.transitional(Yn.boolean),forcedJSONParsing:Yn.transitional(Yn.boolean),clarifyTimeoutError:Yn.transitional(Yn.boolean)},!1),i!=null&&(E.isFunction(i)?n.paramsSerializer={serialize:i}:Uc.assertOptions(i,{encode:Yn.function,serialize:Yn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Uc.assertOptions(n,{baseUrl:Yn.spelling("baseURL"),withXsrfToken:Yn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&E.merge(o.common,o[n.method]);o&&E.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Vt.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const m=[mw.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d<f;)c=c.then(m[d++],m[d++]);return c}f=a.length;let y=n;for(d=0;d<f;){const m=a[d++],v=a[d++];try{y=m(y)}catch(S){v.call(this,S);break}}try{c=mw.call(this,y)}catch(m){return Promise.reject(m)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Fo(this.defaults,t);const n=qE(t.baseURL,t.url,t.allowAbsoluteUrls);return UE(n,t.params,t.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(t){_o.prototype[t]=function(n,r){return this.request(Fo(r||{},{method:t,url:n,data:(r||{}).data}))}});E.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(Fo(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}_o.prototype[t]=n(),_o.prototype[t+"Form"]=n(!0)});let UH=class eP{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new da(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new eP(function(i){t=i}),cancel:t}}};function WH(e){return function(n){return e.apply(null,n)}}function HH(e){return E.isObject(e)&&e.isAxiosError===!0}const Eg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Eg).forEach(([e,t])=>{Eg[t]=e});function tP(e){const t=new _o(e),n=ME(_o.prototype.request,t);return E.extend(n,_o.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return tP(Fo(e,i))},n}const Oe=tP(bu);Oe.Axios=_o;Oe.CanceledError=da;Oe.CancelToken=UH;Oe.isCancel=YE;Oe.VERSION=JE;Oe.toFormData=Vf;Oe.AxiosError=Q;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=WH;Oe.isAxiosError=HH;Oe.mergeConfig=Fo;Oe.AxiosHeaders=Vt;Oe.formToJSON=e=>HE(E.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=ZE.getAdapter;Oe.HttpStatusCode=Eg;Oe.default=Oe;const{Axios:dQ,AxiosError:fQ,CanceledError:hQ,isCancel:pQ,CancelToken:mQ,VERSION:gQ,all:yQ,Cancel:vQ,isAxiosError:bQ,spread:SQ,toFormData:wQ,AxiosHeaders:xQ,HttpStatusCode:kQ,formToJSON:_Q,getAdapter:CQ,mergeConfig:TQ}=Oe;function Hf(e){return`Bearer ${e}`}const YH="https://medimeet.codeskitter.site",Yf=`${YH}/api/v1`;let V0=e=>{if(e.response&&e.response.data&&e.response.data.response===401&&e.response.data.status===!1&&e.response.data.message==="Session expired. Please log in again.")return console.error(e.response.data.message),setTimeout(()=>{localStorage.removeItem("admin"),window.location.reload()},2e3),{sessionExpired:!0,message:"Session expired. Please log-in again."};throw e},EQ=async(e,t)=>{var n={method:"get",maxBodyLength:1/0,url:`${Yf}/${t}`,headers:{Authorization:Hf(e)}};try{return(await Oe(n)).data}catch(r){console.log(r)}},GH=async(e,t,n)=>{var r={method:"post",maxBodyLength:1/0,url:`${Yf}/${t}`,headers:{Authorization:Hf(e),"Content-Type":"multipart/form-data"},data:n};try{return(await Oe(r)).data}catch(i){return V0(i)}},qH=async(e,t,n)=>{var r={method:"post",maxBodyLength:1/0,url:`${Yf}/${t}`,headers:{Authorization:Hf(e),"Content-Type":"multipart/form-data"},data:n};try{return(await Oe(r)).data}catch(i){return V0(i)}},PQ=async(e,t,n)=>{var r={method:"post",maxBodyLength:1/0,url:`${Yf}/${t}`,headers:{Authorization:Hf(e),"Content-Type":"application/json"},data:n};try{return(await Oe(r)).data}catch(i){return V0(i)}};var Gf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qf=typeof window>"u"||"Deno"in globalThis;function Cn(){}function KH(e,t){return typeof e=="function"?e(t):e}function QH(e){return typeof e=="number"&&e>=0&&e!==1/0}function XH(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yw(e,t){return typeof e=="function"?e(t):e}function ZH(e,t){return typeof e=="function"?e(t):e}function vw(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==U0(s,t.options))return!1}else if(!Kl(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function bw(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ql(t.options.mutationKey)!==ql(o))return!1}else if(!Kl(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function U0(e,t){return((t==null?void 0:t.queryKeyHashFn)||ql)(e)}function ql(e){return JSON.stringify(e,(t,n)=>Pg(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Kl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Kl(e[n],t[n])):!1}function nP(e,t){if(e===t)return e;const n=Sw(e)&&Sw(t);if(n||Pg(e)&&Pg(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const c=n?u:o[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=nP(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return i===s&&l===i?e:a}return t}function RQ(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Sw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pg(e){if(!ww(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ww(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ww(e){return Object.prototype.toString.call(e)==="[object Object]"}function JH(e){return new Promise(t=>{setTimeout(t,e)})}function e7(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nP(e,t):t}function t7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function n7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var W0=Symbol();function rP(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===W0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function AQ(e,t){return typeof e=="function"?e(...t):!!e}var ho,di,$s,Gw,r7=(Gw=class extends Gf{constructor(){super();oe(this,ho);oe(this,di);oe(this,$s);K(this,$s,t=>{if(!qf&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,di)||this.setEventListener(A(this,$s))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,di))==null||t.call(this),K(this,di,void 0))}setEventListener(t){var n;K(this,$s,t),(n=A(this,di))==null||n.call(this),K(this,di,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,ho)!==t&&(K(this,ho,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,ho)=="boolean"?A(this,ho):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ho=new WeakMap,di=new WeakMap,$s=new WeakMap,Gw),iP=new r7,Is,fi,Fs,qw,i7=(qw=class extends Gf{constructor(){super();oe(this,Is,!0);oe(this,fi);oe(this,Fs);K(this,Fs,t=>{if(!qf&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){A(this,fi)||this.setEventListener(A(this,Fs))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,fi))==null||t.call(this),K(this,fi,void 0))}setEventListener(t){var n;K(this,Fs,t),(n=A(this,fi))==null||n.call(this),K(this,fi,t(this.setOnline.bind(this)))}setOnline(t){A(this,Is)!==t&&(K(this,Is,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,Is)}},Is=new WeakMap,fi=new WeakMap,Fs=new WeakMap,qw),Fd=new i7;function o7(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function s7(e){return Math.min(1e3*2**e,3e4)}function oP(e){return(e??"online")==="online"?Fd.isOnline():!0}var sP=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Fp(e){return e instanceof sP}function aP(e){let t=!1,n=0,r=!1,i;const o=o7(),s=v=>{var S;r||(f(new sP(v)),(S=e.abort)==null||S.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>iP.isFocused()&&(e.networkMode==="always"||Fd.isOnline())&&e.canRun(),c=()=>oP(e.networkMode)&&e.canRun(),d=v=>{var S;r||(r=!0,(S=e.onSuccess)==null||S.call(e,v),i==null||i(),o.resolve(v))},f=v=>{var S;r||(r=!0,(S=e.onError)==null||S.call(e,v),i==null||i(),o.reject(v))},y=()=>new Promise(v=>{var S;i=g=>{(r||u())&&v(g)},(S=e.onPause)==null||S.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),m=()=>{if(r)return;let v;const S=n===0?e.initialPromise:void 0;try{v=S??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(d).catch(g=>{var R;if(r)return;const h=e.retry??(qf?0:3),p=e.retryDelay??s7,x=typeof p=="function"?p(n,g):p,C=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,g);if(t||!C){f(g);return}n++,(R=e.onFail)==null||R.call(e,n,g),JH(x).then(()=>u()?void 0:y()).then(()=>{t?f(g):m()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?m():y().then(m),o)}}var a7=e=>setTimeout(e,0);function l7(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a7;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Tt=l7(),po,Kw,lP=(Kw=class{constructor(){oe(this,po)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),QH(this.gcTime)&&K(this,po,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qf?1/0:5*60*1e3))}clearGcTimeout(){A(this,po)&&(clearTimeout(A(this,po)),K(this,po,void 0))}},po=new WeakMap,Kw),Ns,Ls,un,mo,gt,eu,go,Tn,mr,Qw,u7=(Qw=class extends lP{constructor(t){super();oe(this,Tn);oe(this,Ns);oe(this,Ls);oe(this,un);oe(this,mo);oe(this,gt);oe(this,eu);oe(this,go);K(this,go,!1),K(this,eu,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,mo,t.client),K(this,un,A(this,mo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Ns,d7(this.options)),this.state=t.state??A(this,Ns),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,gt))==null?void 0:t.promise}setOptions(t){this.options={...A(this,eu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,un).remove(this)}setData(t,n){const r=e7(this.state.data,t,this.options);return ft(this,Tn,mr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ft(this,Tn,mr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=A(this,gt))==null?void 0:r.promise;return(i=A(this,gt))==null||i.cancel(t),n?n.then(Cn).catch(Cn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Ns))}isActive(){return this.observers.some(t=>ZH(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===W0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!XH(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,gt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,gt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,un).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,gt)&&(A(this,go)?A(this,gt).cancel({revert:!0}):A(this,gt).cancelRetry()),this.scheduleGc()),A(this,un).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ft(this,Tn,mr).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,gt))return A(this,gt).continueRetry(),A(this,gt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(K(this,go,!0),r.signal)})},o=()=>{const d=rP(this.options,n),f={client:A(this,mo),queryKey:this.queryKey,meta:this.meta};return i(f),K(this,go,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,mo),state:this.state,fetchFn:o};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),K(this,Ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&ft(this,Tn,mr).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const a=d=>{var f,y,m,v;Fp(d)&&d.silent||ft(this,Tn,mr).call(this,{type:"error",error:d}),Fp(d)||((y=(f=A(this,un).config).onError)==null||y.call(f,d,this),(v=(m=A(this,un).config).onSettled)==null||v.call(m,this.state.data,d,this)),this.scheduleGc()};return K(this,gt,aP({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,y,m,v;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(S){a(S);return}(y=(f=A(this,un).config).onSuccess)==null||y.call(f,d,this),(v=(m=A(this,un).config).onSettled)==null||v.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{ft(this,Tn,mr).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{ft(this,Tn,mr).call(this,{type:"pause"})},onContinue:()=>{ft(this,Tn,mr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),A(this,gt).start()}},Ns=new WeakMap,Ls=new WeakMap,un=new WeakMap,mo=new WeakMap,gt=new WeakMap,eu=new WeakMap,go=new WeakMap,Tn=new WeakSet,mr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...c7(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Fp(i)&&i.revert&&A(this,Ls)?{...A(this,Ls),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,un).notify({query:this,type:"updated",action:t})})},Qw);function c7(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function d7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Kn,Xw,f7=(Xw=class extends Gf{constructor(t={}){super();oe(this,Kn);this.config=t,K(this,Kn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??U0(i,n);let s=this.get(o);return s||(s=new u7({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){A(this,Kn).has(t.queryHash)||(A(this,Kn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,Kn).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,Kn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,Kn).get(t)}getAll(){return[...A(this,Kn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>vw(t,r)):n}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Kn=new WeakMap,Xw),Qn,kt,yo,Xn,ni,Zw,h7=(Zw=class extends lP{constructor(t){super();oe(this,Xn);oe(this,Qn);oe(this,kt);oe(this,yo);this.mutationId=t.mutationId,K(this,kt,t.mutationCache),K(this,Qn,[]),this.state=t.state||p7(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,Qn).includes(t)||(A(this,Qn).push(t),this.clearGcTimeout(),A(this,kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Qn,A(this,Qn).filter(n=>n!==t)),this.scheduleGc(),A(this,kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Qn).length||(this.state.status==="pending"?this.scheduleGc():A(this,kt).remove(this))}continue(){var t;return((t=A(this,yo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,l,u,c,d,f,y,m,v,S,g,h,p,x,C,R,P,D;const n=()=>{ft(this,Xn,ni).call(this,{type:"continue"})};K(this,yo,aP({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,B)=>{ft(this,Xn,ni).call(this,{type:"failed",failureCount:I,error:B})},onPause:()=>{ft(this,Xn,ni).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,kt).canRun(this)}));const r=this.state.status==="pending",i=!A(this,yo).canStart();try{if(r)n();else{ft(this,Xn,ni).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(o=A(this,kt).config).onMutate)==null?void 0:s.call(o,t,this));const B=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));B!==this.state.context&&ft(this,Xn,ni).call(this,{type:"pending",context:B,variables:t,isPaused:i})}const I=await A(this,yo).start();return await((c=(u=A(this,kt).config).onSuccess)==null?void 0:c.call(u,I,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,I,t,this.state.context)),await((m=(y=A(this,kt).config).onSettled)==null?void 0:m.call(y,I,null,this.state.variables,this.state.context,this)),await((S=(v=this.options).onSettled)==null?void 0:S.call(v,I,null,t,this.state.context)),ft(this,Xn,ni).call(this,{type:"success",data:I}),I}catch(I){try{throw await((h=(g=A(this,kt).config).onError)==null?void 0:h.call(g,I,t,this.state.context,this)),await((x=(p=this.options).onError)==null?void 0:x.call(p,I,t,this.state.context)),await((R=(C=A(this,kt).config).onSettled)==null?void 0:R.call(C,void 0,I,this.state.variables,this.state.context,this)),await((D=(P=this.options).onSettled)==null?void 0:D.call(P,void 0,I,t,this.state.context)),I}finally{ft(this,Xn,ni).call(this,{type:"error",error:I})}}finally{A(this,kt).runNext(this)}}},Qn=new WeakMap,kt=new WeakMap,yo=new WeakMap,Xn=new WeakSet,ni=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Tt.batch(()=>{A(this,Qn).forEach(r=>{r.onMutationUpdate(t)}),A(this,kt).notify({mutation:this,type:"updated",action:t})})},Zw);function p7(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sr,En,tu,Jw,m7=(Jw=class extends Gf{constructor(t={}){super();oe(this,Sr);oe(this,En);oe(this,tu);this.config=t,K(this,Sr,new Set),K(this,En,new Map),K(this,tu,0)}build(t,n,r){const i=new h7({mutationCache:this,mutationId:++Du(this,tu)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){A(this,Sr).add(t);const n=cc(t);if(typeof n=="string"){const r=A(this,En).get(n);r?r.push(t):A(this,En).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(A(this,Sr).delete(t)){const n=cc(t);if(typeof n=="string"){const r=A(this,En).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&A(this,En).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=cc(t);if(typeof n=="string"){const r=A(this,En).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=cc(t);if(typeof n=="string"){const i=(r=A(this,En).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tt.batch(()=>{A(this,Sr).forEach(t=>{this.notify({type:"removed",mutation:t})}),A(this,Sr).clear(),A(this,En).clear()})}getAll(){return Array.from(A(this,Sr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>bw(n,r))}findAll(t={}){return this.getAll().filter(n=>bw(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Cn))))}},Sr=new WeakMap,En=new WeakMap,tu=new WeakMap,Jw);function cc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function xw(e){return{onFetch:(t,n)=>{var c,d,f,y,m;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((y=t.state.data)==null?void 0:y.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const S=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},g=rP(t.options,t.fetchOptions),h=async(p,x,C)=>{if(v)return Promise.reject();if(x==null&&p.pages.length)return Promise.resolve(p);const R={client:t.client,queryKey:t.queryKey,pageParam:x,direction:C?"backward":"forward",meta:t.options.meta};S(R);const P=await g(R),{maxPages:D}=t.options,I=C?n7:t7;return{pages:I(p.pages,P,D),pageParams:I(p.pageParams,x,D)}};if(i&&o.length){const p=i==="backward",x=p?g7:kw,C={pages:o,pageParams:s},R=x(r,C);a=await h(C,R,p)}else{const p=e??o.length;do{const x=l===0?s[0]??r.initialPageParam:kw(r,a);if(l>0&&x==null)break;a=await h(a,x),l++}while(l<p)}return a};t.options.persister?t.fetchFn=()=>{var v,S;return(S=(v=t.options).persister)==null?void 0:S.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function kw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function g7(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ze,hi,pi,zs,js,mi,Bs,Vs,ex,y7=(ex=class{constructor(e={}){oe(this,ze);oe(this,hi);oe(this,pi);oe(this,zs);oe(this,js);oe(this,mi);oe(this,Bs);oe(this,Vs);K(this,ze,e.queryCache||new f7),K(this,hi,e.mutationCache||new m7),K(this,pi,e.defaultOptions||{}),K(this,zs,new Map),K(this,js,new Map),K(this,mi,0)}mount(){Du(this,mi)._++,A(this,mi)===1&&(K(this,Bs,iP.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ze).onFocus())})),K(this,Vs,Fd.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ze).onOnline())})))}unmount(){var e,t;Du(this,mi)._--,A(this,mi)===0&&((e=A(this,Bs))==null||e.call(this),K(this,Bs,void 0),(t=A(this,Vs))==null||t.call(this),K(this,Vs,void 0))}isFetching(e){return A(this,ze).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ze).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=A(this,ze).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(yw(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return A(this,ze).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=A(this,ze).get(r.queryHash),o=i==null?void 0:i.state.data,s=KH(t,o);if(s!==void 0)return A(this,ze).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Tt.batch(()=>A(this,ze).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ze).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,ze);Tt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,ze);return Tt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Tt.batch(()=>A(this,ze).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Cn).catch(Cn)}invalidateQueries(e,t={}){return Tt.batch(()=>(A(this,ze).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Tt.batch(()=>A(this,ze).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Cn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Cn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,ze).build(this,t);return n.isStaleByTime(yw(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Cn).catch(Cn)}fetchInfiniteQuery(e){return e.behavior=xw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Cn).catch(Cn)}ensureInfiniteQueryData(e){return e.behavior=xw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fd.isOnline()?A(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ze)}getMutationCache(){return A(this,hi)}getDefaultOptions(){return A(this,pi)}setDefaultOptions(e){K(this,pi,e)}setQueryDefaults(e,t){A(this,zs).set(ql(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,zs).values()],n={};return t.forEach(r=>{Kl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){A(this,js).set(ql(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,js).values()],n={};return t.forEach(r=>{Kl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,pi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=U0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===W0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,pi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,ze).clear(),A(this,hi).clear()}},ze=new WeakMap,hi=new WeakMap,pi=new WeakMap,zs=new WeakMap,js=new WeakMap,mi=new WeakMap,Bs=new WeakMap,Vs=new WeakMap,ex),uP=w.createContext(void 0),MQ=e=>{const t=w.useContext(uP);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},v7=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),M.jsx(uP.Provider,{value:e,children:t})),b7=function(){return null};const ci=JSON.parse(localStorage.getItem("admin")),S7=()=>{const{colorMode:e}=su();return M.jsx(IT,{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",bg:e==="dark"?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zIndex:"9999",children:M.jsx(mf,{size:"xl",thickness:"4px",speed:"0.65s",color:e==="dark"?"teal.300":"teal.500"})})};var cP={exports:{}},w7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x7=w7,k7=x7;function dP(){}function fP(){}fP.resetWarningCache=dP;var _7=function(){function e(r,i,o,s,a,l){if(l!==k7){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:fP,resetWarningCache:dP};return n.PropTypes=n,n};cP.exports=_7();var C7=cP.exports;const T7=nu(C7),E7=async()=>{let e=await GH(ci.token,"logout",{});return localStorage.removeItem("admin"),localStorage.removeItem("isChecked"),window.location.reload(),setTimeout(()=>{window.location.reload("/")},1e3),e},P7=()=>{const e=db("gray.700","gray.300");return w.useEffect(()=>{document.title="500 Internal Server Error"},[]),M.jsxs(hl,{textAlign:"center",py:10,px:6,bg:db("gray.50","gray.800"),minH:"100vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M.jsx(NT,{src:"/admin//broken.gif",alt:"Error Illustration",boxSize:"200px",mb:6}),M.jsxs(LT,{as:"h1",size:"2xl",color:e,children:[M.jsx(jc,{fontSize:"6xl",fontWeight:"bold",color:"red.500",children:"500"}),"Internal Server Error"]}),M.jsx(jc,{fontSize:"lg",mt:4,color:e,children:"Oops! Something went wrong on our end. We are currently working on fixing the issue."}),M.jsx(jc,{fontSize:"md",mt:2,color:e,children:"Please try refreshing the page, or you can return to the homepage."}),M.jsx(ug,{colorScheme:"blue",mt:6,onClick:()=>window.location.reload(),children:"Try Again"}),M.jsx(ug,{w:48,colorScheme:"red",mt:6,onClick:()=>{E7()},children:"Logout"})]})};class hP extends ur.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return console.log(t),{hasError:!0}}componentDidCatch(t,n){console.error("Error caught in ErrorBoundary:",t,n)}render(){return this.state.hasError?M.jsx(P7,{}):this.props.children}}hP.propTypes={children:T7.node.isRequired};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var pP;function N(){return pP.apply(null,arguments)}function R7(e){pP=e}function In(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Co(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function se(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H0(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(se(e,t))return!1;return!0}function Ot(e){return e===void 0}function Wr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Su(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function mP(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function bi(e,t){for(var n in t)se(t,n)&&(e[n]=t[n]);return se(t,"toString")&&(e.toString=t.toString),se(t,"valueOf")&&(e.valueOf=t.valueOf),e}function cr(e,t,n,r){return LP(e,t,n,r,!0).utc()}function A7(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function X(e){return e._pf==null&&(e._pf=A7()),e._pf}var Rg;Array.prototype.some?Rg=Array.prototype.some:Rg=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Y0(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=X(e),n=Rg.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Kf(e){var t=cr(NaN);return e!=null?bi(X(t),e):X(t).userInvalidated=!0,t}var _w=N.momentProperties=[],Np=!1;function G0(e,t){var n,r,i,o=_w.length;if(Ot(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Ot(t._i)||(e._i=t._i),Ot(t._f)||(e._f=t._f),Ot(t._l)||(e._l=t._l),Ot(t._strict)||(e._strict=t._strict),Ot(t._tzm)||(e._tzm=t._tzm),Ot(t._isUTC)||(e._isUTC=t._isUTC),Ot(t._offset)||(e._offset=t._offset),Ot(t._pf)||(e._pf=X(t)),Ot(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=_w[n],i=t[r],Ot(i)||(e[r]=i);return e}function wu(e){G0(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Np===!1&&(Np=!0,N.updateOffset(this),Np=!1)}function Fn(e){return e instanceof wu||e!=null&&e._isAMomentObject!=null}function gP(e){N.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function bn(e,t){var n=!0;return bi(function(){if(N.deprecationHandler!=null&&N.deprecationHandler(null,e),n){var r=[],i,o,s,a=arguments.length;for(o=0;o<a;o++){if(i="",typeof arguments[o]=="object"){i+=`
[`+o+"] ";for(s in arguments[0])se(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}gP(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Cw={};function yP(e,t){N.deprecationHandler!=null&&N.deprecationHandler(e,t),Cw[e]||(gP(t),Cw[e]=!0)}N.suppressDeprecationWarnings=!1;N.deprecationHandler=null;function dr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function M7(e){var t,n;for(n in e)se(e,n)&&(t=e[n],dr(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ag(e,t){var n=bi({},e),r;for(r in t)se(t,r)&&(Co(e[r])&&Co(t[r])?(n[r]={},bi(n[r],e[r]),bi(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)se(e,r)&&!se(t,r)&&Co(e[r])&&(n[r]=bi({},n[r]));return n}function q0(e){e!=null&&this.set(e)}var Mg;Object.keys?Mg=Object.keys:Mg=function(e){var t,n=[];for(t in e)se(e,t)&&n.push(t);return n};var D7={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O7(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return dr(r)?r.call(t,n):r}function lr(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var K0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,dc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Lp={},Ms={};function V(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Ms[e]=i),t&&(Ms[t[0]]=function(){return lr(i.apply(this,arguments),t[1],t[2])}),n&&(Ms[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $7(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I7(e){var t=e.match(K0),n,r;for(n=0,r=t.length;n<r;n++)Ms[t[n]]?t[n]=Ms[t[n]]:t[n]=$7(t[n]);return function(i){var o="",s;for(s=0;s<r;s++)o+=dr(t[s])?t[s].call(i,e):t[s];return o}}function Wc(e,t){return e.isValid()?(t=vP(t,e.localeData()),Lp[t]=Lp[t]||I7(t),Lp[t](e)):e.localeData().invalidDate()}function vP(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(dc.lastIndex=0;n>=0&&dc.test(e);)e=e.replace(dc,r),dc.lastIndex=0,n-=1;return e}var F7={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function N7(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(K0).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var L7="Invalid date";function z7(){return this._invalidDate}var j7="%d",B7=/\d{1,2}/;function V7(e){return this._ordinal.replace("%d",e)}var U7={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function W7(e,t,n,r){var i=this._relativeTime[n];return dr(i)?i(e,t,n,r):i.replace(/%d/i,e)}function H7(e,t){var n=this._relativeTime[e>0?"future":"past"];return dr(n)?n(t):n.replace(/%s/i,t)}var Tw={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Sn(e){return typeof e=="string"?Tw[e]||Tw[e.toLowerCase()]:void 0}function Q0(e){var t={},n,r;for(r in e)se(e,r)&&(n=Sn(r),n&&(t[n]=e[r]));return t}var Y7={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function G7(e){var t=[],n;for(n in e)se(e,n)&&t.push({unit:n,priority:Y7[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var bP=/\d/,rn=/\d\d/,SP=/\d{3}/,X0=/\d{4}/,Qf=/[+-]?\d{6}/,Pe=/\d\d?/,wP=/\d\d\d\d?/,xP=/\d\d\d\d\d\d?/,Xf=/\d{1,3}/,Z0=/\d{1,4}/,Zf=/[+-]?\d{1,6}/,fa=/\d+/,Jf=/[+-]?\d+/,q7=/Z|[+-]\d\d:?\d\d/gi,eh=/Z|[+-]\d\d(?::?\d\d)?/gi,K7=/[+-]?\d+(\.\d{1,3})?/,xu=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ha=/^[1-9]\d?/,J0=/^([1-9]\d|\d)/,Nd;Nd={};function L(e,t,n){Nd[e]=dr(t)?t:function(r,i){return r&&n?n:t}}function Q7(e,t){return se(Nd,e)?Nd[e](t._strict,t._locale):new RegExp(X7(e))}function X7(e){return Ir(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Ir(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function fn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function J(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=fn(t)),n}var Dg={};function ge(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Wr(t)&&(r=function(o,s){s[t]=J(o)}),i=e.length,n=0;n<i;n++)Dg[e[n]]=r}function ku(e,t){ge(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function Z7(e,t,n){t!=null&&se(Dg,e)&&Dg[e](t,n._a,n,e)}function th(e){return e%4===0&&e%100!==0||e%400===0}var wt=0,Pr=1,tr=2,nt=3,Mn=4,Rr=5,fo=6,J7=7,eY=8;V("Y",0,0,function(){var e=this.year();return e<=9999?lr(e,4):"+"+e});V(0,["YY",2],0,function(){return this.year()%100});V(0,["YYYY",4],0,"year");V(0,["YYYYY",5],0,"year");V(0,["YYYYYY",6,!0],0,"year");L("Y",Jf);L("YY",Pe,rn);L("YYYY",Z0,X0);L("YYYYY",Zf,Qf);L("YYYYYY",Zf,Qf);ge(["YYYYY","YYYYYY"],wt);ge("YYYY",function(e,t){t[wt]=e.length===2?N.parseTwoDigitYear(e):J(e)});ge("YY",function(e,t){t[wt]=N.parseTwoDigitYear(e)});ge("Y",function(e,t){t[wt]=parseInt(e,10)});function pl(e){return th(e)?366:365}N.parseTwoDigitYear=function(e){return J(e)+(J(e)>68?1900:2e3)};var kP=pa("FullYear",!0);function tY(){return th(this.year())}function pa(e,t){return function(n){return n!=null?(_P(this,e,n),N.updateOffset(this,t),this):Ql(this,e)}}function Ql(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function _P(e,t,n){var r,i,o,s,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!th(o)?28:a,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function nY(e){return e=Sn(e),dr(this[e])?this[e]():this}function rY(e,t){if(typeof e=="object"){e=Q0(e);var n=G7(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Sn(e),dr(this[e]))return this[e](t);return this}function iY(e,t){return(e%t+t)%t}var Ve;Array.prototype.indexOf?Ve=Array.prototype.indexOf:Ve=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ev(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=iY(t,12);return e+=(t-n)/12,n===1?th(e)?29:28:31-n%7%2}V("M",["MM",2],"Mo",function(){return this.month()+1});V("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});V("MMMM",0,0,function(e){return this.localeData().months(this,e)});L("M",Pe,ha);L("MM",Pe,rn);L("MMM",function(e,t){return t.monthsShortRegex(e)});L("MMMM",function(e,t){return t.monthsRegex(e)});ge(["M","MM"],function(e,t){t[Pr]=J(e)-1});ge(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Pr]=i:X(n).invalidMonth=e});var oY="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),CP="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),TP=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sY=xu,aY=xu;function lY(e,t){return e?In(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||TP).test(t)?"format":"standalone"][e.month()]:In(this._months)?this._months:this._months.standalone}function uY(e,t){return e?In(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[TP.test(t)?"format":"standalone"][e.month()]:In(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function cY(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=cr([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=Ve.call(this._shortMonthsParse,s),i!==-1?i:null):(i=Ve.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=Ve.call(this._shortMonthsParse,s),i!==-1?i:(i=Ve.call(this._longMonthsParse,s),i!==-1?i:null)):(i=Ve.call(this._longMonthsParse,s),i!==-1?i:(i=Ve.call(this._shortMonthsParse,s),i!==-1?i:null))}function dY(e,t,n){var r,i,o;if(this._monthsParseExact)return cY.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=cr([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function EP(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=J(t);else if(t=e.localeData().monthsParse(t),!Wr(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,ev(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function PP(e){return e!=null?(EP(this,e),N.updateOffset(this,!0),this):Ql(this,"Month")}function fY(){return ev(this.year(),this.month())}function hY(e){return this._monthsParseExact?(se(this,"_monthsRegex")||RP.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(se(this,"_monthsShortRegex")||(this._monthsShortRegex=sY),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pY(e){return this._monthsParseExact?(se(this,"_monthsRegex")||RP.call(this),e?this._monthsStrictRegex:this._monthsRegex):(se(this,"_monthsRegex")||(this._monthsRegex=aY),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function RP(){function e(l,u){return u.length-l.length}var t=[],n=[],r=[],i,o,s,a;for(i=0;i<12;i++)o=cr([2e3,i]),s=Ir(this.monthsShort(o,"")),a=Ir(this.months(o,"")),t.push(s),n.push(a),r.push(a),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mY(e,t,n,r,i,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function Xl(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ld(e,t,n){var r=7+t-n,i=(7+Xl(e,0,r).getUTCDay()-t)%7;return-i+r-1}function AP(e,t,n,r,i){var o=(7+n-r)%7,s=Ld(e,r,i),a=1+7*(t-1)+o+s,l,u;return a<=0?(l=e-1,u=pl(l)+a):a>pl(e)?(l=e+1,u=a-pl(e)):(l=e,u=a),{year:l,dayOfYear:u}}function Zl(e,t,n){var r=Ld(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,s;return i<1?(s=e.year()-1,o=i+Fr(s,t,n)):i>Fr(e.year(),t,n)?(o=i-Fr(e.year(),t,n),s=e.year()+1):(s=e.year(),o=i),{week:o,year:s}}function Fr(e,t,n){var r=Ld(e,t,n),i=Ld(e+1,t,n);return(pl(e)-r+i)/7}V("w",["ww",2],"wo","week");V("W",["WW",2],"Wo","isoWeek");L("w",Pe,ha);L("ww",Pe,rn);L("W",Pe,ha);L("WW",Pe,rn);ku(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=J(e)});function gY(e){return Zl(e,this._week.dow,this._week.doy).week}var yY={dow:0,doy:6};function vY(){return this._week.dow}function bY(){return this._week.doy}function SY(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function wY(e){var t=Zl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}V("d",0,"do","day");V("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});V("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});V("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});V("e",0,0,"weekday");V("E",0,0,"isoWeekday");L("d",Pe);L("e",Pe);L("E",Pe);L("dd",function(e,t){return t.weekdaysMinRegex(e)});L("ddd",function(e,t){return t.weekdaysShortRegex(e)});L("dddd",function(e,t){return t.weekdaysRegex(e)});ku(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:X(n).invalidWeekday=e});ku(["d","e","E"],function(e,t,n,r){t[r]=J(e)});function xY(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function kY(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function tv(e,t){return e.slice(t,7).concat(e.slice(0,t))}var _Y="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),MP="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),CY="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),TY=xu,EY=xu,PY=xu;function RY(e,t){var n=In(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?tv(n,this._week.dow):e?n[e.day()]:n}function AY(e){return e===!0?tv(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function MY(e){return e===!0?tv(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function DY(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=cr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Ve.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Ve.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Ve.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Ve.call(this._weekdaysParse,s),i!==-1||(i=Ve.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Ve.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Ve.call(this._shortWeekdaysParse,s),i!==-1||(i=Ve.call(this._weekdaysParse,s),i!==-1)?i:(i=Ve.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Ve.call(this._minWeekdaysParse,s),i!==-1||(i=Ve.call(this._weekdaysParse,s),i!==-1)?i:(i=Ve.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function OY(e,t,n){var r,i,o;if(this._weekdaysParseExact)return DY.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=cr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function $Y(e){if(!this.isValid())return e!=null?this:NaN;var t=Ql(this,"Day");return e!=null?(e=xY(e,this.localeData()),this.add(e-t,"d")):t}function IY(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function FY(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=kY(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function NY(e){return this._weekdaysParseExact?(se(this,"_weekdaysRegex")||nv.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(se(this,"_weekdaysRegex")||(this._weekdaysRegex=TY),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function LY(e){return this._weekdaysParseExact?(se(this,"_weekdaysRegex")||nv.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(se(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=EY),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function zY(e){return this._weekdaysParseExact?(se(this,"_weekdaysRegex")||nv.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(se(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=PY),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nv(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],i=[],o,s,a,l,u;for(o=0;o<7;o++)s=cr([2e3,1]).day(o),a=Ir(this.weekdaysMin(s,"")),l=Ir(this.weekdaysShort(s,"")),u=Ir(this.weekdays(s,"")),t.push(a),n.push(l),r.push(u),i.push(a),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function rv(){return this.hours()%12||12}function jY(){return this.hours()||24}V("H",["HH",2],0,"hour");V("h",["hh",2],0,rv);V("k",["kk",2],0,jY);V("hmm",0,0,function(){return""+rv.apply(this)+lr(this.minutes(),2)});V("hmmss",0,0,function(){return""+rv.apply(this)+lr(this.minutes(),2)+lr(this.seconds(),2)});V("Hmm",0,0,function(){return""+this.hours()+lr(this.minutes(),2)});V("Hmmss",0,0,function(){return""+this.hours()+lr(this.minutes(),2)+lr(this.seconds(),2)});function DP(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}DP("a",!0);DP("A",!1);function OP(e,t){return t._meridiemParse}L("a",OP);L("A",OP);L("H",Pe,J0);L("h",Pe,ha);L("k",Pe,ha);L("HH",Pe,rn);L("hh",Pe,rn);L("kk",Pe,rn);L("hmm",wP);L("hmmss",xP);L("Hmm",wP);L("Hmmss",xP);ge(["H","HH"],nt);ge(["k","kk"],function(e,t,n){var r=J(e);t[nt]=r===24?0:r});ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ge(["h","hh"],function(e,t,n){t[nt]=J(e),X(n).bigHour=!0});ge("hmm",function(e,t,n){var r=e.length-2;t[nt]=J(e.substr(0,r)),t[Mn]=J(e.substr(r)),X(n).bigHour=!0});ge("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[nt]=J(e.substr(0,r)),t[Mn]=J(e.substr(r,2)),t[Rr]=J(e.substr(i)),X(n).bigHour=!0});ge("Hmm",function(e,t,n){var r=e.length-2;t[nt]=J(e.substr(0,r)),t[Mn]=J(e.substr(r))});ge("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[nt]=J(e.substr(0,r)),t[Mn]=J(e.substr(r,2)),t[Rr]=J(e.substr(i))});function BY(e){return(e+"").toLowerCase().charAt(0)==="p"}var VY=/[ap]\.?m?\.?/i,UY=pa("Hours",!0);function WY(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var $P={calendar:D7,longDateFormat:F7,invalidDate:L7,ordinal:j7,dayOfMonthOrdinalParse:B7,relativeTime:U7,months:oY,monthsShort:CP,week:yY,weekdays:_Y,weekdaysMin:CY,weekdaysShort:MP,meridiemParse:VY},Me={},Oa={},Jl;function HY(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Ew(e){return e&&e.toLowerCase().replace("_","-")}function YY(e){for(var t=0,n,r,i,o;t<e.length;){for(o=Ew(e[t]).split("-"),n=o.length,r=Ew(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=nh(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&HY(o,r)>=n-1)break;n--}t++}return Jl}function GY(e){return!!(e&&e.match("^[^/\\\\]*$"))}function nh(e){var t=null,n;if(Me[e]===void 0&&typeof module<"u"&&module&&module.exports&&GY(e))try{t=Jl._abbr,n=require,n("./locale/"+e),Oi(t)}catch{Me[e]=null}return Me[e]}function Oi(e,t){var n;return e&&(Ot(t)?n=Gr(e):n=iv(e,t),n?Jl=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jl._abbr}function iv(e,t){if(t!==null){var n,r=$P;if(t.abbr=e,Me[e]!=null)yP("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Me[e]._config;else if(t.parentLocale!=null)if(Me[t.parentLocale]!=null)r=Me[t.parentLocale]._config;else if(n=nh(t.parentLocale),n!=null)r=n._config;else return Oa[t.parentLocale]||(Oa[t.parentLocale]=[]),Oa[t.parentLocale].push({name:e,config:t}),null;return Me[e]=new q0(Ag(r,t)),Oa[e]&&Oa[e].forEach(function(i){iv(i.name,i.config)}),Oi(e),Me[e]}else return delete Me[e],null}function qY(e,t){if(t!=null){var n,r,i=$P;Me[e]!=null&&Me[e].parentLocale!=null?Me[e].set(Ag(Me[e]._config,t)):(r=nh(e),r!=null&&(i=r._config),t=Ag(i,t),r==null&&(t.abbr=e),n=new q0(t),n.parentLocale=Me[e],Me[e]=n),Oi(e)}else Me[e]!=null&&(Me[e].parentLocale!=null?(Me[e]=Me[e].parentLocale,e===Oi()&&Oi(e)):Me[e]!=null&&delete Me[e]);return Me[e]}function Gr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jl;if(!In(e)){if(t=nh(e),t)return t;e=[e]}return YY(e)}function KY(){return Mg(Me)}function ov(e){var t,n=e._a;return n&&X(e).overflow===-2&&(t=n[Pr]<0||n[Pr]>11?Pr:n[tr]<1||n[tr]>ev(n[wt],n[Pr])?tr:n[nt]<0||n[nt]>24||n[nt]===24&&(n[Mn]!==0||n[Rr]!==0||n[fo]!==0)?nt:n[Mn]<0||n[Mn]>59?Mn:n[Rr]<0||n[Rr]>59?Rr:n[fo]<0||n[fo]>999?fo:-1,X(e)._overflowDayOfYear&&(t<wt||t>tr)&&(t=tr),X(e)._overflowWeeks&&t===-1&&(t=J7),X(e)._overflowWeekday&&t===-1&&(t=eY),X(e).overflow=t),e}var QY=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,XY=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ZY=/Z|[+-]\d\d(?::?\d\d)?/,fc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zp=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],JY=/^\/?Date\((-?\d+)/i,eG=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tG={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function IP(e){var t,n,r=e._i,i=QY.exec(r)||XY.exec(r),o,s,a,l,u=fc.length,c=zp.length;if(i){for(X(e).iso=!0,t=0,n=u;t<n;t++)if(fc[t][1].exec(i[1])){s=fc[t][0],o=fc[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=c;t<n;t++)if(zp[t][1].exec(i[3])){a=(i[2]||" ")+zp[t][0];break}if(a==null){e._isValid=!1;return}}if(!o&&a!=null){e._isValid=!1;return}if(i[4])if(ZY.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=s+(a||"")+(l||""),av(e)}else e._isValid=!1}function nG(e,t,n,r,i,o){var s=[rG(e),CP.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function rG(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function iG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oG(e,t,n){if(e){var r=MP.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return X(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function sG(e,t,n){if(e)return tG[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function FP(e){var t=eG.exec(iG(e._i)),n;if(t){if(n=nG(t[4],t[3],t[2],t[5],t[6],t[7]),!oG(t[1],n,e))return;e._a=n,e._tzm=sG(t[8],t[9],t[10]),e._d=Xl.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),X(e).rfc2822=!0}else e._isValid=!1}function aG(e){var t=JY.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(IP(e),e._isValid===!1)delete e._isValid;else return;if(FP(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:N.createFromInputFallback(e)}N.createFromInputFallback=bn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ko(e,t,n){return e??t??n}function lG(e){var t=new Date(N.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function sv(e){var t,n,r=[],i,o,s;if(!e._d){for(i=lG(e),e._w&&e._a[tr]==null&&e._a[Pr]==null&&uG(e),e._dayOfYear!=null&&(s=Ko(e._a[wt],i[wt]),(e._dayOfYear>pl(s)||e._dayOfYear===0)&&(X(e)._overflowDayOfYear=!0),n=Xl(s,0,e._dayOfYear),e._a[Pr]=n.getUTCMonth(),e._a[tr]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[nt]===24&&e._a[Mn]===0&&e._a[Rr]===0&&e._a[fo]===0&&(e._nextDay=!0,e._a[nt]=0),e._d=(e._useUTC?Xl:mY).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[nt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(X(e).weekdayMismatch=!0)}}function uG(e){var t,n,r,i,o,s,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,s=4,n=Ko(t.GG,e._a[wt],Zl(Ee(),1,4).year),r=Ko(t.W,1),i=Ko(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=Zl(Ee(),o,s),n=Ko(t.gg,e._a[wt],u.year),r=Ko(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Fr(n,o,s)?X(e)._overflowWeeks=!0:l!=null?X(e)._overflowWeekday=!0:(a=AP(n,r,i,o,s),e._a[wt]=a.year,e._dayOfYear=a.dayOfYear)}N.ISO_8601=function(){};N.RFC_2822=function(){};function av(e){if(e._f===N.ISO_8601){IP(e);return}if(e._f===N.RFC_2822){FP(e);return}e._a=[],X(e).empty=!0;var t=""+e._i,n,r,i,o,s,a=t.length,l=0,u,c;for(i=vP(e._f,e._locale).match(K0)||[],c=i.length,n=0;n<c;n++)o=i[n],r=(t.match(Q7(o,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&X(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ms[o]?(r?X(e).empty=!1:X(e).unusedTokens.push(o),Z7(o,r,e)):e._strict&&!r&&X(e).unusedTokens.push(o);X(e).charsLeftOver=a-l,t.length>0&&X(e).unusedInput.push(t),e._a[nt]<=12&&X(e).bigHour===!0&&e._a[nt]>0&&(X(e).bigHour=void 0),X(e).parsedDateParts=e._a.slice(0),X(e).meridiem=e._meridiem,e._a[nt]=cG(e._locale,e._a[nt],e._meridiem),u=X(e).era,u!==null&&(e._a[wt]=e._locale.erasConvertYear(u,e._a[wt])),sv(e),ov(e)}function cG(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function dG(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(l===0){X(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,s=!1,t=G0({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],av(t),Y0(t)&&(s=!0),o+=X(t).charsLeftOver,o+=X(t).unusedTokens.length*10,X(t).score=o,a?o<r&&(r=o,n=t):(r==null||o<r||s)&&(r=o,n=t,s&&(a=!0));bi(e,n||t)}function fG(e){if(!e._d){var t=Q0(e._i),n=t.day===void 0?t.date:t.day;e._a=mP([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),sv(e)}}function hG(e){var t=new wu(ov(NP(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function NP(e){var t=e._i,n=e._f;return e._locale=e._locale||Gr(e._l),t===null||n===void 0&&t===""?Kf({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Fn(t)?new wu(ov(t)):(Su(t)?e._d=t:In(n)?dG(e):n?av(e):pG(e),Y0(e)||(e._d=null),e))}function pG(e){var t=e._i;Ot(t)?e._d=new Date(N.now()):Su(t)?e._d=new Date(t.valueOf()):typeof t=="string"?aG(e):In(t)?(e._a=mP(t.slice(0),function(n){return parseInt(n,10)}),sv(e)):Co(t)?fG(e):Wr(t)?e._d=new Date(t):N.createFromInputFallback(e)}function LP(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Co(e)&&H0(e)||In(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,hG(o)}function Ee(e,t,n,r){return LP(e,t,n,r,!1)}var mG=bn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ee.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Kf()}),gG=bn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ee.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Kf()});function zP(e,t){var n,r;if(t.length===1&&In(t[0])&&(t=t[0]),!t.length)return Ee();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function yG(){var e=[].slice.call(arguments,0);return zP("isBefore",e)}function vG(){var e=[].slice.call(arguments,0);return zP("isAfter",e)}var bG=function(){return Date.now?Date.now():+new Date},$a=["year","quarter","month","week","day","hour","minute","second","millisecond"];function SG(e){var t,n=!1,r,i=$a.length;for(t in e)if(se(e,t)&&!(Ve.call($a,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[$a[r]]){if(n)return!1;parseFloat(e[$a[r]])!==J(e[$a[r]])&&(n=!0)}return!0}function wG(){return this._isValid}function xG(){return zn(NaN)}function rh(e){var t=Q0(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=SG(t),this._milliseconds=+c+u*1e3+l*6e4+a*1e3*60*60,this._days=+s+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=Gr(),this._bubble()}function Hc(e){return e instanceof rh}function Og(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function kG(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s;for(s=0;s<r;s++)J(e[s])!==J(t[s])&&o++;return o+i}function jP(e,t){V(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+lr(~~(n/60),2)+t+lr(~~n%60,2)})}jP("Z",":");jP("ZZ","");L("Z",eh);L("ZZ",eh);ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=lv(eh,e)});var _G=/([\+\-]|\d\d)/gi;function lv(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(_G)||["-",0,0],o=+(i[1]*60)+J(i[2]),o===0?0:i[0]==="+"?o:-o)}function uv(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Fn(e)||Su(e)?e.valueOf():Ee(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),N.updateOffset(n,!1),n):Ee(e).local()}function $g(e){return-Math.round(e._d.getTimezoneOffset())}N.updateOffset=function(){};function CG(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=lv(eh,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=$g(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?UP(this,zn(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,N.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:$g(this)}function TG(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function EG(e){return this.utcOffset(0,e)}function PG(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract($g(this),"m")),this}function RG(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=lv(q7,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function AG(e){return this.isValid()?(e=e?Ee(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function MG(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function DG(){if(!Ot(this._isDSTShifted))return this._isDSTShifted;var e={},t;return G0(e,this),e=NP(e),e._a?(t=e._isUTC?cr(e._a):Ee(e._a),this._isDSTShifted=this.isValid()&&kG(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function OG(){return this.isValid()?!this._isUTC:!1}function $G(){return this.isValid()?this._isUTC:!1}function BP(){return this.isValid()?this._isUTC&&this._offset===0:!1}var IG=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,FG=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zn(e,t){var n=e,r=null,i,o,s;return Hc(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Wr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=IG.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:J(r[tr])*i,h:J(r[nt])*i,m:J(r[Mn])*i,s:J(r[Rr])*i,ms:J(Og(r[fo]*1e3))*i}):(r=FG.exec(e))?(i=r[1]==="-"?-1:1,n={y:Qi(r[2],i),M:Qi(r[3],i),w:Qi(r[4],i),d:Qi(r[5],i),h:Qi(r[6],i),m:Qi(r[7],i),s:Qi(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=NG(Ee(n.from),Ee(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),o=new rh(n),Hc(e)&&se(e,"_locale")&&(o._locale=e._locale),Hc(e)&&se(e,"_isValid")&&(o._isValid=e._isValid),o}zn.fn=rh.prototype;zn.invalid=xG;function Qi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Pw(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function NG(e,t){var n;return e.isValid()&&t.isValid()?(t=uv(t,e),e.isBefore(t)?n=Pw(e,t):(n=Pw(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function VP(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(yP(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=zn(n,r),UP(this,i,e),this}}function UP(e,t,n,r){var i=t._milliseconds,o=Og(t._days),s=Og(t._months);e.isValid()&&(r=r??!0,s&&EP(e,Ql(e,"Month")+s*n),o&&_P(e,"Date",Ql(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&N.updateOffset(e,o||s))}var LG=VP(1,"add"),zG=VP(-1,"subtract");function WP(e){return typeof e=="string"||e instanceof String}function jG(e){return Fn(e)||Su(e)||WP(e)||Wr(e)||VG(e)||BG(e)||e===null||e===void 0}function BG(e){var t=Co(e)&&!H0(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,s=r.length;for(i=0;i<s;i+=1)o=r[i],n=n||se(e,o);return t&&n}function VG(e){var t=In(e),n=!1;return t&&(n=e.filter(function(r){return!Wr(r)&&WP(e)}).length===0),t&&n}function UG(e){var t=Co(e)&&!H0(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||se(e,o);return t&&n}function WG(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function HG(e,t){arguments.length===1&&(arguments[0]?jG(arguments[0])?(e=arguments[0],t=void 0):UG(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ee(),r=uv(n,this).startOf("day"),i=N.calendarFormat(this,r)||"sameElse",o=t&&(dr(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Ee(n)))}function YG(){return new wu(this)}function GG(e,t){var n=Fn(e)?e:Ee(e);return this.isValid()&&n.isValid()?(t=Sn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function qG(e,t){var n=Fn(e)?e:Ee(e);return this.isValid()&&n.isValid()?(t=Sn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function KG(e,t,n,r){var i=Fn(e)?e:Ee(e),o=Fn(t)?t:Ee(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function QG(e,t){var n=Fn(e)?e:Ee(e),r;return this.isValid()&&n.isValid()?(t=Sn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function XG(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ZG(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function JG(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=uv(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Sn(t),t){case"year":o=Yc(this,r)/12;break;case"month":o=Yc(this,r);break;case"quarter":o=Yc(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:fn(o)}function Yc(e,t){if(e.date()<t.date())return-Yc(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}N.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";N.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function eq(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function tq(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Wc(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):dr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Wc(n,"Z")):Wc(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nq(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function rq(e){e||(e=this.isUtc()?N.defaultFormatUtc:N.defaultFormat);var t=Wc(this,e);return this.localeData().postformat(t)}function iq(e,t){return this.isValid()&&(Fn(e)&&e.isValid()||Ee(e).isValid())?zn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oq(e){return this.from(Ee(),e)}function sq(e,t){return this.isValid()&&(Fn(e)&&e.isValid()||Ee(e).isValid())?zn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aq(e){return this.to(Ee(),e)}function HP(e){var t;return e===void 0?this._locale._abbr:(t=Gr(e),t!=null&&(this._locale=t),this)}var YP=bn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function GP(){return this._locale}var zd=1e3,Ds=60*zd,jd=60*Ds,qP=(365*400+97)*24*jd;function Os(e,t){return(e%t+t)%t}function KP(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-qP:new Date(e,t,n).valueOf()}function QP(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-qP:Date.UTC(e,t,n)}function lq(e){var t,n;if(e=Sn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?QP:KP,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Os(t+(this._isUTC?0:this.utcOffset()*Ds),jd);break;case"minute":t=this._d.valueOf(),t-=Os(t,Ds);break;case"second":t=this._d.valueOf(),t-=Os(t,zd);break}return this._d.setTime(t),N.updateOffset(this,!0),this}function uq(e){var t,n;if(e=Sn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?QP:KP,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=jd-Os(t+(this._isUTC?0:this.utcOffset()*Ds),jd)-1;break;case"minute":t=this._d.valueOf(),t+=Ds-Os(t,Ds)-1;break;case"second":t=this._d.valueOf(),t+=zd-Os(t,zd)-1;break}return this._d.setTime(t),N.updateOffset(this,!0),this}function cq(){return this._d.valueOf()-(this._offset||0)*6e4}function dq(){return Math.floor(this.valueOf()/1e3)}function fq(){return new Date(this.valueOf())}function hq(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function pq(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function mq(){return this.isValid()?this.toISOString():null}function gq(){return Y0(this)}function yq(){return bi({},X(this))}function vq(){return X(this).overflow}function bq(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}V("N",0,0,"eraAbbr");V("NN",0,0,"eraAbbr");V("NNN",0,0,"eraAbbr");V("NNNN",0,0,"eraName");V("NNNNN",0,0,"eraNarrow");V("y",["y",1],"yo","eraYear");V("y",["yy",2],0,"eraYear");V("y",["yyy",3],0,"eraYear");V("y",["yyyy",4],0,"eraYear");L("N",cv);L("NN",cv);L("NNN",cv);L("NNNN",Aq);L("NNNNN",Mq);ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?X(n).era=i:X(n).invalidEra=e});L("y",fa);L("yy",fa);L("yyy",fa);L("yyyy",fa);L("yo",Dq);ge(["y","yy","yyy","yyyy"],wt);ge(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[wt]=n._locale.eraYearOrdinalParse(e,i):t[wt]=parseInt(e,10)});function Sq(e,t){var n,r,i,o=this._eras||Gr("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=N(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=N(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function wq(e,t,n){var r,i,o=this.eras(),s,a,l;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(s=o[r].name.toUpperCase(),a=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return o[r];break;case"NNNN":if(s===e)return o[r];break;case"NNNNN":if(l===e)return o[r];break}else if([s,a,l].indexOf(e)>=0)return o[r]}function xq(e,t){var n=e.since<=e.until?1:-1;return t===void 0?N(e.since).year():N(e.since).year()+(t-e.offset)*n}function kq(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function _q(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Cq(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Tq(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-N(i[e].since).year())*n+i[e].offset;return this.year()}function Eq(e){return se(this,"_erasNameRegex")||dv.call(this),e?this._erasNameRegex:this._erasRegex}function Pq(e){return se(this,"_erasAbbrRegex")||dv.call(this),e?this._erasAbbrRegex:this._erasRegex}function Rq(e){return se(this,"_erasNarrowRegex")||dv.call(this),e?this._erasNarrowRegex:this._erasRegex}function cv(e,t){return t.erasAbbrRegex(e)}function Aq(e,t){return t.erasNameRegex(e)}function Mq(e,t){return t.erasNarrowRegex(e)}function Dq(e,t){return t._eraYearOrdinalRegex||fa}function dv(){var e=[],t=[],n=[],r=[],i,o,s,a,l,u=this.eras();for(i=0,o=u.length;i<o;++i)s=Ir(u[i].name),a=Ir(u[i].abbr),l=Ir(u[i].narrow),t.push(s),e.push(a),n.push(l),r.push(s),r.push(a),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}V(0,["gg",2],0,function(){return this.weekYear()%100});V(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ih(e,t){V(0,[e,e.length],0,t)}ih("gggg","weekYear");ih("ggggg","weekYear");ih("GGGG","isoWeekYear");ih("GGGGG","isoWeekYear");L("G",Jf);L("g",Jf);L("GG",Pe,rn);L("gg",Pe,rn);L("GGGG",Z0,X0);L("gggg",Z0,X0);L("GGGGG",Zf,Qf);L("ggggg",Zf,Qf);ku(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=J(e)});ku(["gg","GG"],function(e,t,n,r){t[r]=N.parseTwoDigitYear(e)});function Oq(e){return XP.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function $q(e){return XP.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Iq(){return Fr(this.year(),1,4)}function Fq(){return Fr(this.isoWeekYear(),1,4)}function Nq(){var e=this.localeData()._week;return Fr(this.year(),e.dow,e.doy)}function Lq(){var e=this.localeData()._week;return Fr(this.weekYear(),e.dow,e.doy)}function XP(e,t,n,r,i){var o;return e==null?Zl(this,r,i).year:(o=Fr(e,r,i),t>o&&(t=o),zq.call(this,e,t,n,r,i))}function zq(e,t,n,r,i){var o=AP(e,t,n,r,i),s=Xl(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}V("Q",0,"Qo","quarter");L("Q",bP);ge("Q",function(e,t){t[Pr]=(J(e)-1)*3});function jq(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}V("D",["DD",2],"Do","date");L("D",Pe,ha);L("DD",Pe,rn);L("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ge(["D","DD"],tr);ge("Do",function(e,t){t[tr]=J(e.match(Pe)[0])});var ZP=pa("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear");L("DDD",Xf);L("DDDD",SP);ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=J(e)});function Bq(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}V("m",["mm",2],0,"minute");L("m",Pe,J0);L("mm",Pe,rn);ge(["m","mm"],Mn);var Vq=pa("Minutes",!1);V("s",["ss",2],0,"second");L("s",Pe,J0);L("ss",Pe,rn);ge(["s","ss"],Rr);var Uq=pa("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)});V(0,["SS",2],0,function(){return~~(this.millisecond()/10)});V(0,["SSS",3],0,"millisecond");V(0,["SSSS",4],0,function(){return this.millisecond()*10});V(0,["SSSSS",5],0,function(){return this.millisecond()*100});V(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});V(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});V(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});V(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});L("S",Xf,bP);L("SS",Xf,rn);L("SSS",Xf,SP);var Si,JP;for(Si="SSSS";Si.length<=9;Si+="S")L(Si,fa);function Wq(e,t){t[fo]=J(("0."+e)*1e3)}for(Si="S";Si.length<=9;Si+="S")ge(Si,Wq);JP=pa("Milliseconds",!1);V("z",0,0,"zoneAbbr");V("zz",0,0,"zoneName");function Hq(){return this._isUTC?"UTC":""}function Yq(){return this._isUTC?"Coordinated Universal Time":""}var $=wu.prototype;$.add=LG;$.calendar=HG;$.clone=YG;$.diff=JG;$.endOf=uq;$.format=rq;$.from=iq;$.fromNow=oq;$.to=sq;$.toNow=aq;$.get=nY;$.invalidAt=vq;$.isAfter=GG;$.isBefore=qG;$.isBetween=KG;$.isSame=QG;$.isSameOrAfter=XG;$.isSameOrBefore=ZG;$.isValid=gq;$.lang=YP;$.locale=HP;$.localeData=GP;$.max=gG;$.min=mG;$.parsingFlags=yq;$.set=rY;$.startOf=lq;$.subtract=zG;$.toArray=hq;$.toObject=pq;$.toDate=fq;$.toISOString=tq;$.inspect=nq;typeof Symbol<"u"&&Symbol.for!=null&&($[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$.toJSON=mq;$.toString=eq;$.unix=dq;$.valueOf=cq;$.creationData=bq;$.eraName=kq;$.eraNarrow=_q;$.eraAbbr=Cq;$.eraYear=Tq;$.year=kP;$.isLeapYear=tY;$.weekYear=Oq;$.isoWeekYear=$q;$.quarter=$.quarters=jq;$.month=PP;$.daysInMonth=fY;$.week=$.weeks=SY;$.isoWeek=$.isoWeeks=wY;$.weeksInYear=Nq;$.weeksInWeekYear=Lq;$.isoWeeksInYear=Iq;$.isoWeeksInISOWeekYear=Fq;$.date=ZP;$.day=$.days=$Y;$.weekday=IY;$.isoWeekday=FY;$.dayOfYear=Bq;$.hour=$.hours=UY;$.minute=$.minutes=Vq;$.second=$.seconds=Uq;$.millisecond=$.milliseconds=JP;$.utcOffset=CG;$.utc=EG;$.local=PG;$.parseZone=RG;$.hasAlignedHourOffset=AG;$.isDST=MG;$.isLocal=OG;$.isUtcOffset=$G;$.isUtc=BP;$.isUTC=BP;$.zoneAbbr=Hq;$.zoneName=Yq;$.dates=bn("dates accessor is deprecated. Use date instead.",ZP);$.months=bn("months accessor is deprecated. Use month instead",PP);$.years=bn("years accessor is deprecated. Use year instead",kP);$.zone=bn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",TG);$.isDSTShifted=bn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",DG);function Gq(e){return Ee(e*1e3)}function qq(){return Ee.apply(null,arguments).parseZone()}function e2(e){return e}var ae=q0.prototype;ae.calendar=O7;ae.longDateFormat=N7;ae.invalidDate=z7;ae.ordinal=V7;ae.preparse=e2;ae.postformat=e2;ae.relativeTime=W7;ae.pastFuture=H7;ae.set=M7;ae.eras=Sq;ae.erasParse=wq;ae.erasConvertYear=xq;ae.erasAbbrRegex=Pq;ae.erasNameRegex=Eq;ae.erasNarrowRegex=Rq;ae.months=lY;ae.monthsShort=uY;ae.monthsParse=dY;ae.monthsRegex=pY;ae.monthsShortRegex=hY;ae.week=gY;ae.firstDayOfYear=bY;ae.firstDayOfWeek=vY;ae.weekdays=RY;ae.weekdaysMin=MY;ae.weekdaysShort=AY;ae.weekdaysParse=OY;ae.weekdaysRegex=NY;ae.weekdaysShortRegex=LY;ae.weekdaysMinRegex=zY;ae.isPM=BY;ae.meridiem=WY;function Bd(e,t,n,r){var i=Gr(),o=cr().set(r,t);return i[n](o,e)}function t2(e,t,n){if(Wr(e)&&(t=e,e=void 0),e=e||"",t!=null)return Bd(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Bd(e,r,n,"month");return i}function fv(e,t,n,r){typeof e=="boolean"?(Wr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Wr(t)&&(n=t,t=void 0),t=t||"");var i=Gr(),o=e?i._week.dow:0,s,a=[];if(n!=null)return Bd(t,(n+o)%7,r,"day");for(s=0;s<7;s++)a[s]=Bd(t,(s+o)%7,r,"day");return a}function Kq(e,t){return t2(e,t,"months")}function Qq(e,t){return t2(e,t,"monthsShort")}function Xq(e,t,n){return fv(e,t,n,"weekdays")}function Zq(e,t,n){return fv(e,t,n,"weekdaysShort")}function Jq(e,t,n){return fv(e,t,n,"weekdaysMin")}Oi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=J(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});N.lang=bn("moment.lang is deprecated. Use moment.locale instead.",Oi);N.langData=bn("moment.langData is deprecated. Use moment.localeData instead.",Gr);var pr=Math.abs;function eK(){var e=this._data;return this._milliseconds=pr(this._milliseconds),this._days=pr(this._days),this._months=pr(this._months),e.milliseconds=pr(e.milliseconds),e.seconds=pr(e.seconds),e.minutes=pr(e.minutes),e.hours=pr(e.hours),e.months=pr(e.months),e.years=pr(e.years),this}function n2(e,t,n,r){var i=zn(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function tK(e,t){return n2(this,e,t,1)}function nK(e,t){return n2(this,e,t,-1)}function Rw(e){return e<0?Math.floor(e):Math.ceil(e)}function rK(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,s,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Rw(Ig(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=fn(e/1e3),r.seconds=i%60,o=fn(i/60),r.minutes=o%60,s=fn(o/60),r.hours=s%24,t+=fn(s/24),l=fn(r2(t)),n+=l,t-=Rw(Ig(l)),a=fn(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function r2(e){return e*4800/146097}function Ig(e){return e*146097/4800}function iK(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Sn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+r2(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ig(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function qr(e){return function(){return this.as(e)}}var i2=qr("ms"),oK=qr("s"),sK=qr("m"),aK=qr("h"),lK=qr("d"),uK=qr("w"),cK=qr("M"),dK=qr("Q"),fK=qr("y"),hK=i2;function pK(){return zn(this)}function mK(e){return e=Sn(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var gK=Vo("milliseconds"),yK=Vo("seconds"),vK=Vo("minutes"),bK=Vo("hours"),SK=Vo("days"),wK=Vo("months"),xK=Vo("years");function kK(){return fn(this.days()/7)}var vr=Math.round,vs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _K(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function CK(e,t,n,r){var i=zn(e).abs(),o=vr(i.as("s")),s=vr(i.as("m")),a=vr(i.as("h")),l=vr(i.as("d")),u=vr(i.as("M")),c=vr(i.as("w")),d=vr(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],f[2]=t,f[3]=+e>0,f[4]=r,_K.apply(null,f)}function TK(e){return e===void 0?vr:typeof e=="function"?(vr=e,!0):!1}function EK(e,t){return vs[e]===void 0?!1:t===void 0?vs[e]:(vs[e]=t,e==="s"&&(vs.ss=t-1),!0)}function PK(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=vs,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},vs,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=CK(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var jp=Math.abs;function qo(e){return(e>0)-(e<0)||+e}function oh(){if(!this.isValid())return this.localeData().invalidDate();var e=jp(this._milliseconds)/1e3,t=jp(this._days),n=jp(this._months),r,i,o,s,a=this.asSeconds(),l,u,c,d;return a?(r=fn(e/60),i=fn(r/60),e%=60,r%=60,o=fn(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=qo(this._months)!==qo(a)?"-":"",c=qo(this._days)!==qo(a)?"-":"",d=qo(this._milliseconds)!==qo(a)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+s+"S":"")):"P0D"}var ne=rh.prototype;ne.isValid=wG;ne.abs=eK;ne.add=tK;ne.subtract=nK;ne.as=iK;ne.asMilliseconds=i2;ne.asSeconds=oK;ne.asMinutes=sK;ne.asHours=aK;ne.asDays=lK;ne.asWeeks=uK;ne.asMonths=cK;ne.asQuarters=dK;ne.asYears=fK;ne.valueOf=hK;ne._bubble=rK;ne.clone=pK;ne.get=mK;ne.milliseconds=gK;ne.seconds=yK;ne.minutes=vK;ne.hours=bK;ne.days=SK;ne.weeks=kK;ne.months=wK;ne.years=xK;ne.humanize=PK;ne.toISOString=oh;ne.toString=oh;ne.toJSON=oh;ne.locale=HP;ne.localeData=GP;ne.toIsoString=bn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oh);ne.lang=YP;V("X",0,0,"unix");V("x",0,0,"valueOf");L("x",Jf);L("X",K7);ge("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ge("x",function(e,t,n){n._d=new Date(J(e))});//! moment.js
N.version="2.30.1";R7(Ee);N.fn=$;N.min=yG;N.max=vG;N.now=bG;N.utc=cr;N.unix=Gq;N.months=Kq;N.isDate=Su;N.locale=Oi;N.invalid=Kf;N.duration=zn;N.isMoment=Fn;N.weekdays=Xq;N.parseZone=qq;N.localeData=Gr;N.isDuration=Hc;N.monthsShort=Qq;N.weekdaysMin=Jq;N.defineLocale=iv;N.updateLocale=qY;N.locales=KY;N.weekdaysShort=Zq;N.normalizeUnits=Sn;N.relativeTimeRounding=TK;N.relativeTimeThreshold=EK;N.calendarFormat=WG;N.prototype=$;N.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const RK=ur.lazy(()=>yu(()=>import("./Dashboard-BGHL639E.js").then(e=>e.q),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),AK=ur.lazy(()=>yu(()=>import("./Topbar-D6JbgIsx.js"),__vite__mapDeps([12,1,2,3,13,14,6,4,15,16,9,17,18,19,20,7,21]))),MK=ur.lazy(()=>yu(()=>import("./Login-CAikyNgg.js"),__vite__mapDeps([22,2,6,4,18,17,10,19,20,23,24]))),DK=ur.lazy(()=>yu(()=>import("./Sidebar-DcO_oEAY.js"),__vite__mapDeps([25,15,2,26,1,3,14,27,13,5,4,28,19,20]))),OK=ur.lazy(()=>yu(()=>import("./Queue-7jL-R0pz.js"),__vite__mapDeps([29,3,7,30,31,4,32,24,33,8]))),$K=async e=>{await qH(ci.token,"update_user",{id:ci.id,web_fcm:e}),localStorage.setItem("webfcm",e)};function IK(e){return N().valueOf()>e}function FK(){const e=Bo(),t=async()=>{try{if(!("serviceWorker"in navigator)){console.error("Service workers are not supported in this browser.");return}if(!("Notification"in window)){console.error("This browser does not support notifications.");return}if(await Notification.requestPermission()==="granted"){const r=await f9(m9,{vapidKey:"BEs6rAVWsgBh4OJXv1A38dUxwJVhlEGgcvjkjKzabtgxDTe3ZR3a1jV0qnpVo78rx0VqWxbULYlQud2gy-btmh4"});console.log(r),ci&&$K(r)}else console.error("Notification permission denied.")}catch(n){console.error("An error occurred while requesting permission:",n)}};return w.useEffect(()=>{ci&&t()},[]),w.useEffect(()=>{ci&&IK(ci.exp)&&(localStorage.removeItem("admin"),window.location.reload())},[]),M.jsxs(hP,{children:[" ",M.jsxs(w.Suspense,{fallback:M.jsx(S7,{}),children:[" ",e.pathname==="/queue"?M.jsx(OK,{}):ci?M.jsxs(hl,{display:"flex",width:"100%",children:[" ",M.jsxs(hl,{children:[" ",M.jsx(DK,{})," "]})," ",M.jsxs(hl,{maxH:"100vh",overflow:"scroll",w:"100vw",overflowX:"hidden",children:[" ",M.jsx(AK,{})," ",M.jsx(RK,{})," "]})," "]}):M.jsx(MK,{})," ",M.jsx(b7,{initialIsOpen:!1})," "]})," "]})}const NK="/admin/";"serviceWorker"in navigator&&navigator.serviceWorker.register(`${NK}firebase-messaging-sw.js`).then(e=>{console.log("Service Worker registered:",e)}).catch(e=>{console.error("Service Worker registration failed:",e)});const LK=new y7({defaultOptions:{queries:{staleTime:15e4}}}),zK=document.getElementById("root");zT(zK).render(M.jsx(ur.StrictMode,{children:M.jsx(v7,{client:LK,children:M.jsx(dU,{basename:"/admin",children:M.jsxs(rV,{theme:mU,children:[" ",M.jsx(FK,{})]})})})}));export{m9 as $,BK as A,hl as B,N as C,PQ as D,db as E,Ox as F,Yf as G,LT as H,fu as I,EQ as J,ur as K,sQ as L,NT as M,D_ as N,IT as O,GH as P,P0 as Q,P7 as R,Bo as S,jc as T,oQ as U,nU as V,iQ as W,S7 as X,iV as Y,lQ as Z,yu as _,Be as a,su as a0,E7 as a1,Oe as a2,VK as a3,BR as a4,WK as a5,UK as a6,Zc as a7,rj as a8,Df as a9,HK as aA,qH as aB,T7 as aC,rQ as aD,YK as aE,qK as aF,P_ as aG,R_ as aH,Mf as aI,Aj as aJ,KK as aK,JK as aL,nQ as aM,ql as aN,p7 as aO,Bp as aP,j4 as aa,K3 as ab,rl as ac,nr as ad,Bj as ae,Ej as af,eQ as ag,C_ as ah,XR as ai,QK as aj,aQ as ak,YH as al,Gf as am,o7 as an,ZH as ao,RQ as ap,yw as aq,Cn as ar,qf as as,QH as at,XH as au,iP as av,c7 as aw,e7 as ax,Tt as ay,AQ as az,ml as b,zi as c,zv as d,Iv as e,vn as f,Mj as g,na as h,Bg as i,M as j,_N as k,Nn as l,rA as m,Nt as n,Vg as o,nu as p,ia as q,w as r,ZK as s,W as t,tA as u,GK as v,MQ as w,ug as x,ci as y,Ou as z};