spec-snake 0.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Q_AobJB0.js","assets/Header-DN39nNWE.js","assets/ChevronRightIcon-BcBiiChF.js","assets/index-pyqED_5G.js","assets/DocumentIcon-jB6zASay.js","assets/PlusIcon-DqYOBije.js","assets/index-DQxQHK-0.js","assets/index-CT_VQ59w.js","assets/useStepFormStore-CBcs2c-9.js","assets/index-DYnzYTb1.js"])))=>i.map(i=>d[i]);
2
+ function ZT(n,i){for(var a=0;a<i.length;a++){const r=i[a];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in n)){const f=Object.getOwnPropertyDescriptor(r,l);f&&Object.defineProperty(n,l,f.get?f:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function a(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerPolicy&&(f.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?f.credentials="include":l.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(l){if(l.ep)return;l.ep=!0;const f=a(l);fetch(l.href,f)}})();function JT(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ic={exports:{}},Xa={};var og;function IT(){if(og)return Xa;og=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function a(r,l,f){var h=null;if(f!==void 0&&(h=""+f),l.key!==void 0&&(h=""+l.key),"key"in l){f={};for(var d in l)d!=="key"&&(f[d]=l[d])}else f=l;return l=f.ref,{$$typeof:n,type:r,key:h,ref:l!==void 0?l:null,props:f}}return Xa.Fragment=i,Xa.jsx=a,Xa.jsxs=a,Xa}var rg;function $T(){return rg||(rg=1,Ic.exports=IT()),Ic.exports}var X=$T(),$c={exports:{}},lt={};var lg;function WT(){if(lg)return lt;lg=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function T(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function M(A,F,J){this.props=A,this.context=F,this.refs=C,this.updater=J||E}M.prototype.isReactComponent={},M.prototype.setState=function(A,F){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,F,"setState")},M.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function w(){}w.prototype=M.prototype;function V(A,F,J){this.props=A,this.context=F,this.refs=C,this.updater=J||E}var P=V.prototype=new w;P.constructor=V,_(P,M.prototype),P.isPureReactComponent=!0;var k=Array.isArray;function U(){}var G={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function Z(A,F,J){var I=J.ref;return{$$typeof:n,type:A,key:F,ref:I!==void 0?I:null,props:J}}function nt(A,F){return Z(A.type,F,A.props)}function st(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function Tt(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return F[J]})}var Pt=/\/+/g;function Ut(A,F){return typeof A=="object"&&A!==null&&A.key!=null?Tt(""+A.key):F.toString(36)}function zt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(U,U):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function j(A,F,J,I,at){var rt=typeof A;(rt==="undefined"||rt==="boolean")&&(A=null);var gt=!1;if(A===null)gt=!0;else switch(rt){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(A.$$typeof){case n:case i:gt=!0;break;case g:return gt=A._init,j(gt(A._payload),F,J,I,at)}}if(gt)return at=at(A),gt=I===""?"."+Ut(A,0):I,k(at)?(J="",gt!=null&&(J=gt.replace(Pt,"$&/")+"/"),j(at,F,J,"",function(fn){return fn})):at!=null&&(st(at)&&(at=nt(at,J+(at.key==null||A&&A.key===at.key?"":(""+at.key).replace(Pt,"$&/")+"/")+gt)),F.push(at)),1;gt=0;var kt=I===""?".":I+":";if(k(A))for(var Mt=0;Mt<A.length;Mt++)I=A[Mt],rt=kt+Ut(I,Mt),gt+=j(I,F,J,rt,at);else if(Mt=T(A),typeof Mt=="function")for(A=Mt.call(A),Mt=0;!(I=A.next()).done;)I=I.value,rt=kt+Ut(I,Mt++),gt+=j(I,F,J,rt,at);else if(rt==="object"){if(typeof A.then=="function")return j(zt(A),F,J,I,at);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return gt}function Q(A,F,J){if(A==null)return A;var I=[],at=0;return j(A,I,"","",function(rt){return F.call(J,rt,at++)}),I}function W(A){if(A._status===-1){var F=A._result;F=F(),F.then(function(J){(A._status===0||A._status===-1)&&(A._status=1,A._result=J)},function(J){(A._status===0||A._status===-1)&&(A._status=2,A._result=J)}),A._status===-1&&(A._status=0,A._result=F)}if(A._status===1)return A._result.default;throw A._result}var ft=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},yt={map:Q,forEach:function(A,F,J){Q(A,function(){F.apply(this,arguments)},J)},count:function(A){var F=0;return Q(A,function(){F++}),F},toArray:function(A){return Q(A,function(F){return F})||[]},only:function(A){if(!st(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return lt.Activity=v,lt.Children=yt,lt.Component=M,lt.Fragment=a,lt.Profiler=l,lt.PureComponent=V,lt.StrictMode=r,lt.Suspense=m,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,lt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return G.H.useMemoCache(A)}},lt.cache=function(A){return function(){return A.apply(null,arguments)}},lt.cacheSignal=function(){return null},lt.cloneElement=function(A,F,J){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var I=_({},A.props),at=A.key;if(F!=null)for(rt in F.key!==void 0&&(at=""+F.key),F)!H.call(F,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&F.ref===void 0||(I[rt]=F[rt]);var rt=arguments.length-2;if(rt===1)I.children=J;else if(1<rt){for(var gt=Array(rt),kt=0;kt<rt;kt++)gt[kt]=arguments[kt+2];I.children=gt}return Z(A.type,at,I)},lt.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},lt.createElement=function(A,F,J){var I,at={},rt=null;if(F!=null)for(I in F.key!==void 0&&(rt=""+F.key),F)H.call(F,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(at[I]=F[I]);var gt=arguments.length-2;if(gt===1)at.children=J;else if(1<gt){for(var kt=Array(gt),Mt=0;Mt<gt;Mt++)kt[Mt]=arguments[Mt+2];at.children=kt}if(A&&A.defaultProps)for(I in gt=A.defaultProps,gt)at[I]===void 0&&(at[I]=gt[I]);return Z(A,rt,at)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(A){return{$$typeof:d,render:A}},lt.isValidElement=st,lt.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:W}},lt.memo=function(A,F){return{$$typeof:p,type:A,compare:F===void 0?null:F}},lt.startTransition=function(A){var F=G.T,J={};G.T=J;try{var I=A(),at=G.S;at!==null&&at(J,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(U,ft)}catch(rt){ft(rt)}finally{F!==null&&J.types!==null&&(F.types=J.types),G.T=F}},lt.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},lt.use=function(A){return G.H.use(A)},lt.useActionState=function(A,F,J){return G.H.useActionState(A,F,J)},lt.useCallback=function(A,F){return G.H.useCallback(A,F)},lt.useContext=function(A){return G.H.useContext(A)},lt.useDebugValue=function(){},lt.useDeferredValue=function(A,F){return G.H.useDeferredValue(A,F)},lt.useEffect=function(A,F){return G.H.useEffect(A,F)},lt.useEffectEvent=function(A){return G.H.useEffectEvent(A)},lt.useId=function(){return G.H.useId()},lt.useImperativeHandle=function(A,F,J){return G.H.useImperativeHandle(A,F,J)},lt.useInsertionEffect=function(A,F){return G.H.useInsertionEffect(A,F)},lt.useLayoutEffect=function(A,F){return G.H.useLayoutEffect(A,F)},lt.useMemo=function(A,F){return G.H.useMemo(A,F)},lt.useOptimistic=function(A,F){return G.H.useOptimistic(A,F)},lt.useReducer=function(A,F,J){return G.H.useReducer(A,F,J)},lt.useRef=function(A){return G.H.useRef(A)},lt.useState=function(A){return G.H.useState(A)},lt.useSyncExternalStore=function(A,F,J){return G.H.useSyncExternalStore(A,F,J)},lt.useTransition=function(){return G.H.useTransition()},lt.version="19.2.3",lt}var ug;function So(){return ug||(ug=1,$c.exports=WT()),$c.exports}var K=So();const _t=JT(K),AD=ZT({__proto__:null,default:_t},[K]),tx=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,ex={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,menuitem:!0};function s0(n,i={}){const a=n.split(tx);if(a.length===1)return n;const r=nx(0,"$lingui$"),l=[],f=a.shift();f&&l.push(f);for(const[h,d,m]of a0(a)){let p=typeof h<"u"?i[h]:void 0;(!p||ex[p.type]&&d)&&(console.error(p?`${p.type} is a void element tag therefore it must have no children`:`Can't use element at index '${h}' as it is not declared in the original translation`),p=_t.createElement(_t.Fragment)),Array.isArray(p)&&(p=_t.createElement(_t.Fragment,{},p)),l.push(_t.cloneElement(p,{key:r()},d?s0(d,i):p.props.children)),m&&l.push(m)}return l.length===1?l[0]:l}function a0(n){if(!n.length)return[];const[i,a,r,l]=n.slice(0,4);return[[i||r,a||"",l]].concat(a0(n.slice(4,n.length)))}const nx=(n=0,i="")=>()=>`${i}_${n++}`;function ix(n){const{render:i,component:a,id:r,message:l,formats:f,lingui:{i18n:h,defaultComponent:d}}=n,{values:m,components:p}=ax(n),g=h&&typeof h._=="function"?h._(r,m,{message:l,formats:f}):r,v=g?s0(g,p):null;if(i===null||a===null)return v;const S=d||sx,T={id:r,message:l,translation:v,children:v};if(i&&a)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(i&&typeof i!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${i}`);else if(a&&typeof a!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${a}`),_t.createElement(S,T,v);if(typeof i=="function")return i(T);const E=a||S;return _t.createElement(E,T,v)}const sx=({children:n})=>_t.createElement(_t.Fragment,null,n),ax=n=>{if(!n.values)return{values:void 0,components:n.components};const i={...n.values},a={...n.components};return Object.entries(n.values).forEach(([r,l])=>{if(typeof l=="string"||typeof l=="number")return;const f=Object.keys(a).length;a[f]=_t.createElement(_t.Fragment,null,l),i[r]=`<${f}/>`}),{values:i,components:a}},o0=_t.createContext(null),r0=n=>_t.useContext(o0);function ox(){return r0()}function rx({i18n:n,defaultComponent:i,children:a}){const r=_t.useRef(n.locale),l=_t.useCallback(()=>({i18n:n,defaultComponent:i,_:n.t.bind(n)}),[n,i]),[f,h]=_t.useState(l());return _t.useEffect(()=>{const d=()=>{r.current=n.locale,h(l())},m=n.on("change",d);return r.current!==n.locale&&d(),m},[n,l]),r.current?_t.createElement(o0.Provider,{value:f},a):null}function _D(n){const i=r0();return _t.createElement(ix,{...n,lingui:i})}var _l=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ml=typeof window>"u"||"Deno"in globalThis;function en(){}function lx(n,i){return typeof n=="function"?n(i):n}function ux(n){return typeof n=="number"&&n>=0&&n!==1/0}function cx(n,i){return Math.max(n+(i||0)-Date.now(),0)}function cg(n,i){const{type:a="all",exact:r,fetchStatus:l,predicate:f,queryKey:h,stale:d}=n;if(h){if(r){if(i.queryHash!==lh(h,i.options))return!1}else if(!co(i.queryKey,h))return!1}if(a!=="all"){const m=i.isActive();if(a==="active"&&!m||a==="inactive"&&m)return!1}return!(typeof d=="boolean"&&i.isStale()!==d||l&&l!==i.state.fetchStatus||f&&!f(i))}function fg(n,i){const{exact:a,status:r,predicate:l,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(a){if(uo(i.options.mutationKey)!==uo(f))return!1}else if(!co(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||l&&!l(i))}function lh(n,i){return(i?.queryKeyHashFn||uo)(n)}function uo(n){return JSON.stringify(n,(i,a)=>Vf(a)?Object.keys(a).sort().reduce((r,l)=>(r[l]=a[l],r),{}):a)}function co(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?!Object.keys(i).some(a=>!co(n[a],i[a])):!1}function l0(n,i){if(n===i)return n;const a=hg(n)&&hg(i);if(a||Vf(n)&&Vf(i)){const r=a?n:Object.keys(n),l=r.length,f=a?i:Object.keys(i),h=f.length,d=a?[]:{};let m=0;for(let p=0;p<h;p++){const g=a?p:f[p];(!a&&r.includes(g)||a)&&n[g]===void 0&&i[g]===void 0?(d[g]=void 0,m++):(d[g]=l0(n[g],i[g]),d[g]===n[g]&&n[g]!==void 0&&m++)}return l===h&&m===l?n:d}return i}function MD(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const a in n)if(n[a]!==i[a])return!1;return!0}function hg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Vf(n){if(!dg(n))return!1;const i=n.constructor;if(i===void 0)return!0;const a=i.prototype;return!(!dg(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function dg(n){return Object.prototype.toString.call(n)==="[object Object]"}function fx(n){return new Promise(i=>{setTimeout(i,n)})}function hx(n,i,a){return typeof a.structuralSharing=="function"?a.structuralSharing(n,i):a.structuralSharing!==!1?l0(n,i):i}function dx(n,i,a=0){const r=[...n,i];return a&&r.length>a?r.slice(1):r}function mx(n,i,a=0){const r=[i,...n];return a&&r.length>a?r.slice(0,-1):r}var uh=Symbol(),px=class extends _l{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!Ml&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},u0=new px,yx=class extends _l{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!Ml&&window.addEventListener){const i=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(a=>{a(n)}))}isOnline(){return this.#t}},ll=new yx;function gx(n){return Math.min(1e3*2**n,3e4)}function c0(n){return(n??"online")==="online"?ll.isOnline():!0}var f0=class{constructor(n){this.revert=n?.revert,this.silent=n?.silent}};function Wc(n){return n instanceof f0}function h0(n){let i=!1,a=0,r=!1,l,f,h;const d=new Promise((M,w)=>{f=M,h=w}),m=M=>{r||(E(new f0(M)),n.abort?.())},p=()=>{i=!0},g=()=>{i=!1},v=()=>u0.isFocused()&&(n.networkMode==="always"||ll.isOnline())&&n.canRun(),S=()=>c0(n.networkMode)&&n.canRun(),T=M=>{r||(r=!0,n.onSuccess?.(M),l?.(),f(M))},E=M=>{r||(r=!0,n.onError?.(M),l?.(),h(M))},_=()=>new Promise(M=>{l=w=>{(r||v())&&M(w)},n.onPause?.()}).then(()=>{l=void 0,r||n.onContinue?.()}),C=()=>{if(r)return;let M;try{M=n.fn()}catch(w){M=Promise.reject(w)}Promise.resolve(M).then(T).catch(w=>{if(r)return;const V=n.retry??(Ml?0:3),P=n.retryDelay??gx,k=typeof P=="function"?P(a,w):P,U=V===!0||typeof V=="number"&&a<V||typeof V=="function"&&V(a,w);if(i||!U){E(w);return}a++,n.onFail?.(a,w),fx(k).then(()=>v()?void 0:_()).then(()=>{i?E(w):C()})})};return{promise:d,cancel:m,continue:()=>(l?.(),d),cancelRetry:p,continueRetry:g,canStart:S,start:()=>(S()?C():_().then(C),d)}}function vx(){let n=[],i=0,a=S=>{S()},r=S=>{S()},l=S=>setTimeout(S,0);const f=S=>{l=S},h=S=>{let T;i++;try{T=S()}finally{i--,i||p()}return T},d=S=>{i?n.push(S):l(()=>{a(S)})},m=S=>(...T)=>{d(()=>{S(...T)})},p=()=>{const S=n;n=[],S.length&&l(()=>{r(()=>{S.forEach(T=>{a(T)})})})};return{batch:h,batchCalls:m,schedule:d,setNotifyFunction:S=>{a=S},setBatchNotifyFunction:S=>{r=S},setScheduler:f}}var fe=vx(),d0=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ux(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ml?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},Sx=class extends d0{#t;#e;#n;#i;#o;#a;constructor(n){super(),this.#a=!1,this.#o=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=n.state||Tx(this.options),this.state=this.#t,this.scheduleGc()}get meta(){return this.options.meta}setOptions(n){this.options={...this.#o,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const a=hx(this.state.data,n,this.options);return this.#s({data:a,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),a}setState(n,i){this.#s({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#i?.promise;return this.#i?.cancel(n),i?i.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>n.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!cx(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#i&&(this.#a?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(n,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const a=new AbortController,r={queryKey:this.queryKey,meta:this.meta},l=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#a=!0,a.signal)})};l(r);const f=()=>!this.options.queryFn||this.options.queryFn===uh?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(this.#a=!1,this.options.persister?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r)),h={fetchOptions:i,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};l(h),this.options.behavior?.onFetch(h,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#s({type:"fetch",meta:h.fetchOptions?.meta});const d=m=>{Wc(m)&&m.silent||this.#s({type:"error",error:m}),Wc(m)||(this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#i=h0({fn:h.fetchFn,abort:a.abort.bind(a),onSuccess:m=>{if(m===void 0){d(new Error(`${this.queryHash} data is undefined`));return}this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(m,p)=>{this.#s({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}),this.#i.start()}#s(n){const i=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...bx(a.data,this.options),fetchMeta:n.meta??null};case"success":return{...a,data:n.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=n.error;return Wc(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...a,error:r,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=i(this.state),fe.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function bx(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:c0(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Tx(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,a=i!==void 0,r=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:a?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var xx=class extends _l{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,i,a){const r=i.queryKey,l=i.queryHash??lh(r,i);let f=this.get(l);return f||(f=new Sx({cache:this,queryKey:r,queryHash:l,options:n.defaultQueryOptions(i),state:a,defaultOptions:n.getQueryDefaults(r)}),this.add(f)),f}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#t.get(n.queryHash);i&&(n.destroy(),i===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){fe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(a=>cg(i,a))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(a=>cg(n,a)):i}notify(n){fe.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){fe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){fe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Ex=class extends d0{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||Rx(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){this.#n=h0({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(r,l)=>{this.#i({type:"failed",failureCount:r,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",a=!this.#n.canStart();try{if(!i){this.#i({type:"pending",variables:n,isPaused:a}),await this.#e.config.onMutate?.(n,this);const l=await this.options.onMutate?.(n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:n,isPaused:a})}const r=await this.#n.start();return await this.#e.config.onSuccess?.(r,n,this.state.context,this),await this.options.onSuccess?.(r,n,this.state.context),await this.#e.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,n,this.state.context),this.#i({type:"success",data:r}),r}catch(r){try{throw await this.#e.config.onError?.(r,n,this.state.context,this),await this.options.onError?.(r,n,this.state.context),await this.#e.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,n,this.state.context),r}finally{this.#i({type:"error",error:r})}}finally{this.#e.runNext(this)}}#i(n){const i=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),fe.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function Rx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ax=class extends _l{constructor(n={}){super(),this.config=n,this.#t=new Map,this.#e=Date.now()}#t;#e;build(n,i,a){const r=new Ex({mutationCache:this,mutationId:++this.#e,options:n.defaultMutationOptions(i),state:a});return this.add(r),r}add(n){const i=kr(n),a=this.#t.get(i)??[];a.push(n),this.#t.set(i,a),this.notify({type:"added",mutation:n})}remove(n){const i=kr(n);if(this.#t.has(i)){const a=this.#t.get(i)?.filter(r=>r!==n);a&&(a.length===0?this.#t.delete(i):this.#t.set(i,a))}this.notify({type:"removed",mutation:n})}canRun(n){const i=this.#t.get(kr(n))?.find(a=>a.state.status==="pending");return!i||i===n}runNext(n){return this.#t.get(kr(n))?.find(a=>a!==n&&a.state.isPaused)?.continue()??Promise.resolve()}clear(){fe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}getAll(){return[...this.#t.values()].flat()}find(n){const i={exact:!0,...n};return this.getAll().find(a=>fg(i,a))}findAll(n={}){return this.getAll().filter(i=>fg(n,i))}notify(n){fe.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return fe.batch(()=>Promise.all(n.map(i=>i.continue().catch(en))))}};function kr(n){return n.options.scope?.id??String(n.mutationId)}function _x(n){return{onFetch:(i,a)=>{const r=async()=>{const l=i.options,f=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],d=i.state.data?.pageParams||[],m={pages:[],pageParams:[]};let p=!1;const g=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(i.signal.aborted?p=!0:i.signal.addEventListener("abort",()=>{p=!0}),i.signal)})},v=i.options.queryFn&&i.options.queryFn!==uh?i.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${i.options.queryHash}'`)),S=async(E,_,C)=>{if(p)return Promise.reject();if(_==null&&E.pages.length)return Promise.resolve(E);const M={queryKey:i.queryKey,pageParam:_,direction:C?"backward":"forward",meta:i.options.meta};g(M);const w=await v(M),{maxPages:V}=i.options,P=C?mx:dx;return{pages:P(E.pages,w,V),pageParams:P(E.pageParams,_,V)}};let T;if(f&&h.length){const E=f==="backward",_=E?Mx:mg,C={pages:h,pageParams:d},M=_(l,C);T=await S(C,M,E)}else{T=await S(m,d[0]??l.initialPageParam);const E=n??h.length;for(let _=1;_<E;_++){const C=mg(l,T);T=await S(T,C)}}return T};i.options.persister?i.fetchFn=()=>i.options.persister?.(r,{queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},a):i.fetchFn=r}}}function mg(n,{pages:i,pageParams:a}){const r=i.length-1;return n.getNextPageParam(i[r],i,a[r],a)}function Mx(n,{pages:i,pageParams:a}){return n.getPreviousPageParam?.(i[0],i,a[0],a)}var Cx=class{#t;#e;#n;#i;#o;#a;#s;#r;constructor(n={}){this.#t=n.queryCache||new xx,this.#e=n.mutationCache||new Ax,this.#n=n.defaultOptions||{},this.#i=new Map,this.#o=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=u0.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#r=ll.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.getQueryData(n.queryKey);if(i===void 0)return this.fetchQuery(n);{const a=this.defaultQueryOptions(n),r=this.#t.build(this,a);return n.revalidateIfStale&&r.isStaleByTime(a.staleTime)&&this.prefetchQuery(a),Promise.resolve(i)}}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:i,state:a})=>{const r=a.data;return[i,r]})}setQueryData(n,i,a){const r=this.defaultQueryOptions({queryKey:n}),f=this.#t.get(r.queryHash)?.state.data,h=lx(i,f);if(h!==void 0)return this.#t.build(this,r).setData(h,{...a,manual:!0})}setQueriesData(n,i,a){return fe.batch(()=>this.#t.findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,i,a)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#t.get(i.queryHash)?.state}removeQueries(n){const i=this.#t;fe.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(n,i){const a=this.#t,r={type:"active",...n};return fe.batch(()=>(a.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries(r,i)))}cancelQueries(n={},i={}){const a={revert:!0,...i},r=fe.batch(()=>this.#t.findAll(n).map(l=>l.cancel(a)));return Promise.all(r).then(en).catch(en)}invalidateQueries(n={},i={}){return fe.batch(()=>{if(this.#t.findAll(n).forEach(r=>{r.invalidate()}),n.refetchType==="none")return Promise.resolve();const a={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(a,i)})}refetchQueries(n={},i){const a={...i,cancelRefetch:i?.cancelRefetch??!0},r=fe.batch(()=>this.#t.findAll(n).filter(l=>!l.isDisabled()).map(l=>{let f=l.fetch(void 0,a);return a.throwOnError||(f=f.catch(en)),l.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(en)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const a=this.#t.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(en).catch(en)}fetchInfiniteQuery(n){return n.behavior=_x(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(en).catch(en)}resumePausedMutations(){return ll.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#i.set(uo(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()];let a={};return i.forEach(r=>{co(n,r.queryKey)&&(a={...a,...r.defaultOptions})}),a}setMutationDefaults(n,i){this.#o.set(uo(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#o.values()];let a={};return i.forEach(r=>{co(n,r.mutationKey)&&(a={...a,...r.defaultOptions})}),a}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=lh(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.enabled!==!0&&i.queryFn===uh&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},m0=K.createContext(void 0),CD=n=>{const i=K.useContext(m0);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Dx=({client:n,children:i})=>(K.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),X.jsx(m0.Provider,{value:n,children:i}));const Bf=new WeakMap,wx=new WeakMap,ul={current:[]};let tf=!1,no=0;const to=new Set,Qr=new Map;function p0(n){for(const i of n){if(ul.current.includes(i))continue;ul.current.push(i),i.recompute();const a=wx.get(i);if(a)for(const r of a){const l=Bf.get(r);l?.length&&p0(l)}}}function Ox(n){const i={prevVal:n.prevState,currentVal:n.state};for(const a of n.listeners)a(i)}function Lx(n){const i={prevVal:n.prevState,currentVal:n.state};for(const a of n.listeners)a(i)}function y0(n){if(no>0&&!Qr.has(n)&&Qr.set(n,n.prevState),to.add(n),!(no>0)&&!tf)try{for(tf=!0;to.size>0;){const i=Array.from(to);to.clear();for(const a of i){const r=Qr.get(a)??a.prevState;a.prevState=r,Ox(a)}for(const a of i){const r=Bf.get(a);r&&(ul.current.push(a),p0(r))}for(const a of i){const r=Bf.get(a);if(r)for(const l of r)Lx(l)}}}finally{tf=!1,ul.current=[],Qr.clear()}}function io(n){no++;try{n()}finally{if(no--,no===0){const i=to.values().next().value;i&&y0(i)}}}function zx(n){return typeof n=="function"}class Vx{constructor(i,a){this.listeners=new Set,this.subscribe=r=>{var l,f;this.listeners.add(r);const h=(f=(l=this.options)==null?void 0:l.onSubscribe)==null?void 0:f.call(l,r,this);return()=>{this.listeners.delete(r),h?.()}},this.prevState=i,this.state=i,this.options=a}setState(i){var a,r,l;this.prevState=this.state,(a=this.options)!=null&&a.updateFn?this.state=this.options.updateFn(this.prevState)(i):zx(i)?this.state=i(this.prevState):this.state=i,(l=(r=this.options)==null?void 0:r.onUpdate)==null||l.call(r),y0(this)}}const di="__TSR_index",pg="popstate",yg="beforeunload";function Bx(n){let i=n.getLocation();const a=new Set,r=h=>{i=n.getLocation(),a.forEach(d=>d({location:i,action:h}))},l=h=>{n.notifyOnIndexChange??!0?r(h):i=n.getLocation()},f=async({task:h,navigateOpts:d,...m})=>{if(d?.ignoreBlocker??!1){h();return}const g=n.getBlockers?.()??[],v=m.type==="PUSH"||m.type==="REPLACE";if(typeof document<"u"&&g.length&&v)for(const S of g){const T=cl(m.path,m.state);if(await S.blockerFn({currentLocation:i,nextLocation:T,action:m.type})){n.onBlocked?.();return}}h()};return{get location(){return i},get length(){return n.getLength()},subscribers:a,subscribe:h=>(a.add(h),()=>{a.delete(h)}),push:(h,d,m)=>{const p=i.state[di];d=gg(p+1,d),f({task:()=>{n.pushState(h,d),r({type:"PUSH"})},navigateOpts:m,type:"PUSH",path:h,state:d})},replace:(h,d,m)=>{const p=i.state[di];d=gg(p,d),f({task:()=>{n.replaceState(h,d),r({type:"REPLACE"})},navigateOpts:m,type:"REPLACE",path:h,state:d})},go:(h,d)=>{f({task:()=>{n.go(h),l({type:"GO",index:h})},navigateOpts:d,type:"GO"})},back:h=>{f({task:()=>{n.back(h?.ignoreBlocker??!1),l({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward(h?.ignoreBlocker??!1),l({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>i.state[di]!==0,createHref:h=>n.createHref(h),block:h=>{if(!n.setBlockers)return()=>{};const d=n.getBlockers?.()??[];return n.setBlockers([...d,h]),()=>{const m=n.getBlockers?.()??[];n.setBlockers?.(m.filter(p=>p!==h))}},flush:()=>n.flush?.(),destroy:()=>n.destroy?.(),notify:r}}function gg(n,i){i||(i={});const a=ch();return{...i,key:a,__TSR_key:a,[di]:n}}function Ux(n){const i=typeof document<"u"?window:void 0,a=i.history.pushState,r=i.history.replaceState;let l=[];const f=()=>l,h=H=>l=H,d=(H=>H),m=(()=>cl(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const H=ch();i.history.replaceState({[di]:0,key:H,__TSR_key:H},"")}let p=m(),g,v=!1,S=!1,T=!1,E=!1;const _=()=>p;let C,M;const w=()=>{C&&(G._ignoreSubscribers=!0,(C.isPush?i.history.pushState:i.history.replaceState)(C.state,"",C.href),G._ignoreSubscribers=!1,C=void 0,M=void 0,g=void 0)},V=(H,Z,nt)=>{const st=d(Z);M||(g=p),p=cl(Z,nt),C={href:st,state:nt,isPush:C?.isPush||H==="push"},M||(M=Promise.resolve().then(()=>w()))},P=H=>{p=m(),G.notify({type:H})},k=async()=>{if(S){S=!1;return}const H=m(),Z=H.state[di]-p.state[di],nt=Z===1,st=Z===-1,Tt=!nt&&!st||v;v=!1;const Pt=Tt?"GO":st?"BACK":"FORWARD",Ut=Tt?{type:"GO",index:Z}:{type:st?"BACK":"FORWARD"};if(T)T=!1;else{const zt=f();if(typeof document<"u"&&zt.length){for(const j of zt)if(await j.blockerFn({currentLocation:p,nextLocation:H,action:Pt})){S=!0,i.history.go(1),G.notify(Ut);return}}}p=m(),G.notify(Ut)},U=H=>{if(E){E=!1;return}let Z=!1;const nt=f();if(typeof document<"u"&&nt.length)for(const st of nt){const Tt=st.enableBeforeUnload??!0;if(Tt===!0){Z=!0;break}if(typeof Tt=="function"&&Tt()===!0){Z=!0;break}}if(Z)return H.preventDefault(),H.returnValue=""},G=Bx({getLocation:_,getLength:()=>i.history.length,pushState:(H,Z)=>V("push",H,Z),replaceState:(H,Z)=>V("replace",H,Z),back:H=>(H&&(T=!0),E=!0,i.history.back()),forward:H=>{H&&(T=!0),E=!0,i.history.forward()},go:H=>{v=!0,i.history.go(H)},createHref:H=>d(H),flush:w,destroy:()=>{i.history.pushState=a,i.history.replaceState=r,i.removeEventListener(yg,U,{capture:!0}),i.removeEventListener(pg,k)},onBlocked:()=>{g&&p!==g&&(p=g)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return i.addEventListener(yg,U,{capture:!0}),i.addEventListener(pg,k),i.history.pushState=function(...H){const Z=a.apply(i.history,H);return G._ignoreSubscribers||P("PUSH"),Z},i.history.replaceState=function(...H){const Z=r.apply(i.history,H);return G._ignoreSubscribers||P("REPLACE"),Z},G}function cl(n,i){const a=n.indexOf("#"),r=n.indexOf("?"),l=ch();return{href:n,pathname:n.substring(0,a>0?r>0?Math.min(a,r):a:r>0?r:n.length),hash:a>-1?n.substring(a):"",search:r>-1?n.slice(r,a===-1?void 0:a):"",state:i||{[di]:0,key:l,__TSR_key:l}}}function ch(){return(Math.random()+1).toString(36).substring(7)}function fl(n){return n[n.length-1]}function jx(n){return typeof n=="function"}function ci(n,i){return jx(n)?n(i):n}const Nx=Object.prototype.hasOwnProperty;function Fe(n,i){if(n===i)return n;const a=i,r=bg(n)&&bg(a);if(!r&&!(hl(n)&&hl(a)))return a;const l=r?n:vg(n);if(!l)return a;const f=r?a:vg(a);if(!f)return a;const h=l.length,d=f.length,m=r?new Array(d):{};let p=0;for(let g=0;g<d;g++){const v=r?g:f[g],S=n[v],T=a[v];if(S===T){m[v]=S,(r?g<h:Nx.call(n,v))&&p++;continue}if(S===null||T===null||typeof S!="object"||typeof T!="object"){m[v]=T;continue}const E=Fe(S,T);m[v]=E,E===S&&p++}return h===d&&p===h?n:m}function vg(n){const i=[],a=Object.getOwnPropertyNames(n);for(const l of a){if(!Object.prototype.propertyIsEnumerable.call(n,l))return!1;i.push(l)}const r=Object.getOwnPropertySymbols(n);for(const l of r){if(!Object.prototype.propertyIsEnumerable.call(n,l))return!1;i.push(l)}return i}function hl(n){if(!Sg(n))return!1;const i=n.constructor;if(typeof i>"u")return!0;const a=i.prototype;return!(!Sg(a)||!a.hasOwnProperty("isPrototypeOf"))}function Sg(n){return Object.prototype.toString.call(n)==="[object Object]"}function bg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Ki(n,i,a){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return!1;for(let r=0,l=n.length;r<l;r++)if(!Ki(n[r],i[r],a))return!1;return!0}if(hl(n)&&hl(i)){const r=a?.ignoreUndefined??!0;if(a?.partial){for(const h in i)if((!r||i[h]!==void 0)&&!Ki(n[h],i[h],a))return!1;return!0}let l=0;if(!r)l=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&l++;let f=0;for(const h in i)if((!r||i[h]!==void 0)&&(f++,f>l||!Ki(n[h],i[h],a)))return!1;return l===f}return!1}function Qs(n){let i,a;const r=new Promise((l,f)=>{i=l,a=f});return r.status="pending",r.resolve=l=>{r.status="resolved",r.value=l,i(l),n?.(l)},r.reject=l=>{r.status="rejected",a(l)},r}function Px(n){return typeof n?.message!="string"?!1:n.message.startsWith("Failed to fetch dynamically imported module")||n.message.startsWith("error loading dynamically imported module")||n.message.startsWith("Importing a module script failed")}function mi(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function Tg(n){try{return decodeURI(n)}catch{return n.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}}function xg(n,i){if(!n)return n;const a=/%25|%5C/gi;let r=0,l="",f;for(;(f=a.exec(n))!==null;)l+=Tg(n.slice(r,f.index))+f[0],r=a.lastIndex;return l+Tg(r?n.slice(r):n)}var Hx="Invariant failed";function On(n,i){if(!n)throw new Error(Hx)}function dl(n){const i=new Map;let a,r;const l=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,a=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const h=i.get(f);if(h)return l(h),h.value},set(f,h){if(i.size>=n&&a){const m=a;i.delete(m.key),m.next&&(a=m.next,m.next.prev=void 0),m===r&&(r=void 0)}const d=i.get(f);if(d)d.value=h,l(d);else{const m={key:f,value:h,prev:r};r&&(r.next=m),r=m,a||(a=m),i.set(f,m)}},clear(){i.clear(),a=void 0,r=void 0}}}const Xs=0,Ii=1,$i=2,fo=3,qx=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Gx=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Yx=/^([^{]*)\{\$\}([^}]*)$/;function fh(n,i,a=new Uint16Array(6)){const r=n.indexOf("/",i),l=r===-1?n.length:r,f=n.substring(i,l);if(!f||!f.includes("$"))return a[0]=Xs,a[1]=i,a[2]=i,a[3]=l,a[4]=l,a[5]=l,a;if(f==="$"){const p=n.length;return a[0]=$i,a[1]=i,a[2]=i,a[3]=p,a[4]=p,a[5]=p,a}if(f.charCodeAt(0)===36)return a[0]=Ii,a[1]=i,a[2]=i+1,a[3]=l,a[4]=l,a[5]=l,a;const h=f.match(Yx);if(h){const g=h[1].length;return a[0]=$i,a[1]=i+g,a[2]=i+g+1,a[3]=i+g+2,a[4]=i+g+3,a[5]=n.length,a}const d=f.match(Gx);if(d){const p=d[1],g=d[2],v=d[3],S=p.length;return a[0]=fo,a[1]=i+S,a[2]=i+S+3,a[3]=i+S+3+g.length,a[4]=l-v.length,a[5]=l,a}const m=f.match(qx);if(m){const p=m[1],g=m[2],v=m[3],S=p.length;return a[0]=Ii,a[1]=i+S,a[2]=i+S+2,a[3]=i+S+2+g.length,a[4]=l-v.length,a[5]=l,a}return a[0]=Xs,a[1]=i,a[2]=i,a[3]=l,a[4]=l,a[5]=l,a}function Cl(n,i,a,r,l,f,h){h?.(a);let d=r;{const m=a.fullPath??a.from,p=m.length,g=a.options?.caseSensitive??n;for(;d<p;){const v=fh(m,d,i);let S;const T=d,E=v[5];switch(d=E+1,f++,v[0]){case Xs:{const C=m.substring(v[2],v[3]);if(g){const M=l.static?.get(C);if(M)S=M;else{l.static??=new Map;const w=ho(a.fullPath??a.from);w.parent=l,w.depth=f,S=w,l.static.set(C,w)}}else{const M=C.toLowerCase(),w=l.staticInsensitive?.get(M);if(w)S=w;else{l.staticInsensitive??=new Map;const V=ho(a.fullPath??a.from);V.parent=l,V.depth=f,S=V,l.staticInsensitive.set(M,V)}}break}case Ii:{const C=m.substring(T,v[1]),M=m.substring(v[4],E),w=g&&!!(C||M),V=C?w?C:C.toLowerCase():void 0,P=M?w?M:M.toLowerCase():void 0,k=l.dynamic?.find(U=>U.caseSensitive===w&&U.prefix===V&&U.suffix===P);if(k)S=k;else{const U=nf(Ii,a.fullPath??a.from,w,V,P);S=U,U.depth=f,U.parent=l,l.dynamic??=[],l.dynamic.push(U)}break}case fo:{const C=m.substring(T,v[1]),M=m.substring(v[4],E),w=g&&!!(C||M),V=C?w?C:C.toLowerCase():void 0,P=M?w?M:M.toLowerCase():void 0,k=l.optional?.find(U=>U.caseSensitive===w&&U.prefix===V&&U.suffix===P);if(k)S=k;else{const U=nf(fo,a.fullPath??a.from,w,V,P);S=U,U.parent=l,U.depth=f,l.optional??=[],l.optional.push(U)}break}case $i:{const C=m.substring(T,v[1]),M=m.substring(v[4],E),w=g&&!!(C||M),V=C?w?C:C.toLowerCase():void 0,P=M?w?M:M.toLowerCase():void 0,k=nf($i,a.fullPath??a.from,w,V,P);S=k,k.parent=l,k.depth=f,l.wildcard??=[],l.wildcard.push(k)}}l=S}if((a.path||!a.children)&&!a.isRoot){const v=m.endsWith("/");v||(l.notFound=a),(!l.route||!l.isIndex&&v)&&(l.route=a,l.fullPath=a.fullPath??a.from),l.isIndex||=v}}if(a.children)for(const m of a.children)Cl(n,i,m,d,l,f,h)}function ef(n,i){if(n.prefix&&i.prefix&&n.prefix!==i.prefix){if(n.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(n.prefix))return 1}if(n.suffix&&i.suffix&&n.suffix!==i.suffix){if(n.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(n.suffix))return 1}return n.prefix&&!i.prefix?-1:!n.prefix&&i.prefix?1:n.suffix&&!i.suffix?-1:!n.suffix&&i.suffix?1:n.caseSensitive&&!i.caseSensitive?-1:!n.caseSensitive&&i.caseSensitive?1:0}function Gi(n){if(n.static)for(const i of n.static.values())Gi(i);if(n.staticInsensitive)for(const i of n.staticInsensitive.values())Gi(i);if(n.dynamic?.length){n.dynamic.sort(ef);for(const i of n.dynamic)Gi(i)}if(n.optional?.length){n.optional.sort(ef);for(const i of n.optional)Gi(i)}if(n.wildcard?.length){n.wildcard.sort(ef);for(const i of n.wildcard)Gi(i)}}function ho(n){return{kind:Xs,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,isIndex:!1,notFound:null}}function nf(n,i,a,r,l){return{kind:n,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,isIndex:!1,notFound:null,caseSensitive:a,prefix:r,suffix:l}}function Fx(n,i){const a=ho("/"),r=new Uint16Array(6);for(const l of n)Cl(!1,r,l,1,a,0);Gi(a),i.masksTree=a,i.flatCache=dl(1e3)}function Kx(n,i){n||="/";const a=i.flatCache.get(n);if(a)return a;const r=hh(n,i.masksTree);return i.flatCache.set(n,r),r}function kx(n,i,a,r,l){n||="/",r||="/";const f=i?`case\0${n}`:n;let h=l.singleCache.get(f);if(!h){h=ho("/");const d=new Uint16Array(6);Cl(i,d,{from:n},1,h,0),l.singleCache.set(f,h)}return hh(r,h,a)}function Qx(n,i,a=!1){const r=a?n:`nofuzz\0${n}`,l=i.matchCache.get(r);if(l!==void 0)return l;n||="/";const f=hh(n,i.segmentTree,a);return f&&(f.branch=Ix(f.route)),i.matchCache.set(r,f),f}function Xx(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function Zx(n,i=!1,a){const r=ho(n.fullPath),l=new Uint16Array(6),f={},h={};let d=0;return Cl(i,l,n,1,r,0,p=>{if(a?.(p,d),On(!(p.id in f),`Duplicate routes found with id: ${String(p.id)}`),f[p.id]=p,d!==0&&p.path){const g=Xx(p.fullPath);(!h[g]||p.fullPath.endsWith("/"))&&(h[g]=p)}d++}),Gi(r),{processedTree:{segmentTree:r,singleCache:dl(1e3),matchCache:dl(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function hh(n,i,a=!1){const r=n.split("/"),l=Wx(n,r,i,a);if(!l)return null;const f=Jx(n,r,l),h="**"in l;return h&&(f["**"]=l["**"]),{route:h?l.node.notFound??l.node.route:l.node.route,params:f}}function Jx(n,i,a){const r=$x(a.node);let l=null;const f={};for(let h=0,d=0,m=0;d<r.length;h++,d++,m++){const p=r[d],g=i[h],v=m;if(g&&(m+=g.length),p.kind===Ii){l??=a.node.fullPath.split("/");const S=l[d],T=p.prefix?.length??0;if(S.charCodeAt(T)===123){const _=p.suffix?.length??0,C=S.substring(T+2,S.length-_-1),M=g.substring(T,g.length-_);f[C]=decodeURIComponent(M)}else{const _=S.substring(1);f[_]=decodeURIComponent(g)}}else if(p.kind===fo){if(a.skipped&1<<d){h--;continue}l??=a.node.fullPath.split("/");const S=l[d],T=p.prefix?.length??0,E=p.suffix?.length??0,_=S.substring(T+3,S.length-E-1),C=p.suffix||p.prefix?g.substring(T,g.length-E):g;C&&(f[_]=decodeURIComponent(C))}else if(p.kind===$i){const S=p,T=n.substring(v+(S.prefix?.length??0),n.length-(S.suffix?.length??0)),E=decodeURIComponent(T);f["*"]=E,f._splat=E;break}}return f}function Ix(n){const i=[n];for(;n.parentRoute;)n=n.parentRoute,i.push(n);return i.reverse(),i}function $x(n){const i=Array(n.depth+1);do i[n.depth]=n,n=n.parent;while(n);return i}function Wx(n,i,a,r){const l=!fl(i),f=l&&n!=="/",h=i.length-(l?1:0),d=[{node:a,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let m=null,p=null,g=null;for(;d.length;){const v=d.pop();let{node:S,index:T,skipped:E,depth:_,statics:C,dynamics:M,optionals:w}=v;r&&S.notFound&&Xr(p,v)&&(p=v);const V=T===h;if(V){if(S.route&&(!f||S.isIndex)&&(Xr(g,v)&&(g=v),C===h&&S.isIndex))return g;if(!S.optional&&!S.wildcard)continue}const P=V?void 0:i[T];let k;if(S.wildcard&&Xr(m,v))for(const U of S.wildcard){const{prefix:G,suffix:H}=U;if(!(G&&(V||!(U.caseSensitive?P:k??=P.toLowerCase()).startsWith(G)))){if(H){if(V)continue;const Z=i.slice(T).join("/").slice(-H.length);if((U.caseSensitive?Z:Z.toLowerCase())!==H)continue}m={node:U,index:T,skipped:E,depth:_,statics:C,dynamics:M,optionals:w};break}}if(S.optional){const U=E|1<<_,G=_+1;for(let H=S.optional.length-1;H>=0;H--){const Z=S.optional[H];d.push({node:Z,index:T,skipped:U,depth:G,statics:C,dynamics:M,optionals:w})}if(!V)for(let H=S.optional.length-1;H>=0;H--){const Z=S.optional[H],{prefix:nt,suffix:st}=Z;if(nt||st){const Tt=Z.caseSensitive?P:k??=P.toLowerCase();if(nt&&!Tt.startsWith(nt)||st&&!Tt.endsWith(st))continue}d.push({node:Z,index:T+1,skipped:E,depth:G,statics:C,dynamics:M,optionals:w+1})}}if(!V&&S.dynamic&&P)for(let U=S.dynamic.length-1;U>=0;U--){const G=S.dynamic[U],{prefix:H,suffix:Z}=G;if(H||Z){const nt=G.caseSensitive?P:k??=P.toLowerCase();if(H&&!nt.startsWith(H)||Z&&!nt.endsWith(Z))continue}d.push({node:G,index:T+1,skipped:E,depth:_+1,statics:C,dynamics:M+1,optionals:w})}if(!V&&S.staticInsensitive){const U=S.staticInsensitive.get(k??=P.toLowerCase());U&&d.push({node:U,index:T+1,skipped:E,depth:_+1,statics:C+1,dynamics:M,optionals:w})}if(!V&&S.static){const U=S.static.get(P);U&&d.push({node:U,index:T+1,skipped:E,depth:_+1,statics:C+1,dynamics:M,optionals:w})}}if(g&&m)return Xr(m,g)?g:m;if(g)return g;if(m)return m;if(r&&p){let v=p.index;for(let T=0;T<p.index;T++)v+=i[T].length;const S=v===n.length?"/":n.slice(v);return{node:p.node,skipped:p.skipped,"**":decodeURIComponent(S)}}return null}function Xr(n,i){return n?i.statics>n.statics||i.statics===n.statics&&(i.dynamics>n.dynamics||i.dynamics===n.dynamics&&(i.optionals>n.optionals||i.optionals===n.optionals&&(i.node.isIndex>n.node.isIndex||i.node.isIndex===n.node.isIndex&&i.depth>n.depth))):!0}function nl(n){return dh(n.filter(i=>i!==void 0).join("/"))}function dh(n){return n.replace(/\/{2,}/g,"/")}function g0(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function ki(n){const i=n.length;return i>1&&n[i-1]==="/"?n.replace(/\/{1,}$/,""):n}function v0(n){return ki(g0(n))}function ml(n,i){return n?.endsWith("/")&&n!=="/"&&n!==`${i}/`?n.slice(0,-1):n}function tE(n,i,a){return ml(n,a)===ml(i,a)}function eE({base:n,to:i,trailingSlash:a="never",cache:r}){const l=i.startsWith("/"),f=!l&&i===".";let h;if(r){h=l?i:f?n:n+"\0"+i;const v=r.get(h);if(v)return v}let d;if(f)d=n.split("/");else if(l)d=i.split("/");else{for(d=n.split("/");d.length>1&&fl(d)==="";)d.pop();const v=i.split("/");for(let S=0,T=v.length;S<T;S++){const E=v[S];E===""?S?S===T-1&&d.push(E):d=[E]:E===".."?d.pop():E==="."||d.push(E)}}d.length>1&&(fl(d)===""?a==="never"&&d.pop():a==="always"&&d.push(""));let m,p="";for(let v=0;v<d.length;v++){v>0&&(p+="/");const S=d[v];if(!S)continue;m=fh(S,0,m);const T=m[0];if(T===Xs){p+=S;continue}const E=m[5],_=S.substring(0,m[1]),C=S.substring(m[4],E),M=S.substring(m[2],m[3]);T===Ii?p+=_||C?`${_}{$${M}}${C}`:`$${M}`:T===$i?p+=_||C?`${_}{$}${C}`:"$":p+=`${_}{-$${M}}${C}`}p=dh(p);const g=p||"/";return h&&r&&r.set(h,g),g}function sf(n,i,a){const r=i[n];return typeof r!="string"?r:n==="_splat"?encodeURI(r):nE(r,a)}function af({path:n,params:i,decodeCharMap:a}){let r=!1;const l={};if(!n||n==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:r};if(!n.includes("$"))return{interpolatedPath:n,usedParams:l,isMissingParams:r};const f=n.length;let h=0,d,m="";for(;h<f;){const g=h;d=fh(n,g,d);const v=d[5];if(h=v+1,g===v)continue;const S=d[0];if(S===Xs){m+="/"+n.substring(g,v);continue}if(S===$i){const T=i._splat;l._splat=T,l["*"]=T;const E=n.substring(g,d[1]),_=n.substring(d[4],v);if(!T){r=!0,(E||_)&&(m+="/"+E+_);continue}const C=sf("_splat",i,a);m+="/"+E+C+_;continue}if(S===Ii){const T=n.substring(d[2],d[3]);!r&&!(T in i)&&(r=!0),l[T]=i[T];const E=n.substring(g,d[1]),_=n.substring(d[4],v),C=sf(T,i,a)??"undefined";m+="/"+E+C+_;continue}if(S===fo){const T=n.substring(d[2],d[3]),E=i[T];if(E==null)continue;l[T]=E;const _=n.substring(g,d[1]),C=n.substring(d[4],v),M=sf(T,i,a)??"";m+="/"+_+M+C;continue}}return n.endsWith("/")&&(m+="/"),{usedParams:l,interpolatedPath:m||"/",isMissingParams:r}}function nE(n,i){let a=encodeURIComponent(n);if(i)for(const[r,l]of i)a=a.replaceAll(r,l);return a}function Qi(n={}){if(n.isNotFound=!0,n.throw)throw n;return n}function Qe(n){return!!n?.isNotFound}function iE(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const pl="tsr-scroll-restoration-v1_3",sE=(n,i)=>{let a;return(...r)=>{a||(a=setTimeout(()=>{n(...r),a=null},i))}};function aE(){const n=iE();if(!n)return null;const i=n.getItem(pl);let a=i?JSON.parse(i):{};return{state:a,set:r=>(a=ci(r,a)||a,n.setItem(pl,JSON.stringify(a)))}}const Zr=aE(),Uf=n=>n.state.__TSR_key||n.href;function oE(n){const i=[];let a;for(;a=n.parentNode;)i.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(a.children,n)+1})`),n=a;return`${i.reverse().join(" > ")}`.toLowerCase()}let yl=!1;function S0({storageKey:n,key:i,behavior:a,shouldScrollRestoration:r,scrollToTopSelectors:l,location:f}){let h;try{h=JSON.parse(sessionStorage.getItem(n)||"{}")}catch(p){console.error(p);return}const d=i||window.history.state?.__TSR_key,m=h[d];yl=!0;t:{if(r&&m&&Object.keys(m).length>0){for(const v in m){const S=m[v];if(v==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:a});else if(v){const T=document.querySelector(v);T&&(T.scrollLeft=S.scrollX,T.scrollTop=S.scrollY)}}break t}const p=(f??window.location).hash.split("#",2)[1];if(p){const v=window.history.state?.__hashScrollIntoViewOptions??!0;if(v){const S=document.getElementById(p);S&&S.scrollIntoView(v)}break t}const g={top:0,left:0,behavior:a};if(window.scrollTo(g),l)for(const v of l){if(v==="window")continue;const S=typeof v=="function"?v():document.querySelector(v);S&&S.scrollTo(g)}}yl=!1}function rE(n,i){if(!Zr&&!n.isServer||((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isServer||n.isScrollRestorationSetup||!Zr))return;n.isScrollRestorationSetup=!0,yl=!1;const r=n.options.getScrollRestorationKey||Uf;window.history.scrollRestoration="manual";const l=f=>{if(yl||!n.isScrollRestoring)return;let h="";if(f.target===document||f.target===window)h="window";else{const m=f.target.getAttribute("data-scroll-restoration-id");m?h=`[data-scroll-restoration-id="${m}"]`:h=oE(f.target)}const d=r(n.state.location);Zr.set(m=>{const p=m[d]||={},g=p[h]||={};if(h==="window")g.scrollX=window.scrollX||0,g.scrollY=window.scrollY||0;else if(h){const v=document.querySelector(h);v&&(g.scrollX=v.scrollLeft||0,g.scrollY=v.scrollTop||0)}return m})};typeof document<"u"&&document.addEventListener("scroll",sE(l,100),!0),n.subscribe("onRendered",f=>{const h=r(f.toLocation);if(!n.resetNextScroll){n.resetNextScroll=!0;return}typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation})||(S0({storageKey:pl,key:h,behavior:n.options.scrollRestorationBehavior,shouldScrollRestoration:n.isScrollRestoring,scrollToTopSelectors:n.options.scrollToTopSelectors,location:n.history.location}),n.isScrollRestoring&&Zr.set(d=>(d[h]||={},d)))})}function lE(n){if(typeof document<"u"&&document.querySelector){const i=n.state.location.state.__hashScrollIntoViewOptions??!0;if(i&&n.state.location.hash!==""){const a=document.getElementById(n.state.location.hash);a&&a.scrollIntoView(i)}}}function uE(n,i=String){const a=new URLSearchParams;for(const r in n){const l=n[r];l!==void 0&&a.set(r,i(l))}return a.toString()}function of(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function cE(n){const i=new URLSearchParams(n),a={};for(const[r,l]of i.entries()){const f=a[r];f==null?a[r]=of(l):Array.isArray(f)?f.push(of(l)):a[r]=[f,of(l)]}return a}const fE=dE(JSON.parse),hE=mE(JSON.stringify,JSON.parse);function dE(n){return i=>{i[0]==="?"&&(i=i.substring(1));const a=cE(i);for(const r in a){const l=a[r];if(typeof l=="string")try{a[r]=n(l)}catch{}}return a}}function mE(n,i){const a=typeof i=="function";function r(l){if(typeof l=="object"&&l!==null)try{return n(l)}catch{}else if(a&&typeof l=="string")try{return i(l),n(l)}catch{}return l}return l=>{const f=uE(l,r);return f?`?${f}`:""}}const Le="__root__";function b0(n){if(n.statusCode=n.statusCode||n.code||307,!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const i=new Headers(n.headers);n.href&&i.get("Location")===null&&i.set("Location",n.href);const a=new Response(null,{status:n.statusCode,headers:i});if(a.options=n,n.throw)throw a;return a}function nn(n){return n instanceof Response&&!!n.options}const il=n=>{if(!n.rendered)return n.rendered=!0,n.onReady?.()},Dl=(n,i)=>!!(n.preload&&!n.router.state.matches.some(a=>a.id===i)),mh=(n,i,a=!0)=>{const r={...n.router.options.context??{}},l=a?i:i-1;for(let f=0;f<=l;f++){const h=n.matches[f];if(!h)continue;const d=n.router.getMatch(h.id);d&&Object.assign(r,d.__routeContext,d.__beforeLoadContext)}return r},T0=(n,i)=>{const a=n.router.routesById[i.routeId??""]??n.router.routeTree;!a.options.notFoundComponent&&n.router.options?.defaultNotFoundComponent&&(a.options.notFoundComponent=n.router.options.defaultNotFoundComponent),On(a.options.notFoundComponent);const r=n.matches.find(l=>l.routeId===a.id);On(r,"Could not find match for route: "+a.id),n.updateMatch(r.id,l=>({...l,status:"notFound",error:i,isFetching:!1})),i.routerCode==="BEFORE_LOAD"&&a.parentRoute&&(i.routeId=a.parentRoute.id,T0(n,i))},fi=(n,i,a)=>{if(!(!nn(a)&&!Qe(a))){if(nn(a)&&a.redirectHandled&&!a.options.reloadDocument)throw a;if(i){i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0;const r=nn(a)?"redirected":"notFound";i._nonReactive.error=a,n.updateMatch(i.id,l=>({...l,status:r,isFetching:!1,error:a})),Qe(a)&&!a.routeId&&(a.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()}throw nn(a)?(n.rendered=!0,a.options._fromLocation=n.location,a.redirectHandled=!0,a=n.router.resolveRedirect(a),a):(T0(n,a),a)}},x0=(n,i)=>{const a=n.router.getMatch(i);return!!(!n.router.isServer&&a._nonReactive.dehydrated||n.router.isServer&&a.ssr===!1)},Za=(n,i,a,r)=>{const{id:l,routeId:f}=n.matches[i],h=n.router.looseRoutesById[f];if(a instanceof Promise)throw a;a.routerCode=r,n.firstBadMatchIndex??=i,fi(n,n.router.getMatch(l),a);try{h.options.onError?.(a)}catch(d){a=d,fi(n,n.router.getMatch(l),a)}n.updateMatch(l,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:a,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},pE=(n,i,a,r)=>{const l=n.router.getMatch(i),f=n.matches[a-1]?.id,h=f?n.router.getMatch(f):void 0;if(n.router.isShell()){l.ssr=r.id===Le;return}if(h?.ssr===!1){l.ssr=!1;return}const d=T=>T===!0&&h?.ssr==="data-only"?"data-only":T,m=n.router.options.defaultSsr??!0;if(r.options.ssr===void 0){l.ssr=d(m);return}if(typeof r.options.ssr!="function"){l.ssr=d(r.options.ssr);return}const{search:p,params:g}=l,v={search:Jr(p,l.searchError),params:Jr(g,l.paramsError),location:n.location,matches:n.matches.map(T=>({index:T.index,pathname:T.pathname,fullPath:T.fullPath,staticData:T.staticData,id:T.id,routeId:T.routeId,search:Jr(T.search,T.searchError),params:Jr(T.params,T.paramsError),ssr:T.ssr}))},S=r.options.ssr(v);if(mi(S))return S.then(T=>{l.ssr=d(T??m)});l.ssr=d(S??m)},E0=(n,i,a,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const l=a.options.pendingMs??n.router.options.defaultPendingMs;if(!!(n.onReady&&!n.router.isServer&&!Dl(n,i)&&(a.options.loader||a.options.beforeLoad||_0(a))&&typeof l=="number"&&l!==1/0&&(a.options.pendingComponent??n.router.options?.defaultPendingComponent))){const h=setTimeout(()=>{il(n)},l);r._nonReactive.pendingTimeout=h}},yE=(n,i,a)=>{const r=n.router.getMatch(i);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;E0(n,i,a,r);const l=()=>{const f=n.router.getMatch(i);f.preload&&(f.status==="redirected"||f.status==="notFound")&&fi(n,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(l):l()},gE=(n,i,a,r)=>{const l=n.router.getMatch(i),f=l._nonReactive.loadPromise;l._nonReactive.loadPromise=Qs(()=>{f?.resolve()});const{paramsError:h,searchError:d}=l;h&&Za(n,a,h,"PARSE_PARAMS"),d&&Za(n,a,d,"VALIDATE_SEARCH"),E0(n,i,r,l);const m=new AbortController,p=n.matches[a-1]?.id;(p?n.router.getMatch(p):void 0)?.context??n.router.options.context;let v=!1;const S=()=>{v||(v=!0,n.updateMatch(i,U=>({...U,isFetching:"beforeLoad",fetchCount:U.fetchCount+1,abortController:m})))},T=()=>{l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,n.updateMatch(i,U=>({...U,isFetching:!1}))};if(!r.options.beforeLoad){io(()=>{S(),T()});return}l._nonReactive.beforeLoadPromise=Qs();const E={...mh(n,a,!1),...l.__routeContext},{search:_,params:C,cause:M}=l,w=Dl(n,i),V={search:_,abortController:m,params:C,preload:w,context:E,location:n.location,navigate:U=>n.router.navigate({...U,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:w?"preload":M,matches:n.matches,...n.router.options.additionalContext},P=U=>{if(U===void 0){io(()=>{S(),T()});return}(nn(U)||Qe(U))&&(S(),Za(n,a,U,"BEFORE_LOAD")),io(()=>{S(),n.updateMatch(i,G=>({...G,__beforeLoadContext:U})),T()})};let k;try{if(k=r.options.beforeLoad(V),mi(k))return S(),k.catch(U=>{Za(n,a,U,"BEFORE_LOAD")}).then(P)}catch(U){S(),Za(n,a,U,"BEFORE_LOAD")}P(k)},vE=(n,i)=>{const{id:a,routeId:r}=n.matches[i],l=n.router.looseRoutesById[r],f=()=>{if(n.router.isServer){const m=pE(n,a,i,l);if(mi(m))return m.then(d)}return d()},h=()=>gE(n,a,i,l),d=()=>{if(x0(n,a))return;const m=yE(n,a,l);return mi(m)?m.then(h):h()};return f()},so=(n,i,a)=>{const r=n.router.getMatch(i);if(!r||!a.options.head&&!a.options.scripts&&!a.options.headers)return;const l={matches:n.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([a.options.head?.(l),a.options.scripts?.(l),a.options.headers?.(l)]).then(([f,h,d])=>{const m=f?.meta,p=f?.links,g=f?.scripts,v=f?.styles;return{meta:m,links:p,headScripts:g,headers:d,scripts:h,styles:v}})},R0=(n,i,a,r)=>{const l=n.matchPromises[a-1],{params:f,loaderDeps:h,abortController:d,cause:m}=n.router.getMatch(i),p=mh(n,a),g=Dl(n,i);return{params:f,deps:h,preload:!!g,parentMatchPromise:l,abortController:d,context:p,location:n.location,navigate:v=>n.router.navigate({...v,_fromLocation:n.location}),cause:g?"preload":m,route:r,...n.router.options.additionalContext}},Eg=async(n,i,a,r)=>{try{const l=n.router.getMatch(i);try{(!n.router.isServer||l.ssr===!0)&&A0(r);const f=r.options.loader?.(R0(n,i,a,r)),h=r.options.loader&&mi(f);if((h||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||l._nonReactive.minPendingPromise)&&n.updateMatch(i,v=>({...v,isFetching:"loader"})),r.options.loader){const v=h?await f:f;fi(n,n.router.getMatch(i),v),v!==void 0&&n.updateMatch(i,S=>({...S,loaderData:v}))}r._lazyPromise&&await r._lazyPromise;const m=so(n,i,r),p=m?await m:void 0,g=l._nonReactive.minPendingPromise;g&&await g,r._componentsPromise&&await r._componentsPromise,n.updateMatch(i,v=>({...v,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...p}))}catch(f){let h=f;const d=l._nonReactive.minPendingPromise;d&&await d,Qe(f)&&await r.options.notFoundComponent?.preload?.(),fi(n,n.router.getMatch(i),f);try{r.options.onError?.(f)}catch(g){h=g,fi(n,n.router.getMatch(i),g)}const m=so(n,i,r),p=m?await m:void 0;n.updateMatch(i,g=>({...g,error:h,status:"error",isFetching:!1,...p}))}}catch(l){const f=n.router.getMatch(i);if(f){const h=so(n,i,r);if(h){const d=await h;n.updateMatch(i,m=>({...m,...d}))}f._nonReactive.loaderPromise=void 0}fi(n,f,l)}},SE=async(n,i)=>{const{id:a,routeId:r}=n.matches[i];let l=!1,f=!1;const h=n.router.looseRoutesById[r],d=()=>{n.updateMatch(a,g=>({...g,context:mh(n,i)}))};if(x0(n,a)){if(n.router.isServer){const g=so(n,a,h);if(g){const v=await g;n.updateMatch(a,S=>({...S,...v}))}return n.router.getMatch(a)}}else{const g=n.router.getMatch(a);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!n.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const v=n.router.getMatch(a),S=v._nonReactive.error||v.error;S&&fi(n,v,S)}else{const v=Date.now()-g.updatedAt,S=Dl(n,a),T=S?h.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:h.options.staleTime??n.router.options.defaultStaleTime??0,E=h.options.shouldReload,_=typeof E=="function"?E(R0(n,a,i,h)):E,C=!!S&&!n.router.state.matches.some(P=>P.id===a),M=n.router.getMatch(a);M._nonReactive.loaderPromise=Qs(),C!==M.preload&&n.updateMatch(a,P=>({...P,preload:C}));const{status:w,invalid:V}=M;if(l=w==="success"&&(V||(_??v>T)),!(S&&h.options.preload===!1))if(l&&!n.sync)f=!0,(async()=>{try{await Eg(n,a,i,h),d();const P=n.router.getMatch(a);P._nonReactive.loaderPromise?.resolve(),P._nonReactive.loadPromise?.resolve(),P._nonReactive.loaderPromise=void 0}catch(P){nn(P)&&await n.router.navigate(P.options)}})();else if(w!=="success"||l&&n.sync)await Eg(n,a,i,h);else{const P=so(n,a,h);if(P){const k=await P;n.updateMatch(a,U=>({...U,...k}))}}}}const m=n.router.getMatch(a);f||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve()),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,f||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0,f||d();const p=f?m.isFetching:!1;return p!==m.isFetching||m.invalid!==!1?(n.updateMatch(a,g=>({...g,isFetching:p,invalid:!1})),n.router.getMatch(a)):m};async function Rg(n){const i=Object.assign(n,{matchPromises:[]});!i.router.isServer&&i.router.state.matches.some(a=>a._forcePending)&&il(i);try{for(let l=0;l<i.matches.length;l++){const f=vE(i,l);mi(f)&&await f}const a=i.firstBadMatchIndex??i.matches.length;for(let l=0;l<a;l++)i.matchPromises.push(SE(i,l));await Promise.all(i.matchPromises);const r=il(i);mi(r)&&await r}catch(a){if(Qe(a)&&!i.preload){const r=il(i);throw mi(r)&&await r,a}if(nn(a))throw a}return i.matches}async function A0(n){if(!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(i=>{const{id:a,...r}=i.options;Object.assign(n.options,r),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0),!n._componentsLoaded&&n._componentsPromise===void 0){const i=()=>{const a=[];for(const r of M0){const l=n.options[r]?.preload;l&&a.push(l())}if(a.length)return Promise.all(a).then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0});n._componentsLoaded=!0,n._componentsPromise=void 0};n._componentsPromise=n._lazyPromise?n._lazyPromise.then(i):i()}return n._componentsPromise}function Jr(n,i){return i?{status:"error",error:i}:{status:"success",value:n}}function _0(n){for(const i of M0)if(n.options[i]?.preload)return!0;return!1}const M0=["component","errorComponent","pendingComponent","notFoundComponent"];function bE(n){return{input:({url:i})=>{for(const a of n)i=C0(a,i);return i},output:({url:i})=>{for(let a=n.length-1;a>=0;a--)i=D0(n[a],i);return i}}}function TE(n){const i=v0(n.basepath),a=`/${i}`,r=`${a}/`,l=n.caseSensitive?a:a.toLowerCase(),f=n.caseSensitive?r:r.toLowerCase();return{input:({url:h})=>{const d=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return d===l?h.pathname="/":d.startsWith(f)&&(h.pathname=h.pathname.slice(a.length)),h},output:({url:h})=>(h.pathname=nl(["/",i,h.pathname]),h)}}function C0(n,i){const a=n?.input?.({url:i});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return i}function D0(n,i){const a=n?.output?.({url:i});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return i}function Xi(n){const i=n.resolvedLocation,a=n.location,r=i?.pathname!==a.pathname,l=i?.href!==a.href,f=i?.hash!==a.hash;return{fromLocation:i,toLocation:a,pathChanged:r,hrefChanged:l,hashChanged:f}}class xE{constructor(i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=a=>a(),this.update=a=>{a.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,l=this.basepath??r?.basepath??"/",f=this.basepath===void 0,h=r?.rewrite;this.options={...r,...a},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(S=>[encodeURIComponent(S),S])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Ux())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Vx(RE(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(S=>!["redirected"].includes(S.status))}}}),rE(this));let d=!1;const m=this.options.basepath??"/",p=this.options.rewrite;if(f||l!==m||h!==p){this.basepath=m;const S=[];v0(m)!==""&&S.push(TE({basepath:m})),p&&S.push(p),this.rewrite=S.length===0?void 0:S.length===1?S[0]:bE(S),this.history&&this.updateLatestLocation(),d=!0}d&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:a,routesByPath:r,processedTree:l}=Zx(this.routeTree,this.options.caseSensitive,(h,d)=>{h.init({originalIndex:d})});this.options.routeMasks&&Fx(this.options.routeMasks,l),this.routesById=a,this.routesByPath=r,this.processedTree=l;const f=this.options.notFoundRoute;f&&(f.init({originalIndex:99999999999}),this.routesById[f.id]=f)},this.subscribe=(a,r)=>{const l={eventType:a,fn:r};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=a=>{this.subscribers.forEach(r=>{r.eventType===a.type&&r.fn(a)})},this.parseLocation=(a,r)=>{const l=({href:m,state:p})=>{const g=new URL(m,this.origin),v=C0(this.rewrite,g),S=this.options.parseSearch(v.search),T=this.options.stringifySearch(S);return v.search=T,{href:v.href.replace(v.origin,""),publicHref:m,url:v,pathname:xg(v.pathname),searchStr:T,search:Fe(r?.search,S),hash:v.hash.split("#").reverse()[0]??"",state:Fe(r?.state,p)}},f=l(a),{__tempLocation:h,__tempKey:d}=f.state;if(h&&(!d||d===this.tempLocationKey)){const m=l(h);return m.state.key=f.state.key,m.state.__TSR_key=f.state.__TSR_key,delete m.state.__tempLocation,{...m,maskedLocation:f}}return f},this.resolvePathCache=dl(1e3),this.resolvePathWithBase=(a,r)=>eE({base:a,to:dh(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(a,r,l)=>typeof a=="string"?this.matchRoutesInternal({pathname:a,search:r},l):this.matchRoutesInternal(a,r),this.getMatchedRoutes=a=>AE({pathname:a,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=a=>{const r=this.getMatch(a);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const a=this.state.matches.filter(f=>f.status==="pending"),r=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...a,...r]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=a=>{const r=(f={})=>{const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutes(h,{_buildLocation:!0}),m=fl(d);f.from;const p=f.unsafeRelative==="path"?h.pathname:f.from??m.fullPath,g=this.resolvePathWithBase(p,"."),v=m.search,S={...m.params},T=f.to?this.resolvePathWithBase(g,`${f.to}`):this.resolvePathWithBase(g,"."),E=f.params===!1||f.params===null?{}:(f.params??!0)===!0?S:Object.assign(S,ci(f.params,S)),_=af({path:T,params:E}).interpolatedPath,C=this.matchRoutes(_,void 0,{_buildLocation:!0}).map(nt=>this.looseRoutesById[nt.routeId]);if(Object.keys(E).length>0)for(const nt of C){const st=nt.options.params?.stringify??nt.options.stringifyParams;st&&Object.assign(E,st(E))}const M=a.leaveParams?T:xg(af({path:T,params:E,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let w=v;if(a._includeValidateSearch&&this.options.search?.strict){const nt={};C.forEach(st=>{if(st.options.validateSearch)try{Object.assign(nt,jf(st.options.validateSearch,{...nt,...w}))}catch{}}),w=nt}w=_E({search:w,dest:f,destRoutes:C,_includeValidateSearch:a._includeValidateSearch}),w=Fe(v,w);const V=this.options.stringifySearch(w),P=f.hash===!0?h.hash:f.hash?ci(f.hash,h.hash):void 0,k=P?`#${P}`:"";let U=f.state===!0?h.state:f.state?ci(f.state,h.state):{};U=Fe(h.state,U);const G=`${M}${V}${k}`,H=new URL(G,this.origin),Z=D0(this.rewrite,H);return{publicHref:Z.pathname+Z.search+Z.hash,href:G,url:Z,pathname:M,search:w,searchStr:V,state:U,hash:P??"",unmaskOnReload:f.unmaskOnReload}},l=(f={},h)=>{const d=r(f);let m=h?r(h):void 0;if(!m){const p={};if(this.options.routeMasks){const g=Kx(d.pathname,this.processedTree);if(g){Object.assign(p,g.params);const{from:v,params:S,...T}=g.route,E=S===!1||S===null?{}:(S??!0)===!0?p:Object.assign(p,ci(S,p));h={from:a.from,...T,params:E},m=r(h)}}}return m&&(d.maskedLocation=m),d};return a.mask?l(a,{from:a.from,...a.mask}):l(a)},this.commitLocation=({viewTransition:a,ignoreBlocker:r,...l})=>{const f=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(g=>{l.state[g]=this.latestLocation.state[g]});const p=Ki(l.state,this.latestLocation.state);return m.forEach(g=>{delete l.state[g]}),p},h=ki(this.latestLocation.href)===ki(l.href),d=this.commitLocationPromise;if(this.commitLocationPromise=Qs(()=>{d?.resolve()}),h&&f())this.load();else{let{maskedLocation:m,hashScrollIntoView:p,url:g,...v}=l;m&&(v={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=a,this.history[l.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:r})}return this.resetNextScroll=l.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:a,resetScroll:r,hashScrollIntoView:l,viewTransition:f,ignoreBlocker:h,href:d,...m}={})=>{if(d){const v=this.history.location.state.__TSR_index,S=cl(d,{__TSR_index:a?v:v+1});m.to=S.pathname,m.search=this.options.parseSearch(S.search),m.hash=S.hash.slice(1)}const p=this.buildLocation({...m,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const g=this.commitLocation({...p,viewTransition:f,replace:a,resetScroll:r,hashScrollIntoView:l,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),g},this.navigate=async({to:a,reloadDocument:r,href:l,...f})=>{if(!r&&l)try{new URL(`${l}`),r=!0}catch{}if(r){if(l||(l=this.buildLocation({to:a,...f}).url.href),!f.ignoreBlocker){const d=this.history.getBlockers?.()??[];for(const m of d)if(m?.blockerFn&&await m.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return f.replace?window.location.replace(l):window.location.href=l,Promise.resolve()}return this.buildAndCommitLocation({...f,href:l,to:a,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==r.publicHref||r.url.origin!==this.origin){const l=this.getParsedLocationHref(r);throw b0({href:l})}}const a=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:a,cachedMatches:r.cachedMatches.filter(l=>!a.some(f=>f.id===l.id))}))},this.load=async a=>{let r,l,f;for(f=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const m=this.latestLocation,p=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Xi({resolvedLocation:p,location:m})}),this.emit({type:"onBeforeLoad",...Xi({resolvedLocation:p,location:m})}),await Rg({router:this,sync:a?.sync,matches:this.state.pendingMatches,location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=[],v=[],S=[];io(()=>{this.__store.setState(T=>{const E=T.matches,_=T.pendingMatches||T.matches;return g=E.filter(C=>!_.some(M=>M.id===C.id)),v=_.filter(C=>!E.some(M=>M.id===C.id)),S=_.filter(C=>E.some(M=>M.id===C.id)),{...T,isLoading:!1,loadedAt:Date.now(),matches:_,pendingMatches:void 0,cachedMatches:[...T.cachedMatches,...g.filter(C=>C.status!=="error"&&C.status!=="notFound")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[v,"onEnter"],[S,"onStay"]].forEach(([T,E])=>{T.forEach(_=>{this.looseRoutesById[_.routeId].options[E]?.(_)})})})})}})}catch(m){nn(m)?(r=m,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Qe(m)&&(l=m),this.__store.setState(p=>({...p,statusCode:r?r.status:l?404:p.matches.some(g=>g.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===f&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let h;this.hasNotFoundMatch()?h=404:this.__store.state.matches.some(d=>d.status==="error")&&(h=500),h!==void 0&&this.__store.setState(d=>({...d,statusCode:h}))},this.startViewTransition=a=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let l;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.state.resolvedLocation,d=typeof r.types=="function"?r.types(Xi({resolvedLocation:h,location:f})):r.types;if(d===!1){a();return}l={update:a,types:d}}else l=a;document.startViewTransition(l)}else a()},this.updateMatch=(a,r)=>{this.startTransition(()=>{const l=this.state.pendingMatches?.some(f=>f.id===a)?"pendingMatches":this.state.matches.some(f=>f.id===a)?"matches":this.state.cachedMatches.some(f=>f.id===a)?"cachedMatches":"";l&&this.__store.setState(f=>({...f,[l]:f[l]?.map(h=>h.id===a?r(h):h)}))})},this.getMatch=a=>{const r=l=>l.id===a;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=a=>{const r=l=>a?.filter?.(l)??!0?{...l,invalid:!0,...a?.forcePending||l.status==="error"||l.status==="notFound"?{status:"pending",error:void 0}:void 0}:l;return this.__store.setState(l=>({...l,matches:l.matches.map(r),cachedMatches:l.cachedMatches.map(r),pendingMatches:l.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.getParsedLocationHref=a=>{let r=a.url.href;return this.origin&&a.url.origin===this.origin&&(r=r.replace(this.origin,"")||"/"),r},this.resolveRedirect=a=>{if(!a.options.href){const r=this.buildLocation(a.options),l=this.getParsedLocationHref(r);a.options.href=r.href,a.headers.set("Location",l)}return a.headers.get("Location")||a.headers.set("Location",a.options.href),a},this.clearCache=a=>{const r=a?.filter;r!==void 0?this.__store.setState(l=>({...l,cachedMatches:l.cachedMatches.filter(f=>!r(f))})):this.__store.setState(l=>({...l,cachedMatches:[]}))},this.clearExpiredCache=()=>{const a=r=>{const l=this.looseRoutesById[r.routeId];if(!l.options.loader)return!0;const f=(r.preload?l.options.preloadGcTime??this.options.defaultPreloadGcTime:l.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=f};this.clearCache({filter:a})},this.loadRouteChunk=A0,this.preloadRoute=async a=>{const r=this.buildLocation(a);let l=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:a});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(d=>d.id)),h=new Set([...f,...this.state.cachedMatches.map(d=>d.id)]);io(()=>{l.forEach(d=>{h.has(d.id)||this.__store.setState(m=>({...m,cachedMatches:[...m.cachedMatches,d]}))})});try{return l=await Rg({router:this,matches:l,location:r,preload:!0,updateMatch:(d,m)=>{f.has(d)?l=l.map(p=>p.id===d?m(p):p):this.updateMatch(d,m)}}),l}catch(d){if(nn(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:r});Qe(d)||console.error(d);return}},this.matchRoute=(a,r)=>{const l={...a,to:a.to?this.resolvePathWithBase(a.from||"",a.to):void 0,params:a.params||{},leaveParams:!0},f=this.buildLocation(l);if(r?.pending&&this.state.status!=="pending")return!1;const d=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,m=kx(f.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,d.pathname,this.processedTree);return!m||a.params&&!Ki(m.params,a.params,{partial:!0})?!1:r?.includeSearch??!0?Ki(d.search,f.search,{partial:!0})?m.params:!1:m.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(a=>a.status==="notFound"||a.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...i,caseSensitive:i.caseSensitive??!1,notFoundMode:i.notFoundMode??"fuzzy",stringifySearch:i.stringifySearch??hE,parseSearch:i.parseSearch??fE}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(i,a){const r=this.getMatchedRoutes(i.pathname),{foundRoute:l,routeParams:f}=r;let{matchedRoutes:h}=r,d=!1;(l?l.path!=="/"&&f["**"]:ki(i.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:d=!0);const m=(()=>{if(d){if(this.options.notFoundMode!=="root")for(let v=h.length-1;v>=0;v--){const S=h[v];if(S.children)return S.id}return Le}})(),p=[],g=v=>v?.id?v.context??this.options.context??void 0:this.options.context??void 0;return h.forEach((v,S)=>{const T=p[S-1],[E,_,C]=(()=>{const Pt=T?.search??i.search,Ut=T?._strictSearch??void 0;try{const zt=jf(v.options.validateSearch,{...Pt})??void 0;return[{...Pt,...zt},{...Ut,...zt},void 0]}catch(zt){let j=zt;if(zt instanceof gl||(j=new gl(zt.message,{cause:zt})),a?.throwOnError)throw j;return[Pt,{},j]}})(),M=v.options.loaderDeps?.({search:E})??"",w=M?JSON.stringify(M):"",{interpolatedPath:V,usedParams:P}=af({path:v.fullPath,params:f,decodeCharMap:this.pathParamsDecodeCharMap}),k=v.id+V+w,U=this.getMatch(k),G=this.state.matches.find(Pt=>Pt.routeId===v.id),H=U?._strictParams??P;let Z;if(!U){const Pt=v.options.params?.parse??v.options.parseParams;if(Pt)try{Object.assign(H,Pt(H))}catch(Ut){if(Qe(Ut)||nn(Ut)?Z=Ut:Z=new EE(Ut.message,{cause:Ut}),a?.throwOnError)throw Z}}Object.assign(f,H);const nt=G?"stay":"enter";let st;if(U)st={...U,cause:nt,params:G?Fe(G.params,f):f,_strictParams:H,search:Fe(G?G.search:U.search,E),_strictSearch:_};else{const Pt=v.options.loader||v.options.beforeLoad||v.lazyFn||_0(v)?"pending":"success";st={id:k,ssr:this.isServer?void 0:v.options.ssr,index:S,routeId:v.id,params:G?Fe(G.params,f):f,_strictParams:H,pathname:V,updatedAt:Date.now(),search:G?Fe(G.search,E):E,_strictSearch:_,searchError:void 0,status:Pt,isFetching:!1,error:void 0,paramsError:Z,__routeContext:void 0,_nonReactive:{loadPromise:Qs()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:nt,loaderDeps:G?Fe(G.loaderDeps,M):M,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}a?.preload||(st.globalNotFound=m===v.id),st.searchError=C;const Tt=g(T);st.context={...Tt,...st.__routeContext,...st.__beforeLoadContext},p.push(st)}),p.forEach((v,S)=>{const T=this.looseRoutesById[v.routeId];if(!this.getMatch(v.id)&&a?._buildLocation!==!0){const _=p[S-1],C=g(_);if(T.options.context){const M={deps:v.loaderDeps,params:v.params,context:C??{},location:i,navigate:w=>this.navigate({...w,_fromLocation:i}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:p};v.__routeContext=T.options.context(M)??void 0}v.context={...C,...v.__routeContext,...v.__beforeLoadContext}}}),p}}class gl extends Error{}class EE extends Error{}function RE(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function jf(n,i){if(n==null)return{};if("~standard"in n){const a=n["~standard"].validate(i);if(a instanceof Promise)throw new gl("Async validation not supported");if(a.issues)throw new gl(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}return"parse"in n?n.parse(i):typeof n=="function"?n(i):{}}function AE({pathname:n,routesById:i,processedTree:a}){const r={},l=ki(n);let f;const h=Qx(l,a,!0);return h&&(f=h.route,Object.assign(r,h.params)),{matchedRoutes:h?.branch||[i[Le]],routeParams:r,foundRoute:f}}function _E({search:n,dest:i,destRoutes:a,_includeValidateSearch:r}){const l=a.reduce((d,m)=>{const p=[];if("search"in m.options)m.options.search?.middlewares&&p.push(...m.options.search.middlewares);else if(m.options.preSearchFilters||m.options.postSearchFilters){const g=({search:v,next:S})=>{let T=v;"preSearchFilters"in m.options&&m.options.preSearchFilters&&(T=m.options.preSearchFilters.reduce((_,C)=>C(_),v));const E=S(T);return"postSearchFilters"in m.options&&m.options.postSearchFilters?m.options.postSearchFilters.reduce((_,C)=>C(_),E):E};p.push(g)}if(r&&m.options.validateSearch){const g=({search:v,next:S})=>{const T=S(v);try{return{...T,...jf(m.options.validateSearch,T)??void 0}}catch{return T}};p.push(g)}return d.concat(p)},[])??[],f=({search:d})=>i.search?i.search===!0?d:ci(i.search,d):{};l.push(f);const h=(d,m)=>{if(d>=l.length)return m;const p=l[d];return p({search:m,next:v=>h(d+1,v)})};return h(0,n)}const ME="Error preloading route! ☝️";class w0{constructor(i){if(this.init=a=>{this.originalIndex=a.originalIndex;const r=this.options,l=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),l?this._path=Le:this.parentRoute||On(!1);let f=l?Le:r?.path;f&&f!=="/"&&(f=g0(f));const h=r?.id||f;let d=l?Le:nl([this.parentRoute.id===Le?"":this.parentRoute.id,h]);f===Le&&(f="/"),d!==Le&&(d=nl(["/",d]));const m=d===Le?"/":nl([this.parentRoute.fullPath,f]);this._path=f,this._id=d,this._fullPath=m,this._to=m},this.addChildren=a=>this._addFileChildren(a),this._addFileChildren=a=>(Array.isArray(a)&&(this.children=a),typeof a=="object"&&a!==null&&(this.children=Object.values(a)),this),this._addFileTypes=()=>this,this.updateLoader=a=>(Object.assign(this.options,a),this),this.update=a=>(Object.assign(this.options,a),this),this.lazy=a=>(this.lazyFn=a,this),this.options=i||{},this.isRoot=!i?.getParentRoute,i?.id&&i?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class CE extends w0{constructor(i){super(i)}}function ph(n){const i=n.errorComponent??wl;return X.jsx(DE,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:a,reset:r})=>a?K.createElement(i,{error:a,reset:r}):n.children})}class DE extends K.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(i){return{resetKey:i.getResetKey()}}static getDerivedStateFromError(i){return{error:i}}reset(){this.setState({error:null})}componentDidUpdate(i,a){a.error&&a.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(i,a){this.props.onCatch&&this.props.onCatch(i,a)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function wl({error:n}){const[i,a]=K.useState(!1);return X.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[X.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),X.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a(r=>!r),children:i?"Hide Error":"Show Error"})]}),X.jsx("div",{style:{height:".25rem"}}),i?X.jsx("div",{children:X.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?X.jsx("code",{children:n.message}):null})}):null]})}function wE({children:n,fallback:i=null}){return OE()?X.jsx(_t.Fragment,{children:n}):X.jsx(_t.Fragment,{children:i})}function OE(){return _t.useSyncExternalStore(LE,()=>!0,()=>!1)}function LE(){return()=>{}}var rf={exports:{}},lf={},uf={exports:{}},cf={};var Ag;function zE(){if(Ag)return cf;Ag=1;var n=So();function i(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var a=typeof Object.is=="function"?Object.is:i,r=n.useState,l=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function d(v,S){var T=S(),E=r({inst:{value:T,getSnapshot:S}}),_=E[0].inst,C=E[1];return f(function(){_.value=T,_.getSnapshot=S,m(_)&&C({inst:_})},[v,T,S]),l(function(){return m(_)&&C({inst:_}),v(function(){m(_)&&C({inst:_})})},[v]),h(T),T}function m(v){var S=v.getSnapshot;v=v.value;try{var T=S();return!a(v,T)}catch{return!0}}function p(v,S){return S()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return cf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:g,cf}var _g;function VE(){return _g||(_g=1,uf.exports=zE()),uf.exports}var Mg;function BE(){if(Mg)return lf;Mg=1;var n=So(),i=VE();function a(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:a,l=i.useSyncExternalStore,f=n.useRef,h=n.useEffect,d=n.useMemo,m=n.useDebugValue;return lf.useSyncExternalStoreWithSelector=function(p,g,v,S,T){var E=f(null);if(E.current===null){var _={hasValue:!1,value:null};E.current=_}else _=E.current;E=d(function(){function M(U){if(!w){if(w=!0,V=U,U=S(U),T!==void 0&&_.hasValue){var G=_.value;if(T(G,U))return P=G}return P=U}if(G=P,r(V,U))return G;var H=S(U);return T!==void 0&&T(G,H)?(V=U,G):(V=U,P=H)}var w=!1,V,P,k=v===void 0?null:v;return[function(){return M(g())},k===null?void 0:function(){return M(k())}]},[g,v,S,T]);var C=l(p,E[0],E[1]);return h(function(){_.hasValue=!0,_.value=C},[C]),m(C),C},lf}var Cg;function UE(){return Cg||(Cg=1,rf.exports=BE()),rf.exports}var jE=UE();function NE(n,i=r=>r,a={}){const r=a.equal??PE;return jE.useSyncExternalStoreWithSelector(n.subscribe,()=>n.state,()=>n.state,i,r)}function PE(n,i){if(Object.is(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;if(n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(const[r,l]of n)if(!i.has(r)||!Object.is(l,i.get(r)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(const r of n)if(!i.has(r))return!1;return!0}if(n instanceof Date&&i instanceof Date)return n.getTime()===i.getTime();const a=Dg(n);if(a.length!==Dg(i).length)return!1;for(let r=0;r<a.length;r++)if(!Object.prototype.hasOwnProperty.call(i,a[r])||!Object.is(n[a[r]],i[a[r]]))return!1;return!0}function Dg(n){return Object.keys(n).concat(Object.getOwnPropertySymbols(n))}const ff=K.createContext(null);function O0(){return typeof document>"u"?ff:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=ff,ff)}function ze(n){const i=K.useContext(O0());return n?.warn,i}function Te(n){const i=ze({warn:n?.router===void 0}),a=n?.router||i,r=K.useRef(void 0);return NE(a.__store,l=>{if(n?.select){if(n.structuralSharing??a.options.defaultStructuralSharing){const f=Fe(r.current,n.select(l));return r.current=f,f}return n.select(l)}return l})}const Ol=K.createContext(void 0),HE=K.createContext(void 0);function cn(n){const i=K.useContext(n.from?HE:Ol);return Te({select:r=>{const l=r.matches.find(f=>n.from?n.from===f.routeId:f.id===i);if(On(!((n.shouldThrow??!0)&&!l),`Could not find ${n.from?`an active match from "${n.from}"`:"a nearest match!"}`),l!==void 0)return n.select?n.select(l):l},structuralSharing:n.structuralSharing})}function yh(n){return cn({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:i=>n.select?n.select(i.loaderData):i.loaderData})}function gh(n){const{select:i,...a}=n;return cn({...a,select:r=>i?i(r.loaderDeps):r.loaderDeps})}function vh(n){return cn({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:i=>{const a=n.strict===!1?i.params:i._strictParams;return n.select?n.select(a):a}})}function Sh(n){return cn({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:i=>n.select?n.select(i.search):i.search})}const Ir=typeof window<"u"?K.useLayoutEffect:K.useEffect;function hf(n){const i=K.useRef({value:n,prev:null}),a=i.current.value;return n!==a&&(i.current={value:n,prev:a}),i.current.prev}function qE(n,i,a={},r={}){K.useEffect(()=>{if(!n.current||r.disabled||typeof IntersectionObserver!="function")return;const l=new IntersectionObserver(([f])=>{i(f)},a);return l.observe(n.current),()=>{l.disconnect()}},[i,a,r.disabled,n])}function GE(n){const i=K.useRef(null);return K.useImperativeHandle(n,()=>i.current,[]),i}function bh(n){const i=ze();return K.useCallback(a=>i.navigate({...a,from:a.from??n?.from}),[n?.from,i])}var df={exports:{}},le={};var wg;function YE(){if(wg)return le;wg=1;var n=So();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(i(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function f(m,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:m,containerInfo:p,implementation:g}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,le.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(m,p,null,g)},le.flushSync=function(m){var p=h.T,g=r.p;try{if(h.T=null,r.p=2,m)return m()}finally{h.T=p,r.p=g,r.d.f()}},le.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},le.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},le.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:T}):g==="script"&&r.d.X(m,{crossOrigin:v,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},le.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},le.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin);r.d.L(m,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},le.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=d(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},le.requestFormReset=function(m){r.d.r(m)},le.unstable_batchedUpdates=function(m,p){return m(p)},le.useFormState=function(m,p,g){return h.H.useFormState(m,p,g)},le.useFormStatus=function(){return h.H.useHostTransitionStatus()},le.version="19.2.3",le}var Og;function L0(){if(Og)return df.exports;Og=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),df.exports=YE(),df.exports}var FE=L0();function KE(n,i){const a=ze(),[r,l]=K.useState(!1),f=K.useRef(!1),h=GE(i),{activeProps:d,inactiveProps:m,activeOptions:p,to:g,preload:v,preloadDelay:S,hashScrollIntoView:T,replace:E,startTransition:_,resetScroll:C,viewTransition:M,children:w,target:V,disabled:P,style:k,className:U,onClick:G,onFocus:H,onMouseEnter:Z,onMouseLeave:nt,onTouchStart:st,ignoreBlocker:Tt,params:Pt,search:Ut,hash:zt,state:j,mask:Q,reloadDocument:W,unsafeRelative:ft,from:yt,_fromLocation:A,...F}=n,J=Te({select:Ct=>Ct.location.search,structuralSharing:!0}),I=n.from,at=K.useMemo(()=>({...n,from:I}),[a,J,I,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),rt=K.useMemo(()=>a.buildLocation({...at}),[a,at]),gt=K.useMemo(()=>{if(P)return;let Ct=rt.maskedLocation?rt.maskedLocation.url.href:rt.url.href,xt=!1;return a.origin&&(Ct.startsWith(a.origin)?Ct=a.history.createHref(Ct.replace(a.origin,""))||"/":xt=!0),{href:Ct,external:xt}},[P,rt.maskedLocation,rt.url,a.origin,a.history]),kt=K.useMemo(()=>{if(gt?.external)return gt.href;try{return new URL(g),g}catch{}},[g,gt]),Mt=n.reloadDocument||kt?!1:v??a.options.defaultPreload,fn=S??a.options.defaultPreloadDelay??0,Bn=Te({select:Ct=>{if(kt)return!1;if(p?.exact){if(!tE(Ct.location.pathname,rt.pathname,a.basepath))return!1}else{const xt=ml(Ct.location.pathname,a.basepath),xe=ml(rt.pathname,a.basepath);if(!(xt.startsWith(xe)&&(xt.length===xe.length||xt[xe.length]==="/")))return!1}return(p?.includeSearch??!0)&&!Ki(Ct.location.search,rt.search,{partial:!p?.exact,ignoreUndefined:!p?.explicitUndefined})?!1:p?.includeHash?Ct.location.hash===rt.hash:!0}}),Ze=K.useCallback(()=>{a.preloadRoute({...at}).catch(Ct=>{console.warn(Ct),console.warn(ME)})},[a,at]),_o=K.useCallback(Ct=>{Ct?.isIntersecting&&Ze()},[Ze]);qE(h,_o,JE,{disabled:!!P||Mt!=="viewport"}),K.useEffect(()=>{f.current||!P&&Mt==="render"&&(Ze(),f.current=!0)},[P,Ze,Mt]);const hn=Ct=>{const xt=Ct.currentTarget.getAttribute("target"),xe=V!==void 0?V:xt;if(!P&&!IE(Ct)&&!Ct.defaultPrevented&&(!xe||xe==="_self")&&Ct.button===0){Ct.preventDefault(),FE.flushSync(()=>{l(!0)});const ea=a.subscribe("onResolved",()=>{ea(),l(!1)});a.navigate({...at,replace:E,resetScroll:C,hashScrollIntoView:T,startTransition:_,viewTransition:M,ignoreBlocker:Tt})}};if(kt)return{...F,ref:h,href:kt,...w&&{children:w},...V&&{target:V},...P&&{disabled:P},...k&&{style:k},...U&&{className:U},...G&&{onClick:G},...H&&{onFocus:H},...Z&&{onMouseEnter:Z},...nt&&{onMouseLeave:nt},...st&&{onTouchStart:st}};const ts=Ct=>{P||Mt&&Ze()},ta=ts,Nl=Ct=>{if(!(P||!Mt))if(!fn)Ze();else{const xt=Ct.target;if(Ja.has(xt))return;const xe=setTimeout(()=>{Ja.delete(xt),Ze()},fn);Ja.set(xt,xe)}},Mo=Ct=>{if(P||!Mt||!fn)return;const xt=Ct.target,xe=Ja.get(xt);xe&&(clearTimeout(xe),Ja.delete(xt))},Un=Bn?ci(d,{})??kE:mf,jn=Bn?mf:ci(m,{})??mf,es=[U,Un.className,jn.className].filter(Boolean).join(" "),Co=(k||Un.style||jn.style)&&{...k,...Un.style,...jn.style};return{...F,...Un,...jn,href:gt?.href,ref:h,onClick:Ia([G,hn]),onFocus:Ia([H,ts]),onMouseEnter:Ia([Z,Nl]),onMouseLeave:Ia([nt,Mo]),onTouchStart:Ia([st,ta]),disabled:!!P,target:V,...Co&&{style:Co},...es&&{className:es},...P&&QE,...Bn&&XE,...r&&ZE}}const mf={},kE={className:"active"},QE={role:"link","aria-disabled":!0},XE={"data-status":"active","aria-current":"page"},ZE={"data-transitioning":"transitioning"},Ja=new WeakMap,JE={rootMargin:"100px"},Ia=n=>i=>{for(const a of n)if(a){if(i.defaultPrevented)return;a(i)}},z0=K.forwardRef((n,i)=>{const{_asChild:a,...r}=n,{type:l,ref:f,...h}=KE(r,i),d=typeof r.children=="function"?r.children({isActive:h["data-status"]==="active"}):r.children;return a===void 0&&delete h.disabled,K.createElement(a||"a",{...h,ref:f},d)});function IE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}let $E=class extends w0{constructor(i){super(i),this.useMatch=a=>cn({select:a?.select,from:this.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>cn({...a,from:this.id,select:r=>a?.select?a.select(r.context):r.context}),this.useSearch=a=>Sh({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useParams=a=>vh({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useLoaderDeps=a=>gh({...a,from:this.id}),this.useLoaderData=a=>yh({...a,from:this.id}),this.useNavigate=()=>bh({from:this.fullPath}),this.Link=_t.forwardRef((a,r)=>X.jsx(z0,{ref:r,from:this.fullPath,...a})),this.$$typeof=Symbol.for("react.memo")}};function WE(n){return new $E(n)}class tR extends CE{constructor(i){super(i),this.useMatch=a=>cn({select:a?.select,from:this.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>cn({...a,from:this.id,select:r=>a?.select?a.select(r.context):r.context}),this.useSearch=a=>Sh({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useParams=a=>vh({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useLoaderDeps=a=>gh({...a,from:this.id}),this.useLoaderData=a=>yh({...a,from:this.id}),this.useNavigate=()=>bh({from:this.fullPath}),this.Link=_t.forwardRef((a,r)=>X.jsx(z0,{ref:r,from:this.fullPath,...a})),this.$$typeof=Symbol.for("react.memo")}}function eR(n){return new tR(n)}function pi(n){return typeof n=="object"?new Lg(n,{silent:!0}).createRoute(n):new Lg(n,{silent:!0}).createRoute}class Lg{constructor(i,a){this.path=i,this.createRoute=r=>{this.silent;const l=WE(r);return l.isRoot=!1,l},this.silent=a?.silent}}class zg{constructor(i){this.useMatch=a=>cn({select:a?.select,from:this.options.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>cn({from:this.options.id,select:r=>a?.select?a.select(r.context):r.context}),this.useSearch=a=>Sh({select:a?.select,structuralSharing:a?.structuralSharing,from:this.options.id}),this.useParams=a=>vh({select:a?.select,structuralSharing:a?.structuralSharing,from:this.options.id}),this.useLoaderDeps=a=>gh({...a,from:this.options.id}),this.useLoaderData=a=>yh({...a,from:this.options.id}),this.useNavigate=()=>{const a=ze();return bh({from:a.routesById[this.options.id].fullPath})},this.options=i,this.$$typeof=Symbol.for("react.memo")}}function Vg(n){return typeof n=="object"?new zg(n):i=>new zg({id:n,...i})}function bo(n,i){let a,r,l,f;const h=()=>(a||(a=n().then(m=>{a=void 0,r=m[i]}).catch(m=>{if(l=m,Px(l)&&l instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${l.message}`;sessionStorage.getItem(p)||(sessionStorage.setItem(p,"1"),f=!0)}})),a),d=function(p){if(f)throw window.location.reload(),new Promise(()=>{});if(l)throw l;if(!r)throw h();return K.createElement(r,p)};return d.preload=h,d}function nR(){const n=ze(),i=K.useRef({router:n,mounted:!1}),[a,r]=K.useState(!1),{hasPendingMatches:l,isLoading:f}=Te({select:v=>({isLoading:v.isLoading,hasPendingMatches:v.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),h=hf(f),d=f||a||l,m=hf(d),p=f||l,g=hf(p);return n.startTransition=v=>{r(!0),K.startTransition(()=>{v(),r(!1)})},K.useEffect(()=>{const v=n.history.subscribe(n.load),S=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ki(n.latestLocation.href)!==ki(S.href)&&n.commitLocation({...S,replace:!0}),()=>{v()}},[n,n.history]),Ir(()=>{if(typeof window<"u"&&n.ssr||i.current.router===n&&i.current.mounted)return;i.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(S){console.error(S)}})()},[n]),Ir(()=>{h&&!f&&n.emit({type:"onLoad",...Xi(n.state)})},[h,n,f]),Ir(()=>{g&&!p&&n.emit({type:"onBeforeRouteMount",...Xi(n.state)})},[p,g,n]),Ir(()=>{if(m&&!d){const v=Xi(n.state);n.emit({type:"onResolved",...v}),n.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),v.hrefChanged&&lE(n)}},[d,m,n]),null}function iR(n){const i=Te({select:a=>`not-found-${a.location.pathname}-${a.status}`});return X.jsx(ph,{getResetKey:()=>i,onCatch:(a,r)=>{if(Qe(a))n.onCatch?.(a,r);else throw a},errorComponent:({error:a})=>{if(Qe(a))return n.fallback?.(a);throw a},children:n.children})}function sR(){return X.jsx("p",{children:"Not Found"})}function Hs(n){return X.jsx(X.Fragment,{children:n.children})}function V0(n,i,a){return i.options.notFoundComponent?X.jsx(i.options.notFoundComponent,{...a}):n.options.defaultNotFoundComponent?X.jsx(n.options.defaultNotFoundComponent,{...a}):X.jsx(sR,{})}function aR({children:n}){const i=ze();return i.isServer?X.jsx("script",{nonce:i.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:n+";document.currentScript.remove()"}}):null}function oR(){const n=ze();if(!n.isScrollRestoring||!n.isServer||typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))return null;const a=(n.options.getScrollRestorationKey||Uf)(n.latestLocation),r=a!==Uf(n.latestLocation)?a:void 0,l={storageKey:pl,shouldScrollRestoration:!0};return r&&(l.key=r),X.jsx(aR,{children:`(${S0.toString()})(${JSON.stringify(l)})`})}const B0=K.memo(function({matchId:i}){const a=ze(),r=Te({select:M=>{const w=M.matches.find(V=>V.id===i);return On(w),{routeId:w.routeId,ssr:w.ssr,_displayPending:w._displayPending}},structuralSharing:!0}),l=a.routesById[r.routeId],f=l.options.pendingComponent??a.options.defaultPendingComponent,h=f?X.jsx(f,{}):null,d=l.options.errorComponent??a.options.defaultErrorComponent,m=l.options.onCatch??a.options.defaultOnCatch,p=l.isRoot?l.options.notFoundComponent??a.options.notFoundRoute?.options.component:l.options.notFoundComponent,g=r.ssr===!1||r.ssr==="data-only",v=(!l.isRoot||l.options.wrapInSuspense||g)&&(l.options.wrapInSuspense??f??(l.options.errorComponent?.preload||g))?K.Suspense:Hs,S=d?ph:Hs,T=p?iR:Hs,E=Te({select:M=>M.loadedAt}),_=Te({select:M=>{const w=M.matches.findIndex(V=>V.id===i);return M.matches[w-1]?.routeId}}),C=l.isRoot?l.options.shellComponent??Hs:Hs;return X.jsxs(C,{children:[X.jsx(Ol.Provider,{value:i,children:X.jsx(v,{fallback:h,children:X.jsx(S,{getResetKey:()=>E,errorComponent:d||wl,onCatch:(M,w)=>{if(Qe(M))throw M;m?.(M,w)},children:X.jsx(T,{fallback:M=>{if(!p||M.routeId&&M.routeId!==r.routeId||!M.routeId&&!l.isRoot)throw M;return K.createElement(p,M)},children:g||r._displayPending?X.jsx(wE,{fallback:h,children:X.jsx(Bg,{matchId:i})}):X.jsx(Bg,{matchId:i})})})})}),_===Le&&a.options.scrollRestoration?X.jsxs(X.Fragment,{children:[X.jsx(rR,{}),X.jsx(oR,{})]}):null]})});function rR(){const n=ze(),i=K.useRef(void 0);return X.jsx("script",{suppressHydrationWarning:!0,ref:a=>{a&&(i.current===void 0||i.current.href!==n.latestLocation.href)&&(n.emit({type:"onRendered",...Xi(n.state)}),i.current=n.latestLocation)}},n.latestLocation.state.__TSR_key)}const Bg=K.memo(function({matchId:i}){const a=ze(),{match:r,key:l,routeId:f}=Te({select:m=>{const p=m.matches.find(E=>E.id===i),g=p.routeId,S=(a.routesById[g].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:g,loaderDeps:p.loaderDeps,params:p._strictParams,search:p._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:g,match:{id:p.id,status:p.status,error:p.error,_forcePending:p._forcePending,_displayPending:p._displayPending}}},structuralSharing:!0}),h=a.routesById[f],d=K.useMemo(()=>{const m=h.options.component??a.options.defaultComponent;return m?X.jsx(m,{},l):X.jsx(U0,{})},[l,h.options.component,a.options.defaultComponent]);if(r._displayPending)throw a.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw a.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const m=h.options.pendingMinMs??a.options.defaultPendingMinMs;if(m){const p=a.getMatch(r.id);if(p&&!p._nonReactive.minPendingPromise&&!a.isServer){const g=Qs();p._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),p._nonReactive.minPendingPromise=void 0},m)}}throw a.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return On(Qe(r.error)),V0(a,h,r.error);if(r.status==="redirected")throw On(nn(r.error)),a.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error"){if(a.isServer){const m=(h.options.errorComponent??a.options.defaultErrorComponent)||wl;return X.jsx(m,{error:r.error,reset:void 0,info:{componentStack:""}})}throw r.error}return d}),U0=K.memo(function(){const i=ze(),a=K.useContext(Ol),r=Te({select:p=>p.matches.find(g=>g.id===a)?.routeId}),l=i.routesById[r],f=Te({select:p=>{const v=p.matches.find(S=>S.id===a);return On(v),v.globalNotFound}}),h=Te({select:p=>{const g=p.matches,v=g.findIndex(S=>S.id===a);return g[v+1]?.id}}),d=i.options.defaultPendingComponent?X.jsx(i.options.defaultPendingComponent,{}):null;if(f)return V0(i,l,void 0);if(!h)return null;const m=X.jsx(B0,{matchId:h});return r===Le?X.jsx(K.Suspense,{fallback:d,children:m}):m});function lR(){const n=ze(),a=n.routesById[Le].options.pendingComponent??n.options.defaultPendingComponent,r=a?X.jsx(a,{}):null,l=n.isServer||typeof document<"u"&&n.ssr?Hs:K.Suspense,f=X.jsxs(l,{fallback:r,children:[!n.isServer&&X.jsx(nR,{}),X.jsx(uR,{})]});return n.options.InnerWrap?X.jsx(n.options.InnerWrap,{children:f}):f}function uR(){const n=ze(),i=Te({select:l=>l.matches[0]?.id}),a=Te({select:l=>l.loadedAt}),r=i?X.jsx(B0,{matchId:i}):null;return X.jsx(Ol.Provider,{value:i,children:n.options.disableGlobalCatchBoundary?r:X.jsx(ph,{getResetKey:()=>a,errorComponent:wl,onCatch:l=>{l.message||l.toString()},children:r})})}const cR=n=>new fR(n);class fR extends xE{constructor(i){super(i)}}typeof globalThis<"u"?(globalThis.createFileRoute=pi,globalThis.createLazyFileRoute=Vg):typeof window<"u"&&(window.createFileRoute=pi,window.createLazyFileRoute=Vg);function hR({router:n,children:i,...a}){Object.keys(a).length>0&&n.update({...n.options,...a,context:{...n.options.context,...a.context}});const r=O0(),l=X.jsx(r.Provider,{value:n,children:i});return n.options.Wrap?X.jsx(n.options.Wrap,{children:l}):l}function dR({router:n,...i}){return X.jsx(hR,{router:n,...i,children:X.jsx(lR,{})})}var pf={exports:{}},$a={},yf={exports:{}},gf={};var Ug;function mR(){return Ug||(Ug=1,(function(n){function i(j,Q){var W=j.length;j.push(Q);t:for(;0<W;){var ft=W-1>>>1,yt=j[ft];if(0<l(yt,Q))j[ft]=Q,j[W]=yt,W=ft;else break t}}function a(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var Q=j[0],W=j.pop();if(W!==Q){j[0]=W;t:for(var ft=0,yt=j.length,A=yt>>>1;ft<A;){var F=2*(ft+1)-1,J=j[F],I=F+1,at=j[I];if(0>l(J,W))I<yt&&0>l(at,J)?(j[ft]=at,j[I]=W,ft=I):(j[ft]=J,j[F]=W,ft=F);else if(I<yt&&0>l(at,W))j[ft]=at,j[I]=W,ft=I;else break t}}return Q}function l(j,Q){var W=j.sortIndex-Q.sortIndex;return W!==0?W:j.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var m=[],p=[],g=1,v=null,S=3,T=!1,E=!1,_=!1,C=!1,M=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function P(j){for(var Q=a(p);Q!==null;){if(Q.callback===null)r(p);else if(Q.startTime<=j)r(p),Q.sortIndex=Q.expirationTime,i(m,Q);else break;Q=a(p)}}function k(j){if(_=!1,P(j),!E)if(a(m)!==null)E=!0,U||(U=!0,Tt());else{var Q=a(p);Q!==null&&zt(k,Q.startTime-j)}}var U=!1,G=-1,H=5,Z=-1;function nt(){return C?!0:!(n.unstable_now()-Z<H)}function st(){if(C=!1,U){var j=n.unstable_now();Z=j;var Q=!0;try{t:{E=!1,_&&(_=!1,w(G),G=-1),T=!0;var W=S;try{e:{for(P(j),v=a(m);v!==null&&!(v.expirationTime>j&&nt());){var ft=v.callback;if(typeof ft=="function"){v.callback=null,S=v.priorityLevel;var yt=ft(v.expirationTime<=j);if(j=n.unstable_now(),typeof yt=="function"){v.callback=yt,P(j),Q=!0;break e}v===a(m)&&r(m),P(j)}else r(m);v=a(m)}if(v!==null)Q=!0;else{var A=a(p);A!==null&&zt(k,A.startTime-j),Q=!1}}break t}finally{v=null,S=W,T=!1}Q=void 0}}finally{Q?Tt():U=!1}}}var Tt;if(typeof V=="function")Tt=function(){V(st)};else if(typeof MessageChannel<"u"){var Pt=new MessageChannel,Ut=Pt.port2;Pt.port1.onmessage=st,Tt=function(){Ut.postMessage(null)}}else Tt=function(){M(st,0)};function zt(j,Q){G=M(function(){j(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(j){switch(S){case 1:case 2:case 3:var Q=3;break;default:Q=S}var W=S;S=Q;try{return j()}finally{S=W}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var W=S;S=j;try{return Q()}finally{S=W}},n.unstable_scheduleCallback=function(j,Q,W){var ft=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ft+W:ft):W=ft,j){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=W+yt,j={id:g++,callback:Q,priorityLevel:j,startTime:W,expirationTime:yt,sortIndex:-1},W>ft?(j.sortIndex=W,i(p,j),a(m)===null&&j===a(p)&&(_?(w(G),G=-1):_=!0,zt(k,W-ft))):(j.sortIndex=yt,i(m,j),E||T||(E=!0,U||(U=!0,Tt()))),j},n.unstable_shouldYield=nt,n.unstable_wrapCallback=function(j){var Q=S;return function(){var W=S;S=Q;try{return j.apply(this,arguments)}finally{S=W}}}})(gf)),gf}var jg;function pR(){return jg||(jg=1,yf.exports=mR()),yf.exports}var Ng;function yR(){if(Ng)return $a;Ng=1;var n=pR(),i=So(),a=L0();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)e+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,s=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(s=e.return),t=e.return;while(t)}return e.tag===3?s:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var s=t,o=e;;){var u=s.return;if(u===null)break;var c=u.alternate;if(c===null){if(o=u.return,o!==null){s=o;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===s)return m(u),t;if(c===o)return m(u),e;c=c.sibling}throw Error(r(188))}if(s.return!==o.return)s=u,o=c;else{for(var y=!1,b=u.child;b;){if(b===s){y=!0,s=u,o=c;break}if(b===o){y=!0,o=u,s=c;break}b=b.sibling}if(!y){for(b=c.child;b;){if(b===s){y=!0,s=c,o=u;break}if(b===o){y=!0,o=c,s=u;break}b=b.sibling}if(!y)throw Error(r(189))}}if(s.alternate!==o)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),V=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),nt=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function Tt(t){return t===null||typeof t!="object"?null:(t=st&&t[st]||t["@@iterator"],typeof t=="function"?t:null)}var Pt=Symbol.for("react.client.reference");function Ut(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Pt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case M:return"Profiler";case C:return"StrictMode";case k:return"Suspense";case U:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case V:return t.displayName||"Context";case w:return(t._context.displayName||"Context")+".Consumer";case P:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case G:return e=t.displayName||null,e!==null?e:Ut(t.type)||"Memo";case H:e=t._payload,t=t._init;try{return Ut(t(e))}catch{}}return null}var zt=Array.isArray,j=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ft=[],yt=-1;function A(t){return{current:t}}function F(t){0>yt||(t.current=ft[yt],ft[yt]=null,yt--)}function J(t,e){yt++,ft[yt]=t.current,t.current=e}var I=A(null),at=A(null),rt=A(null),gt=A(null);function kt(t,e){switch(J(rt,e),J(at,t),J(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Dy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Dy(e),t=wy(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}F(I),J(I,t)}function Mt(){F(I),F(at),F(rt)}function fn(t){t.memoizedState!==null&&J(gt,t);var e=I.current,s=wy(e,t.type);e!==s&&(J(at,t),J(I,s))}function Bn(t){at.current===t&&(F(I),F(at)),gt.current===t&&(F(gt),Fa._currentValue=W)}var Ze,_o;function hn(t){if(Ze===void 0)try{throw Error()}catch(s){var e=s.stack.trim().match(/\n( *(at )?)/);Ze=e&&e[1]||"",_o=-1<s.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Ze+t+_o}var ts=!1;function ta(t,e){if(!t||ts)return"";ts=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(B){var z=B}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(B){z=B}t.call(Y.prototype)}}else{try{throw Error()}catch(B){z=B}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(B){if(B&&z&&typeof B.stack=="string")return[B.stack,z.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=o.DetermineComponentFrameRoot(),y=c[0],b=c[1];if(y&&b){var x=y.split(`
5
+ `),L=b.split(`
6
+ `);for(u=o=0;o<x.length&&!x[o].includes("DetermineComponentFrameRoot");)o++;for(;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;if(o===x.length||u===L.length)for(o=x.length-1,u=L.length-1;1<=o&&0<=u&&x[o]!==L[u];)u--;for(;1<=o&&0<=u;o--,u--)if(x[o]!==L[u]){if(o!==1||u!==1)do if(o--,u--,0>u||x[o]!==L[u]){var N=`
7
+ `+x[o].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=o&&0<=u);break}}}finally{ts=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?hn(s):""}function Nl(t,e){switch(t.tag){case 26:case 27:case 5:return hn(t.type);case 16:return hn("Lazy");case 13:return t.child!==e&&e!==null?hn("Suspense Fallback"):hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return ta(t.type,!1);case 11:return ta(t.type.render,!1);case 1:return ta(t.type,!0);case 31:return hn("Activity");default:return""}}function Mo(t){try{var e="",s=null;do e+=Nl(t,s),s=t,t=t.return;while(t);return e}catch(o){return`
8
+ Error generating stack: `+o.message+`
9
+ `+o.stack}}var Un=Object.prototype.hasOwnProperty,jn=n.unstable_scheduleCallback,es=n.unstable_cancelCallback,Co=n.unstable_shouldYield,Ct=n.unstable_requestPaint,xt=n.unstable_now,xe=n.unstable_getCurrentPriorityLevel,ea=n.unstable_ImmediatePriority,ld=n.unstable_UserBlockingPriority,Do=n.unstable_NormalPriority,wb=n.unstable_LowPriority,ud=n.unstable_IdlePriority,Ob=n.log,Lb=n.unstable_setDisableYieldValue,na=null,Ee=null;function Nn(t){if(typeof Ob=="function"&&Lb(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(na,t)}catch{}}var Re=Math.clz32?Math.clz32:Bb,zb=Math.log,Vb=Math.LN2;function Bb(t){return t>>>=0,t===0?32:31-(zb(t)/Vb|0)|0}var wo=256,Oo=262144,Lo=4194304;function Ti(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function zo(t,e,s){var o=t.pendingLanes;if(o===0)return 0;var u=0,c=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var b=o&134217727;return b!==0?(o=b&~c,o!==0?u=Ti(o):(y&=b,y!==0?u=Ti(y):s||(s=b&~t,s!==0&&(u=Ti(s))))):(b=o&~c,b!==0?u=Ti(b):y!==0?u=Ti(y):s||(s=o&~t,s!==0&&(u=Ti(s)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,s=e&-e,c>=s||c===32&&(s&4194048)!==0)?e:u}function ia(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ub(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cd(){var t=Lo;return Lo<<=1,(Lo&62914560)===0&&(Lo=4194304),t}function Pl(t){for(var e=[],s=0;31>s;s++)e.push(t);return e}function sa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function jb(t,e,s,o,u,c){var y=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var b=t.entanglements,x=t.expirationTimes,L=t.hiddenUpdates;for(s=y&~s;0<s;){var N=31-Re(s),Y=1<<N;b[N]=0,x[N]=-1;var z=L[N];if(z!==null)for(L[N]=null,N=0;N<z.length;N++){var B=z[N];B!==null&&(B.lane&=-536870913)}s&=~Y}o!==0&&fd(t,o,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(y&~e))}function fd(t,e,s){t.pendingLanes|=e,t.suspendedLanes&=~e;var o=31-Re(e);t.entangledLanes|=e,t.entanglements[o]=t.entanglements[o]|1073741824|s&261930}function hd(t,e){var s=t.entangledLanes|=e;for(t=t.entanglements;s;){var o=31-Re(s),u=1<<o;u&e|t[o]&e&&(t[o]|=e),s&=~u}}function dd(t,e){var s=e&-e;return s=(s&42)!==0?1:Hl(s),(s&(t.suspendedLanes|e))!==0?0:s}function Hl(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ql(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function md(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Wy(t.type))}function pd(t,e){var s=Q.p;try{return Q.p=t,e()}finally{Q.p=s}}var Pn=Math.random().toString(36).slice(2),ne="__reactFiber$"+Pn,de="__reactProps$"+Pn,ns="__reactContainer$"+Pn,Gl="__reactEvents$"+Pn,Nb="__reactListeners$"+Pn,Pb="__reactHandles$"+Pn,yd="__reactResources$"+Pn,aa="__reactMarker$"+Pn;function Yl(t){delete t[ne],delete t[de],delete t[Gl],delete t[Nb],delete t[Pb]}function is(t){var e=t[ne];if(e)return e;for(var s=t.parentNode;s;){if(e=s[ns]||s[ne]){if(s=e.alternate,e.child!==null||s!==null&&s.child!==null)for(t=jy(t);t!==null;){if(s=t[ne])return s;t=jy(t)}return e}t=s,s=t.parentNode}return null}function ss(t){if(t=t[ne]||t[ns]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function oa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function as(t){var e=t[yd];return e||(e=t[yd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function te(t){t[aa]=!0}var gd=new Set,vd={};function xi(t,e){os(t,e),os(t+"Capture",e)}function os(t,e){for(vd[t]=e,t=0;t<e.length;t++)gd.add(e[t])}var Hb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sd={},bd={};function qb(t){return Un.call(bd,t)?!0:Un.call(Sd,t)?!1:Hb.test(t)?bd[t]=!0:(Sd[t]=!0,!1)}function Vo(t,e,s){if(qb(e))if(s===null)t.removeAttribute(e);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var o=e.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+s)}}function Bo(t,e,s){if(s===null)t.removeAttribute(e);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+s)}}function dn(t,e,s,o){if(o===null)t.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(e,s,""+o)}}function Ve(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Td(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Gb(t,e,s){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,c=o.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(y){s=""+y,c.call(this,y)}}),Object.defineProperty(t,e,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fl(t){if(!t._valueTracker){var e=Td(t)?"checked":"value";t._valueTracker=Gb(t,e,""+t[e])}}function xd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var s=e.getValue(),o="";return t&&(o=Td(t)?t.checked?"true":"false":t.value),t=o,t!==s?(e.setValue(t),!0):!1}function Uo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Yb=/[\n"\\]/g;function Be(t){return t.replace(Yb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Kl(t,e,s,o,u,c,y,b){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.type=y:t.removeAttribute("type"),e!=null?y==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ve(e)):t.value!==""+Ve(e)&&(t.value=""+Ve(e)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),e!=null?kl(t,y,Ve(e)):s!=null?kl(t,y,Ve(s)):o!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Ve(b):t.removeAttribute("name")}function Ed(t,e,s,o,u,c,y,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||s!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Fl(t);return}s=s!=null?""+Ve(s):"",e=e!=null?""+Ve(e):s,b||e===t.value||(t.value=e),t.defaultValue=e}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=b?t.checked:!!o,t.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.name=y),Fl(t)}function kl(t,e,s){e==="number"&&Uo(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function rs(t,e,s,o){if(t=t.options,e){e={};for(var u=0;u<s.length;u++)e["$"+s[u]]=!0;for(s=0;s<t.length;s++)u=e.hasOwnProperty("$"+t[s].value),t[s].selected!==u&&(t[s].selected=u),u&&o&&(t[s].defaultSelected=!0)}else{for(s=""+Ve(s),e=null,u=0;u<t.length;u++){if(t[u].value===s){t[u].selected=!0,o&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function Rd(t,e,s){if(e!=null&&(e=""+Ve(e),e!==t.value&&(t.value=e),s==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=s!=null?""+Ve(s):""}function Ad(t,e,s,o){if(e==null){if(o!=null){if(s!=null)throw Error(r(92));if(zt(o)){if(1<o.length)throw Error(r(93));o=o[0]}s=o}s==null&&(s=""),e=s}s=Ve(e),t.defaultValue=s,o=t.textContent,o===s&&o!==""&&o!==null&&(t.value=o),Fl(t)}function ls(t,e){if(e){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=e;return}}t.textContent=e}var Fb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _d(t,e,s){var o=e.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?o?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":o?t.setProperty(e,s):typeof s!="number"||s===0||Fb.has(e)?e==="float"?t.cssFloat=s:t[e]=(""+s).trim():t[e]=s+"px"}function Md(t,e,s){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,s!=null){for(var o in s)!s.hasOwnProperty(o)||e!=null&&e.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var u in e)o=e[u],e.hasOwnProperty(u)&&s[u]!==o&&_d(t,u,o)}else for(var c in e)e.hasOwnProperty(c)&&_d(t,c,e[c])}function Ql(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Kb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),kb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jo(t){return kb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function mn(){}var Xl=null;function Zl(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var us=null,cs=null;function Cd(t){var e=ss(t);if(e&&(t=e.stateNode)){var s=t[de]||null;t:switch(t=e.stateNode,e.type){case"input":if(Kl(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),e=s.name,s.type==="radio"&&e!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Be(""+e)+'"][type="radio"]'),e=0;e<s.length;e++){var o=s[e];if(o!==t&&o.form===t.form){var u=o[de]||null;if(!u)throw Error(r(90));Kl(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<s.length;e++)o=s[e],o.form===t.form&&xd(o)}break t;case"textarea":Rd(t,s.value,s.defaultValue);break t;case"select":e=s.value,e!=null&&rs(t,!!s.multiple,e,!1)}}}var Jl=!1;function Dd(t,e,s){if(Jl)return t(e,s);Jl=!0;try{var o=t(e);return o}finally{if(Jl=!1,(us!==null||cs!==null)&&(Rr(),us&&(e=us,t=cs,cs=us=null,Cd(e),t)))for(e=0;e<t.length;e++)Cd(t[e])}}function ra(t,e){var s=t.stateNode;if(s===null)return null;var o=s[de]||null;if(o===null)return null;s=o[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break t;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,e,typeof s));return s}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Il=!1;if(pn)try{var la={};Object.defineProperty(la,"passive",{get:function(){Il=!0}}),window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{Il=!1}var Hn=null,$l=null,No=null;function wd(){if(No)return No;var t,e=$l,s=e.length,o,u="value"in Hn?Hn.value:Hn.textContent,c=u.length;for(t=0;t<s&&e[t]===u[t];t++);var y=s-t;for(o=1;o<=y&&e[s-o]===u[c-o];o++);return No=u.slice(t,1<o?1-o:void 0)}function Po(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ho(){return!0}function Od(){return!1}function me(t){function e(s,o,u,c,y){this._reactName=s,this._targetInst=u,this.type=o,this.nativeEvent=c,this.target=y,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(s=t[b],this[b]=s?s(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ho:Od,this.isPropagationStopped=Od,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ho)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ho)},persist:function(){},isPersistent:Ho}),e}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qo=me(Ei),ua=v({},Ei,{view:0,detail:0}),Qb=me(ua),Wl,tu,ca,Go=v({},ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ca&&(ca&&t.type==="mousemove"?(Wl=t.screenX-ca.screenX,tu=t.screenY-ca.screenY):tu=Wl=0,ca=t),Wl)},movementY:function(t){return"movementY"in t?t.movementY:tu}}),Ld=me(Go),Xb=v({},Go,{dataTransfer:0}),Zb=me(Xb),Jb=v({},ua,{relatedTarget:0}),eu=me(Jb),Ib=v({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),$b=me(Ib),Wb=v({},Ei,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),t1=me(Wb),e1=v({},Ei,{data:0}),zd=me(e1),n1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i1={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"},s1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=s1[t])?!!e[t]:!1}function nu(){return a1}var o1=v({},ua,{key:function(t){if(t.key){var e=n1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Po(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?i1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nu,charCode:function(t){return t.type==="keypress"?Po(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Po(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),r1=me(o1),l1=v({},Go,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vd=me(l1),u1=v({},ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nu}),c1=me(u1),f1=v({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),h1=me(f1),d1=v({},Go,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),m1=me(d1),p1=v({},Ei,{newState:0,oldState:0}),y1=me(p1),g1=[9,13,27,32],iu=pn&&"CompositionEvent"in window,fa=null;pn&&"documentMode"in document&&(fa=document.documentMode);var v1=pn&&"TextEvent"in window&&!fa,Bd=pn&&(!iu||fa&&8<fa&&11>=fa),Ud=" ",jd=!1;function Nd(t,e){switch(t){case"keyup":return g1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fs=!1;function S1(t,e){switch(t){case"compositionend":return Pd(e);case"keypress":return e.which!==32?null:(jd=!0,Ud);case"textInput":return t=e.data,t===Ud&&jd?null:t;default:return null}}function b1(t,e){if(fs)return t==="compositionend"||!iu&&Nd(t,e)?(t=wd(),No=$l=Hn=null,fs=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Bd&&e.locale!=="ko"?null:e.data;default:return null}}var T1={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 Hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!T1[t.type]:e==="textarea"}function qd(t,e,s,o){us?cs?cs.push(o):cs=[o]:us=o,e=Or(e,"onChange"),0<e.length&&(s=new qo("onChange","change",null,s,o),t.push({event:s,listeners:e}))}var ha=null,da=null;function x1(t){Ey(t,0)}function Yo(t){var e=oa(t);if(xd(e))return t}function Gd(t,e){if(t==="change")return e}var Yd=!1;if(pn){var su;if(pn){var au="oninput"in document;if(!au){var Fd=document.createElement("div");Fd.setAttribute("oninput","return;"),au=typeof Fd.oninput=="function"}su=au}else su=!1;Yd=su&&(!document.documentMode||9<document.documentMode)}function Kd(){ha&&(ha.detachEvent("onpropertychange",kd),da=ha=null)}function kd(t){if(t.propertyName==="value"&&Yo(da)){var e=[];qd(e,da,t,Zl(t)),Dd(x1,e)}}function E1(t,e,s){t==="focusin"?(Kd(),ha=e,da=s,ha.attachEvent("onpropertychange",kd)):t==="focusout"&&Kd()}function R1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Yo(da)}function A1(t,e){if(t==="click")return Yo(e)}function _1(t,e){if(t==="input"||t==="change")return Yo(e)}function M1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ae=typeof Object.is=="function"?Object.is:M1;function ma(t,e){if(Ae(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var s=Object.keys(t),o=Object.keys(e);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var u=s[o];if(!Un.call(e,u)||!Ae(t[u],e[u]))return!1}return!0}function Qd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Xd(t,e){var s=Qd(t);t=0;for(var o;s;){if(s.nodeType===3){if(o=t+s.textContent.length,t<=e&&o>=e)return{node:s,offset:e-t};t=o}t:{for(;s;){if(s.nextSibling){s=s.nextSibling;break t}s=s.parentNode}s=void 0}s=Qd(s)}}function Zd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Zd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Jd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Uo(t.document);e instanceof t.HTMLIFrameElement;){try{var s=typeof e.contentWindow.location.href=="string"}catch{s=!1}if(s)t=e.contentWindow;else break;e=Uo(t.document)}return e}function ou(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var C1=pn&&"documentMode"in document&&11>=document.documentMode,hs=null,ru=null,pa=null,lu=!1;function Id(t,e,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;lu||hs==null||hs!==Uo(o)||(o=hs,"selectionStart"in o&&ou(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),pa&&ma(pa,o)||(pa=o,o=Or(ru,"onSelect"),0<o.length&&(e=new qo("onSelect","select",null,e,s),t.push({event:e,listeners:o}),e.target=hs)))}function Ri(t,e){var s={};return s[t.toLowerCase()]=e.toLowerCase(),s["Webkit"+t]="webkit"+e,s["Moz"+t]="moz"+e,s}var ds={animationend:Ri("Animation","AnimationEnd"),animationiteration:Ri("Animation","AnimationIteration"),animationstart:Ri("Animation","AnimationStart"),transitionrun:Ri("Transition","TransitionRun"),transitionstart:Ri("Transition","TransitionStart"),transitioncancel:Ri("Transition","TransitionCancel"),transitionend:Ri("Transition","TransitionEnd")},uu={},$d={};pn&&($d=document.createElement("div").style,"AnimationEvent"in window||(delete ds.animationend.animation,delete ds.animationiteration.animation,delete ds.animationstart.animation),"TransitionEvent"in window||delete ds.transitionend.transition);function Ai(t){if(uu[t])return uu[t];if(!ds[t])return t;var e=ds[t],s;for(s in e)if(e.hasOwnProperty(s)&&s in $d)return uu[t]=e[s];return t}var Wd=Ai("animationend"),tm=Ai("animationiteration"),em=Ai("animationstart"),D1=Ai("transitionrun"),w1=Ai("transitionstart"),O1=Ai("transitioncancel"),nm=Ai("transitionend"),im=new Map,cu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");cu.push("scrollEnd");function Je(t,e){im.set(t,e),xi(e,[t])}var Fo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ue=[],ms=0,fu=0;function Ko(){for(var t=ms,e=fu=ms=0;e<t;){var s=Ue[e];Ue[e++]=null;var o=Ue[e];Ue[e++]=null;var u=Ue[e];Ue[e++]=null;var c=Ue[e];if(Ue[e++]=null,o!==null&&u!==null){var y=o.pending;y===null?u.next=u:(u.next=y.next,y.next=u),o.pending=u}c!==0&&sm(s,u,c)}}function ko(t,e,s,o){Ue[ms++]=t,Ue[ms++]=e,Ue[ms++]=s,Ue[ms++]=o,fu|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function hu(t,e,s,o){return ko(t,e,s,o),Qo(t)}function _i(t,e){return ko(t,null,null,e),Qo(t)}function sm(t,e,s){t.lanes|=s;var o=t.alternate;o!==null&&(o.lanes|=s);for(var u=!1,c=t.return;c!==null;)c.childLanes|=s,o=c.alternate,o!==null&&(o.childLanes|=s),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-Re(s),t=c.hiddenUpdates,o=t[u],o===null?t[u]=[e]:o.push(e),e.lane=s|536870912),c):null}function Qo(t){if(50<ja)throw ja=0,Tc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ps={};function L1(t,e,s,o){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(t,e,s,o){return new L1(t,e,s,o)}function du(t){return t=t.prototype,!(!t||!t.isReactComponent)}function yn(t,e){var s=t.alternate;return s===null?(s=_e(t.tag,e,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=e,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&65011712,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,e=t.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function am(t,e){t.flags&=65011714;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,e=s.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Xo(t,e,s,o,u,c){var y=0;if(o=t,typeof t=="function")du(t)&&(y=1);else if(typeof t=="string")y=jT(t,s,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=_e(31,s,e,u),t.elementType=Z,t.lanes=c,t;case _:return Mi(s.children,u,c,e);case C:y=8,u|=24;break;case M:return t=_e(12,s,e,u|2),t.elementType=M,t.lanes=c,t;case k:return t=_e(13,s,e,u),t.elementType=k,t.lanes=c,t;case U:return t=_e(19,s,e,u),t.elementType=U,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:y=10;break t;case w:y=9;break t;case P:y=11;break t;case G:y=14;break t;case H:y=16,o=null;break t}y=29,s=Error(r(130,t===null?"null":typeof t,"")),o=null}return e=_e(y,s,e,u),e.elementType=t,e.type=o,e.lanes=c,e}function Mi(t,e,s,o){return t=_e(7,t,o,e),t.lanes=s,t}function mu(t,e,s){return t=_e(6,t,null,e),t.lanes=s,t}function om(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function pu(t,e,s){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=s,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var rm=new WeakMap;function je(t,e){if(typeof t=="object"&&t!==null){var s=rm.get(t);return s!==void 0?s:(e={value:t,source:e,stack:Mo(e)},rm.set(t,e),e)}return{value:t,source:e,stack:Mo(e)}}var ys=[],gs=0,Zo=null,ya=0,Ne=[],Pe=0,qn=null,sn=1,an="";function gn(t,e){ys[gs++]=ya,ys[gs++]=Zo,Zo=t,ya=e}function lm(t,e,s){Ne[Pe++]=sn,Ne[Pe++]=an,Ne[Pe++]=qn,qn=t;var o=sn;t=an;var u=32-Re(o)-1;o&=~(1<<u),s+=1;var c=32-Re(e)+u;if(30<c){var y=u-u%5;c=(o&(1<<y)-1).toString(32),o>>=y,u-=y,sn=1<<32-Re(e)+u|s<<u|o,an=c+t}else sn=1<<c|s<<u|o,an=t}function yu(t){t.return!==null&&(gn(t,1),lm(t,1,0))}function gu(t){for(;t===Zo;)Zo=ys[--gs],ys[gs]=null,ya=ys[--gs],ys[gs]=null;for(;t===qn;)qn=Ne[--Pe],Ne[Pe]=null,an=Ne[--Pe],Ne[Pe]=null,sn=Ne[--Pe],Ne[Pe]=null}function um(t,e){Ne[Pe++]=sn,Ne[Pe++]=an,Ne[Pe++]=qn,sn=e.id,an=e.overflow,qn=t}var ie=null,Vt=null,vt=!1,Gn=null,He=!1,vu=Error(r(519));function Yn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ga(je(e,t)),vu}function cm(t){var e=t.stateNode,s=t.type,o=t.memoizedProps;switch(e[ne]=t,e[de]=o,s){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(s=0;s<Pa.length;s++)dt(Pa[s],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Ed(e,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Ad(e,o.value,o.defaultValue,o.children)}s=o.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||e.textContent===""+s||o.suppressHydrationWarning===!0||My(e.textContent,s)?(o.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),o.onScroll!=null&&dt("scroll",e),o.onScrollEnd!=null&&dt("scrollend",e),o.onClick!=null&&(e.onclick=mn),e=!0):e=!1,e||Yn(t,!0)}function fm(t){for(ie=t.return;ie;)switch(ie.tag){case 5:case 31:case 13:He=!1;return;case 27:case 3:He=!0;return;default:ie=ie.return}}function vs(t){if(t!==ie)return!1;if(!vt)return fm(t),vt=!0,!1;var e=t.tag,s;if((s=e!==3&&e!==27)&&((s=e===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||Uc(t.type,t.memoizedProps)),s=!s),s&&Vt&&Yn(t),fm(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Vt=Uy(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Vt=Uy(t)}else e===27?(e=Vt,ii(t.type)?(t=qc,qc=null,Vt=t):Vt=e):Vt=ie?Ge(t.stateNode.nextSibling):null;return!0}function Ci(){Vt=ie=null,vt=!1}function Su(){var t=Gn;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),Gn=null),t}function ga(t){Gn===null?Gn=[t]:Gn.push(t)}var bu=A(null),Di=null,vn=null;function Fn(t,e,s){J(bu,e._currentValue),e._currentValue=s}function Sn(t){t._currentValue=bu.current,F(bu)}function Tu(t,e,s){for(;t!==null;){var o=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,o!==null&&(o.childLanes|=e)):o!==null&&(o.childLanes&e)!==e&&(o.childLanes|=e),t===s)break;t=t.return}}function xu(t,e,s,o){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var y=u.child;c=c.firstContext;t:for(;c!==null;){var b=c;c=u;for(var x=0;x<e.length;x++)if(b.context===e[x]){c.lanes|=s,b=c.alternate,b!==null&&(b.lanes|=s),Tu(c.return,s,t),o||(y=null);break t}c=b.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(r(341));y.lanes|=s,c=y.alternate,c!==null&&(c.lanes|=s),Tu(y,s,t),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===t){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function Ss(t,e,s,o){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var b=u.type;Ae(u.pendingProps.value,y.value)||(t!==null?t.push(b):t=[b])}}else if(u===gt.current){if(y=u.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Fa):t=[Fa])}u=u.return}t!==null&&xu(e,t,s,o),e.flags|=262144}function Jo(t){for(t=t.firstContext;t!==null;){if(!Ae(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function wi(t){Di=t,vn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function se(t){return hm(Di,t)}function Io(t,e){return Di===null&&wi(t),hm(t,e)}function hm(t,e){var s=e._currentValue;if(e={context:e,memoizedValue:s,next:null},vn===null){if(t===null)throw Error(r(308));vn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else vn=vn.next=e;return s}var z1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(s,o){t.push(o)}};this.abort=function(){e.aborted=!0,t.forEach(function(s){return s()})}},V1=n.unstable_scheduleCallback,B1=n.unstable_NormalPriority,Qt={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eu(){return{controller:new z1,data:new Map,refCount:0}}function va(t){t.refCount--,t.refCount===0&&V1(B1,function(){t.controller.abort()})}var Sa=null,Ru=0,bs=0,Ts=null;function U1(t,e){if(Sa===null){var s=Sa=[];Ru=0,bs=Mc(),Ts={status:"pending",value:void 0,then:function(o){s.push(o)}}}return Ru++,e.then(dm,dm),e}function dm(){if(--Ru===0&&Sa!==null){Ts!==null&&(Ts.status="fulfilled");var t=Sa;Sa=null,bs=0,Ts=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function j1(t,e){var s=[],o={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return t.then(function(){o.status="fulfilled",o.value=e;for(var u=0;u<s.length;u++)(0,s[u])(e)},function(u){for(o.status="rejected",o.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),o}var mm=j.S;j.S=function(t,e){Ip=xt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&U1(t,e),mm!==null&&mm(t,e)};var Oi=A(null);function Au(){var t=Oi.current;return t!==null?t:Lt.pooledCache}function $o(t,e){e===null?J(Oi,Oi.current):J(Oi,e.pool)}function pm(){var t=Au();return t===null?null:{parent:Qt._currentValue,pool:t}}var xs=Error(r(460)),_u=Error(r(474)),Wo=Error(r(542)),tr={then:function(){}};function ym(t){return t=t.status,t==="fulfilled"||t==="rejected"}function gm(t,e,s){switch(s=t[s],s===void 0?t.push(e):s!==e&&(e.then(mn,mn),e=s),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Sm(t),t;default:if(typeof e.status=="string")e.then(mn,mn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(o){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=o}},function(o){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=o}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Sm(t),t}throw zi=e,xs}}function Li(t){try{var e=t._init;return e(t._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(zi=s,xs):s}}var zi=null;function vm(){if(zi===null)throw Error(r(459));var t=zi;return zi=null,t}function Sm(t){if(t===xs||t===Wo)throw Error(r(483))}var Es=null,ba=0;function er(t){var e=ba;return ba+=1,Es===null&&(Es=[]),gm(Es,t,e)}function Ta(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function nr(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function bm(t){function e(D,R){if(t){var O=D.deletions;O===null?(D.deletions=[R],D.flags|=16):O.push(R)}}function s(D,R){if(!t)return null;for(;R!==null;)e(D,R),R=R.sibling;return null}function o(D){for(var R=new Map;D!==null;)D.key!==null?R.set(D.key,D):R.set(D.index,D),D=D.sibling;return R}function u(D,R){return D=yn(D,R),D.index=0,D.sibling=null,D}function c(D,R,O){return D.index=O,t?(O=D.alternate,O!==null?(O=O.index,O<R?(D.flags|=67108866,R):O):(D.flags|=67108866,R)):(D.flags|=1048576,R)}function y(D){return t&&D.alternate===null&&(D.flags|=67108866),D}function b(D,R,O,q){return R===null||R.tag!==6?(R=mu(O,D.mode,q),R.return=D,R):(R=u(R,O),R.return=D,R)}function x(D,R,O,q){var et=O.type;return et===_?N(D,R,O.props.children,q,O.key):R!==null&&(R.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===H&&Li(et)===R.type)?(R=u(R,O.props),Ta(R,O),R.return=D,R):(R=Xo(O.type,O.key,O.props,null,D.mode,q),Ta(R,O),R.return=D,R)}function L(D,R,O,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==O.containerInfo||R.stateNode.implementation!==O.implementation?(R=pu(O,D.mode,q),R.return=D,R):(R=u(R,O.children||[]),R.return=D,R)}function N(D,R,O,q,et){return R===null||R.tag!==7?(R=Mi(O,D.mode,q,et),R.return=D,R):(R=u(R,O),R.return=D,R)}function Y(D,R,O){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=mu(""+R,D.mode,O),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return O=Xo(R.type,R.key,R.props,null,D.mode,O),Ta(O,R),O.return=D,O;case E:return R=pu(R,D.mode,O),R.return=D,R;case H:return R=Li(R),Y(D,R,O)}if(zt(R)||Tt(R))return R=Mi(R,D.mode,O,null),R.return=D,R;if(typeof R.then=="function")return Y(D,er(R),O);if(R.$$typeof===V)return Y(D,Io(D,R),O);nr(D,R)}return null}function z(D,R,O,q){var et=R!==null?R.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return et!==null?null:b(D,R,""+O,q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case T:return O.key===et?x(D,R,O,q):null;case E:return O.key===et?L(D,R,O,q):null;case H:return O=Li(O),z(D,R,O,q)}if(zt(O)||Tt(O))return et!==null?null:N(D,R,O,q,null);if(typeof O.then=="function")return z(D,R,er(O),q);if(O.$$typeof===V)return z(D,R,Io(D,O),q);nr(D,O)}return null}function B(D,R,O,q,et){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return D=D.get(O)||null,b(R,D,""+q,et);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case T:return D=D.get(q.key===null?O:q.key)||null,x(R,D,q,et);case E:return D=D.get(q.key===null?O:q.key)||null,L(R,D,q,et);case H:return q=Li(q),B(D,R,O,q,et)}if(zt(q)||Tt(q))return D=D.get(O)||null,N(R,D,q,et,null);if(typeof q.then=="function")return B(D,R,O,er(q),et);if(q.$$typeof===V)return B(D,R,O,Io(R,q),et);nr(R,q)}return null}function $(D,R,O,q){for(var et=null,St=null,tt=R,ct=R=0,pt=null;tt!==null&&ct<O.length;ct++){tt.index>ct?(pt=tt,tt=null):pt=tt.sibling;var bt=z(D,tt,O[ct],q);if(bt===null){tt===null&&(tt=pt);break}t&&tt&&bt.alternate===null&&e(D,tt),R=c(bt,R,ct),St===null?et=bt:St.sibling=bt,St=bt,tt=pt}if(ct===O.length)return s(D,tt),vt&&gn(D,ct),et;if(tt===null){for(;ct<O.length;ct++)tt=Y(D,O[ct],q),tt!==null&&(R=c(tt,R,ct),St===null?et=tt:St.sibling=tt,St=tt);return vt&&gn(D,ct),et}for(tt=o(tt);ct<O.length;ct++)pt=B(tt,D,ct,O[ct],q),pt!==null&&(t&&pt.alternate!==null&&tt.delete(pt.key===null?ct:pt.key),R=c(pt,R,ct),St===null?et=pt:St.sibling=pt,St=pt);return t&&tt.forEach(function(li){return e(D,li)}),vt&&gn(D,ct),et}function it(D,R,O,q){if(O==null)throw Error(r(151));for(var et=null,St=null,tt=R,ct=R=0,pt=null,bt=O.next();tt!==null&&!bt.done;ct++,bt=O.next()){tt.index>ct?(pt=tt,tt=null):pt=tt.sibling;var li=z(D,tt,bt.value,q);if(li===null){tt===null&&(tt=pt);break}t&&tt&&li.alternate===null&&e(D,tt),R=c(li,R,ct),St===null?et=li:St.sibling=li,St=li,tt=pt}if(bt.done)return s(D,tt),vt&&gn(D,ct),et;if(tt===null){for(;!bt.done;ct++,bt=O.next())bt=Y(D,bt.value,q),bt!==null&&(R=c(bt,R,ct),St===null?et=bt:St.sibling=bt,St=bt);return vt&&gn(D,ct),et}for(tt=o(tt);!bt.done;ct++,bt=O.next())bt=B(tt,D,ct,bt.value,q),bt!==null&&(t&&bt.alternate!==null&&tt.delete(bt.key===null?ct:bt.key),R=c(bt,R,ct),St===null?et=bt:St.sibling=bt,St=bt);return t&&tt.forEach(function(XT){return e(D,XT)}),vt&&gn(D,ct),et}function Ot(D,R,O,q){if(typeof O=="object"&&O!==null&&O.type===_&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case T:t:{for(var et=O.key;R!==null;){if(R.key===et){if(et=O.type,et===_){if(R.tag===7){s(D,R.sibling),q=u(R,O.props.children),q.return=D,D=q;break t}}else if(R.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===H&&Li(et)===R.type){s(D,R.sibling),q=u(R,O.props),Ta(q,O),q.return=D,D=q;break t}s(D,R);break}else e(D,R);R=R.sibling}O.type===_?(q=Mi(O.props.children,D.mode,q,O.key),q.return=D,D=q):(q=Xo(O.type,O.key,O.props,null,D.mode,q),Ta(q,O),q.return=D,D=q)}return y(D);case E:t:{for(et=O.key;R!==null;){if(R.key===et)if(R.tag===4&&R.stateNode.containerInfo===O.containerInfo&&R.stateNode.implementation===O.implementation){s(D,R.sibling),q=u(R,O.children||[]),q.return=D,D=q;break t}else{s(D,R);break}else e(D,R);R=R.sibling}q=pu(O,D.mode,q),q.return=D,D=q}return y(D);case H:return O=Li(O),Ot(D,R,O,q)}if(zt(O))return $(D,R,O,q);if(Tt(O)){if(et=Tt(O),typeof et!="function")throw Error(r(150));return O=et.call(O),it(D,R,O,q)}if(typeof O.then=="function")return Ot(D,R,er(O),q);if(O.$$typeof===V)return Ot(D,R,Io(D,O),q);nr(D,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,R!==null&&R.tag===6?(s(D,R.sibling),q=u(R,O),q.return=D,D=q):(s(D,R),q=mu(O,D.mode,q),q.return=D,D=q),y(D)):s(D,R)}return function(D,R,O,q){try{ba=0;var et=Ot(D,R,O,q);return Es=null,et}catch(tt){if(tt===xs||tt===Wo)throw tt;var St=_e(29,tt,null,D.mode);return St.lanes=q,St.return=D,St}}}var Vi=bm(!0),Tm=bm(!1),Kn=!1;function Mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function kn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(t,e,s){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Et&2)!==0){var u=o.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),o.pending=e,e=Qo(t),sm(t,null,s),e}return ko(t,o,e,s),Qo(t)}function xa(t,e,s){if(e=e.updateQueue,e!==null&&(e=e.shared,(s&4194048)!==0)){var o=e.lanes;o&=t.pendingLanes,s|=o,e.lanes=s,hd(t,s)}}function Du(t,e){var s=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var u=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};c===null?u=c=y:c=c.next=y,s=s.next}while(s!==null);c===null?u=c=e:c=c.next=e}else u=c=e;s={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:o.shared,callbacks:o.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=e:t.next=e,s.lastBaseUpdate=e}var wu=!1;function Ea(){if(wu){var t=Ts;if(t!==null)throw t}}function Ra(t,e,s,o){wu=!1;var u=t.updateQueue;Kn=!1;var c=u.firstBaseUpdate,y=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var x=b,L=x.next;x.next=null,y===null?c=L:y.next=L,y=x;var N=t.alternate;N!==null&&(N=N.updateQueue,b=N.lastBaseUpdate,b!==y&&(b===null?N.firstBaseUpdate=L:b.next=L,N.lastBaseUpdate=x))}if(c!==null){var Y=u.baseState;y=0,N=L=x=null,b=c;do{var z=b.lane&-536870913,B=z!==b.lane;if(B?(mt&z)===z:(o&z)===z){z!==0&&z===bs&&(wu=!0),N!==null&&(N=N.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var $=t,it=b;z=e;var Ot=s;switch(it.tag){case 1:if($=it.payload,typeof $=="function"){Y=$.call(Ot,Y,z);break t}Y=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=it.payload,z=typeof $=="function"?$.call(Ot,Y,z):$,z==null)break t;Y=v({},Y,z);break t;case 2:Kn=!0}}z=b.callback,z!==null&&(t.flags|=64,B&&(t.flags|=8192),B=u.callbacks,B===null?u.callbacks=[z]:B.push(z))}else B={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},N===null?(L=N=B,x=Y):N=N.next=B,y|=z;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;B=b,b=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);N===null&&(x=Y),u.baseState=x,u.firstBaseUpdate=L,u.lastBaseUpdate=N,c===null&&(u.shared.lanes=0),$n|=y,t.lanes=y,t.memoizedState=Y}}function xm(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Em(t,e){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)xm(s[t],e)}var Rs=A(null),ir=A(0);function Rm(t,e){t=Cn,J(ir,t),J(Rs,e),Cn=t|e.baseLanes}function Ou(){J(ir,Cn),J(Rs,Rs.current)}function Lu(){Cn=ir.current,F(Rs),F(ir)}var Me=A(null),qe=null;function Xn(t){var e=t.alternate;J(Ft,Ft.current&1),J(Me,t),qe===null&&(e===null||Rs.current!==null||e.memoizedState!==null)&&(qe=t)}function zu(t){J(Ft,Ft.current),J(Me,t),qe===null&&(qe=t)}function Am(t){t.tag===22?(J(Ft,Ft.current),J(Me,t),qe===null&&(qe=t)):Zn()}function Zn(){J(Ft,Ft.current),J(Me,Me.current)}function Ce(t){F(Me),qe===t&&(qe=null),F(Ft)}var Ft=A(0);function sr(t){for(var e=t;e!==null;){if(e.tag===13){var s=e.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Pc(s)||Hc(s)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var bn=0,ut=null,Dt=null,Xt=null,ar=!1,As=!1,Bi=!1,or=0,Aa=0,_s=null,N1=0;function qt(){throw Error(r(321))}function Vu(t,e){if(e===null)return!1;for(var s=0;s<e.length&&s<t.length;s++)if(!Ae(t[s],e[s]))return!1;return!0}function Bu(t,e,s,o,u,c){return bn=c,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?lp:Ju,Bi=!1,c=s(o,u),Bi=!1,As&&(c=Mm(e,s,o,u)),_m(t),c}function _m(t){j.H=Ca;var e=Dt!==null&&Dt.next!==null;if(bn=0,Xt=Dt=ut=null,ar=!1,Aa=0,_s=null,e)throw Error(r(300));t===null||Zt||(t=t.dependencies,t!==null&&Jo(t)&&(Zt=!0))}function Mm(t,e,s,o){ut=t;var u=0;do{if(As&&(_s=null),Aa=0,As=!1,25<=u)throw Error(r(301));if(u+=1,Xt=Dt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=up,c=e(s,o)}while(As);return c}function P1(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?_a(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Uu(){var t=or!==0;return or=0,t}function ju(t,e,s){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s}function Nu(t){if(ar){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ar=!1}bn=0,Xt=Dt=ut=null,As=!1,Aa=or=0,_s=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Kt(){if(Dt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Xt===null?ut.memoizedState:Xt.next;if(e!==null)Xt=e,Dt=t;else{if(t===null)throw ut.alternate===null?Error(r(467)):Error(r(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function rr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _a(t){var e=Aa;return Aa+=1,_s===null&&(_s=[]),t=gm(_s,t,e),e=ut,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?lp:Ju),t}function lr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return _a(t);if(t.$$typeof===V)return se(t)}throw Error(r(438,String(t)))}function Pu(t){var e=null,s=ut.updateQueue;if(s!==null&&(e=s.memoCache),e==null){var o=ut.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(e={data:o.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),s===null&&(s=rr(),ut.updateQueue=s),s.memoCache=e,s=e.data[e.index],s===void 0)for(s=e.data[e.index]=Array(t),o=0;o<t;o++)s[o]=nt;return e.index++,s}function Tn(t,e){return typeof e=="function"?e(t):e}function ur(t){var e=Kt();return Hu(e,Dt,t)}function Hu(t,e,s){var o=t.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=s;var u=t.baseQueue,c=o.pending;if(c!==null){if(u!==null){var y=u.next;u.next=c.next,c.next=y}e.baseQueue=u=c,o.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var b=y=null,x=null,L=e,N=!1;do{var Y=L.lane&-536870913;if(Y!==L.lane?(mt&Y)===Y:(bn&Y)===Y){var z=L.revertLane;if(z===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Y===bs&&(N=!0);else if((bn&z)===z){L=L.next,z===bs&&(N=!0);continue}else Y={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},x===null?(b=x=Y,y=c):x=x.next=Y,ut.lanes|=z,$n|=z;Y=L.action,Bi&&s(c,Y),c=L.hasEagerState?L.eagerState:s(c,Y)}else z={lane:Y,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},x===null?(b=x=z,y=c):x=x.next=z,ut.lanes|=Y,$n|=Y;L=L.next}while(L!==null&&L!==e);if(x===null?y=c:x.next=b,!Ae(c,t.memoizedState)&&(Zt=!0,N&&(s=Ts,s!==null)))throw s;t.memoizedState=c,t.baseState=y,t.baseQueue=x,o.lastRenderedState=c}return u===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function qu(t){var e=Kt(),s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var o=s.dispatch,u=s.pending,c=e.memoizedState;if(u!==null){s.pending=null;var y=u=u.next;do c=t(c,y.action),y=y.next;while(y!==u);Ae(c,e.memoizedState)||(Zt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),s.lastRenderedState=c}return[c,o]}function Cm(t,e,s){var o=ut,u=Kt(),c=vt;if(c){if(s===void 0)throw Error(r(407));s=s()}else s=e();var y=!Ae((Dt||u).memoizedState,s);if(y&&(u.memoizedState=s,Zt=!0),u=u.queue,Fu(Om.bind(null,o,u,t),[t]),u.getSnapshot!==e||y||Xt!==null&&Xt.memoizedState.tag&1){if(o.flags|=2048,Ms(9,{destroy:void 0},wm.bind(null,o,u,s,e),null),Lt===null)throw Error(r(349));c||(bn&127)!==0||Dm(o,e,s)}return s}function Dm(t,e,s){t.flags|=16384,t={getSnapshot:e,value:s},e=ut.updateQueue,e===null?(e=rr(),ut.updateQueue=e,e.stores=[t]):(s=e.stores,s===null?e.stores=[t]:s.push(t))}function wm(t,e,s,o){e.value=s,e.getSnapshot=o,Lm(e)&&zm(t)}function Om(t,e,s){return s(function(){Lm(e)&&zm(t)})}function Lm(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!Ae(t,s)}catch{return!0}}function zm(t){var e=_i(t,2);e!==null&&Se(e,t,2)}function Gu(t){var e=ce();if(typeof t=="function"){var s=t;if(t=s(),Bi){Nn(!0);try{s()}finally{Nn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:t},e}function Vm(t,e,s,o){return t.baseState=s,Hu(t,Dt,typeof o=="function"?o:Tn)}function H1(t,e,s,o,u){if(hr(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){c.listeners.push(y)}};j.T!==null?s(!0):c.isTransition=!1,o(c),s=e.pending,s===null?(c.next=e.pending=c,Bm(e,c)):(c.next=s.next,e.pending=s.next=c)}}function Bm(t,e){var s=e.action,o=e.payload,u=t.state;if(e.isTransition){var c=j.T,y={};j.T=y;try{var b=s(u,o),x=j.S;x!==null&&x(y,b),Um(t,e,b)}catch(L){Yu(t,e,L)}finally{c!==null&&y.types!==null&&(c.types=y.types),j.T=c}}else try{c=s(u,o),Um(t,e,c)}catch(L){Yu(t,e,L)}}function Um(t,e,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(o){jm(t,e,o)},function(o){return Yu(t,e,o)}):jm(t,e,s)}function jm(t,e,s){e.status="fulfilled",e.value=s,Nm(e),t.state=s,e=t.pending,e!==null&&(s=e.next,s===e?t.pending=null:(s=s.next,e.next=s,Bm(t,s)))}function Yu(t,e,s){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do e.status="rejected",e.reason=s,Nm(e),e=e.next;while(e!==o)}t.action=null}function Nm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Pm(t,e){return e}function Hm(t,e){if(vt){var s=Lt.formState;if(s!==null){t:{var o=ut;if(vt){if(Vt){e:{for(var u=Vt,c=He;u.nodeType!==8;){if(!c){u=null;break e}if(u=Ge(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Vt=Ge(u.nextSibling),o=u.data==="F!";break t}}Yn(o)}o=!1}o&&(e=s[0])}}return s=ce(),s.memoizedState=s.baseState=e,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pm,lastRenderedState:e},s.queue=o,s=ap.bind(null,ut,o),o.dispatch=s,o=Gu(!1),c=Zu.bind(null,ut,!1,o.queue),o=ce(),u={state:e,dispatch:null,action:t,pending:null},o.queue=u,s=H1.bind(null,ut,u,c,s),u.dispatch=s,o.memoizedState=t,[e,s,!1]}function qm(t){var e=Kt();return Gm(e,Dt,t)}function Gm(t,e,s){if(e=Hu(t,e,Pm)[0],t=ur(Tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var o=_a(e)}catch(y){throw y===xs?Wo:y}else o=e;e=Kt();var u=e.queue,c=u.dispatch;return s!==e.memoizedState&&(ut.flags|=2048,Ms(9,{destroy:void 0},q1.bind(null,u,s),null)),[o,c,t]}function q1(t,e){t.action=e}function Ym(t){var e=Kt(),s=Dt;if(s!==null)return Gm(e,s,t);Kt(),e=e.memoizedState,s=Kt();var o=s.queue.dispatch;return s.memoizedState=t,[e,o,!1]}function Ms(t,e,s,o){return t={tag:t,create:s,deps:o,inst:e,next:null},e=ut.updateQueue,e===null&&(e=rr(),ut.updateQueue=e),s=e.lastEffect,s===null?e.lastEffect=t.next=t:(o=s.next,s.next=t,t.next=o,e.lastEffect=t),t}function Fm(){return Kt().memoizedState}function cr(t,e,s,o){var u=ce();ut.flags|=t,u.memoizedState=Ms(1|e,{destroy:void 0},s,o===void 0?null:o)}function fr(t,e,s,o){var u=Kt();o=o===void 0?null:o;var c=u.memoizedState.inst;Dt!==null&&o!==null&&Vu(o,Dt.memoizedState.deps)?u.memoizedState=Ms(e,c,s,o):(ut.flags|=t,u.memoizedState=Ms(1|e,c,s,o))}function Km(t,e){cr(8390656,8,t,e)}function Fu(t,e){fr(2048,8,t,e)}function G1(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=rr(),ut.updateQueue=e,e.events=[t];else{var s=e.events;s===null?e.events=[t]:s.push(t)}}function km(t){var e=Kt().memoizedState;return G1({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Qm(t,e){return fr(4,2,t,e)}function Xm(t,e){return fr(4,4,t,e)}function Zm(t,e){if(typeof e=="function"){t=t();var s=e(t);return function(){typeof s=="function"?s():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Jm(t,e,s){s=s!=null?s.concat([t]):null,fr(4,4,Zm.bind(null,e,t),s)}function Ku(){}function Im(t,e){var s=Kt();e=e===void 0?null:e;var o=s.memoizedState;return e!==null&&Vu(e,o[1])?o[0]:(s.memoizedState=[t,e],t)}function $m(t,e){var s=Kt();e=e===void 0?null:e;var o=s.memoizedState;if(e!==null&&Vu(e,o[1]))return o[0];if(o=t(),Bi){Nn(!0);try{t()}finally{Nn(!1)}}return s.memoizedState=[o,e],o}function ku(t,e,s){return s===void 0||(bn&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=s,t=Wp(),ut.lanes|=t,$n|=t,s)}function Wm(t,e,s,o){return Ae(s,e)?s:Rs.current!==null?(t=ku(t,s,o),Ae(t,e)||(Zt=!0),t):(bn&42)===0||(bn&1073741824)!==0&&(mt&261930)===0?(Zt=!0,t.memoizedState=s):(t=Wp(),ut.lanes|=t,$n|=t,e)}function tp(t,e,s,o,u){var c=Q.p;Q.p=c!==0&&8>c?c:8;var y=j.T,b={};j.T=b,Zu(t,!1,e,s);try{var x=u(),L=j.S;if(L!==null&&L(b,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var N=j1(x,o);Ma(t,e,N,Oe(t))}else Ma(t,e,o,Oe(t))}catch(Y){Ma(t,e,{then:function(){},status:"rejected",reason:Y},Oe())}finally{Q.p=c,y!==null&&b.types!==null&&(y.types=b.types),j.T=y}}function Y1(){}function Qu(t,e,s,o){if(t.tag!==5)throw Error(r(476));var u=ep(t).queue;tp(t,u,e,W,s===null?Y1:function(){return np(t),s(o)})}function ep(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:W},next:null};var s={};return e.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:s},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function np(t){var e=ep(t);e.next===null&&(e=t.alternate.memoizedState),Ma(t,e.next.queue,{},Oe())}function Xu(){return se(Fa)}function ip(){return Kt().memoizedState}function sp(){return Kt().memoizedState}function F1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var s=Oe();t=kn(s);var o=Qn(e,t,s);o!==null&&(Se(o,e,s),xa(o,e,s)),e={cache:Eu()},t.payload=e;return}e=e.return}}function K1(t,e,s){var o=Oe();s={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},hr(t)?op(e,s):(s=hu(t,e,s,o),s!==null&&(Se(s,t,o),rp(s,e,o)))}function ap(t,e,s){var o=Oe();Ma(t,e,s,o)}function Ma(t,e,s,o){var u={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(hr(t))op(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var y=e.lastRenderedState,b=c(y,s);if(u.hasEagerState=!0,u.eagerState=b,Ae(b,y))return ko(t,e,u,0),Lt===null&&Ko(),!1}catch{}if(s=hu(t,e,u,o),s!==null)return Se(s,t,o),rp(s,e,o),!0}return!1}function Zu(t,e,s,o){if(o={lane:2,revertLane:Mc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hr(t)){if(e)throw Error(r(479))}else e=hu(t,s,o,2),e!==null&&Se(e,t,2)}function hr(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function op(t,e){As=ar=!0;var s=t.pending;s===null?e.next=e:(e.next=s.next,s.next=e),t.pending=e}function rp(t,e,s){if((s&4194048)!==0){var o=e.lanes;o&=t.pendingLanes,s|=o,e.lanes=s,hd(t,s)}}var Ca={readContext:se,use:lr,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Ca.useEffectEvent=qt;var lp={readContext:se,use:lr,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:se,useEffect:Km,useImperativeHandle:function(t,e,s){s=s!=null?s.concat([t]):null,cr(4194308,4,Zm.bind(null,e,t),s)},useLayoutEffect:function(t,e){return cr(4194308,4,t,e)},useInsertionEffect:function(t,e){cr(4,2,t,e)},useMemo:function(t,e){var s=ce();e=e===void 0?null:e;var o=t();if(Bi){Nn(!0);try{t()}finally{Nn(!1)}}return s.memoizedState=[o,e],o},useReducer:function(t,e,s){var o=ce();if(s!==void 0){var u=s(e);if(Bi){Nn(!0);try{s(e)}finally{Nn(!1)}}}else u=e;return o.memoizedState=o.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},o.queue=t,t=t.dispatch=K1.bind(null,ut,t),[o.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=Gu(t);var e=t.queue,s=ap.bind(null,ut,e);return e.dispatch=s,[t.memoizedState,s]},useDebugValue:Ku,useDeferredValue:function(t,e){var s=ce();return ku(s,t,e)},useTransition:function(){var t=Gu(!1);return t=tp.bind(null,ut,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,s){var o=ut,u=ce();if(vt){if(s===void 0)throw Error(r(407));s=s()}else{if(s=e(),Lt===null)throw Error(r(349));(mt&127)!==0||Dm(o,e,s)}u.memoizedState=s;var c={value:s,getSnapshot:e};return u.queue=c,Km(Om.bind(null,o,c,t),[t]),o.flags|=2048,Ms(9,{destroy:void 0},wm.bind(null,o,c,s,e),null),s},useId:function(){var t=ce(),e=Lt.identifierPrefix;if(vt){var s=an,o=sn;s=(o&~(1<<32-Re(o)-1)).toString(32)+s,e="_"+e+"R_"+s,s=or++,0<s&&(e+="H"+s.toString(32)),e+="_"}else s=N1++,e="_"+e+"r_"+s.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Xu,useFormState:Hm,useActionState:Hm,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=s,e=Zu.bind(null,ut,!0,s),s.dispatch=e,[t,e]},useMemoCache:Pu,useCacheRefresh:function(){return ce().memoizedState=F1.bind(null,ut)},useEffectEvent:function(t){var e=ce(),s={impl:t};return e.memoizedState=s,function(){if((Et&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Ju={readContext:se,use:lr,useCallback:Im,useContext:se,useEffect:Fu,useImperativeHandle:Jm,useInsertionEffect:Qm,useLayoutEffect:Xm,useMemo:$m,useReducer:ur,useRef:Fm,useState:function(){return ur(Tn)},useDebugValue:Ku,useDeferredValue:function(t,e){var s=Kt();return Wm(s,Dt.memoizedState,t,e)},useTransition:function(){var t=ur(Tn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:Cm,useId:ip,useHostTransitionStatus:Xu,useFormState:qm,useActionState:qm,useOptimistic:function(t,e){var s=Kt();return Vm(s,Dt,t,e)},useMemoCache:Pu,useCacheRefresh:sp};Ju.useEffectEvent=km;var up={readContext:se,use:lr,useCallback:Im,useContext:se,useEffect:Fu,useImperativeHandle:Jm,useInsertionEffect:Qm,useLayoutEffect:Xm,useMemo:$m,useReducer:qu,useRef:Fm,useState:function(){return qu(Tn)},useDebugValue:Ku,useDeferredValue:function(t,e){var s=Kt();return Dt===null?ku(s,t,e):Wm(s,Dt.memoizedState,t,e)},useTransition:function(){var t=qu(Tn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:Cm,useId:ip,useHostTransitionStatus:Xu,useFormState:Ym,useActionState:Ym,useOptimistic:function(t,e){var s=Kt();return Dt!==null?Vm(s,Dt,t,e):(s.baseState=t,[t,s.queue.dispatch])},useMemoCache:Pu,useCacheRefresh:sp};up.useEffectEvent=km;function Iu(t,e,s,o){e=t.memoizedState,s=s(o,e),s=s==null?e:v({},e,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var $u={enqueueSetState:function(t,e,s){t=t._reactInternals;var o=Oe(),u=kn(o);u.payload=e,s!=null&&(u.callback=s),e=Qn(t,u,o),e!==null&&(Se(e,t,o),xa(e,t,o))},enqueueReplaceState:function(t,e,s){t=t._reactInternals;var o=Oe(),u=kn(o);u.tag=1,u.payload=e,s!=null&&(u.callback=s),e=Qn(t,u,o),e!==null&&(Se(e,t,o),xa(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var s=Oe(),o=kn(s);o.tag=2,e!=null&&(o.callback=e),e=Qn(t,o,s),e!==null&&(Se(e,t,s),xa(e,t,s))}};function cp(t,e,s,o,u,c,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,c,y):e.prototype&&e.prototype.isPureReactComponent?!ma(s,o)||!ma(u,c):!0}function fp(t,e,s,o){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(s,o),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(s,o),e.state!==t&&$u.enqueueReplaceState(e,e.state,null)}function Ui(t,e){var s=e;if("ref"in e){s={};for(var o in e)o!=="ref"&&(s[o]=e[o])}if(t=t.defaultProps){s===e&&(s=v({},s));for(var u in t)s[u]===void 0&&(s[u]=t[u])}return s}function hp(t){Fo(t)}function dp(t){console.error(t)}function mp(t){Fo(t)}function dr(t,e){try{var s=t.onUncaughtError;s(e.value,{componentStack:e.stack})}catch(o){setTimeout(function(){throw o})}}function pp(t,e,s){try{var o=t.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Wu(t,e,s){return s=kn(s),s.tag=3,s.payload={element:null},s.callback=function(){dr(t,e)},s}function yp(t){return t=kn(t),t.tag=3,t}function gp(t,e,s,o){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var c=o.value;t.payload=function(){return u(c)},t.callback=function(){pp(e,s,o)}}var y=s.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(t.callback=function(){pp(e,s,o),typeof u!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})})}function k1(t,e,s,o,u){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(e=s.alternate,e!==null&&Ss(e,s,u,!0),s=Me.current,s!==null){switch(s.tag){case 31:case 13:return qe===null?Ar():s.alternate===null&&Gt===0&&(Gt=3),s.flags&=-257,s.flags|=65536,s.lanes=u,o===tr?s.flags|=16384:(e=s.updateQueue,e===null?s.updateQueue=new Set([o]):e.add(o),Rc(t,o,u)),!1;case 22:return s.flags|=65536,o===tr?s.flags|=16384:(e=s.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=e):(s=e.retryQueue,s===null?e.retryQueue=new Set([o]):s.add(o)),Rc(t,o,u)),!1}throw Error(r(435,s.tag))}return Rc(t,o,u),Ar(),!1}if(vt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,o!==vu&&(t=Error(r(422),{cause:o}),ga(je(t,s)))):(o!==vu&&(e=Error(r(423),{cause:o}),ga(je(e,s))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,o=je(o,s),u=Wu(t.stateNode,o,u),Du(t,u),Gt!==4&&(Gt=2)),!1;var c=Error(r(520),{cause:o});if(c=je(c,s),Ua===null?Ua=[c]:Ua.push(c),Gt!==4&&(Gt=2),e===null)return!0;o=je(o,s),s=e;do{switch(s.tag){case 3:return s.flags|=65536,t=u&-u,s.lanes|=t,t=Wu(s.stateNode,o,t),Du(s,t),!1;case 1:if(e=s.type,c=s.stateNode,(s.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Wn===null||!Wn.has(c))))return s.flags|=65536,u&=-u,s.lanes|=u,u=yp(u),gp(u,t,s,o),Du(s,u),!1}s=s.return}while(s!==null);return!1}var tc=Error(r(461)),Zt=!1;function ae(t,e,s,o){e.child=t===null?Tm(e,null,s,o):Vi(e,t.child,s,o)}function vp(t,e,s,o,u){s=s.render;var c=e.ref;if("ref"in o){var y={};for(var b in o)b!=="ref"&&(y[b]=o[b])}else y=o;return wi(e),o=Bu(t,e,s,y,c,u),b=Uu(),t!==null&&!Zt?(ju(t,e,u),xn(t,e,u)):(vt&&b&&yu(e),e.flags|=1,ae(t,e,o,u),e.child)}function Sp(t,e,s,o,u){if(t===null){var c=s.type;return typeof c=="function"&&!du(c)&&c.defaultProps===void 0&&s.compare===null?(e.tag=15,e.type=c,bp(t,e,c,o,u)):(t=Xo(s.type,null,o,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!lc(t,u)){var y=c.memoizedProps;if(s=s.compare,s=s!==null?s:ma,s(y,o)&&t.ref===e.ref)return xn(t,e,u)}return e.flags|=1,t=yn(c,o),t.ref=e.ref,t.return=e,e.child=t}function bp(t,e,s,o,u){if(t!==null){var c=t.memoizedProps;if(ma(c,o)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=o=c,lc(t,u))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,xn(t,e,u)}return ec(t,e,s,o,u)}function Tp(t,e,s,o){var u=o.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|s:s,t!==null){for(o=e.child=t.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~c}else o=0,e.child=null;return xp(t,e,c,s,o)}if((s&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&$o(e,c!==null?c.cachePool:null),c!==null?Rm(e,c):Ou(),Am(e);else return o=e.lanes=536870912,xp(t,e,c!==null?c.baseLanes|s:s,s,o)}else c!==null?($o(e,c.cachePool),Rm(e,c),Zn(),e.memoizedState=null):(t!==null&&$o(e,null),Ou(),Zn());return ae(t,e,u,s),e.child}function Da(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function xp(t,e,s,o,u){var c=Au();return c=c===null?null:{parent:Qt._currentValue,pool:c},e.memoizedState={baseLanes:s,cachePool:c},t!==null&&$o(e,null),Ou(),Am(e),t!==null&&Ss(t,e,o,!0),e.childLanes=u,null}function mr(t,e){return e=yr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ep(t,e,s){return Vi(e,t.child,null,s),t=mr(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function Q1(t,e,s){var o=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(o.mode==="hidden")return t=mr(e,o),e.lanes=536870912,Da(null,t);if(zu(e),(t=Vt)?(t=By(t,He),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:qn!==null?{id:sn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},s=om(t),s.return=e,e.child=s,ie=e,Vt=null)):t=null,t===null)throw Yn(e);return e.lanes=536870912,null}return mr(e,o)}var c=t.memoizedState;if(c!==null){var y=c.dehydrated;if(zu(e),u)if(e.flags&256)e.flags&=-257,e=Ep(t,e,s);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Zt||Ss(t,e,s,!1),u=(s&t.childLanes)!==0,Zt||u){if(o=Lt,o!==null&&(y=dd(o,s),y!==0&&y!==c.retryLane))throw c.retryLane=y,_i(t,y),Se(o,t,y),tc;Ar(),e=Ep(t,e,s)}else t=c.treeContext,Vt=Ge(y.nextSibling),ie=e,vt=!0,Gn=null,He=!1,t!==null&&um(e,t),e=mr(e,o),e.flags|=4096;return e}return t=yn(t.child,{mode:o.mode,children:o.children}),t.ref=e.ref,e.child=t,t.return=e,t}function pr(t,e){var s=e.ref;if(s===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(t===null||t.ref!==s)&&(e.flags|=4194816)}}function ec(t,e,s,o,u){return wi(e),s=Bu(t,e,s,o,void 0,u),o=Uu(),t!==null&&!Zt?(ju(t,e,u),xn(t,e,u)):(vt&&o&&yu(e),e.flags|=1,ae(t,e,s,u),e.child)}function Rp(t,e,s,o,u,c){return wi(e),e.updateQueue=null,s=Mm(e,o,s,u),_m(t),o=Uu(),t!==null&&!Zt?(ju(t,e,c),xn(t,e,c)):(vt&&o&&yu(e),e.flags|=1,ae(t,e,s,c),e.child)}function Ap(t,e,s,o,u){if(wi(e),e.stateNode===null){var c=ps,y=s.contextType;typeof y=="object"&&y!==null&&(c=se(y)),c=new s(o,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=$u,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=o,c.state=e.memoizedState,c.refs={},Mu(e),y=s.contextType,c.context=typeof y=="object"&&y!==null?se(y):ps,c.state=e.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(Iu(e,s,y,o),c.state=e.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&$u.enqueueReplaceState(c,c.state,null),Ra(e,o,c,u),Ea(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),o=!0}else if(t===null){c=e.stateNode;var b=e.memoizedProps,x=Ui(s,b);c.props=x;var L=c.context,N=s.contextType;y=ps,typeof N=="object"&&N!==null&&(y=se(N));var Y=s.getDerivedStateFromProps;N=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,N||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||L!==y)&&fp(e,c,o,y),Kn=!1;var z=e.memoizedState;c.state=z,Ra(e,o,c,u),Ea(),L=e.memoizedState,b||z!==L||Kn?(typeof Y=="function"&&(Iu(e,s,Y,o),L=e.memoizedState),(x=Kn||cp(e,s,x,o,z,L,y))?(N||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=o,e.memoizedState=L),c.props=o,c.state=L,c.context=y,o=x):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),o=!1)}else{c=e.stateNode,Cu(t,e),y=e.memoizedProps,N=Ui(s,y),c.props=N,Y=e.pendingProps,z=c.context,L=s.contextType,x=ps,typeof L=="object"&&L!==null&&(x=se(L)),b=s.getDerivedStateFromProps,(L=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y!==Y||z!==x)&&fp(e,c,o,x),Kn=!1,z=e.memoizedState,c.state=z,Ra(e,o,c,u),Ea();var B=e.memoizedState;y!==Y||z!==B||Kn||t!==null&&t.dependencies!==null&&Jo(t.dependencies)?(typeof b=="function"&&(Iu(e,s,b,o),B=e.memoizedState),(N=Kn||cp(e,s,N,o,z,B,x)||t!==null&&t.dependencies!==null&&Jo(t.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(o,B,x),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(o,B,x)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||y===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=o,e.memoizedState=B),c.props=o,c.state=B,c.context=x,o=N):(typeof c.componentDidUpdate!="function"||y===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),o=!1)}return c=o,pr(t,e),o=(e.flags&128)!==0,c||o?(c=e.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&o?(e.child=Vi(e,t.child,null,u),e.child=Vi(e,null,s,u)):ae(t,e,s,u),e.memoizedState=c.state,t=e.child):t=xn(t,e,u),t}function _p(t,e,s,o){return Ci(),e.flags|=256,ae(t,e,s,o),e.child}var nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(t){return{baseLanes:t,cachePool:pm()}}function sc(t,e,s){return t=t!==null?t.childLanes&~s:0,e&&(t|=we),t}function Mp(t,e,s){var o=e.pendingProps,u=!1,c=(e.flags&128)!==0,y;if((y=c)||(y=t!==null&&t.memoizedState===null?!1:(Ft.current&2)!==0),y&&(u=!0,e.flags&=-129),y=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(u?Xn(e):Zn(),(t=Vt)?(t=By(t,He),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:qn!==null?{id:sn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},s=om(t),s.return=e,e.child=s,ie=e,Vt=null)):t=null,t===null)throw Yn(e);return Hc(t)?e.lanes=32:e.lanes=536870912,null}var b=o.children;return o=o.fallback,u?(Zn(),u=e.mode,b=yr({mode:"hidden",children:b},u),o=Mi(o,u,s,null),b.return=e,o.return=e,b.sibling=o,e.child=b,o=e.child,o.memoizedState=ic(s),o.childLanes=sc(t,y,s),e.memoizedState=nc,Da(null,o)):(Xn(e),ac(e,b))}var x=t.memoizedState;if(x!==null&&(b=x.dehydrated,b!==null)){if(c)e.flags&256?(Xn(e),e.flags&=-257,e=oc(t,e,s)):e.memoizedState!==null?(Zn(),e.child=t.child,e.flags|=128,e=null):(Zn(),b=o.fallback,u=e.mode,o=yr({mode:"visible",children:o.children},u),b=Mi(b,u,s,null),b.flags|=2,o.return=e,b.return=e,o.sibling=b,e.child=o,Vi(e,t.child,null,s),o=e.child,o.memoizedState=ic(s),o.childLanes=sc(t,y,s),e.memoizedState=nc,e=Da(null,o));else if(Xn(e),Hc(b)){if(y=b.nextSibling&&b.nextSibling.dataset,y)var L=y.dgst;y=L,o=Error(r(419)),o.stack="",o.digest=y,ga({value:o,source:null,stack:null}),e=oc(t,e,s)}else if(Zt||Ss(t,e,s,!1),y=(s&t.childLanes)!==0,Zt||y){if(y=Lt,y!==null&&(o=dd(y,s),o!==0&&o!==x.retryLane))throw x.retryLane=o,_i(t,o),Se(y,t,o),tc;Pc(b)||Ar(),e=oc(t,e,s)}else Pc(b)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,Vt=Ge(b.nextSibling),ie=e,vt=!0,Gn=null,He=!1,t!==null&&um(e,t),e=ac(e,o.children),e.flags|=4096);return e}return u?(Zn(),b=o.fallback,u=e.mode,x=t.child,L=x.sibling,o=yn(x,{mode:"hidden",children:o.children}),o.subtreeFlags=x.subtreeFlags&65011712,L!==null?b=yn(L,b):(b=Mi(b,u,s,null),b.flags|=2),b.return=e,o.return=e,o.sibling=b,e.child=o,Da(null,o),o=e.child,b=t.child.memoizedState,b===null?b=ic(s):(u=b.cachePool,u!==null?(x=Qt._currentValue,u=u.parent!==x?{parent:x,pool:x}:u):u=pm(),b={baseLanes:b.baseLanes|s,cachePool:u}),o.memoizedState=b,o.childLanes=sc(t,y,s),e.memoizedState=nc,Da(t.child,o)):(Xn(e),s=t.child,t=s.sibling,s=yn(s,{mode:"visible",children:o.children}),s.return=e,s.sibling=null,t!==null&&(y=e.deletions,y===null?(e.deletions=[t],e.flags|=16):y.push(t)),e.child=s,e.memoizedState=null,s)}function ac(t,e){return e=yr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function yr(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function oc(t,e,s){return Vi(e,t.child,null,s),t=ac(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Cp(t,e,s){t.lanes|=e;var o=t.alternate;o!==null&&(o.lanes|=e),Tu(t.return,e,s)}function rc(t,e,s,o,u,c){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:u,treeForkCount:c}:(y.isBackwards=e,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=s,y.tailMode=u,y.treeForkCount=c)}function Dp(t,e,s){var o=e.pendingProps,u=o.revealOrder,c=o.tail;o=o.children;var y=Ft.current,b=(y&2)!==0;if(b?(y=y&1|2,e.flags|=128):y&=1,J(Ft,y),ae(t,e,o,s),o=vt?ya:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Cp(t,s,e);else if(t.tag===19)Cp(t,s,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(s=e.child,u=null;s!==null;)t=s.alternate,t!==null&&sr(t)===null&&(u=s),s=s.sibling;s=u,s===null?(u=e.child,e.child=null):(u=s.sibling,s.sibling=null),rc(e,!1,u,s,c,o);break;case"backwards":case"unstable_legacy-backwards":for(s=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&sr(t)===null){e.child=u;break}t=u.sibling,u.sibling=s,s=u,u=t}rc(e,!0,s,null,c,o);break;case"together":rc(e,!1,null,null,void 0,o);break;default:e.memoizedState=null}return e.child}function xn(t,e,s){if(t!==null&&(e.dependencies=t.dependencies),$n|=e.lanes,(s&e.childLanes)===0)if(t!==null){if(Ss(t,e,s,!1),(s&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,s=yn(t,t.pendingProps),e.child=s,s.return=e;t.sibling!==null;)t=t.sibling,s=s.sibling=yn(t,t.pendingProps),s.return=e;s.sibling=null}return e.child}function lc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Jo(t)))}function X1(t,e,s){switch(e.tag){case 3:kt(e,e.stateNode.containerInfo),Fn(e,Qt,t.memoizedState.cache),Ci();break;case 27:case 5:fn(e);break;case 4:kt(e,e.stateNode.containerInfo);break;case 10:Fn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,zu(e),null;break;case 13:var o=e.memoizedState;if(o!==null)return o.dehydrated!==null?(Xn(e),e.flags|=128,null):(s&e.child.childLanes)!==0?Mp(t,e,s):(Xn(e),t=xn(t,e,s),t!==null?t.sibling:null);Xn(e);break;case 19:var u=(t.flags&128)!==0;if(o=(s&e.childLanes)!==0,o||(Ss(t,e,s,!1),o=(s&e.childLanes)!==0),u){if(o)return Dp(t,e,s);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),J(Ft,Ft.current),o)break;return null;case 22:return e.lanes=0,Tp(t,e,s,e.pendingProps);case 24:Fn(e,Qt,t.memoizedState.cache)}return xn(t,e,s)}function wp(t,e,s){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!lc(t,s)&&(e.flags&128)===0)return Zt=!1,X1(t,e,s);Zt=(t.flags&131072)!==0}else Zt=!1,vt&&(e.flags&1048576)!==0&&lm(e,ya,e.index);switch(e.lanes=0,e.tag){case 16:t:{var o=e.pendingProps;if(t=Li(e.elementType),e.type=t,typeof t=="function")du(t)?(o=Ui(t,o),e.tag=1,e=Ap(null,e,t,o,s)):(e.tag=0,e=ec(null,e,t,o,s));else{if(t!=null){var u=t.$$typeof;if(u===P){e.tag=11,e=vp(null,e,t,o,s);break t}else if(u===G){e.tag=14,e=Sp(null,e,t,o,s);break t}}throw e=Ut(t)||t,Error(r(306,e,""))}}return e;case 0:return ec(t,e,e.type,e.pendingProps,s);case 1:return o=e.type,u=Ui(o,e.pendingProps),Ap(t,e,o,u,s);case 3:t:{if(kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));o=e.pendingProps;var c=e.memoizedState;u=c.element,Cu(t,e),Ra(e,o,null,s);var y=e.memoizedState;if(o=y.cache,Fn(e,Qt,o),o!==c.cache&&xu(e,[Qt],s,!0),Ea(),o=y.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:y.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=_p(t,e,o,s);break t}else if(o!==u){u=je(Error(r(424)),e),ga(u),e=_p(t,e,o,s);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Vt=Ge(t.firstChild),ie=e,vt=!0,Gn=null,He=!0,s=Tm(e,null,o,s),e.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ci(),o===u){e=xn(t,e,s);break t}ae(t,e,o,s)}e=e.child}return e;case 26:return pr(t,e),t===null?(s=qy(e.type,null,e.pendingProps,null))?e.memoizedState=s:vt||(s=e.type,t=e.pendingProps,o=Lr(rt.current).createElement(s),o[ne]=e,o[de]=t,oe(o,s,t),te(o),e.stateNode=o):e.memoizedState=qy(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return fn(e),t===null&&vt&&(o=e.stateNode=Ny(e.type,e.pendingProps,rt.current),ie=e,He=!0,u=Vt,ii(e.type)?(qc=u,Vt=Ge(o.firstChild)):Vt=u),ae(t,e,e.pendingProps.children,s),pr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((u=o=Vt)&&(o=RT(o,e.type,e.pendingProps,He),o!==null?(e.stateNode=o,ie=e,Vt=Ge(o.firstChild),He=!1,u=!0):u=!1),u||Yn(e)),fn(e),u=e.type,c=e.pendingProps,y=t!==null?t.memoizedProps:null,o=c.children,Uc(u,c)?o=null:y!==null&&Uc(u,y)&&(e.flags|=32),e.memoizedState!==null&&(u=Bu(t,e,P1,null,null,s),Fa._currentValue=u),pr(t,e),ae(t,e,o,s),e.child;case 6:return t===null&&vt&&((t=s=Vt)&&(s=AT(s,e.pendingProps,He),s!==null?(e.stateNode=s,ie=e,Vt=null,t=!0):t=!1),t||Yn(e)),null;case 13:return Mp(t,e,s);case 4:return kt(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=Vi(e,null,o,s):ae(t,e,o,s),e.child;case 11:return vp(t,e,e.type,e.pendingProps,s);case 7:return ae(t,e,e.pendingProps,s),e.child;case 8:return ae(t,e,e.pendingProps.children,s),e.child;case 12:return ae(t,e,e.pendingProps.children,s),e.child;case 10:return o=e.pendingProps,Fn(e,e.type,o.value),ae(t,e,o.children,s),e.child;case 9:return u=e.type._context,o=e.pendingProps.children,wi(e),u=se(u),o=o(u),e.flags|=1,ae(t,e,o,s),e.child;case 14:return Sp(t,e,e.type,e.pendingProps,s);case 15:return bp(t,e,e.type,e.pendingProps,s);case 19:return Dp(t,e,s);case 31:return Q1(t,e,s);case 22:return Tp(t,e,s,e.pendingProps);case 24:return wi(e),o=se(Qt),t===null?(u=Au(),u===null&&(u=Lt,c=Eu(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=s),u=c),e.memoizedState={parent:o,cache:u},Mu(e),Fn(e,Qt,u)):((t.lanes&s)!==0&&(Cu(t,e),Ra(e,null,null,s),Ea()),u=t.memoizedState,c=e.memoizedState,u.parent!==o?(u={parent:o,cache:o},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Fn(e,Qt,o)):(o=c.cache,Fn(e,Qt,o),o!==u.cache&&xu(e,[Qt],s,!0))),ae(t,e,e.pendingProps.children,s),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function En(t){t.flags|=4}function uc(t,e,s,o,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(iy())t.flags|=8192;else throw zi=tr,_u}else t.flags&=-16777217}function Op(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ky(e))if(iy())t.flags|=8192;else throw zi=tr,_u}function gr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?cd():536870912,t.lanes|=e,Os|=e)}function wa(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var s=null;e!==null;)e.alternate!==null&&(s=e),e=e.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function Bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,s=0,o=0;if(e)for(var u=t.child;u!==null;)s|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)s|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=o,t.childLanes=s,e}function Z1(t,e,s){var o=e.pendingProps;switch(gu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(e),null;case 1:return Bt(e),null;case 3:return s=e.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),e.memoizedState.cache!==o&&(e.flags|=2048),Sn(Qt),Mt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(vs(e)?En(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Su())),Bt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(En(e),c!==null?(Bt(e),Op(e,c)):(Bt(e),uc(e,u,null,o,s))):c?c!==t.memoizedState?(En(e),Bt(e),Op(e,c)):(Bt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==o&&En(e),Bt(e),uc(e,u,t,o,s)),null;case 27:if(Bn(e),s=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==o&&En(e);else{if(!o){if(e.stateNode===null)throw Error(r(166));return Bt(e),null}t=I.current,vs(e)?cm(e):(t=Ny(u,o,s),e.stateNode=t,En(e))}return Bt(e),null;case 5:if(Bn(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==o&&En(e);else{if(!o){if(e.stateNode===null)throw Error(r(166));return Bt(e),null}if(c=I.current,vs(e))cm(e);else{var y=Lr(rt.current);switch(c){case 1:c=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=y.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?c.multiple=!0:o.size&&(c.size=o.size);break;default:c=typeof o.is=="string"?y.createElement(u,{is:o.is}):y.createElement(u)}}c[ne]=e,c[de]=o;t:for(y=e.child;y!==null;){if(y.tag===5||y.tag===6)c.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break t;for(;y.sibling===null;){if(y.return===null||y.return===e)break t;y=y.return}y.sibling.return=y.return,y=y.sibling}e.stateNode=c;t:switch(oe(c,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break t;case"img":o=!0;break t;default:o=!1}o&&En(e)}}return Bt(e),uc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,s),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==o&&En(e);else{if(typeof o!="string"&&e.stateNode===null)throw Error(r(166));if(t=rt.current,vs(e)){if(t=e.stateNode,s=e.memoizedProps,o=null,u=ie,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}t[ne]=e,t=!!(t.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||My(t.nodeValue,s)),t||Yn(e,!0)}else t=Lr(t).createTextNode(o),t[ne]=e,e.stateNode=t}return Bt(e),null;case 31:if(s=e.memoizedState,t===null||t.memoizedState!==null){if(o=vs(e),s!==null){if(t===null){if(!o)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ne]=e}else Ci(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),t=!1}else s=Su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),t=!0;if(!t)return e.flags&256?(Ce(e),e):(Ce(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Bt(e),null;case 13:if(o=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=vs(e),o!==null&&o.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ne]=e}else Ci(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),u=!1}else u=Su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Ce(e),e):(Ce(e),null)}return Ce(e),(e.flags&128)!==0?(e.lanes=s,e):(s=o!==null,t=t!==null&&t.memoizedState!==null,s&&(o=e.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),c=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),c!==u&&(o.flags|=2048)),s!==t&&s&&(e.child.flags|=8192),gr(e,e.updateQueue),Bt(e),null);case 4:return Mt(),t===null&&Oc(e.stateNode.containerInfo),Bt(e),null;case 10:return Sn(e.type),Bt(e),null;case 19:if(F(Ft),o=e.memoizedState,o===null)return Bt(e),null;if(u=(e.flags&128)!==0,c=o.rendering,c===null)if(u)wa(o,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=sr(t),c!==null){for(e.flags|=128,wa(o,!1),t=c.updateQueue,e.updateQueue=t,gr(e,t),e.subtreeFlags=0,t=s,s=e.child;s!==null;)am(s,t),s=s.sibling;return J(Ft,Ft.current&1|2),vt&&gn(e,o.treeForkCount),e.child}t=t.sibling}o.tail!==null&&xt()>xr&&(e.flags|=128,u=!0,wa(o,!1),e.lanes=4194304)}else{if(!u)if(t=sr(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,gr(e,t),wa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!vt)return Bt(e),null}else 2*xt()-o.renderingStartTime>xr&&s!==536870912&&(e.flags|=128,u=!0,wa(o,!1),e.lanes=4194304);o.isBackwards?(c.sibling=e.child,e.child=c):(t=o.last,t!==null?t.sibling=c:e.child=c,o.last=c)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xt(),t.sibling=null,s=Ft.current,J(Ft,u?s&1|2:s&1),vt&&gn(e,o.treeForkCount),t):(Bt(e),null);case 22:case 23:return Ce(e),Lu(),o=e.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(e.flags|=8192):o&&(e.flags|=8192),o?(s&536870912)!==0&&(e.flags&128)===0&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),s=e.updateQueue,s!==null&&gr(e,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),o=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),o!==s&&(e.flags|=2048),t!==null&&F(Oi),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),Sn(Qt),Bt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function J1(t,e){switch(gu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Sn(Qt),Mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Bn(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(r(340));Ci()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ce(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ci()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return F(Ft),null;case 4:return Mt(),null;case 10:return Sn(e.type),null;case 22:case 23:return Ce(e),Lu(),t!==null&&F(Oi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Sn(Qt),null;case 25:return null;default:return null}}function Lp(t,e){switch(gu(e),e.tag){case 3:Sn(Qt),Mt();break;case 26:case 27:case 5:Bn(e);break;case 4:Mt();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:F(Ft);break;case 10:Sn(e.type);break;case 22:case 23:Ce(e),Lu(),t!==null&&F(Oi);break;case 24:Sn(Qt)}}function Oa(t,e){try{var s=e.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&t)===t){o=void 0;var c=s.create,y=s.inst;o=c(),y.destroy=o}s=s.next}while(s!==u)}}catch(b){At(e,e.return,b)}}function Jn(t,e,s){try{var o=e.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var c=u.next;o=c;do{if((o.tag&t)===t){var y=o.inst,b=y.destroy;if(b!==void 0){y.destroy=void 0,u=e;var x=s,L=b;try{L()}catch(N){At(u,x,N)}}}o=o.next}while(o!==c)}}catch(N){At(e,e.return,N)}}function zp(t){var e=t.updateQueue;if(e!==null){var s=t.stateNode;try{Em(e,s)}catch(o){At(t,t.return,o)}}}function Vp(t,e,s){s.props=Ui(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(o){At(t,e,o)}}function La(t,e){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof s=="function"?t.refCleanup=s(o):s.current=o}}catch(u){At(t,e,u)}}function on(t,e){var s=t.ref,o=t.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(u){At(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){At(t,e,u)}else s.current=null}function Bp(t){var e=t.type,s=t.memoizedProps,o=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break t;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(u){At(t,t.return,u)}}function cc(t,e,s){try{var o=t.stateNode;vT(o,t.type,s,e),o[de]=e}catch(u){At(t,t.return,u)}}function Up(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ii(t.type)||t.tag===4}function fc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Up(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ii(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hc(t,e,s){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,e):(e=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,e.appendChild(t),s=s._reactRootContainer,s!=null||e.onclick!==null||(e.onclick=mn));else if(o!==4&&(o===27&&ii(t.type)&&(s=t.stateNode,e=null),t=t.child,t!==null))for(hc(t,e,s),t=t.sibling;t!==null;)hc(t,e,s),t=t.sibling}function vr(t,e,s){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?s.insertBefore(t,e):s.appendChild(t);else if(o!==4&&(o===27&&ii(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(vr(t,e,s),t=t.sibling;t!==null;)vr(t,e,s),t=t.sibling}function jp(t){var e=t.stateNode,s=t.memoizedProps;try{for(var o=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);oe(e,o,s),e[ne]=t,e[de]=s}catch(c){At(t,t.return,c)}}var Rn=!1,Jt=!1,dc=!1,Np=typeof WeakSet=="function"?WeakSet:Set,ee=null;function I1(t,e){if(t=t.containerInfo,Vc=Pr,t=Jd(t),ou(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else t:{s=(s=t.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var u=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break t}var y=0,b=-1,x=-1,L=0,N=0,Y=t,z=null;e:for(;;){for(var B;Y!==s||u!==0&&Y.nodeType!==3||(b=y+u),Y!==c||o!==0&&Y.nodeType!==3||(x=y+o),Y.nodeType===3&&(y+=Y.nodeValue.length),(B=Y.firstChild)!==null;)z=Y,Y=B;for(;;){if(Y===t)break e;if(z===s&&++L===u&&(b=y),z===c&&++N===o&&(x=y),(B=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=B}s=b===-1||x===-1?null:{start:b,end:x}}else s=null}s=s||{start:0,end:0}}else s=null;for(Bc={focusedElem:t,selectionRange:s},Pr=!1,ee=e;ee!==null;)if(e=ee,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ee=t;else for(;ee!==null;){switch(e=ee,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(s=0;s<t.length;s++)u=t[s],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,s=e,u=c.memoizedProps,c=c.memoizedState,o=s.stateNode;try{var $=Ui(s.type,u);t=o.getSnapshotBeforeUpdate($,c),o.__reactInternalSnapshotBeforeUpdate=t}catch(it){At(s,s.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,s=t.nodeType,s===9)Nc(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Nc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ee=t;break}ee=e.return}}function Pp(t,e,s){var o=s.flags;switch(s.tag){case 0:case 11:case 15:_n(t,s),o&4&&Oa(5,s);break;case 1:if(_n(t,s),o&4)if(t=s.stateNode,e===null)try{t.componentDidMount()}catch(y){At(s,s.return,y)}else{var u=Ui(s.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(y){At(s,s.return,y)}}o&64&&zp(s),o&512&&La(s,s.return);break;case 3:if(_n(t,s),o&64&&(t=s.updateQueue,t!==null)){if(e=null,s.child!==null)switch(s.child.tag){case 27:case 5:e=s.child.stateNode;break;case 1:e=s.child.stateNode}try{Em(t,e)}catch(y){At(s,s.return,y)}}break;case 27:e===null&&o&4&&jp(s);case 26:case 5:_n(t,s),e===null&&o&4&&Bp(s),o&512&&La(s,s.return);break;case 12:_n(t,s);break;case 31:_n(t,s),o&4&&Gp(t,s);break;case 13:_n(t,s),o&4&&Yp(t,s),o&64&&(t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(s=oT.bind(null,s),_T(t,s))));break;case 22:if(o=s.memoizedState!==null||Rn,!o){e=e!==null&&e.memoizedState!==null||Jt,u=Rn;var c=Jt;Rn=o,(Jt=e)&&!c?Mn(t,s,(s.subtreeFlags&8772)!==0):_n(t,s),Rn=u,Jt=c}break;case 30:break;default:_n(t,s)}}function Hp(t){var e=t.alternate;e!==null&&(t.alternate=null,Hp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Yl(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var jt=null,pe=!1;function An(t,e,s){for(s=s.child;s!==null;)qp(t,e,s),s=s.sibling}function qp(t,e,s){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(na,s)}catch{}switch(s.tag){case 26:Jt||on(s,e),An(t,e,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Jt||on(s,e);var o=jt,u=pe;ii(s.type)&&(jt=s.stateNode,pe=!1),An(t,e,s),qa(s.stateNode),jt=o,pe=u;break;case 5:Jt||on(s,e);case 6:if(o=jt,u=pe,jt=null,An(t,e,s),jt=o,pe=u,jt!==null)if(pe)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(s.stateNode)}catch(c){At(s,e,c)}else try{jt.removeChild(s.stateNode)}catch(c){At(s,e,c)}break;case 18:jt!==null&&(pe?(t=jt,zy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,s.stateNode),Ps(t)):zy(jt,s.stateNode));break;case 4:o=jt,u=pe,jt=s.stateNode.containerInfo,pe=!0,An(t,e,s),jt=o,pe=u;break;case 0:case 11:case 14:case 15:Jn(2,s,e),Jt||Jn(4,s,e),An(t,e,s);break;case 1:Jt||(on(s,e),o=s.stateNode,typeof o.componentWillUnmount=="function"&&Vp(s,e,o)),An(t,e,s);break;case 21:An(t,e,s);break;case 22:Jt=(o=Jt)||s.memoizedState!==null,An(t,e,s),Jt=o;break;default:An(t,e,s)}}function Gp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ps(t)}catch(s){At(e,e.return,s)}}}function Yp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ps(t)}catch(s){At(e,e.return,s)}}function $1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Np),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Np),e;default:throw Error(r(435,t.tag))}}function Sr(t,e){var s=$1(t);e.forEach(function(o){if(!s.has(o)){s.add(o);var u=rT.bind(null,t,o);o.then(u,u)}})}function ye(t,e){var s=e.deletions;if(s!==null)for(var o=0;o<s.length;o++){var u=s[o],c=t,y=e,b=y;t:for(;b!==null;){switch(b.tag){case 27:if(ii(b.type)){jt=b.stateNode,pe=!1;break t}break;case 5:jt=b.stateNode,pe=!1;break t;case 3:case 4:jt=b.stateNode.containerInfo,pe=!0;break t}b=b.return}if(jt===null)throw Error(r(160));qp(c,y,u),jt=null,pe=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Fp(e,t),e=e.sibling}var Ie=null;function Fp(t,e){var s=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ge(t),o&4&&(Jn(3,t,t.return),Oa(3,t),Jn(5,t,t.return));break;case 1:ye(e,t),ge(t),o&512&&(Jt||s===null||on(s,s.return)),o&64&&Rn&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?o:s.concat(o))));break;case 26:var u=Ie;if(ye(e,t),ge(t),o&512&&(Jt||s===null||on(s,s.return)),o&4){var c=s!==null?s.memoizedState:null;if(o=t.memoizedState,s===null)if(o===null)if(t.stateNode===null){t:{o=t.type,s=t.memoizedProps,u=u.ownerDocument||u;e:switch(o){case"title":c=u.getElementsByTagName("title")[0],(!c||c[aa]||c[ne]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(o),u.head.insertBefore(c,u.querySelector("head > title"))),oe(c,o,s),c[ne]=t,te(c),o=c;break t;case"link":var y=Fy("link","href",u).get(o+(s.href||""));if(y){for(var b=0;b<y.length;b++)if(c=y[b],c.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&c.getAttribute("rel")===(s.rel==null?null:s.rel)&&c.getAttribute("title")===(s.title==null?null:s.title)&&c.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){y.splice(b,1);break e}}c=u.createElement(o),oe(c,o,s),u.head.appendChild(c);break;case"meta":if(y=Fy("meta","content",u).get(o+(s.content||""))){for(b=0;b<y.length;b++)if(c=y[b],c.getAttribute("content")===(s.content==null?null:""+s.content)&&c.getAttribute("name")===(s.name==null?null:s.name)&&c.getAttribute("property")===(s.property==null?null:s.property)&&c.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&c.getAttribute("charset")===(s.charSet==null?null:s.charSet)){y.splice(b,1);break e}}c=u.createElement(o),oe(c,o,s),u.head.appendChild(c);break;default:throw Error(r(468,o))}c[ne]=t,te(c),o=c}t.stateNode=o}else Ky(u,t.type,t.stateNode);else t.stateNode=Yy(u,o,t.memoizedProps);else c!==o?(c===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):c.count--,o===null?Ky(u,t.type,t.stateNode):Yy(u,o,t.memoizedProps)):o===null&&t.stateNode!==null&&cc(t,t.memoizedProps,s.memoizedProps)}break;case 27:ye(e,t),ge(t),o&512&&(Jt||s===null||on(s,s.return)),s!==null&&o&4&&cc(t,t.memoizedProps,s.memoizedProps);break;case 5:if(ye(e,t),ge(t),o&512&&(Jt||s===null||on(s,s.return)),t.flags&32){u=t.stateNode;try{ls(u,"")}catch($){At(t,t.return,$)}}o&4&&t.stateNode!=null&&(u=t.memoizedProps,cc(t,u,s!==null?s.memoizedProps:u)),o&1024&&(dc=!0);break;case 6:if(ye(e,t),ge(t),o&4){if(t.stateNode===null)throw Error(r(162));o=t.memoizedProps,s=t.stateNode;try{s.nodeValue=o}catch($){At(t,t.return,$)}}break;case 3:if(Br=null,u=Ie,Ie=zr(e.containerInfo),ye(e,t),Ie=u,ge(t),o&4&&s!==null&&s.memoizedState.isDehydrated)try{Ps(e.containerInfo)}catch($){At(t,t.return,$)}dc&&(dc=!1,Kp(t));break;case 4:o=Ie,Ie=zr(t.stateNode.containerInfo),ye(e,t),ge(t),Ie=o;break;case 12:ye(e,t),ge(t);break;case 31:ye(e,t),ge(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Sr(t,o)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Tr=xt()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Sr(t,o)));break;case 22:u=t.memoizedState!==null;var x=s!==null&&s.memoizedState!==null,L=Rn,N=Jt;if(Rn=L||u,Jt=N||x,ye(e,t),Jt=N,Rn=L,ge(t),o&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(s===null||x||Rn||Jt||ji(t)),s=null,e=t;;){if(e.tag===5||e.tag===26){if(s===null){x=s=e;try{if(c=x.stateNode,u)y=c.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{b=x.stateNode;var Y=x.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;b.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch($){At(x,x.return,$)}}}else if(e.tag===6){if(s===null){x=e;try{x.stateNode.nodeValue=u?"":x.memoizedProps}catch($){At(x,x.return,$)}}}else if(e.tag===18){if(s===null){x=e;try{var B=x.stateNode;u?Vy(B,!0):Vy(x.stateNode,!1)}catch($){At(x,x.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;s===e&&(s=null),e=e.return}s===e&&(s=null),e.sibling.return=e.return,e=e.sibling}o&4&&(o=t.updateQueue,o!==null&&(s=o.retryQueue,s!==null&&(o.retryQueue=null,Sr(t,s))));break;case 19:ye(e,t),ge(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Sr(t,o)));break;case 30:break;case 21:break;default:ye(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var s,o=t.return;o!==null;){if(Up(o)){s=o;break}o=o.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var u=s.stateNode,c=fc(t);vr(t,c,u);break;case 5:var y=s.stateNode;s.flags&32&&(ls(y,""),s.flags&=-33);var b=fc(t);vr(t,b,y);break;case 3:case 4:var x=s.stateNode.containerInfo,L=fc(t);hc(t,L,x);break;default:throw Error(r(161))}}catch(N){At(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Kp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Kp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function _n(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Pp(t,e.alternate,e),e=e.sibling}function ji(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Jn(4,e,e.return),ji(e);break;case 1:on(e,e.return);var s=e.stateNode;typeof s.componentWillUnmount=="function"&&Vp(e,e.return,s),ji(e);break;case 27:qa(e.stateNode);case 26:case 5:on(e,e.return),ji(e);break;case 22:e.memoizedState===null&&ji(e);break;case 30:ji(e);break;default:ji(e)}t=t.sibling}}function Mn(t,e,s){for(s=s&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var o=e.alternate,u=t,c=e,y=c.flags;switch(c.tag){case 0:case 11:case 15:Mn(u,c,s),Oa(4,c);break;case 1:if(Mn(u,c,s),o=c,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(L){At(o,o.return,L)}if(o=c,u=o.updateQueue,u!==null){var b=o.stateNode;try{var x=u.shared.hiddenCallbacks;if(x!==null)for(u.shared.hiddenCallbacks=null,u=0;u<x.length;u++)xm(x[u],b)}catch(L){At(o,o.return,L)}}s&&y&64&&zp(c),La(c,c.return);break;case 27:jp(c);case 26:case 5:Mn(u,c,s),s&&o===null&&y&4&&Bp(c),La(c,c.return);break;case 12:Mn(u,c,s);break;case 31:Mn(u,c,s),s&&y&4&&Gp(u,c);break;case 13:Mn(u,c,s),s&&y&4&&Yp(u,c);break;case 22:c.memoizedState===null&&Mn(u,c,s),La(c,c.return);break;case 30:break;default:Mn(u,c,s)}e=e.sibling}}function mc(t,e){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&va(s))}function pc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&va(t))}function $e(t,e,s,o){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kp(t,e,s,o),e=e.sibling}function kp(t,e,s,o){var u=e.flags;switch(e.tag){case 0:case 11:case 15:$e(t,e,s,o),u&2048&&Oa(9,e);break;case 1:$e(t,e,s,o);break;case 3:$e(t,e,s,o),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&va(t)));break;case 12:if(u&2048){$e(t,e,s,o),t=e.stateNode;try{var c=e.memoizedProps,y=c.id,b=c.onPostCommit;typeof b=="function"&&b(y,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){At(e,e.return,x)}}else $e(t,e,s,o);break;case 31:$e(t,e,s,o);break;case 13:$e(t,e,s,o);break;case 23:break;case 22:c=e.stateNode,y=e.alternate,e.memoizedState!==null?c._visibility&2?$e(t,e,s,o):za(t,e):c._visibility&2?$e(t,e,s,o):(c._visibility|=2,Cs(t,e,s,o,(e.subtreeFlags&10256)!==0||!1)),u&2048&&mc(y,e);break;case 24:$e(t,e,s,o),u&2048&&pc(e.alternate,e);break;default:$e(t,e,s,o)}}function Cs(t,e,s,o,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,y=e,b=s,x=o,L=y.flags;switch(y.tag){case 0:case 11:case 15:Cs(c,y,b,x,u),Oa(8,y);break;case 23:break;case 22:var N=y.stateNode;y.memoizedState!==null?N._visibility&2?Cs(c,y,b,x,u):za(c,y):(N._visibility|=2,Cs(c,y,b,x,u)),u&&L&2048&&mc(y.alternate,y);break;case 24:Cs(c,y,b,x,u),u&&L&2048&&pc(y.alternate,y);break;default:Cs(c,y,b,x,u)}e=e.sibling}}function za(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var s=t,o=e,u=o.flags;switch(o.tag){case 22:za(s,o),u&2048&&mc(o.alternate,o);break;case 24:za(s,o),u&2048&&pc(o.alternate,o);break;default:za(s,o)}e=e.sibling}}var Va=8192;function Ds(t,e,s){if(t.subtreeFlags&Va)for(t=t.child;t!==null;)Qp(t,e,s),t=t.sibling}function Qp(t,e,s){switch(t.tag){case 26:Ds(t,e,s),t.flags&Va&&t.memoizedState!==null&&NT(s,Ie,t.memoizedState,t.memoizedProps);break;case 5:Ds(t,e,s);break;case 3:case 4:var o=Ie;Ie=zr(t.stateNode.containerInfo),Ds(t,e,s),Ie=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=Va,Va=16777216,Ds(t,e,s),Va=o):Ds(t,e,s));break;default:Ds(t,e,s)}}function Xp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ba(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var s=0;s<e.length;s++){var o=e[s];ee=o,Jp(o,t)}Xp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zp(t),t=t.sibling}function Zp(t){switch(t.tag){case 0:case 11:case 15:Ba(t),t.flags&2048&&Jn(9,t,t.return);break;case 3:Ba(t);break;case 12:Ba(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,br(t)):Ba(t);break;default:Ba(t)}}function br(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var s=0;s<e.length;s++){var o=e[s];ee=o,Jp(o,t)}Xp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Jn(8,e,e.return),br(e);break;case 22:s=e.stateNode,s._visibility&2&&(s._visibility&=-3,br(e));break;default:br(e)}t=t.sibling}}function Jp(t,e){for(;ee!==null;){var s=ee;switch(s.tag){case 0:case 11:case 15:Jn(8,s,e);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var o=s.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:va(s.memoizedState.cache)}if(o=s.child,o!==null)o.return=s,ee=o;else t:for(s=t;ee!==null;){o=ee;var u=o.sibling,c=o.return;if(Hp(o),o===s){ee=null;break t}if(u!==null){u.return=c,ee=u;break t}ee=c}}}var W1={getCacheForType:function(t){var e=se(Qt),s=e.data.get(t);return s===void 0&&(s=t(),e.data.set(t,s)),s},cacheSignal:function(){return se(Qt).controller.signal}},tT=typeof WeakMap=="function"?WeakMap:Map,Et=0,Lt=null,ht=null,mt=0,Rt=0,De=null,In=!1,ws=!1,yc=!1,Cn=0,Gt=0,$n=0,Ni=0,gc=0,we=0,Os=0,Ua=null,ve=null,vc=!1,Tr=0,Ip=0,xr=1/0,Er=null,Wn=null,$t=0,ti=null,Ls=null,Dn=0,Sc=0,bc=null,$p=null,ja=0,Tc=null;function Oe(){return(Et&2)!==0&&mt!==0?mt&-mt:j.T!==null?Mc():md()}function Wp(){if(we===0)if((mt&536870912)===0||vt){var t=Oo;Oo<<=1,(Oo&3932160)===0&&(Oo=262144),we=t}else we=536870912;return t=Me.current,t!==null&&(t.flags|=32),we}function Se(t,e,s){(t===Lt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(zs(t,0),ei(t,mt,we,!1)),sa(t,s),((Et&2)===0||t!==Lt)&&(t===Lt&&((Et&2)===0&&(Ni|=s),Gt===4&&ei(t,mt,we,!1)),rn(t))}function ty(t,e,s){if((Et&6)!==0)throw Error(r(327));var o=!s&&(e&127)===0&&(e&t.expiredLanes)===0||ia(t,e),u=o?iT(t,e):Ec(t,e,!0),c=o;do{if(u===0){ws&&!o&&ei(t,e,0,!1);break}else{if(s=t.current.alternate,c&&!eT(s)){u=Ec(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var y=0;else y=t.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){e=y;t:{var b=t;u=Ua;var x=b.current.memoizedState.isDehydrated;if(x&&(zs(b,y).flags|=256),y=Ec(b,y,!1),y!==2){if(yc&&!x){b.errorRecoveryDisabledLanes|=c,Ni|=c,u=4;break t}c=ve,ve=u,c!==null&&(ve===null?ve=c:ve.push.apply(ve,c))}u=y}if(c=!1,u!==2)continue}}if(u===1){zs(t,0),ei(t,e,0,!0);break}t:{switch(o=t,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ei(o,e,we,!In);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Tr+300-xt(),10<u)){if(ei(o,e,we,!In),zo(o,0,!0)!==0)break t;Dn=e,o.timeoutHandle=Oy(ey.bind(null,o,s,ve,Er,vc,e,we,Ni,Os,In,c,"Throttled",-0,0),u);break t}ey(o,s,ve,Er,vc,e,we,Ni,Os,In,c,null,-0,0)}}break}while(!0);rn(t)}function ey(t,e,s,o,u,c,y,b,x,L,N,Y,z,B){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},Qp(e,c,Y);var $=(c&62914560)===c?Tr-xt():(c&4194048)===c?Ip-xt():0;if($=PT(Y,$),$!==null){Dn=c,t.cancelPendingCommit=$(uy.bind(null,t,e,c,s,o,u,y,b,x,N,Y,null,z,B)),ei(t,c,y,!L);return}}uy(t,e,c,s,o,u,y,b,x)}function eT(t){for(var e=t;;){var s=e.tag;if((s===0||s===11||s===15)&&e.flags&16384&&(s=e.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var o=0;o<s.length;o++){var u=s[o],c=u.getSnapshot;u=u.value;try{if(!Ae(c(),u))return!1}catch{return!1}}if(s=e.child,e.subtreeFlags&16384&&s!==null)s.return=e,e=s;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ei(t,e,s,o){e&=~gc,e&=~Ni,t.suspendedLanes|=e,t.pingedLanes&=~e,o&&(t.warmLanes|=e),o=t.expirationTimes;for(var u=e;0<u;){var c=31-Re(u),y=1<<c;o[c]=-1,u&=~y}s!==0&&fd(t,s,e)}function Rr(){return(Et&6)===0?(Na(0),!1):!0}function xc(){if(ht!==null){if(Rt===0)var t=ht.return;else t=ht,vn=Di=null,Nu(t),Es=null,ba=0,t=ht;for(;t!==null;)Lp(t.alternate,t),t=t.return;ht=null}}function zs(t,e){var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,TT(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),Dn=0,xc(),Lt=t,ht=s=yn(t.current,null),mt=e,Rt=0,De=null,In=!1,ws=ia(t,e),yc=!1,Os=we=gc=Ni=$n=Gt=0,ve=Ua=null,vc=!1,(e&8)!==0&&(e|=e&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=e;0<o;){var u=31-Re(o),c=1<<u;e|=t[u],o&=~c}return Cn=e,Ko(),s}function ny(t,e){ut=null,j.H=Ca,e===xs||e===Wo?(e=vm(),Rt=3):e===_u?(e=vm(),Rt=4):Rt=e===tc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,ht===null&&(Gt=1,dr(t,je(e,t.current)))}function iy(){var t=Me.current;return t===null?!0:(mt&4194048)===mt?qe===null:(mt&62914560)===mt||(mt&536870912)!==0?t===qe:!1}function sy(){var t=j.H;return j.H=Ca,t===null?Ca:t}function ay(){var t=j.A;return j.A=W1,t}function Ar(){Gt=4,In||(mt&4194048)!==mt&&Me.current!==null||(ws=!0),($n&134217727)===0&&(Ni&134217727)===0||Lt===null||ei(Lt,mt,we,!1)}function Ec(t,e,s){var o=Et;Et|=2;var u=sy(),c=ay();(Lt!==t||mt!==e)&&(Er=null,zs(t,e)),e=!1;var y=Gt;t:do try{if(Rt!==0&&ht!==null){var b=ht,x=De;switch(Rt){case 8:xc(),y=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var L=Rt;if(Rt=0,De=null,Vs(t,b,x,L),s&&ws){y=0;break t}break;default:L=Rt,Rt=0,De=null,Vs(t,b,x,L)}}nT(),y=Gt;break}catch(N){ny(t,N)}while(!0);return e&&t.shellSuspendCounter++,vn=Di=null,Et=o,j.H=u,j.A=c,ht===null&&(Lt=null,mt=0,Ko()),y}function nT(){for(;ht!==null;)oy(ht)}function iT(t,e){var s=Et;Et|=2;var o=sy(),u=ay();Lt!==t||mt!==e?(Er=null,xr=xt()+500,zs(t,e)):ws=ia(t,e);t:do try{if(Rt!==0&&ht!==null){e=ht;var c=De;e:switch(Rt){case 1:Rt=0,De=null,Vs(t,e,c,1);break;case 2:case 9:if(ym(c)){Rt=0,De=null,ry(e);break}e=function(){Rt!==2&&Rt!==9||Lt!==t||(Rt=7),rn(t)},c.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:ym(c)?(Rt=0,De=null,ry(e)):(Rt=0,De=null,Vs(t,e,c,7));break;case 5:var y=null;switch(ht.tag){case 26:y=ht.memoizedState;case 5:case 27:var b=ht;if(y?ky(y):b.stateNode.complete){Rt=0,De=null;var x=b.sibling;if(x!==null)ht=x;else{var L=b.return;L!==null?(ht=L,_r(L)):ht=null}break e}}Rt=0,De=null,Vs(t,e,c,5);break;case 6:Rt=0,De=null,Vs(t,e,c,6);break;case 8:xc(),Gt=6;break t;default:throw Error(r(462))}}sT();break}catch(N){ny(t,N)}while(!0);return vn=Di=null,j.H=o,j.A=u,Et=s,ht!==null?0:(Lt=null,mt=0,Ko(),Gt)}function sT(){for(;ht!==null&&!Co();)oy(ht)}function oy(t){var e=wp(t.alternate,t,Cn);t.memoizedProps=t.pendingProps,e===null?_r(t):ht=e}function ry(t){var e=t,s=e.alternate;switch(e.tag){case 15:case 0:e=Rp(s,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=Rp(s,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Nu(e);default:Lp(s,e),e=ht=am(e,Cn),e=wp(s,e,Cn)}t.memoizedProps=t.pendingProps,e===null?_r(t):ht=e}function Vs(t,e,s,o){vn=Di=null,Nu(e),Es=null,ba=0;var u=e.return;try{if(k1(t,u,e,s,mt)){Gt=1,dr(t,je(s,t.current)),ht=null;return}}catch(c){if(u!==null)throw ht=u,c;Gt=1,dr(t,je(s,t.current)),ht=null;return}e.flags&32768?(vt||o===1?t=!0:ws||(mt&536870912)!==0?t=!1:(In=t=!0,(o===2||o===9||o===3||o===6)&&(o=Me.current,o!==null&&o.tag===13&&(o.flags|=16384))),ly(e,t)):_r(e)}function _r(t){var e=t;do{if((e.flags&32768)!==0){ly(e,In);return}t=e.return;var s=Z1(e.alternate,e,Cn);if(s!==null){ht=s;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);Gt===0&&(Gt=5)}function ly(t,e){do{var s=J1(t.alternate,t);if(s!==null){s.flags&=32767,ht=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=s}while(t!==null);Gt=6,ht=null}function uy(t,e,s,o,u,c,y,b,x){t.cancelPendingCommit=null;do Mr();while($t!==0);if((Et&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=fu,jb(t,s,c,y,b,x),t===Lt&&(ht=Lt=null,mt=0),Ls=e,ti=t,Dn=s,Sc=c,bc=u,$p=o,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,lT(Do,function(){return my(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||o){o=j.T,j.T=null,u=Q.p,Q.p=2,y=Et,Et|=4;try{I1(t,e,s)}finally{Et=y,Q.p=u,j.T=o}}$t=1,cy(),fy(),hy()}}function cy(){if($t===1){$t=0;var t=ti,e=Ls,s=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||s){s=j.T,j.T=null;var o=Q.p;Q.p=2;var u=Et;Et|=4;try{Fp(e,t);var c=Bc,y=Jd(t.containerInfo),b=c.focusedElem,x=c.selectionRange;if(y!==b&&b&&b.ownerDocument&&Zd(b.ownerDocument.documentElement,b)){if(x!==null&&ou(b)){var L=x.start,N=x.end;if(N===void 0&&(N=L),"selectionStart"in b)b.selectionStart=L,b.selectionEnd=Math.min(N,b.value.length);else{var Y=b.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var B=z.getSelection(),$=b.textContent.length,it=Math.min(x.start,$),Ot=x.end===void 0?it:Math.min(x.end,$);!B.extend&&it>Ot&&(y=Ot,Ot=it,it=y);var D=Xd(b,it),R=Xd(b,Ot);if(D&&R&&(B.rangeCount!==1||B.anchorNode!==D.node||B.anchorOffset!==D.offset||B.focusNode!==R.node||B.focusOffset!==R.offset)){var O=Y.createRange();O.setStart(D.node,D.offset),B.removeAllRanges(),it>Ot?(B.addRange(O),B.extend(R.node,R.offset)):(O.setEnd(R.node,R.offset),B.addRange(O))}}}}for(Y=[],B=b;B=B.parentNode;)B.nodeType===1&&Y.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Y.length;b++){var q=Y[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Pr=!!Vc,Bc=Vc=null}finally{Et=u,Q.p=o,j.T=s}}t.current=e,$t=2}}function fy(){if($t===2){$t=0;var t=ti,e=Ls,s=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||s){s=j.T,j.T=null;var o=Q.p;Q.p=2;var u=Et;Et|=4;try{Pp(t,e.alternate,e)}finally{Et=u,Q.p=o,j.T=s}}$t=3}}function hy(){if($t===4||$t===3){$t=0,Ct();var t=ti,e=Ls,s=Dn,o=$p;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,Ls=ti=null,dy(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Wn=null),ql(s),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(na,e,void 0,(e.current.flags&128)===128)}catch{}if(o!==null){e=j.T,u=Q.p,Q.p=2,j.T=null;try{for(var c=t.onRecoverableError,y=0;y<o.length;y++){var b=o[y];c(b.value,{componentStack:b.stack})}}finally{j.T=e,Q.p=u}}(Dn&3)!==0&&Mr(),rn(t),u=t.pendingLanes,(s&261930)!==0&&(u&42)!==0?t===Tc?ja++:(ja=0,Tc=t):ja=0,Na(0)}}function dy(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,va(e)))}function Mr(){return cy(),fy(),hy(),my()}function my(){if($t!==5)return!1;var t=ti,e=Sc;Sc=0;var s=ql(Dn),o=j.T,u=Q.p;try{Q.p=32>s?32:s,j.T=null,s=bc,bc=null;var c=ti,y=Dn;if($t=0,Ls=ti=null,Dn=0,(Et&6)!==0)throw Error(r(331));var b=Et;if(Et|=4,Zp(c.current),kp(c,c.current,y,s),Et=b,Na(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(na,c)}catch{}return!0}finally{Q.p=u,j.T=o,dy(t,e)}}function py(t,e,s){e=je(s,e),e=Wu(t.stateNode,e,2),t=Qn(t,e,2),t!==null&&(sa(t,2),rn(t))}function At(t,e,s){if(t.tag===3)py(t,t,s);else for(;e!==null;){if(e.tag===3){py(e,t,s);break}else if(e.tag===1){var o=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Wn===null||!Wn.has(o))){t=je(s,t),s=yp(2),o=Qn(e,s,2),o!==null&&(gp(s,o,e,t),sa(o,2),rn(o));break}}e=e.return}}function Rc(t,e,s){var o=t.pingCache;if(o===null){o=t.pingCache=new tT;var u=new Set;o.set(e,u)}else u=o.get(e),u===void 0&&(u=new Set,o.set(e,u));u.has(s)||(yc=!0,u.add(s),t=aT.bind(null,t,e,s),e.then(t,t))}function aT(t,e,s){var o=t.pingCache;o!==null&&o.delete(e),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,Lt===t&&(mt&s)===s&&(Gt===4||Gt===3&&(mt&62914560)===mt&&300>xt()-Tr?(Et&2)===0&&zs(t,0):gc|=s,Os===mt&&(Os=0)),rn(t)}function yy(t,e){e===0&&(e=cd()),t=_i(t,e),t!==null&&(sa(t,e),rn(t))}function oT(t){var e=t.memoizedState,s=0;e!==null&&(s=e.retryLane),yy(t,s)}function rT(t,e){var s=0;switch(t.tag){case 31:case 13:var o=t.stateNode,u=t.memoizedState;u!==null&&(s=u.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(e),yy(t,s)}function lT(t,e){return jn(t,e)}var Cr=null,Bs=null,Ac=!1,Dr=!1,_c=!1,ni=0;function rn(t){t!==Bs&&t.next===null&&(Bs===null?Cr=Bs=t:Bs=Bs.next=t),Dr=!0,Ac||(Ac=!0,cT())}function Na(t,e){if(!_c&&Dr){_c=!0;do for(var s=!1,o=Cr;o!==null;){if(t!==0){var u=o.pendingLanes;if(u===0)var c=0;else{var y=o.suspendedLanes,b=o.pingedLanes;c=(1<<31-Re(42|t)+1)-1,c&=u&~(y&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(s=!0,by(o,c))}else c=mt,c=zo(o,o===Lt?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(c&3)===0||ia(o,c)||(s=!0,by(o,c));o=o.next}while(s);_c=!1}}function uT(){gy()}function gy(){Dr=Ac=!1;var t=0;ni!==0&&bT()&&(t=ni);for(var e=xt(),s=null,o=Cr;o!==null;){var u=o.next,c=vy(o,e);c===0?(o.next=null,s===null?Cr=u:s.next=u,u===null&&(Bs=s)):(s=o,(t!==0||(c&3)!==0)&&(Dr=!0)),o=u}$t!==0&&$t!==5||Na(t),ni!==0&&(ni=0)}function vy(t,e){for(var s=t.suspendedLanes,o=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var y=31-Re(c),b=1<<y,x=u[y];x===-1?((b&s)===0||(b&o)!==0)&&(u[y]=Ub(b,e)):x<=e&&(t.expiredLanes|=b),c&=~b}if(e=Lt,s=mt,s=zo(t,t===e?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,s===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&es(o),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||ia(t,s)){if(e=s&-s,e===t.callbackPriority)return e;switch(o!==null&&es(o),ql(s)){case 2:case 8:s=ld;break;case 32:s=Do;break;case 268435456:s=ud;break;default:s=Do}return o=Sy.bind(null,t),s=jn(s,o),t.callbackPriority=e,t.callbackNode=s,e}return o!==null&&o!==null&&es(o),t.callbackPriority=2,t.callbackNode=null,2}function Sy(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var s=t.callbackNode;if(Mr()&&t.callbackNode!==s)return null;var o=mt;return o=zo(t,t===Lt?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(ty(t,o,e),vy(t,xt()),t.callbackNode!=null&&t.callbackNode===s?Sy.bind(null,t):null)}function by(t,e){if(Mr())return null;ty(t,e,!0)}function cT(){xT(function(){(Et&6)!==0?jn(ea,uT):gy()})}function Mc(){if(ni===0){var t=bs;t===0&&(t=wo,wo<<=1,(wo&261888)===0&&(wo=256)),ni=t}return ni}function Ty(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:jo(""+t)}function xy(t,e){var s=e.ownerDocument.createElement("input");return s.name=e.name,s.value=e.value,t.id&&s.setAttribute("form",t.id),e.parentNode.insertBefore(s,e),t=new FormData(t),s.parentNode.removeChild(s),t}function fT(t,e,s,o,u){if(e==="submit"&&s&&s.stateNode===u){var c=Ty((u[de]||null).action),y=o.submitter;y&&(e=(e=y[de]||null)?Ty(e.formAction):y.getAttribute("formAction"),e!==null&&(c=e,y=null));var b=new qo("action","action",null,o,u);t.push({event:b,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ni!==0){var x=y?xy(u,y):new FormData(u);Qu(s,{pending:!0,data:x,method:u.method,action:c},null,x)}}else typeof c=="function"&&(b.preventDefault(),x=y?xy(u,y):new FormData(u),Qu(s,{pending:!0,data:x,method:u.method,action:c},c,x))},currentTarget:u}]})}}for(var Cc=0;Cc<cu.length;Cc++){var Dc=cu[Cc],hT=Dc.toLowerCase(),dT=Dc[0].toUpperCase()+Dc.slice(1);Je(hT,"on"+dT)}Je(Wd,"onAnimationEnd"),Je(tm,"onAnimationIteration"),Je(em,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(D1,"onTransitionRun"),Je(w1,"onTransitionStart"),Je(O1,"onTransitionCancel"),Je(nm,"onTransitionEnd"),os("onMouseEnter",["mouseout","mouseover"]),os("onMouseLeave",["mouseout","mouseover"]),os("onPointerEnter",["pointerout","pointerover"]),os("onPointerLeave",["pointerout","pointerover"]),xi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xi("onBeforeInput",["compositionend","keypress","textInput","paste"]),xi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pa="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(" "),mT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pa));function Ey(t,e){e=(e&4)!==0;for(var s=0;s<t.length;s++){var o=t[s],u=o.event;o=o.listeners;t:{var c=void 0;if(e)for(var y=o.length-1;0<=y;y--){var b=o[y],x=b.instance,L=b.currentTarget;if(b=b.listener,x!==c&&u.isPropagationStopped())break t;c=b,u.currentTarget=L;try{c(u)}catch(N){Fo(N)}u.currentTarget=null,c=x}else for(y=0;y<o.length;y++){if(b=o[y],x=b.instance,L=b.currentTarget,b=b.listener,x!==c&&u.isPropagationStopped())break t;c=b,u.currentTarget=L;try{c(u)}catch(N){Fo(N)}u.currentTarget=null,c=x}}}}function dt(t,e){var s=e[Gl];s===void 0&&(s=e[Gl]=new Set);var o=t+"__bubble";s.has(o)||(Ry(e,t,2,!1),s.add(o))}function wc(t,e,s){var o=0;e&&(o|=4),Ry(s,t,o,e)}var wr="_reactListening"+Math.random().toString(36).slice(2);function Oc(t){if(!t[wr]){t[wr]=!0,gd.forEach(function(s){s!=="selectionchange"&&(mT.has(s)||wc(s,!1,t),wc(s,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[wr]||(e[wr]=!0,wc("selectionchange",!1,e))}}function Ry(t,e,s,o){switch(Wy(e)){case 2:var u=GT;break;case 8:u=YT;break;default:u=kc}s=u.bind(null,e,s,t),u=void 0,!Il||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),o?u!==void 0?t.addEventListener(e,s,{capture:!0,passive:u}):t.addEventListener(e,s,!0):u!==void 0?t.addEventListener(e,s,{passive:u}):t.addEventListener(e,s,!1)}function Lc(t,e,s,o,u){var c=o;if((e&1)===0&&(e&2)===0&&o!==null)t:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var b=o.stateNode.containerInfo;if(b===u)break;if(y===4)for(y=o.return;y!==null;){var x=y.tag;if((x===3||x===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;b!==null;){if(y=is(b),y===null)return;if(x=y.tag,x===5||x===6||x===26||x===27){o=c=y;continue t}b=b.parentNode}}o=o.return}Dd(function(){var L=c,N=Zl(s),Y=[];t:{var z=im.get(t);if(z!==void 0){var B=qo,$=t;switch(t){case"keypress":if(Po(s)===0)break t;case"keydown":case"keyup":B=r1;break;case"focusin":$="focus",B=eu;break;case"focusout":$="blur",B=eu;break;case"beforeblur":case"afterblur":B=eu;break;case"click":if(s.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Zb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=c1;break;case Wd:case tm:case em:B=$b;break;case nm:B=h1;break;case"scroll":case"scrollend":B=Qb;break;case"wheel":B=m1;break;case"copy":case"cut":case"paste":B=t1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Vd;break;case"toggle":case"beforetoggle":B=y1}var it=(e&4)!==0,Ot=!it&&(t==="scroll"||t==="scrollend"),D=it?z!==null?z+"Capture":null:z;it=[];for(var R=L,O;R!==null;){var q=R;if(O=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||O===null||D===null||(q=ra(R,D),q!=null&&it.push(Ha(R,q,O))),Ot)break;R=R.return}0<it.length&&(z=new B(z,$,null,s,N),Y.push({event:z,listeners:it}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",z&&s!==Xl&&($=s.relatedTarget||s.fromElement)&&(is($)||$[ns]))break t;if((B||z)&&(z=N.window===N?N:(z=N.ownerDocument)?z.defaultView||z.parentWindow:window,B?($=s.relatedTarget||s.toElement,B=L,$=$?is($):null,$!==null&&(Ot=f($),it=$.tag,$!==Ot||it!==5&&it!==27&&it!==6)&&($=null)):(B=null,$=L),B!==$)){if(it=Ld,q="onMouseLeave",D="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(it=Vd,q="onPointerLeave",D="onPointerEnter",R="pointer"),Ot=B==null?z:oa(B),O=$==null?z:oa($),z=new it(q,R+"leave",B,s,N),z.target=Ot,z.relatedTarget=O,q=null,is(N)===L&&(it=new it(D,R+"enter",$,s,N),it.target=O,it.relatedTarget=Ot,q=it),Ot=q,B&&$)e:{for(it=pT,D=B,R=$,O=0,q=D;q;q=it(q))O++;q=0;for(var et=R;et;et=it(et))q++;for(;0<O-q;)D=it(D),O--;for(;0<q-O;)R=it(R),q--;for(;O--;){if(D===R||R!==null&&D===R.alternate){it=D;break e}D=it(D),R=it(R)}it=null}else it=null;B!==null&&Ay(Y,z,B,it,!1),$!==null&&Ot!==null&&Ay(Y,Ot,$,it,!0)}}t:{if(z=L?oa(L):window,B=z.nodeName&&z.nodeName.toLowerCase(),B==="select"||B==="input"&&z.type==="file")var St=Gd;else if(Hd(z))if(Yd)St=_1;else{St=R1;var tt=E1}else B=z.nodeName,!B||B.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?L&&Ql(L.elementType)&&(St=Gd):St=A1;if(St&&(St=St(t,L))){qd(Y,St,s,N);break t}tt&&tt(t,z,L),t==="focusout"&&L&&z.type==="number"&&L.memoizedProps.value!=null&&kl(z,"number",z.value)}switch(tt=L?oa(L):window,t){case"focusin":(Hd(tt)||tt.contentEditable==="true")&&(hs=tt,ru=L,pa=null);break;case"focusout":pa=ru=hs=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,Id(Y,s,N);break;case"selectionchange":if(C1)break;case"keydown":case"keyup":Id(Y,s,N)}var ct;if(iu)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else fs?Nd(t,s)&&(pt="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(pt="onCompositionStart");pt&&(Bd&&s.locale!=="ko"&&(fs||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&fs&&(ct=wd()):(Hn=N,$l="value"in Hn?Hn.value:Hn.textContent,fs=!0)),tt=Or(L,pt),0<tt.length&&(pt=new zd(pt,t,null,s,N),Y.push({event:pt,listeners:tt}),ct?pt.data=ct:(ct=Pd(s),ct!==null&&(pt.data=ct)))),(ct=v1?S1(t,s):b1(t,s))&&(pt=Or(L,"onBeforeInput"),0<pt.length&&(tt=new zd("onBeforeInput","beforeinput",null,s,N),Y.push({event:tt,listeners:pt}),tt.data=ct)),fT(Y,t,L,s,N)}Ey(Y,e)})}function Ha(t,e,s){return{instance:t,listener:e,currentTarget:s}}function Or(t,e){for(var s=e+"Capture",o=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=ra(t,s),u!=null&&o.unshift(Ha(t,u,c)),u=ra(t,e),u!=null&&o.push(Ha(t,u,c))),t.tag===3)return o;t=t.return}return[]}function pT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ay(t,e,s,o,u){for(var c=e._reactName,y=[];s!==null&&s!==o;){var b=s,x=b.alternate,L=b.stateNode;if(b=b.tag,x!==null&&x===o)break;b!==5&&b!==26&&b!==27||L===null||(x=L,u?(L=ra(s,c),L!=null&&y.unshift(Ha(s,L,x))):u||(L=ra(s,c),L!=null&&y.push(Ha(s,L,x)))),s=s.return}y.length!==0&&t.push({event:e,listeners:y})}var yT=/\r\n?/g,gT=/\u0000|\uFFFD/g;function _y(t){return(typeof t=="string"?t:""+t).replace(yT,`
10
+ `).replace(gT,"")}function My(t,e){return e=_y(e),_y(t)===e}function wt(t,e,s,o,u,c){switch(s){case"children":typeof o=="string"?e==="body"||e==="textarea"&&o===""||ls(t,o):(typeof o=="number"||typeof o=="bigint")&&e!=="body"&&ls(t,""+o);break;case"className":Bo(t,"class",o);break;case"tabIndex":Bo(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Bo(t,s,o);break;case"style":Md(t,o,c);break;case"data":if(e!=="object"){Bo(t,"data",o);break}case"src":case"href":if(o===""&&(e!=="a"||s!=="href")){t.removeAttribute(s);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(s);break}o=jo(""+o),t.setAttribute(s,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(s==="formAction"?(e!=="input"&&wt(t,e,"name",u.name,u,null),wt(t,e,"formEncType",u.formEncType,u,null),wt(t,e,"formMethod",u.formMethod,u,null),wt(t,e,"formTarget",u.formTarget,u,null)):(wt(t,e,"encType",u.encType,u,null),wt(t,e,"method",u.method,u,null),wt(t,e,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(s);break}o=jo(""+o),t.setAttribute(s,o);break;case"onClick":o!=null&&(t.onclick=mn);break;case"onScroll":o!=null&&dt("scroll",t);break;case"onScrollEnd":o!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}s=jo(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(s,""+o):t.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":o===!0?t.setAttribute(s,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(s,o):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(s,o):t.removeAttribute(s);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(s):t.setAttribute(s,o);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Vo(t,"popover",o);break;case"xlinkActuate":dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":dn(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":dn(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":dn(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":dn(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Vo(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Kb.get(s)||s,Vo(t,s,o))}}function zc(t,e,s,o,u,c){switch(s){case"style":Md(t,o,c);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"children":typeof o=="string"?ls(t,o):(typeof o=="number"||typeof o=="bigint")&&ls(t,""+o);break;case"onScroll":o!=null&&dt("scroll",t);break;case"onScrollEnd":o!=null&&dt("scrollend",t);break;case"onClick":o!=null&&(t.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vd.hasOwnProperty(s))t:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),e=s.slice(2,u?s.length-7:void 0),c=t[de]||null,c=c!=null?c[s]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof o=="function")){typeof c!="function"&&c!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(e,o,u);break t}s in t?t[s]=o:o===!0?t.setAttribute(s,""):Vo(t,s,o)}}}function oe(t,e,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var o=!1,u=!1,c;for(c in s)if(s.hasOwnProperty(c)){var y=s[c];if(y!=null)switch(c){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:wt(t,e,c,y,s,null)}}u&&wt(t,e,"srcSet",s.srcSet,s,null),o&&wt(t,e,"src",s.src,s,null);return;case"input":dt("invalid",t);var b=c=y=u=null,x=null,L=null;for(o in s)if(s.hasOwnProperty(o)){var N=s[o];if(N!=null)switch(o){case"name":u=N;break;case"type":y=N;break;case"checked":x=N;break;case"defaultChecked":L=N;break;case"value":c=N;break;case"defaultValue":b=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:wt(t,e,o,N,s,null)}}Ed(t,c,b,x,L,y,u,!1);return;case"select":dt("invalid",t),o=y=c=null;for(u in s)if(s.hasOwnProperty(u)&&(b=s[u],b!=null))switch(u){case"value":c=b;break;case"defaultValue":y=b;break;case"multiple":o=b;default:wt(t,e,u,b,s,null)}e=c,s=y,t.multiple=!!o,e!=null?rs(t,!!o,e,!1):s!=null&&rs(t,!!o,s,!0);return;case"textarea":dt("invalid",t),c=u=o=null;for(y in s)if(s.hasOwnProperty(y)&&(b=s[y],b!=null))switch(y){case"value":o=b;break;case"defaultValue":u=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:wt(t,e,y,b,s,null)}Ad(t,o,u,c);return;case"option":for(x in s)s.hasOwnProperty(x)&&(o=s[x],o!=null)&&(x==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":wt(t,e,x,o,s,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(o=0;o<Pa.length;o++)dt(Pa[o],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in s)if(s.hasOwnProperty(L)&&(o=s[L],o!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:wt(t,e,L,o,s,null)}return;default:if(Ql(e)){for(N in s)s.hasOwnProperty(N)&&(o=s[N],o!==void 0&&zc(t,e,N,o,s,void 0));return}}for(b in s)s.hasOwnProperty(b)&&(o=s[b],o!=null&&wt(t,e,b,o,s,null))}function vT(t,e,s,o){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,y=null,b=null,x=null,L=null,N=null;for(B in s){var Y=s[B];if(s.hasOwnProperty(B)&&Y!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":x=Y;default:o.hasOwnProperty(B)||wt(t,e,B,null,o,Y)}}for(var z in o){var B=o[z];if(Y=s[z],o.hasOwnProperty(z)&&(B!=null||Y!=null))switch(z){case"type":c=B;break;case"name":u=B;break;case"checked":L=B;break;case"defaultChecked":N=B;break;case"value":y=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:B!==Y&&wt(t,e,z,B,o,Y)}}Kl(t,y,b,x,L,N,c,u);return;case"select":B=y=b=z=null;for(c in s)if(x=s[c],s.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":B=x;default:o.hasOwnProperty(c)||wt(t,e,c,null,o,x)}for(u in o)if(c=o[u],x=s[u],o.hasOwnProperty(u)&&(c!=null||x!=null))switch(u){case"value":z=c;break;case"defaultValue":b=c;break;case"multiple":y=c;default:c!==x&&wt(t,e,u,c,o,x)}e=b,s=y,o=B,z!=null?rs(t,!!s,z,!1):!!o!=!!s&&(e!=null?rs(t,!!s,e,!0):rs(t,!!s,s?[]:"",!1));return;case"textarea":B=z=null;for(b in s)if(u=s[b],s.hasOwnProperty(b)&&u!=null&&!o.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:wt(t,e,b,null,o,u)}for(y in o)if(u=o[y],c=s[y],o.hasOwnProperty(y)&&(u!=null||c!=null))switch(y){case"value":z=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&wt(t,e,y,u,o,c)}Rd(t,z,B);return;case"option":for(var $ in s)z=s[$],s.hasOwnProperty($)&&z!=null&&!o.hasOwnProperty($)&&($==="selected"?t.selected=!1:wt(t,e,$,null,o,z));for(x in o)z=o[x],B=s[x],o.hasOwnProperty(x)&&z!==B&&(z!=null||B!=null)&&(x==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":wt(t,e,x,z,o,B));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var it in s)z=s[it],s.hasOwnProperty(it)&&z!=null&&!o.hasOwnProperty(it)&&wt(t,e,it,null,o,z);for(L in o)if(z=o[L],B=s[L],o.hasOwnProperty(L)&&z!==B&&(z!=null||B!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:wt(t,e,L,z,o,B)}return;default:if(Ql(e)){for(var Ot in s)z=s[Ot],s.hasOwnProperty(Ot)&&z!==void 0&&!o.hasOwnProperty(Ot)&&zc(t,e,Ot,void 0,o,z);for(N in o)z=o[N],B=s[N],!o.hasOwnProperty(N)||z===B||z===void 0&&B===void 0||zc(t,e,N,z,o,B);return}}for(var D in s)z=s[D],s.hasOwnProperty(D)&&z!=null&&!o.hasOwnProperty(D)&&wt(t,e,D,null,o,z);for(Y in o)z=o[Y],B=s[Y],!o.hasOwnProperty(Y)||z===B||z==null&&B==null||wt(t,e,Y,z,o,B)}function Cy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ST(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,s=performance.getEntriesByType("resource"),o=0;o<s.length;o++){var u=s[o],c=u.transferSize,y=u.initiatorType,b=u.duration;if(c&&b&&Cy(y)){for(y=0,b=u.responseEnd,o+=1;o<s.length;o++){var x=s[o],L=x.startTime;if(L>b)break;var N=x.transferSize,Y=x.initiatorType;N&&Cy(Y)&&(x=x.responseEnd,y+=N*(x<b?1:(b-L)/(x-L)))}if(--o,e+=8*(c+y)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Vc=null,Bc=null;function Lr(t){return t.nodeType===9?t:t.ownerDocument}function Dy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wy(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Uc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var jc=null;function bT(){var t=window.event;return t&&t.type==="popstate"?t===jc?!1:(jc=t,!0):(jc=null,!1)}var Oy=typeof setTimeout=="function"?setTimeout:void 0,TT=typeof clearTimeout=="function"?clearTimeout:void 0,Ly=typeof Promise=="function"?Promise:void 0,xT=typeof queueMicrotask=="function"?queueMicrotask:typeof Ly<"u"?function(t){return Ly.resolve(null).then(t).catch(ET)}:Oy;function ET(t){setTimeout(function(){throw t})}function ii(t){return t==="head"}function zy(t,e){var s=e,o=0;do{var u=s.nextSibling;if(t.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"||s==="/&"){if(o===0){t.removeChild(u),Ps(e);return}o--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")o++;else if(s==="html")qa(t.ownerDocument.documentElement);else if(s==="head"){s=t.ownerDocument.head,qa(s);for(var c=s.firstChild;c;){var y=c.nextSibling,b=c.nodeName;c[aa]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||s.removeChild(c),c=y}}else s==="body"&&qa(t.ownerDocument.body);s=u}while(s);Ps(e)}function Vy(t,e){var s=t;t=0;do{var o=s.nextSibling;if(s.nodeType===1?e?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(e?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),o&&o.nodeType===8)if(s=o.data,s==="/$"){if(t===0)break;t--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||t++;s=o}while(s)}function Nc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var s=e;switch(e=e.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Nc(s),Yl(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function RT(t,e,s,o){for(;t.nodeType===1;){var u=s;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[aa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function AT(t,e,s){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=Ge(t.nextSibling),t===null))return null;return t}function By(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ge(t.nextSibling),t===null))return null;return t}function Pc(t){return t.data==="$?"||t.data==="$~"}function Hc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function _T(t,e){var s=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||s.readyState!=="loading")e();else{var o=function(){e(),s.removeEventListener("DOMContentLoaded",o)};s.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var qc=null;function Uy(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"||s==="/&"){if(e===0)return Ge(t.nextSibling);e--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||e++}t=t.nextSibling}return null}function jy(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(e===0)return t;e--}else s!=="/$"&&s!=="/&"||e++}t=t.previousSibling}return null}function Ny(t,e,s){switch(e=Lr(s),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function qa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Yl(t)}var Ye=new Map,Py=new Set;function zr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var wn=Q.d;Q.d={f:MT,r:CT,D:DT,C:wT,L:OT,m:LT,X:VT,S:zT,M:BT};function MT(){var t=wn.f(),e=Rr();return t||e}function CT(t){var e=ss(t);e!==null&&e.tag===5&&e.type==="form"?np(e):wn.r(t)}var Us=typeof document>"u"?null:document;function Hy(t,e,s){var o=Us;if(o&&typeof e=="string"&&e){var u=Be(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),Py.has(u)||(Py.add(u),t={rel:t,crossOrigin:s,href:e},o.querySelector(u)===null&&(e=o.createElement("link"),oe(e,"link",t),te(e),o.head.appendChild(e)))}}function DT(t){wn.D(t),Hy("dns-prefetch",t,null)}function wT(t,e){wn.C(t,e),Hy("preconnect",t,e)}function OT(t,e,s){wn.L(t,e,s);var o=Us;if(o&&t&&e){var u='link[rel="preload"][as="'+Be(e)+'"]';e==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+Be(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+Be(s.imageSizes)+'"]')):u+='[href="'+Be(t)+'"]';var c=u;switch(e){case"style":c=js(t);break;case"script":c=Ns(t)}Ye.has(c)||(t=v({rel:"preload",href:e==="image"&&s&&s.imageSrcSet?void 0:t,as:e},s),Ye.set(c,t),o.querySelector(u)!==null||e==="style"&&o.querySelector(Ga(c))||e==="script"&&o.querySelector(Ya(c))||(e=o.createElement("link"),oe(e,"link",t),te(e),o.head.appendChild(e)))}}function LT(t,e){wn.m(t,e);var s=Us;if(s&&t){var o=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Be(o)+'"][href="'+Be(t)+'"]',c=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ns(t)}if(!Ye.has(c)&&(t=v({rel:"modulepreload",href:t},e),Ye.set(c,t),s.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Ya(c)))return}o=s.createElement("link"),oe(o,"link",t),te(o),s.head.appendChild(o)}}}function zT(t,e,s){wn.S(t,e,s);var o=Us;if(o&&t){var u=as(o).hoistableStyles,c=js(t);e=e||"default";var y=u.get(c);if(!y){var b={loading:0,preload:null};if(y=o.querySelector(Ga(c)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},s),(s=Ye.get(c))&&Gc(t,s);var x=y=o.createElement("link");te(x),oe(x,"link",t),x._p=new Promise(function(L,N){x.onload=L,x.onerror=N}),x.addEventListener("load",function(){b.loading|=1}),x.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Vr(y,e,o)}y={type:"stylesheet",instance:y,count:1,state:b},u.set(c,y)}}}function VT(t,e){wn.X(t,e);var s=Us;if(s&&t){var o=as(s).hoistableScripts,u=Ns(t),c=o.get(u);c||(c=s.querySelector(Ya(u)),c||(t=v({src:t,async:!0},e),(e=Ye.get(u))&&Yc(t,e),c=s.createElement("script"),te(c),oe(c,"link",t),s.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},o.set(u,c))}}function BT(t,e){wn.M(t,e);var s=Us;if(s&&t){var o=as(s).hoistableScripts,u=Ns(t),c=o.get(u);c||(c=s.querySelector(Ya(u)),c||(t=v({src:t,async:!0,type:"module"},e),(e=Ye.get(u))&&Yc(t,e),c=s.createElement("script"),te(c),oe(c,"link",t),s.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},o.set(u,c))}}function qy(t,e,s,o){var u=(u=rt.current)?zr(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(e=js(s.href),s=as(u).hoistableStyles,o=s.get(e),o||(o={type:"style",instance:null,count:0,state:null},s.set(e,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=js(s.href);var c=as(u).hoistableStyles,y=c.get(t);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,y),(c=u.querySelector(Ga(t)))&&!c._p&&(y.instance=c,y.state.loading=5),Ye.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Ye.set(t,s),c||UT(u,t,s,y.state))),e&&o===null)throw Error(r(528,""));return y}if(e&&o!==null)throw Error(r(529,""));return null;case"script":return e=s.async,s=s.src,typeof s=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ns(s),s=as(u).hoistableScripts,o=s.get(e),o||(o={type:"script",instance:null,count:0,state:null},s.set(e,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function js(t){return'href="'+Be(t)+'"'}function Ga(t){return'link[rel="stylesheet"]['+t+"]"}function Gy(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function UT(t,e,s,o){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?o.loading=1:(e=t.createElement("link"),o.preload=e,e.addEventListener("load",function(){return o.loading|=1}),e.addEventListener("error",function(){return o.loading|=2}),oe(e,"link",s),te(e),t.head.appendChild(e))}function Ns(t){return'[src="'+Be(t)+'"]'}function Ya(t){return"script[async]"+t}function Yy(t,e,s){if(e.count++,e.instance===null)switch(e.type){case"style":var o=t.querySelector('style[data-href~="'+Be(s.href)+'"]');if(o)return e.instance=o,te(o),o;var u=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),te(o),oe(o,"style",u),Vr(o,s.precedence,t),e.instance=o;case"stylesheet":u=js(s.href);var c=t.querySelector(Ga(u));if(c)return e.state.loading|=4,e.instance=c,te(c),c;o=Gy(s),(u=Ye.get(u))&&Gc(o,u),c=(t.ownerDocument||t).createElement("link"),te(c);var y=c;return y._p=new Promise(function(b,x){y.onload=b,y.onerror=x}),oe(c,"link",o),e.state.loading|=4,Vr(c,s.precedence,t),e.instance=c;case"script":return c=Ns(s.src),(u=t.querySelector(Ya(c)))?(e.instance=u,te(u),u):(o=s,(u=Ye.get(c))&&(o=v({},s),Yc(o,u)),t=t.ownerDocument||t,u=t.createElement("script"),te(u),oe(u,"link",o),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(o=e.instance,e.state.loading|=4,Vr(o,s.precedence,t));return e.instance}function Vr(t,e,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,c=u,y=0;y<o.length;y++){var b=o[y];if(b.dataset.precedence===e)c=b;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=s.nodeType===9?s.head:s,e.insertBefore(t,e.firstChild))}function Gc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Yc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Br=null;function Fy(t,e,s){if(Br===null){var o=new Map,u=Br=new Map;u.set(s,o)}else u=Br,o=u.get(s),o||(o=new Map,u.set(s,o));if(o.has(t))return o;for(o.set(t,null),s=s.getElementsByTagName(t),u=0;u<s.length;u++){var c=s[u];if(!(c[aa]||c[ne]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var y=c.getAttribute(e)||"";y=t+y;var b=o.get(y);b?b.push(c):o.set(y,[c])}}return o}function Ky(t,e,s){t=t.ownerDocument||t,t.head.insertBefore(s,e==="title"?t.querySelector("head > title"):null)}function jT(t,e,s){if(s===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function ky(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function NT(t,e,s,o){if(s.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var u=js(o.href),c=e.querySelector(Ga(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ur.bind(t),e.then(t,t)),s.state.loading|=4,s.instance=c,te(c);return}c=e.ownerDocument||e,o=Gy(o),(u=Ye.get(u))&&Gc(o,u),c=c.createElement("link"),te(c);var y=c;y._p=new Promise(function(b,x){y.onload=b,y.onerror=x}),oe(c,"link",o),s.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(s,e),(e=s.state.preload)&&(s.state.loading&3)===0&&(t.count++,s=Ur.bind(t),e.addEventListener("load",s),e.addEventListener("error",s))}}var Fc=0;function PT(t,e){return t.stylesheets&&t.count===0&&Nr(t,t.stylesheets),0<t.count||0<t.imgCount?function(s){var o=setTimeout(function(){if(t.stylesheets&&Nr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Fc===0&&(Fc=62500*ST());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Nr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Fc?50:800)+e);return t.unsuspend=s,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function Ur(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var jr=null;function Nr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,jr=new Map,e.forEach(HT,t),jr=null,Ur.call(t))}function HT(t,e){if(!(e.state.loading&4)){var s=jr.get(t);if(s)var o=s.get(null);else{s=new Map,jr.set(t,s);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var y=u[c];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(s.set(y.dataset.precedence,y),o=y)}o&&s.set(null,o)}u=e.instance,y=u.getAttribute("data-precedence"),c=s.get(y)||o,c===o&&s.set(null,u),s.set(y,u),this.count++,o=Ur.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Fa={$$typeof:V,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function qT(t,e,s,o,u,c,y,b,x){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pl(0),this.hiddenUpdates=Pl(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Qy(t,e,s,o,u,c,y,b,x,L,N,Y){return t=new qT(t,e,s,y,x,L,N,Y,b),e=1,c===!0&&(e|=24),c=_e(3,null,null,e),t.current=c,c.stateNode=t,e=Eu(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:o,isDehydrated:s,cache:e},Mu(c),t}function Xy(t){return t?(t=ps,t):ps}function Zy(t,e,s,o,u,c){u=Xy(u),o.context===null?o.context=u:o.pendingContext=u,o=kn(e),o.payload={element:s},c=c===void 0?null:c,c!==null&&(o.callback=c),s=Qn(t,o,e),s!==null&&(Se(s,t,e),xa(s,t,e))}function Jy(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<e?s:e}}function Kc(t,e){Jy(t,e),(t=t.alternate)&&Jy(t,e)}function Iy(t){if(t.tag===13||t.tag===31){var e=_i(t,67108864);e!==null&&Se(e,t,67108864),Kc(t,67108864)}}function $y(t){if(t.tag===13||t.tag===31){var e=Oe();e=Hl(e);var s=_i(t,e);s!==null&&Se(s,t,e),Kc(t,e)}}var Pr=!0;function GT(t,e,s,o){var u=j.T;j.T=null;var c=Q.p;try{Q.p=2,kc(t,e,s,o)}finally{Q.p=c,j.T=u}}function YT(t,e,s,o){var u=j.T;j.T=null;var c=Q.p;try{Q.p=8,kc(t,e,s,o)}finally{Q.p=c,j.T=u}}function kc(t,e,s,o){if(Pr){var u=Qc(o);if(u===null)Lc(t,e,o,Hr,s),tg(t,o);else if(KT(u,t,e,s,o))o.stopPropagation();else if(tg(t,o),e&4&&-1<FT.indexOf(t)){for(;u!==null;){var c=ss(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var y=Ti(c.pendingLanes);if(y!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;y;){var x=1<<31-Re(y);b.entanglements[1]|=x,y&=~x}rn(c),(Et&6)===0&&(xr=xt()+500,Na(0))}}break;case 31:case 13:b=_i(c,2),b!==null&&Se(b,c,2),Rr(),Kc(c,2)}if(c=Qc(o),c===null&&Lc(t,e,o,Hr,s),c===u)break;u=c}u!==null&&o.stopPropagation()}else Lc(t,e,o,null,s)}}function Qc(t){return t=Zl(t),Xc(t)}var Hr=null;function Xc(t){if(Hr=null,t=is(t),t!==null){var e=f(t);if(e===null)t=null;else{var s=e.tag;if(s===13){if(t=h(e),t!==null)return t;t=null}else if(s===31){if(t=d(e),t!==null)return t;t=null}else if(s===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Hr=t,null}function Wy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xe()){case ea:return 2;case ld:return 8;case Do:case wb:return 32;case ud:return 268435456;default:return 32}default:return 32}}var Zc=!1,si=null,ai=null,oi=null,Ka=new Map,ka=new Map,ri=[],FT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function tg(t,e){switch(t){case"focusin":case"focusout":si=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":oi=null;break;case"pointerover":case"pointerout":Ka.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(e.pointerId)}}function Qa(t,e,s,o,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:s,eventSystemFlags:o,nativeEvent:c,targetContainers:[u]},e!==null&&(e=ss(e),e!==null&&Iy(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function KT(t,e,s,o,u){switch(e){case"focusin":return si=Qa(si,t,e,s,o,u),!0;case"dragenter":return ai=Qa(ai,t,e,s,o,u),!0;case"mouseover":return oi=Qa(oi,t,e,s,o,u),!0;case"pointerover":var c=u.pointerId;return Ka.set(c,Qa(Ka.get(c)||null,t,e,s,o,u)),!0;case"gotpointercapture":return c=u.pointerId,ka.set(c,Qa(ka.get(c)||null,t,e,s,o,u)),!0}return!1}function eg(t){var e=is(t.target);if(e!==null){var s=f(e);if(s!==null){if(e=s.tag,e===13){if(e=h(s),e!==null){t.blockedOn=e,pd(t.priority,function(){$y(s)});return}}else if(e===31){if(e=d(s),e!==null){t.blockedOn=e,pd(t.priority,function(){$y(s)});return}}else if(e===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var s=Qc(t.nativeEvent);if(s===null){s=t.nativeEvent;var o=new s.constructor(s.type,s);Xl=o,s.target.dispatchEvent(o),Xl=null}else return e=ss(s),e!==null&&Iy(e),t.blockedOn=s,!1;e.shift()}return!0}function ng(t,e,s){qr(t)&&s.delete(e)}function kT(){Zc=!1,si!==null&&qr(si)&&(si=null),ai!==null&&qr(ai)&&(ai=null),oi!==null&&qr(oi)&&(oi=null),Ka.forEach(ng),ka.forEach(ng)}function Gr(t,e){t.blockedOn===e&&(t.blockedOn=null,Zc||(Zc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kT)))}var Yr=null;function ig(t){Yr!==t&&(Yr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Yr===t&&(Yr=null);for(var e=0;e<t.length;e+=3){var s=t[e],o=t[e+1],u=t[e+2];if(typeof o!="function"){if(Xc(o||s)===null)continue;break}var c=ss(s);c!==null&&(t.splice(e,3),e-=3,Qu(c,{pending:!0,data:u,method:s.method,action:o},o,u))}}))}function Ps(t){function e(x){return Gr(x,t)}si!==null&&Gr(si,t),ai!==null&&Gr(ai,t),oi!==null&&Gr(oi,t),Ka.forEach(e),ka.forEach(e);for(var s=0;s<ri.length;s++){var o=ri[s];o.blockedOn===t&&(o.blockedOn=null)}for(;0<ri.length&&(s=ri[0],s.blockedOn===null);)eg(s),s.blockedOn===null&&ri.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(o=0;o<s.length;o+=3){var u=s[o],c=s[o+1],y=u[de]||null;if(typeof c=="function")y||ig(s);else if(y){var b=null;if(c&&c.hasAttribute("formAction")){if(u=c,y=c[de]||null)b=y.formAction;else if(Xc(u)!==null)continue}else b=y.action;typeof b=="function"?s[o+1]=b:(s.splice(o,3),o-=3),ig(s)}}}function sg(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),o||setTimeout(s,20)}function s(){if(!o&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(s,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Jc(t){this._internalRoot=t}Fr.prototype.render=Jc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var s=e.current,o=Oe();Zy(s,o,t,e,null,null)},Fr.prototype.unmount=Jc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Zy(t.current,2,null,t,null,null),Rr(),e[ns]=null}};function Fr(t){this._internalRoot=t}Fr.prototype.unstable_scheduleHydration=function(t){if(t){var e=md();t={blockedOn:null,target:t,priority:e};for(var s=0;s<ri.length&&e!==0&&e<ri[s].priority;s++);ri.splice(s,0,t),s===0&&eg(t)}};var ag=i.version;if(ag!=="19.2.3")throw Error(r(527,ag,"19.2.3"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var QT={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{na=Kr.inject(QT),Ee=Kr}catch{}}return $a.createRoot=function(t,e){if(!l(t))throw Error(r(299));var s=!1,o="",u=hp,c=dp,y=mp;return e!=null&&(e.unstable_strictMode===!0&&(s=!0),e.identifierPrefix!==void 0&&(o=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(y=e.onRecoverableError)),e=Qy(t,1,!1,null,null,s,o,null,u,c,y,sg),t[ns]=e.current,Oc(t),new Jc(e)},$a.hydrateRoot=function(t,e,s){if(!l(t))throw Error(r(299));var o=!1,u="",c=hp,y=dp,b=mp,x=null;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(c=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError),s.formState!==void 0&&(x=s.formState)),e=Qy(t,1,!0,e,s??null,o,u,x,c,y,b,sg),e.context=Xy(null),s=e.current,o=Oe(),o=Hl(o),u=kn(o),u.callback=null,Qn(s,u,o),s=o,e.current.lanes=s,sa(e,s),rn(e),t[ns]=e.current,Oc(t),new Fr(e)},$a.version="19.2.3",$a}var Pg;function gR(){if(Pg)return pf.exports;Pg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),pf.exports=yR(),pf.exports}var vR=gR();const hi=n=>typeof n=="string",SR=n=>typeof n=="function",Hg=new Map,j0="en";function Th(n){return[...Array.isArray(n)?n:[n],j0]}function xh(n,i,a){const r=Th(n);a||(a="default");let l;if(typeof a=="string")switch(l={day:"numeric",month:"short",year:"numeric"},a){case"full":l.weekday="long";case"long":l.month="long";break;case"short":l.month="numeric";break}else l=a;return vl(()=>Sl("date",r,a),()=>new Intl.DateTimeFormat(r,l)).format(hi(i)?new Date(i):i)}function bR(n,i,a){let r;if(a||(a="default"),typeof a=="string")switch(r={second:"numeric",minute:"numeric",hour:"numeric"},a){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}else r=a;return xh(n,i,r)}function Nf(n,i,a){const r=Th(n);return vl(()=>Sl("number",r,a),()=>new Intl.NumberFormat(r,a)).format(i)}function qg(n,i,a,{offset:r=0,...l}){const f=Th(n),h=i?vl(()=>Sl("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):vl(()=>Sl("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return l[a]??l[h.select(a-r)]??l.other}function vl(n,i){const a=n();let r=Hg.get(a);return r||(r=i(),Hg.set(a,r)),r}function Sl(n,i,a){const r=i.join("-");return`${n}-${r}-${JSON.stringify(a)}`}const N0=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,P0=n=>n.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(i,a,r)=>{if(a){const l=parseInt(a,16);return String.fromCharCode(l)}else{const l=parseInt(r,16);return String.fromCharCode(l)}}),H0="%__lingui_octothorpe__%",TR=(n,i,a={})=>{const r=i||n,l=h=>typeof h=="object"?h:a[h],f=(h,d)=>{const m=Object.keys(a).length?l("number"):void 0,p=Nf(r,h,m);return d.replace(new RegExp(H0,"g"),p)};return{plural:(h,d)=>{const{offset:m=0}=d,p=qg(r,!1,h,d);return f(h-m,p)},selectordinal:(h,d)=>{const{offset:m=0}=d,p=qg(r,!0,h,d);return f(h-m,p)},select:xR,number:(h,d)=>Nf(r,h,l(d)||{style:d}),date:(h,d)=>xh(r,h,l(d)||d),time:(h,d)=>bR(r,h,l(d)||d)}},xR=(n,i)=>i[n]??i.other;function ER(n,i,a){return(r={},l)=>{const f=TR(i,a,l),h=(m,p=!1)=>Array.isArray(m)?m.reduce((g,v)=>{if(v==="#"&&p)return g+H0;if(hi(v))return g+v;const[S,T,E]=v;let _={};T==="plural"||T==="selectordinal"||T==="select"?Object.entries(E).forEach(([M,w])=>{_[M]=h(w,T==="plural"||T==="selectordinal")}):_=E;let C;if(T){const M=f[T];C=M(r[S],_)}else C=r[S];return C==null?g:g+C},""):m,d=h(n);return hi(d)&&N0.test(d)?P0(d):hi(d)?d:d?String(d):""}}var RR=Object.defineProperty,AR=(n,i,a)=>i in n?RR(n,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[i]=a,_R=(n,i,a)=>(AR(n,i+"",a),a);class MR{constructor(){_R(this,"_events",{})}on(i,a){var r;return(r=this._events)[i]??(r[i]=[]),this._events[i].push(a),()=>this.removeListener(i,a)}removeListener(i,a){const r=this._getListeners(i);if(!r)return;const l=r.indexOf(a);~l&&r.splice(l,1)}emit(i,...a){const r=this._getListeners(i);r&&r.map(l=>l.apply(this,a))}_getListeners(i){const a=this._events[i];return Array.isArray(a)?a:!1}}var CR=Object.defineProperty,DR=(n,i,a)=>i in n?CR(n,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[i]=a,Pi=(n,i,a)=>(DR(n,typeof i!="symbol"?i+"":i,a),a);class wR extends MR{constructor(i){super(),Pi(this,"_locale",""),Pi(this,"_locales"),Pi(this,"_localeData",{}),Pi(this,"_messages",{}),Pi(this,"_missing"),Pi(this,"_messageCompiler"),Pi(this,"t",this._.bind(this)),i.missing!=null&&(this._missing=i.missing),i.messages!=null&&this.load(i.messages),i.localeData!=null&&this.loadLocaleData(i.localeData),(typeof i.locale=="string"||i.locales)&&this.activate(i.locale??j0,i.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(i,a){const r=this._localeData[i];r?Object.assign(r,a):this._localeData[i]=a}setMessagesCompiler(i){return this._messageCompiler=i,this}loadLocaleData(i,a){typeof i=="string"?this._loadLocaleData(i,a):Object.keys(i).forEach(r=>this._loadLocaleData(r,i[r])),this.emit("change")}_load(i,a){const r=this._messages[i];r?Object.assign(r,a):this._messages[i]=a}load(i,a){typeof i=="string"&&typeof a=="object"?this._load(i,a):Object.entries(i).forEach(([r,l])=>this._load(r,l)),this.emit("change")}loadAndActivate({locale:i,locales:a,messages:r}){this._locale=i,this._locales=a||void 0,this._messages[this._locale]=r,this.emit("change")}activate(i,a){this._locale=i,this._locales=a,this.emit("change")}_(i,a,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let l=r?.message;i||(i=""),hi(i)||(a=i.values||a,l=i.message,i=i.id);const f=this.messages[i],h=f===void 0,d=this._missing;if(d&&h)return SR(d)?d(this._locale,i):d;h&&this.emit("missing",{id:i,locale:this._locale});let m=f||l||i;return hi(m)&&(this._messageCompiler?m=this._messageCompiler(m):console.warn(`Uncompiled message detected! Message:
11
+
12
+ > ${m}
13
+
14
+ That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
15
+ ICU features such as interpolation and plurals will not work properly for that message.
16
+
17
+ Please compile your catalog first.
18
+ `)),hi(m)&&N0.test(m)?P0(m):hi(m)?m:ER(m,this._locale,this._locales)(a,r?.formats)}date(i,a){return xh(this._locales||this._locale,i,a)}number(i,a){return Nf(this._locales||this._locale,i,a)}}function OR(n={}){return new wR(n)}const Ll=OR(),LR=JSON.parse('{"/vVlbJ":[["0"]," steps"],"57upzv":["Scenario List"],"6exX+8":["Regenerate"],"7BGeH2":["Failed to generate preview"],"8faOjQ":["Create New"],"9PuK3/":["Switch to preview mode"],"FQs7H0":["Back to Scenario List"],"FxVG/l":["Copied to clipboard"],"G3Kixs":[["0"]," documents available"],"GSr0rF":["Open menu"],"NOdFZR":["Generating..."],"NpRmdU":["Create New Document"],"OW40Ve":["Document has been updated"],"QFXSrR":["Edit Existing"],"T6PvRl":["Required fields are not filled"],"TC9TYf":["Press the button to generate a Design Doc preview"],"Vw8l6h":["An error occurred"],"W/yZH3":["No items. Please add items using the \\"Add\\" button."],"W9q5nG":["Generate preview"],"XvjC4F":["Saving..."],"Z8lGw6":["Share"],"ZGnMhT":["No documents found"],"afF891":["Please generate a preview"],"d61rJy":["Design Doc has been created"],"fQ4jUh":["Create a new document from scratch"],"fsyAH8":["Show preview"],"hUe0iX":["Step navigation"],"hXzOVo":["Next"],"hYgDIe":["Create"],"he3ygx":["Copy"],"iH8pgl":["Back"],"lbNn+H":["No content to save"],"m16xKo":["Add"],"mkMLq4":["Collapse sidebar"],"rdUucN":["Preview"],"tfDRzk":["Save"],"tugdy6":["Expand sidebar"],"vcpc5o":["Close menu"],"wR3B2j":["Switch to edit mode"],"yFRvSy":["Select Document to Edit"],"yz7wBu":["Close"]}'),zR=JSON.parse('{"/vVlbJ":[["0"],"ステップ"],"57upzv":["シナリオ一覧"],"6exX+8":["再生成"],"7BGeH2":["プレビューの生成に失敗しました"],"8faOjQ":["新規作成"],"9PuK3/":["プレビューモードに切り替え"],"FQs7H0":["シナリオ一覧に戻る"],"FxVG/l":["クリップボードにコピーしました"],"G3Kixs":[["0"],"件のドキュメント"],"GSr0rF":["メニューを開く"],"NOdFZR":["生成中..."],"NpRmdU":["新しいドキュメントを作成"],"OW40Ve":["ドキュメントを更新しました"],"QFXSrR":["既存を編集"],"T6PvRl":["必須項目が入力されていません"],"TC9TYf":["ボタンを押すとDesign Docのプレビューが生成されます"],"Vw8l6h":["エラーが発生しました"],"W/yZH3":["項目がありません。「追加」ボタンから追加してください。"],"W9q5nG":["プレビューを生成"],"XvjC4F":["保存中..."],"Z8lGw6":["シェア"],"ZGnMhT":["ドキュメントがありません"],"afF891":["プレビューを生成してください"],"d61rJy":["Design Docを生成しました"],"fQ4jUh":["新しいドキュメントを作成します"],"fsyAH8":["プレビューを表示"],"hUe0iX":["ステップナビゲーション"],"hXzOVo":["次へ"],"hYgDIe":["作成"],"he3ygx":["コピー"],"iH8pgl":["戻る"],"lbNn+H":["保存するコンテンツがありません"],"m16xKo":["追加"],"mkMLq4":["サイドバーを折りたたむ"],"rdUucN":["プレビュー"],"tfDRzk":["保存"],"tugdy6":["サイドバーを展開"],"vcpc5o":["メニューを閉じる"],"wR3B2j":["編集モードに切り替え"],"yFRvSy":["編集するドキュメントを選択"],"yz7wBu":["閉じる"]}'),q0="design-docs-gen-locale",wD={ja:"日本語",en:"English"};Ll.load({ja:zR,en:LR});const VR=()=>{if(typeof localStorage<"u"){const n=localStorage.getItem(q0);if(n==="ja"||n==="en")return n}return null},BR=()=>typeof navigator<"u"&&navigator.language.split("-")[0]==="en"?"en":"ja",UR=()=>VR()??BR(),OD=()=>Ll.locale??"ja",jR=n=>{typeof localStorage<"u"&&localStorage.setItem(q0,n),typeof document<"u"&&(document.documentElement.lang=n),Ll.activate(n)};jR(UR());const Wi=eR({component:U0}),NR=pi("/")({beforeLoad:()=>{throw b0({to:"/scenarios"})}}),PR="modulepreload",HR=function(n){return"/"+n},Gg={},To=function(i,a,r){let l=Promise.resolve();if(a&&a.length>0){let m=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),d=h?.nonce||h?.getAttribute("nonce");l=m(a.map(p=>{if(p=HR(p),p in Gg)return;Gg[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":PR,g||(S.as="script"),S.crossOrigin="",S.href=p,d&&S.setAttribute("nonce",d),document.head.appendChild(S),g)return new Promise((T,E)=>{S.addEventListener("load",T),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return l.then(h=>{for(const d of h||[])d.status==="rejected"&&f(d.reason);return i().catch(f)})},qR=async()=>{const n=await fetch("/api/scenarios");if(!n.ok)throw new Error("Failed to fetch scenarios");return(await n.json()).scenarios},GR=()=>({queryKey:["scenarios"],queryFn:qR}),Ln=new Cx({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}}),YR=()=>To(()=>import("./index-Q_AobJB0.js"),__vite__mapDeps([0,1,2])),FR=pi("/scenarios/")({loader:async()=>{await Ln.prefetchQuery(GR())},component:bo(YR,"component")}),KR=async n=>{const i=await fetch(`/api/scenarios/${n}/docs`);if(!i.ok)throw new Error(`Failed to fetch docs for scenario ${n}`);return(await i.json()).docs},G0=n=>({queryKey:["scenarios",n,"docs"],queryFn:()=>KR(n)}),kR=async n=>{const i=await fetch(`/api/scenarios/${encodeURIComponent(n)}`);if(!i.ok)throw new Error("Failed to fetch scenario");return await i.json()},zl=n=>({queryKey:["scenarios",n],queryFn:()=>kR(n)}),QR=()=>To(()=>import("./index-pyqED_5G.js"),__vite__mapDeps([3,1,4,5,2])),XR=pi("/scenarios/$scenarioId/")({loader:async({params:n})=>{try{await Promise.all([Ln.fetchQuery(zl(n.scenarioId)),Ln.prefetchQuery(G0(n.scenarioId))])}catch{throw Qi()}},component:bo(QR,"component")}),ZR=()=>To(()=>import("./index-DQxQHK-0.js"),__vite__mapDeps([6,1,4,5,2])),JR=pi("/scenarios/$scenarioId/docs/")({loader:async({params:n})=>{try{await Promise.all([Ln.fetchQuery(zl(n.scenarioId)),Ln.prefetchQuery(G0(n.scenarioId))])}catch{throw Qi()}},component:bo(ZR,"component")});let vf;function IR(n){return{lang:n?.lang??vf?.lang,message:n?.message,abortEarly:n?.abortEarly??vf?.abortEarly,abortPipeEarly:n?.abortPipeEarly??vf?.abortPipeEarly}}let $R;function WR(n){return $R?.get(n)}let tA;function eA(n){return tA?.get(n)}let nA;function iA(n,i){return nA?.get(n)?.get(i)}function Eh(n){const i=typeof n;return i==="string"?`"${n}"`:i==="number"||i==="bigint"||i==="boolean"?`${n}`:i==="object"||i==="function"?(n&&Object.getPrototypeOf(n)?.constructor?.name)??"null":i}function yi(n,i,a,r,l){const f=l&&"input"in l?l.input:a.value,h=l?.expected??n.expects??null,d=l?.received??Eh(f),m={kind:n.kind,type:n.type,input:f,expected:h,received:d,message:`Invalid ${i}: ${h?`Expected ${h} but r`:"R"}eceived ${d}`,requirement:n.requirement,path:l?.path,issues:l?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},p=n.kind==="schema",g=l?.message??n.message??iA(n.reference,m.lang)??(p?eA(m.lang):null)??r.message??WR(m.lang);g!==void 0&&(m.message=typeof g=="function"?g(m):g),p&&(a.typed=!1),a.issues?a.issues.push(m):a.issues=[m]}function Si(n){return{version:1,vendor:"valibot",validate(i){return n["~run"]({value:i},IR())}}}function sA(n,i){const a=[...new Set(n)];return a.length>1?`(${a.join(` ${i} `)})`:a[0]??"never"}function aA(n,i,a){return typeof n.fallback=="function"?n.fallback(i,a):n.fallback}function Y0(n,i,a){return typeof n.default=="function"?n.default(i,a):n.default}function oA(n,i){return{kind:"schema",type:"array",reference:oA,expects:"Array",async:!1,item:n,message:i,get"~standard"(){return Si(this)},"~run"(a,r){const l=a.value;if(Array.isArray(l)){a.typed=!0,a.value=[];for(let f=0;f<l.length;f++){const h=l[f],d=this.item["~run"]({value:h},r);if(d.issues){const m={type:"array",origin:"value",input:l,key:f,value:h};for(const p of d.issues)p.path?p.path.unshift(m):p.path=[m],a.issues?.push(p);if(a.issues||(a.issues=d.issues),r.abortEarly){a.typed=!1;break}}d.typed||(a.typed=!1),a.value.push(d.value)}}else yi(this,"type",a,r);return a}}}function rA(n){return{kind:"schema",type:"boolean",reference:rA,expects:"boolean",async:!1,message:n,get"~standard"(){return Si(this)},"~run"(i,a){return typeof i.value=="boolean"?i.typed=!0:yi(this,"type",i,a),i}}}function lA(n,i){return{kind:"schema",type:"literal",reference:lA,expects:Eh(n),async:!1,literal:n,message:i,get"~standard"(){return Si(this)},"~run"(a,r){return a.value===this.literal?a.typed=!0:yi(this,"type",a,r),a}}}function uA(n){return{kind:"schema",type:"number",reference:uA,expects:"number",async:!1,message:n,get"~standard"(){return Si(this)},"~run"(i,a){return typeof i.value=="number"&&!isNaN(i.value)?i.typed=!0:yi(this,"type",i,a),i}}}function Rh(n,i){return{kind:"schema",type:"object",reference:Rh,expects:"Object",async:!1,entries:n,message:i,get"~standard"(){return Si(this)},"~run"(a,r){const l=a.value;if(l&&typeof l=="object"){a.typed=!0,a.value={};for(const f in this.entries){const h=this.entries[f];if(f in l||(h.type==="exact_optional"||h.type==="optional"||h.type==="nullish")&&h.default!==void 0){const d=f in l?l[f]:Y0(h),m=h["~run"]({value:d},r);if(m.issues){const p={type:"object",origin:"value",input:l,key:f,value:d};for(const g of m.issues)g.path?g.path.unshift(p):g.path=[p],a.issues?.push(g);if(a.issues||(a.issues=m.issues),r.abortEarly){a.typed=!1;break}}m.typed||(a.typed=!1),a.value[f]=m.value}else if(h.fallback!==void 0)a.value[f]=aA(h);else if(h.type!=="exact_optional"&&h.type!=="optional"&&h.type!=="nullish"&&(yi(this,"key",a,r,{input:void 0,expected:`"${f}"`,path:[{type:"object",origin:"key",input:l,key:f,value:l[f]}]}),r.abortEarly))break}}else yi(this,"type",a,r);return a}}}function Ah(n,i){return{kind:"schema",type:"optional",reference:Ah,expects:`(${n.expects} | undefined)`,async:!1,wrapped:n,default:i,get"~standard"(){return Si(this)},"~run"(a,r){return a.value===void 0&&(this.default!==void 0&&(a.value=Y0(this,a,r)),a.value===void 0)?(a.typed=!0,a):this.wrapped["~run"](a,r)}}}function cA(n,i){return{kind:"schema",type:"picklist",reference:cA,expects:sA(n.map(Eh),"|"),async:!1,options:n,message:i,get"~standard"(){return Si(this)},"~run"(a,r){return this.options.includes(a.value)?a.typed=!0:yi(this,"type",a,r),a}}}function _h(n){return{kind:"schema",type:"string",reference:_h,expects:"string",async:!1,message:n,get"~standard"(){return Si(this)},"~run"(i,a){return typeof i.value=="string"?i.typed=!0:yi(this,"type",i,a),i}}}const Yg=n=>{let i;const a=new Set,r=(p,g)=>{const v=typeof p=="function"?p(i):p;if(!Object.is(v,i)){const S=i;i=g??(typeof v!="object"||v===null)?v:Object.assign({},i,v),a.forEach(T=>T(i,S))}},l=()=>i,d={setState:r,getState:l,getInitialState:()=>m,subscribe:p=>(a.add(p),()=>a.delete(p))},m=i=n(r,l,d);return d},fA=(n=>n?Yg(n):Yg),hA=n=>n;function dA(n,i=hA){const a=_t.useSyncExternalStore(n.subscribe,_t.useCallback(()=>i(n.getState()),[n,i]),_t.useCallback(()=>i(n.getInitialState()),[n,i]));return _t.useDebugValue(a),a}const mA=n=>{const i=fA(n),a=r=>dA(i,r);return Object.assign(a,i),a},Mh=(n=>mA);function Ch(n,i){let a;try{a=n()}catch{return}return{getItem:l=>{var f;const h=m=>m===null?null:JSON.parse(m,void 0),d=(f=a.getItem(l))!=null?f:null;return d instanceof Promise?d.then(h):h(d)},setItem:(l,f)=>a.setItem(l,JSON.stringify(f,void 0)),removeItem:l=>a.removeItem(l)}}const Pf=n=>i=>{try{const a=n(i);return a instanceof Promise?a:{then(r){return Pf(r)(a)},catch(r){return this}}}catch(a){return{then(r){return this},catch(r){return Pf(r)(a)}}}},pA=(n,i)=>(a,r,l)=>{let f={storage:Ch(()=>localStorage),partialize:_=>_,version:0,merge:(_,C)=>({...C,..._}),...i},h=!1;const d=new Set,m=new Set;let p=f.storage;if(!p)return n((..._)=>{console.warn(`[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.`),a(..._)},r,l);const g=()=>{const _=f.partialize({...r()});return p.setItem(f.name,{state:_,version:f.version})},v=l.setState;l.setState=(_,C)=>(v(_,C),g());const S=n((..._)=>(a(..._),g()),r,l);l.getInitialState=()=>S;let T;const E=()=>{var _,C;if(!p)return;h=!1,d.forEach(w=>{var V;return w((V=r())!=null?V:S)});const M=((C=f.onRehydrateStorage)==null?void 0:C.call(f,(_=r())!=null?_:S))||void 0;return Pf(p.getItem.bind(p))(f.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==f.version){if(f.migrate){const V=f.migrate(w.state,w.version);return V instanceof Promise?V.then(P=>[!0,P]):[!0,V]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,w.state];return[!1,void 0]}).then(w=>{var V;const[P,k]=w;if(T=f.merge(k,(V=r())!=null?V:S),a(T,!0),P)return g()}).then(()=>{M?.(T,void 0),T=r(),h=!0,m.forEach(w=>w(T))}).catch(w=>{M?.(void 0,w)})};return l.persist={setOptions:_=>{f={...f,..._},_.storage&&(p=_.storage)},clearStorage:()=>{p?.removeItem(f.name)},getOptions:()=>f,rehydrate:()=>E(),hasHydrated:()=>h,onHydrate:_=>(d.add(_),()=>{d.delete(_)}),onFinishHydration:_=>(m.add(_),()=>{m.delete(_)})},f.skipHydration||E(),T||S},F0=pA,yA="__new__",K0=n=>n??yA,k0=()=>({values:{},errors:{}}),Fg=(n,i)=>n[i]??k0(),Q0=Mh()(F0(n=>({forms:{},setSectionValue:(i,a,r)=>n(l=>{const f=Fg(l.forms,i);return{forms:{...l.forms,[i]:{...f,values:{...f.values,[a]:r}}}}}),setError:(i,a,r)=>n(l=>{const f=Fg(l.forms,i);return{forms:{...l.forms,[i]:{...f,errors:{...f.errors,[a]:r}}}}}),initializeForm:(i,a)=>n(r=>({forms:{...r.forms,[i]:{values:a,errors:{}}}})),resetForm:i=>n(a=>({forms:{...a.forms,[i]:k0()}}))}),{name:"design-docs-step-form",storage:Ch(()=>sessionStorage),partialize:n=>({forms:n.forms})})),gA=n=>{const i=Q0.getState().forms[n];return i==null||Object.keys(i.values).length===0},X0=({initialValues:n,formKey:i})=>{const a=K0(i);gA(a)&&Q0.getState().initializeForm(a,n)},vA=()=>To(()=>import("./index-CT_VQ59w.js"),__vite__mapDeps([7,1,8,5])),SA=Rh({step:Ah(_h())}),bA=pi("/scenarios/$scenarioId/docs/new/")({validateSearch:SA,loaderDeps:({search:n})=>({step:n.step}),loader:async({params:n,deps:i})=>{const a=await Ln.fetchQuery(zl(n.scenarioId)).catch(()=>{throw Qi()}),{steps:r}=a.scenario,l=i.step!=null?r.findIndex(d=>d.slug===i.step):-1,f=l!==-1?l:0,h=r[f];if(h==null)throw Qi();return X0({initialValues:a.formDefaultValues}),{stepIndex:f,prevStep:r[f-1],step:h,nextStep:r[f+1]}},component:bo(vA,"component")}),TA=async(n,i)=>{const a=await fetch(`/api/scenarios/${encodeURIComponent(n)}/docs/${encodeURIComponent(i)}`);if(!a.ok)throw new Error("Failed to fetch doc");return(await a.json()).doc},xA=(n,i)=>({queryKey:["scenarios",n,"docs",i],queryFn:()=>TA(n,i)}),Z0=Mh()(F0(n=>({previews:{},setPreviewContent:(i,a)=>n(r=>({previews:{...r.previews,[i]:a}})),initializePreview:(i,a)=>n(r=>({previews:{...r.previews,[i]:a}})),resetPreview:i=>n(a=>({previews:{...a.previews,[i]:null}}))}),{name:"design-docs-preview",storage:Ch(()=>sessionStorage),partialize:n=>({previews:n.previews})})),EA=n=>{const i=Z0.getState().previews;return!(n in i)},RA=({content:n,formKey:i})=>{const a=K0(i);EA(a)&&Z0.getState().initializePreview(a,n)},AA=()=>To(()=>import("./index-DYnzYTb1.js"),__vite__mapDeps([9,1,8,5])),_A=Rh({step:Ah(_h())}),MA=pi("/scenarios/$scenarioId/docs/$filename/")({validateSearch:_A,loaderDeps:({search:n})=>({step:n.step}),loader:async({params:n,deps:i})=>{const[a,r]=await Promise.all([Ln.fetchQuery(zl(n.scenarioId)),Ln.fetchQuery(xA(n.scenarioId,n.filename))]).catch(()=>{throw Qi()});if(r.metadata==null)throw Qi();const{steps:l}=a.scenario,f=i.step!=null?l.findIndex(p=>p.slug===i.step):-1,h=f!==-1?f:0,d=l[h];if(d==null)throw Qi();const m=n.filename;return X0({initialValues:r.metadata.formData,formKey:m}),RA({content:r.content,formKey:m}),{stepIndex:h,prevStep:l[h-1],step:d,nextStep:l[h+1]}},component:bo(AA,"component")}),CA=NR.update({id:"/",path:"/",getParentRoute:()=>Wi}),DA=FR.update({id:"/scenarios/",path:"/scenarios/",getParentRoute:()=>Wi}),wA=XR.update({id:"/scenarios/$scenarioId/",path:"/scenarios/$scenarioId/",getParentRoute:()=>Wi}),OA=JR.update({id:"/scenarios/$scenarioId/docs/",path:"/scenarios/$scenarioId/docs/",getParentRoute:()=>Wi}),LA=bA.update({id:"/scenarios/$scenarioId/docs/new/",path:"/scenarios/$scenarioId/docs/new/",getParentRoute:()=>Wi}),zA=MA.update({id:"/scenarios/$scenarioId/docs/$filename/",path:"/scenarios/$scenarioId/docs/$filename/",getParentRoute:()=>Wi}),VA={IndexRoute:CA,ScenariosIndexRoute:DA,ScenariosScenarioIdIndexRoute:wA,ScenariosScenarioIdDocsIndexRoute:OA,ScenariosScenarioIdDocsFilenameIndexRoute:zA,ScenariosScenarioIdDocsNewIndexRoute:LA},BA=Wi._addFileChildren(VA)._addFileTypes(),UA=Mh()(n=>({open:!1,message:"",variant:"info",showSnackbar:(i,a="info")=>n({open:!0,message:i,variant:a}),hideSnackbar:()=>n({open:!1})})),Dh=K.createContext({});function wh(n){const i=K.useRef(null);return i.current===null&&(i.current=n()),i.current}const Oh=typeof window<"u",J0=Oh?K.useLayoutEffect:K.useEffect,Vl=K.createContext(null);function Lh(n,i){n.indexOf(i)===-1&&n.push(i)}function zh(n,i){const a=n.indexOf(i);a>-1&&n.splice(a,1)}const zn=(n,i,a)=>a>i?i:a<n?n:a;let Vh=()=>{};const Vn={},I0=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function $0(n){return typeof n=="object"&&n!==null}const W0=n=>/^0[^.\s]+$/u.test(n);function Bh(n){let i;return()=>(i===void 0&&(i=n()),i)}const Xe=n=>n,jA=(n,i)=>a=>i(n(a)),xo=(...n)=>n.reduce(jA),mo=(n,i,a)=>{const r=i-n;return r===0?1:(a-n)/r};class Uh{constructor(){this.subscriptions=[]}add(i){return Lh(this.subscriptions,i),()=>zh(this.subscriptions,i)}notify(i,a,r){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](i,a,r);else for(let f=0;f<l;f++){const h=this.subscriptions[f];h&&h(i,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ln=n=>n*1e3,ke=n=>n/1e3;function tS(n,i){return i?n*(1e3/i):0}const eS=(n,i,a)=>(((1-3*a+3*i)*n+(3*a-6*i))*n+3*i)*n,NA=1e-7,PA=12;function HA(n,i,a,r,l){let f,h,d=0;do h=i+(a-i)/2,f=eS(h,r,l)-n,f>0?a=h:i=h;while(Math.abs(f)>NA&&++d<PA);return h}function Eo(n,i,a,r){if(n===i&&a===r)return Xe;const l=f=>HA(f,0,1,n,a);return f=>f===0||f===1?f:eS(l(f),i,r)}const nS=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,iS=n=>i=>1-n(1-i),sS=Eo(.33,1.53,.69,.99),jh=iS(sS),aS=nS(jh),oS=n=>(n*=2)<1?.5*jh(n):.5*(2-Math.pow(2,-10*(n-1))),Nh=n=>1-Math.sin(Math.acos(n)),rS=iS(Nh),lS=nS(Nh),qA=Eo(.42,0,1,1),GA=Eo(0,0,.58,1),uS=Eo(.42,0,.58,1),YA=n=>Array.isArray(n)&&typeof n[0]!="number",cS=n=>Array.isArray(n)&&typeof n[0]=="number",FA={linear:Xe,easeIn:qA,easeInOut:uS,easeOut:GA,circIn:Nh,circInOut:lS,circOut:rS,backIn:jh,backInOut:aS,backOut:sS,anticipate:oS},KA=n=>typeof n=="string",Kg=n=>{if(cS(n)){Vh(n.length===4);const[i,a,r,l]=n;return Eo(i,a,r,l)}else if(KA(n))return FA[n];return n},$r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kA(n,i){let a=new Set,r=new Set,l=!1,f=!1;const h=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function m(g){h.has(g)&&(p.schedule(g),n()),g(d)}const p={schedule:(g,v=!1,S=!1)=>{const E=S&&l?a:r;return v&&h.add(g),E.has(g)||E.add(g),g},cancel:g=>{r.delete(g),h.delete(g)},process:g=>{if(d=g,l){f=!0;return}l=!0,[a,r]=[r,a],a.forEach(m),a.clear(),l=!1,f&&(f=!1,p.process(g))}};return p}const QA=40;function fS(n,i){let a=!1,r=!0;const l={delta:0,timestamp:0,isProcessing:!1},f=()=>a=!0,h=$r.reduce((V,P)=>(V[P]=kA(f),V),{}),{setup:d,read:m,resolveKeyframes:p,preUpdate:g,update:v,preRender:S,render:T,postRender:E}=h,_=()=>{const V=Vn.useManualTiming?l.timestamp:performance.now();a=!1,Vn.useManualTiming||(l.delta=r?1e3/60:Math.max(Math.min(V-l.timestamp,QA),1)),l.timestamp=V,l.isProcessing=!0,d.process(l),m.process(l),p.process(l),g.process(l),v.process(l),S.process(l),T.process(l),E.process(l),l.isProcessing=!1,a&&i&&(r=!1,n(_))},C=()=>{a=!0,r=!0,l.isProcessing||n(_)};return{schedule:$r.reduce((V,P)=>{const k=h[P];return V[P]=(U,G=!1,H=!1)=>(a||C(),k.schedule(U,G,H)),V},{}),cancel:V=>{for(let P=0;P<$r.length;P++)h[$r[P]].cancel(V)},state:l,steps:h}}const{schedule:Nt,cancel:gi,state:re,steps:Sf}=fS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0);let sl;function XA(){sl=void 0}const be={now:()=>(sl===void 0&&be.set(re.isProcessing||Vn.useManualTiming?re.timestamp:performance.now()),sl),set:n=>{sl=n,queueMicrotask(XA)}},hS=n=>i=>typeof i=="string"&&i.startsWith(n),dS=hS("--"),ZA=hS("var(--"),Ph=n=>ZA(n)?JA.test(n.split("/*")[0].trim()):!1,JA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Is={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},po={...Is,transform:n=>zn(0,1,n)},Wr={...Is,default:1},ao=n=>Math.round(n*1e5)/1e5,Hh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function IA(n){return n==null}const $A=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qh=(n,i)=>a=>!!(typeof a=="string"&&$A.test(a)&&a.startsWith(n)||i&&!IA(a)&&Object.prototype.hasOwnProperty.call(a,i)),mS=(n,i,a)=>r=>{if(typeof r!="string")return r;const[l,f,h,d]=r.match(Hh);return{[n]:parseFloat(l),[i]:parseFloat(f),[a]:parseFloat(h),alpha:d!==void 0?parseFloat(d):1}},WA=n=>zn(0,255,n),bf={...Is,transform:n=>Math.round(WA(n))},Yi={test:qh("rgb","red"),parse:mS("red","green","blue"),transform:({red:n,green:i,blue:a,alpha:r=1})=>"rgba("+bf.transform(n)+", "+bf.transform(i)+", "+bf.transform(a)+", "+ao(po.transform(r))+")"};function t_(n){let i="",a="",r="",l="";return n.length>5?(i=n.substring(1,3),a=n.substring(3,5),r=n.substring(5,7),l=n.substring(7,9)):(i=n.substring(1,2),a=n.substring(2,3),r=n.substring(3,4),l=n.substring(4,5),i+=i,a+=a,r+=r,l+=l),{red:parseInt(i,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:l?parseInt(l,16)/255:1}}const Hf={test:qh("#"),parse:t_,transform:Yi.transform},Ro=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),ui=Ro("deg"),un=Ro("%"),ot=Ro("px"),e_=Ro("vh"),n_=Ro("vw"),kg={...un,parse:n=>un.parse(n)/100,transform:n=>un.transform(n*100)},qs={test:qh("hsl","hue"),parse:mS("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:a,alpha:r=1})=>"hsla("+Math.round(n)+", "+un.transform(ao(i))+", "+un.transform(ao(a))+", "+ao(po.transform(r))+")"},It={test:n=>Yi.test(n)||Hf.test(n)||qs.test(n),parse:n=>Yi.test(n)?Yi.parse(n):qs.test(n)?qs.parse(n):Hf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Yi.transform(n):qs.transform(n),getAnimatableNone:n=>{const i=It.parse(n);return i.alpha=0,It.transform(i)}},i_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function s_(n){return isNaN(n)&&typeof n=="string"&&(n.match(Hh)?.length||0)+(n.match(i_)?.length||0)>0}const pS="number",yS="color",a_="var",o_="var(",Qg="${}",r_=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yo(n){const i=n.toString(),a=[],r={color:[],number:[],var:[]},l=[];let f=0;const d=i.replace(r_,m=>(It.test(m)?(r.color.push(f),l.push(yS),a.push(It.parse(m))):m.startsWith(o_)?(r.var.push(f),l.push(a_),a.push(m)):(r.number.push(f),l.push(pS),a.push(parseFloat(m))),++f,Qg)).split(Qg);return{values:a,split:d,indexes:r,types:l}}function gS(n){return yo(n).values}function vS(n){const{split:i,types:a}=yo(n),r=i.length;return l=>{let f="";for(let h=0;h<r;h++)if(f+=i[h],l[h]!==void 0){const d=a[h];d===pS?f+=ao(l[h]):d===yS?f+=It.transform(l[h]):f+=l[h]}return f}}const l_=n=>typeof n=="number"?0:It.test(n)?It.getAnimatableNone(n):n;function u_(n){const i=gS(n);return vS(n)(i.map(l_))}const vi={test:s_,parse:gS,createTransformer:vS,getAnimatableNone:u_};function Tf(n,i,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?n+(i-n)*6*a:a<1/2?i:a<2/3?n+(i-n)*(2/3-a)*6:n}function c_({hue:n,saturation:i,lightness:a,alpha:r}){n/=360,i/=100,a/=100;let l=0,f=0,h=0;if(!i)l=f=h=a;else{const d=a<.5?a*(1+i):a+i-a*i,m=2*a-d;l=Tf(m,d,n+1/3),f=Tf(m,d,n),h=Tf(m,d,n-1/3)}return{red:Math.round(l*255),green:Math.round(f*255),blue:Math.round(h*255),alpha:r}}function bl(n,i){return a=>a>0?i:n}const Ht=(n,i,a)=>n+(i-n)*a,xf=(n,i,a)=>{const r=n*n,l=a*(i*i-r)+r;return l<0?0:Math.sqrt(l)},f_=[Hf,Yi,qs],h_=n=>f_.find(i=>i.test(n));function Xg(n){const i=h_(n);if(!i)return!1;let a=i.parse(n);return i===qs&&(a=c_(a)),a}const Zg=(n,i)=>{const a=Xg(n),r=Xg(i);if(!a||!r)return bl(n,i);const l={...a};return f=>(l.red=xf(a.red,r.red,f),l.green=xf(a.green,r.green,f),l.blue=xf(a.blue,r.blue,f),l.alpha=Ht(a.alpha,r.alpha,f),Yi.transform(l))},qf=new Set(["none","hidden"]);function d_(n,i){return qf.has(n)?a=>a<=0?n:i:a=>a>=1?i:n}function m_(n,i){return a=>Ht(n,i,a)}function Gh(n){return typeof n=="number"?m_:typeof n=="string"?Ph(n)?bl:It.test(n)?Zg:g_:Array.isArray(n)?SS:typeof n=="object"?It.test(n)?Zg:p_:bl}function SS(n,i){const a=[...n],r=a.length,l=n.map((f,h)=>Gh(f)(f,i[h]));return f=>{for(let h=0;h<r;h++)a[h]=l[h](f);return a}}function p_(n,i){const a={...n,...i},r={};for(const l in a)n[l]!==void 0&&i[l]!==void 0&&(r[l]=Gh(n[l])(n[l],i[l]));return l=>{for(const f in r)a[f]=r[f](l);return a}}function y_(n,i){const a=[],r={color:0,var:0,number:0};for(let l=0;l<i.values.length;l++){const f=i.types[l],h=n.indexes[f][r[f]],d=n.values[h]??0;a[l]=d,r[f]++}return a}const g_=(n,i)=>{const a=vi.createTransformer(i),r=yo(n),l=yo(i);return r.indexes.var.length===l.indexes.var.length&&r.indexes.color.length===l.indexes.color.length&&r.indexes.number.length>=l.indexes.number.length?qf.has(n)&&!l.values.length||qf.has(i)&&!r.values.length?d_(n,i):xo(SS(y_(r,l),l.values),a):bl(n,i)};function bS(n,i,a){return typeof n=="number"&&typeof i=="number"&&typeof a=="number"?Ht(n,i,a):Gh(n)(n,i)}const v_=n=>{const i=({timestamp:a})=>n(a);return{start:(a=!0)=>Nt.update(i,a),stop:()=>gi(i),now:()=>re.isProcessing?re.timestamp:be.now()}},TS=(n,i,a=10)=>{let r="";const l=Math.max(Math.round(i/a),2);for(let f=0;f<l;f++)r+=Math.round(n(f/(l-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Tl=2e4;function Yh(n){let i=0;const a=50;let r=n.next(i);for(;!r.done&&i<Tl;)i+=a,r=n.next(i);return i>=Tl?1/0:i}function S_(n,i=100,a){const r=a({...n,keyframes:[0,i]}),l=Math.min(Yh(r),Tl);return{type:"keyframes",ease:f=>r.next(l*f).value/i,duration:ke(l)}}const b_=5;function xS(n,i,a){const r=Math.max(i-b_,0);return tS(a-n(r),i-r)}const Yt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ef=.001;function T_({duration:n=Yt.duration,bounce:i=Yt.bounce,velocity:a=Yt.velocity,mass:r=Yt.mass}){let l,f,h=1-i;h=zn(Yt.minDamping,Yt.maxDamping,h),n=zn(Yt.minDuration,Yt.maxDuration,ke(n)),h<1?(l=p=>{const g=p*h,v=g*n,S=g-a,T=Gf(p,h),E=Math.exp(-v);return Ef-S/T*E},f=p=>{const v=p*h*n,S=v*a+a,T=Math.pow(h,2)*Math.pow(p,2)*n,E=Math.exp(-v),_=Gf(Math.pow(p,2),h);return(-l(p)+Ef>0?-1:1)*((S-T)*E)/_}):(l=p=>{const g=Math.exp(-p*n),v=(p-a)*n+1;return-Ef+g*v},f=p=>{const g=Math.exp(-p*n),v=(a-p)*(n*n);return g*v});const d=5/n,m=E_(l,f,d);if(n=ln(n),isNaN(m))return{stiffness:Yt.stiffness,damping:Yt.damping,duration:n};{const p=Math.pow(m,2)*r;return{stiffness:p,damping:h*2*Math.sqrt(r*p),duration:n}}}const x_=12;function E_(n,i,a){let r=a;for(let l=1;l<x_;l++)r=r-n(r)/i(r);return r}function Gf(n,i){return n*Math.sqrt(1-i*i)}const R_=["duration","bounce"],A_=["stiffness","damping","mass"];function Jg(n,i){return i.some(a=>n[a]!==void 0)}function __(n){let i={velocity:Yt.velocity,stiffness:Yt.stiffness,damping:Yt.damping,mass:Yt.mass,isResolvedFromDuration:!1,...n};if(!Jg(n,A_)&&Jg(n,R_))if(n.visualDuration){const a=n.visualDuration,r=2*Math.PI/(a*1.2),l=r*r,f=2*zn(.05,1,1-(n.bounce||0))*Math.sqrt(l);i={...i,mass:Yt.mass,stiffness:l,damping:f}}else{const a=T_(n);i={...i,...a,mass:Yt.mass},i.isResolvedFromDuration=!0}return i}function xl(n=Yt.visualDuration,i=Yt.bounce){const a=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:l}=a;const f=a.keyframes[0],h=a.keyframes[a.keyframes.length-1],d={done:!1,value:f},{stiffness:m,damping:p,mass:g,duration:v,velocity:S,isResolvedFromDuration:T}=__({...a,velocity:-ke(a.velocity||0)}),E=S||0,_=p/(2*Math.sqrt(m*g)),C=h-f,M=ke(Math.sqrt(m/g)),w=Math.abs(C)<5;r||(r=w?Yt.restSpeed.granular:Yt.restSpeed.default),l||(l=w?Yt.restDelta.granular:Yt.restDelta.default);let V;if(_<1){const k=Gf(M,_);V=U=>{const G=Math.exp(-_*M*U);return h-G*((E+_*M*C)/k*Math.sin(k*U)+C*Math.cos(k*U))}}else if(_===1)V=k=>h-Math.exp(-M*k)*(C+(E+M*C)*k);else{const k=M*Math.sqrt(_*_-1);V=U=>{const G=Math.exp(-_*M*U),H=Math.min(k*U,300);return h-G*((E+_*M*C)*Math.sinh(H)+k*C*Math.cosh(H))/k}}const P={calculatedDuration:T&&v||null,next:k=>{const U=V(k);if(T)d.done=k>=v;else{let G=k===0?E:0;_<1&&(G=k===0?ln(E):xS(V,k,U));const H=Math.abs(G)<=r,Z=Math.abs(h-U)<=l;d.done=H&&Z}return d.value=d.done?h:U,d},toString:()=>{const k=Math.min(Yh(P),Tl),U=TS(G=>P.next(k*G).value,k,30);return k+"ms "+U},toTransition:()=>{}};return P}xl.applyToOptions=n=>{const i=S_(n,100,xl);return n.ease=i.ease,n.duration=ln(i.duration),n.type="keyframes",n};function Yf({keyframes:n,velocity:i=0,power:a=.8,timeConstant:r=325,bounceDamping:l=10,bounceStiffness:f=500,modifyTarget:h,min:d,max:m,restDelta:p=.5,restSpeed:g}){const v=n[0],S={done:!1,value:v},T=H=>d!==void 0&&H<d||m!==void 0&&H>m,E=H=>d===void 0?m:m===void 0||Math.abs(d-H)<Math.abs(m-H)?d:m;let _=a*i;const C=v+_,M=h===void 0?C:h(C);M!==C&&(_=M-v);const w=H=>-_*Math.exp(-H/r),V=H=>M+w(H),P=H=>{const Z=w(H),nt=V(H);S.done=Math.abs(Z)<=p,S.value=S.done?M:nt};let k,U;const G=H=>{T(S.value)&&(k=H,U=xl({keyframes:[S.value,E(S.value)],velocity:xS(V,H,S.value),damping:l,stiffness:f,restDelta:p,restSpeed:g}))};return G(0),{calculatedDuration:null,next:H=>{let Z=!1;return!U&&k===void 0&&(Z=!0,P(H),G(H)),k!==void 0&&H>=k?U.next(H-k):(!Z&&P(H),S)}}}function M_(n,i,a){const r=[],l=a||Vn.mix||bS,f=n.length-1;for(let h=0;h<f;h++){let d=l(n[h],n[h+1]);if(i){const m=Array.isArray(i)?i[h]||Xe:i;d=xo(m,d)}r.push(d)}return r}function C_(n,i,{clamp:a=!0,ease:r,mixer:l}={}){const f=n.length;if(Vh(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const h=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const d=M_(i,r,l),m=d.length,p=g=>{if(h&&g<n[0])return i[0];let v=0;if(m>1)for(;v<n.length-2&&!(g<n[v+1]);v++);const S=mo(n[v],n[v+1],g);return d[v](S)};return a?g=>p(zn(n[0],n[f-1],g)):p}function D_(n,i){const a=n[n.length-1];for(let r=1;r<=i;r++){const l=mo(0,i,r);n.push(Ht(a,1,l))}}function w_(n){const i=[0];return D_(i,n.length-1),i}function O_(n,i){return n.map(a=>a*i)}function L_(n,i){return n.map(()=>i||uS).splice(0,n.length-1)}function oo({duration:n=300,keyframes:i,times:a,ease:r="easeInOut"}){const l=YA(r)?r.map(Kg):Kg(r),f={done:!1,value:i[0]},h=O_(a&&a.length===i.length?a:w_(i),n),d=C_(h,i,{ease:Array.isArray(l)?l:L_(i,l)});return{calculatedDuration:n,next:m=>(f.value=d(m),f.done=m>=n,f)}}const z_=n=>n!==null;function Fh(n,{repeat:i,repeatType:a="loop"},r,l=1){const f=n.filter(z_),d=l<0||i&&a!=="loop"&&i%2===1?0:f.length-1;return!d||r===void 0?f[d]:r}const V_={decay:Yf,inertia:Yf,tween:oo,keyframes:oo,spring:xl};function ES(n){typeof n.type=="string"&&(n.type=V_[n.type])}class Kh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,a){return this.finished.then(i,a)}}const B_=n=>n/100;class kh extends Kh{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==be.now()&&this.tick(be.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;ES(i);const{type:a=oo,repeat:r=0,repeatDelay:l=0,repeatType:f,velocity:h=0}=i;let{keyframes:d}=i;const m=a||oo;m!==oo&&typeof d[0]!="number"&&(this.mixKeyframes=xo(B_,bS(d[0],d[1])),d=[0,100]);const p=m({...i,keyframes:d});f==="mirror"&&(this.mirroredGenerator=m({...i,keyframes:[...d].reverse(),velocity:-h})),p.calculatedDuration===null&&(p.calculatedDuration=Yh(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+l,this.totalDuration=this.resolvedDuration*(r+1)-l,this.generator=p}updateTime(i){const a=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(i,a=!1){const{generator:r,totalDuration:l,mixKeyframes:f,mirroredGenerator:h,resolvedDuration:d,calculatedDuration:m}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:g,repeat:v,repeatType:S,repeatDelay:T,type:E,onUpdate:_,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-l/this.speed,this.startTime)),a?this.currentTime=i:this.updateTime(i);const M=this.currentTime-p*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?M<0:M>l;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let V=this.currentTime,P=r;if(v){const H=Math.min(this.currentTime,l)/d;let Z=Math.floor(H),nt=H%1;!nt&&H>=1&&(nt=1),nt===1&&Z--,Z=Math.min(Z,v+1),Z%2&&(S==="reverse"?(nt=1-nt,T&&(nt-=T/d)):S==="mirror"&&(P=h)),V=zn(0,1,nt)*d}const k=w?{done:!1,value:g[0]}:P.next(V);f&&(k.value=f(k.value));let{done:U}=k;!w&&m!==null&&(U=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return G&&E!==Yf&&(k.value=Fh(g,this.options,C,this.speed)),_&&_(k.value),G&&this.finish(),k}then(i,a){return this.finished.then(i,a)}get duration(){return ke(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+ke(i)}get time(){return ke(this.currentTime)}set time(i){i=ln(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(be.now());const a=this.playbackSpeed!==i;this.playbackSpeed=i,a&&(this.time=ke(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=v_,startTime:a}=this.options;this.driver||(this.driver=i(l=>this.tick(l))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=a??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(be.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function U_(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const Fi=n=>n*180/Math.PI,Ff=n=>{const i=Fi(Math.atan2(n[1],n[0]));return Kf(i)},j_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Ff,rotateZ:Ff,skewX:n=>Fi(Math.atan(n[1])),skewY:n=>Fi(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Kf=n=>(n=n%360,n<0&&(n+=360),n),Ig=Ff,$g=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Wg=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),N_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$g,scaleY:Wg,scale:n=>($g(n)+Wg(n))/2,rotateX:n=>Kf(Fi(Math.atan2(n[6],n[5]))),rotateY:n=>Kf(Fi(Math.atan2(-n[2],n[0]))),rotateZ:Ig,rotate:Ig,skewX:n=>Fi(Math.atan(n[4])),skewY:n=>Fi(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function kf(n){return n.includes("scale")?1:0}function Qf(n,i){if(!n||n==="none")return kf(i);const a=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,l;if(a)r=N_,l=a;else{const d=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=j_,l=d}if(!l)return kf(i);const f=r[i],h=l[1].split(",").map(H_);return typeof f=="function"?f(h):h[f]}const P_=(n,i)=>{const{transform:a="none"}=getComputedStyle(n);return Qf(a,i)};function H_(n){return parseFloat(n.trim())}const $s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ws=new Set($s),tv=n=>n===Is||n===ot,q_=new Set(["x","y","z"]),G_=$s.filter(n=>!q_.has(n));function Y_(n){const i=[];return G_.forEach(a=>{const r=n.getValue(a);r!==void 0&&(i.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),i}const Zi={width:({x:n},{paddingLeft:i="0",paddingRight:a="0"})=>n.max-n.min-parseFloat(i)-parseFloat(a),height:({y:n},{paddingTop:i="0",paddingBottom:a="0"})=>n.max-n.min-parseFloat(i)-parseFloat(a),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>Qf(i,"x"),y:(n,{transform:i})=>Qf(i,"y")};Zi.translateX=Zi.x;Zi.translateY=Zi.y;const Ji=new Set;let Xf=!1,Zf=!1,Jf=!1;function RS(){if(Zf){const n=Array.from(Ji).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),a=new Map;i.forEach(r=>{const l=Y_(r);l.length&&(a.set(r,l),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const l=a.get(r);l&&l.forEach(([f,h])=>{r.getValue(f)?.set(h)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zf=!1,Xf=!1,Ji.forEach(n=>n.complete(Jf)),Ji.clear()}function AS(){Ji.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Zf=!0)})}function F_(){Jf=!0,AS(),RS(),Jf=!1}class Qh{constructor(i,a,r,l,f,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=a,this.name=r,this.motionValue=l,this.element=f,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Ji.add(this),Xf||(Xf=!0,Nt.read(AS),Nt.resolveKeyframes(RS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:a,element:r,motionValue:l}=this;if(i[0]===null){const f=l?.get(),h=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&a){const d=r.readValue(a,h);d!=null&&(i[0]=d)}i[0]===void 0&&(i[0]=h),l&&f===void 0&&l.set(i[0])}U_(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ji.delete(this)}cancel(){this.state==="scheduled"&&(Ji.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const K_=n=>n.startsWith("--");function k_(n,i,a){K_(i)?n.style.setProperty(i,a):n.style[i]=a}const Q_=Bh(()=>window.ScrollTimeline!==void 0),X_={};function Z_(n,i){const a=Bh(n);return()=>X_[i]??a()}const _S=Z_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),eo=([n,i,a,r])=>`cubic-bezier(${n}, ${i}, ${a}, ${r})`,ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eo([0,.65,.55,1]),circOut:eo([.55,0,1,.45]),backIn:eo([.31,.01,.66,-.59]),backOut:eo([.33,1.53,.69,.99])};function MS(n,i){if(n)return typeof n=="function"?_S()?TS(n,i):"ease-out":cS(n)?eo(n):Array.isArray(n)?n.map(a=>MS(a,i)||ev.easeOut):ev[n]}function J_(n,i,a,{delay:r=0,duration:l=300,repeat:f=0,repeatType:h="loop",ease:d="easeOut",times:m}={},p=void 0){const g={[i]:a};m&&(g.offset=m);const v=MS(d,l);Array.isArray(v)&&(g.easing=v);const S={delay:r,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:h==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(g,S)}function CS(n){return typeof n=="function"&&"applyToOptions"in n}function I_({type:n,...i}){return CS(n)&&_S()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class $_ extends Kh{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:a,name:r,keyframes:l,pseudoElement:f,allowFlatten:h=!1,finalKeyframe:d,onComplete:m}=i;this.isPseudoElement=!!f,this.allowFlatten=h,this.options=i,Vh(typeof i.type!="string");const p=I_(i);this.animation=J_(a,r,l,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const g=Fh(l,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(g):k_(a,r,g),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return ke(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+ke(i)}get time(){return ke(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=ln(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&Q_()?(this.animation.timeline=i,Xe):a(this)}}const DS={anticipate:oS,backInOut:aS,circInOut:lS};function W_(n){return n in DS}function tM(n){typeof n.ease=="string"&&W_(n.ease)&&(n.ease=DS[n.ease])}const nv=10;class eM extends $_{constructor(i){tM(i),ES(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:a,onUpdate:r,onComplete:l,element:f,...h}=this.options;if(!a)return;if(i!==void 0){a.set(i);return}const d=new kh({...h,autoplay:!1}),m=ln(this.finishedTime??this.time);a.setWithVelocity(d.sample(m-nv).value,d.sample(m).value,nv),d.stop()}}const iv=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(vi.test(n)||n==="0")&&!n.startsWith("url("));function nM(n){const i=n[0];if(n.length===1)return!0;for(let a=0;a<n.length;a++)if(n[a]!==i)return!0}function iM(n,i,a,r){const l=n[0];if(l===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],h=iv(l,i),d=iv(f,i);return!h||!d?!1:nM(n)||(a==="spring"||CS(a))&&r}function If(n){n.duration=0,n.type="keyframes"}const sM=new Set(["opacity","clipPath","filter","transform"]),aM=Bh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oM(n){const{motionValue:i,name:a,repeatDelay:r,repeatType:l,damping:f,type:h}=n;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=i.owner.getProps();return aM()&&a&&sM.has(a)&&(a!=="transform"||!p)&&!m&&!r&&l!=="mirror"&&f!==0&&h!=="inertia"}const rM=40;class lM extends Kh{constructor({autoplay:i=!0,delay:a=0,type:r="keyframes",repeat:l=0,repeatDelay:f=0,repeatType:h="loop",keyframes:d,name:m,motionValue:p,element:g,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=be.now();const S={autoplay:i,delay:a,type:r,repeat:l,repeatDelay:f,repeatType:h,name:m,motionValue:p,element:g,...v},T=g?.KeyframeResolver||Qh;this.keyframeResolver=new T(d,(E,_,C)=>this.onKeyframesResolved(E,_,S,!C),m,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,a,r,l){this.keyframeResolver=void 0;const{name:f,type:h,velocity:d,delay:m,isHandoff:p,onUpdate:g}=r;this.resolvedAt=be.now(),iM(i,f,h,d)||((Vn.instantAnimations||!m)&&g?.(Fh(i,r,a)),i[0]=i[i.length-1],If(r),r.repeat=0);const S={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>rM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:i},T=!p&&oM(S)?new eM({...S,element:S.motionValue.owner.current}):new kh(S);T.finished.then(()=>this.notifyFinished()).catch(Xe),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(i,a){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),F_()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const uM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cM(n){const i=uM.exec(n);if(!i)return[,];const[,a,r,l]=i;return[`--${a??r}`,l]}function wS(n,i,a=1){const[r,l]=cM(n);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const h=f.trim();return I0(h)?parseFloat(h):h}return Ph(l)?wS(l,i,a+1):l}function Xh(n,i){return n?.[i]??n?.default??n}const OS=new Set(["width","height","top","left","right","bottom",...$s]),fM={test:n=>n==="auto",parse:n=>n},LS=n=>i=>i.test(n),zS=[Is,ot,un,ui,n_,e_,fM],sv=n=>zS.find(LS(n));function hM(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||W0(n):!0}const dM=new Set(["brightness","contrast","saturate","opacity"]);function mM(n){const[i,a]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=a.match(Hh)||[];if(!r)return n;const l=a.replace(r,"");let f=dM.has(i)?1:0;return r!==a&&(f*=100),i+"("+f+l+")"}const pM=/\b([a-z-]*)\(.*?\)/gu,$f={...vi,getAnimatableNone:n=>{const i=n.match(pM);return i?i.map(mM).join(" "):n}},av={...Is,transform:Math.round},yM={rotate:ui,rotateX:ui,rotateY:ui,rotateZ:ui,scale:Wr,scaleX:Wr,scaleY:Wr,scaleZ:Wr,skew:ui,skewX:ui,skewY:ui,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:po,originX:kg,originY:kg,originZ:ot},Zh={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,radius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,top:ot,right:ot,bottom:ot,left:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,backgroundPositionX:ot,backgroundPositionY:ot,...yM,zIndex:av,fillOpacity:po,strokeOpacity:po,numOctaves:av},gM={...Zh,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:$f,WebkitFilter:$f},VS=n=>gM[n];function BS(n,i){let a=VS(n);return a!==$f&&(a=vi),a.getAnimatableNone?a.getAnimatableNone(i):void 0}const vM=new Set(["auto","none","0"]);function SM(n,i,a){let r=0,l;for(;r<n.length&&!l;){const f=n[r];typeof f=="string"&&!vM.has(f)&&yo(f).values.length&&(l=n[r]),r++}if(l&&a)for(const f of i)n[f]=BS(a,l)}class bM extends Qh{constructor(i,a,r,l,f){super(i,a,r,l,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let p=i[m];if(typeof p=="string"&&(p=p.trim(),Ph(p))){const g=wS(p,a.current);g!==void 0&&(i[m]=g),m===i.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!OS.has(r)||i.length!==2)return;const[l,f]=i,h=sv(l),d=sv(f);if(h!==d)if(tv(h)&&tv(d))for(let m=0;m<i.length;m++){const p=i[m];typeof p=="string"&&(i[m]=parseFloat(p))}else Zi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:a}=this,r=[];for(let l=0;l<i.length;l++)(i[l]===null||hM(i[l]))&&r.push(l);r.length&&SM(i,r,a)}measureInitialState(){const{element:i,unresolvedKeyframes:a,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zi[r](i.measureViewportBox(),window.getComputedStyle(i.current)),a[0]=this.measuredOrigin;const l=a[a.length-1];l!==void 0&&i.getValue(r,l).jump(l,!1)}measureEndState(){const{element:i,name:a,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const l=i.getValue(a);l&&l.jump(this.measuredOrigin,!1);const f=r.length-1,h=r[f];r[f]=Zi[a](i.measureViewportBox(),window.getComputedStyle(i.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,m])=>{i.getValue(d).set(m)}),this.resolveNoneKeyframes()}}function TM(n,i,a){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const l=a?.[n]??r.querySelectorAll(n);return l?Array.from(l):[]}return Array.from(n)}const US=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function jS(n){return $0(n)&&"offsetHeight"in n}const ov=30,xM=n=>!isNaN(parseFloat(n));class EM{constructor(i,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const l=be.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=a.owner}setCurrent(i){this.current=i,this.updatedAt=be.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=xM(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,a){this.events[i]||(this.events[i]=new Uh);const r=this.events[i].add(a);return i==="change"?()=>{r(),Nt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,a){this.passiveEffect=i,this.stopPassiveEffect=a}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,a=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>ov)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,ov);return tS(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(i){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=i(a),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zs(n,i){return new EM(n,i)}const{schedule:Jh}=fS(queueMicrotask,!1),tn={x:!1,y:!1};function NS(){return tn.x||tn.y}function RM(n){return n==="x"||n==="y"?tn[n]?null:(tn[n]=!0,()=>{tn[n]=!1}):tn.x||tn.y?null:(tn.x=tn.y=!0,()=>{tn.x=tn.y=!1})}function PS(n,i){const a=TM(n),r=new AbortController,l={passive:!0,...i,signal:r.signal};return[a,l,()=>r.abort()]}function rv(n){return!(n.pointerType==="touch"||NS())}function AM(n,i,a={}){const[r,l,f]=PS(n,a),h=d=>{if(!rv(d))return;const{target:m}=d,p=i(m,d);if(typeof p!="function"||!m)return;const g=v=>{rv(v)&&(p(v),m.removeEventListener("pointerleave",g))};m.addEventListener("pointerleave",g,l)};return r.forEach(d=>{d.addEventListener("pointerenter",h,l)}),f}const HS=(n,i)=>i?n===i?!0:HS(n,i.parentElement):!1,Ih=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,_M=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function MM(n){return _M.has(n.tagName)||n.tabIndex!==-1}const al=new WeakSet;function lv(n){return i=>{i.key==="Enter"&&n(i)}}function Rf(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const CM=(n,i)=>{const a=n.currentTarget;if(!a)return;const r=lv(()=>{if(al.has(a))return;Rf(a,"down");const l=lv(()=>{Rf(a,"up")}),f=()=>Rf(a,"cancel");a.addEventListener("keyup",l,i),a.addEventListener("blur",f,i)});a.addEventListener("keydown",r,i),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),i)};function uv(n){return Ih(n)&&!NS()}function DM(n,i,a={}){const[r,l,f]=PS(n,a),h=d=>{const m=d.currentTarget;if(!uv(d))return;al.add(m);const p=i(m,d),g=(T,E)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",S),al.has(m)&&al.delete(m),uv(T)&&typeof p=="function"&&p(T,{success:E})},v=T=>{g(T,m===window||m===document||a.useGlobalTarget||HS(m,T.target))},S=T=>{g(T,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",S,l)};return r.forEach(d=>{(a.useGlobalTarget?window:d).addEventListener("pointerdown",h,l),jS(d)&&(d.addEventListener("focus",p=>CM(p,l)),!MM(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),f}function qS(n){return $0(n)&&"ownerSVGElement"in n}function wM(n){return qS(n)&&n.tagName==="svg"}const ue=n=>!!(n&&n.getVelocity),OM=[...zS,It,vi],LM=n=>OM.find(LS(n)),$h=K.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function cv(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function zM(...n){return i=>{let a=!1;const r=n.map(l=>{const f=cv(l,i);return!a&&typeof f=="function"&&(a=!0),f});if(a)return()=>{for(let l=0;l<r.length;l++){const f=r[l];typeof f=="function"?f():cv(n[l],null)}}}}function VM(...n){return K.useCallback(zM(...n),n)}class BM extends K.Component{getSnapshotBeforeUpdate(i){const a=this.props.childRef.current;if(a&&i.isPresent&&!this.props.isPresent){const r=a.offsetParent,l=jS(r)&&r.offsetWidth||0,f=this.props.sizeRef.current;f.height=a.offsetHeight||0,f.width=a.offsetWidth||0,f.top=a.offsetTop,f.left=a.offsetLeft,f.right=l-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function UM({children:n,isPresent:i,anchorX:a,root:r}){const l=K.useId(),f=K.useRef(null),h=K.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=K.useContext($h),m=VM(f,n?.ref);return K.useInsertionEffect(()=>{const{width:p,height:g,top:v,left:S,right:T}=h.current;if(i||!f.current||!p||!g)return;const E=a==="left"?`left: ${S}`:`right: ${T}`;f.current.dataset.motionPopId=l;const _=document.createElement("style");d&&(_.nonce=d);const C=r??document.head;return C.appendChild(_),_.sheet&&_.sheet.insertRule(`
19
+ [data-motion-pop-id="${l}"] {
20
+ position: absolute !important;
21
+ width: ${p}px !important;
22
+ height: ${g}px !important;
23
+ ${E}px !important;
24
+ top: ${v}px !important;
25
+ }
26
+ `),()=>{C.contains(_)&&C.removeChild(_)}},[i]),X.jsx(BM,{isPresent:i,childRef:f,sizeRef:h,children:K.cloneElement(n,{ref:m})})}const jM=({children:n,initial:i,isPresent:a,onExitComplete:r,custom:l,presenceAffectsLayout:f,mode:h,anchorX:d,root:m})=>{const p=wh(NM),g=K.useId();let v=!0,S=K.useMemo(()=>(v=!1,{id:g,initial:i,isPresent:a,custom:l,onExitComplete:T=>{p.set(T,!0);for(const E of p.values())if(!E)return;r&&r()},register:T=>(p.set(T,!1),()=>p.delete(T))}),[a,p,r]);return f&&v&&(S={...S}),K.useMemo(()=>{p.forEach((T,E)=>p.set(E,!1))},[a]),K.useEffect(()=>{!a&&!p.size&&r&&r()},[a]),h==="popLayout"&&(n=X.jsx(UM,{isPresent:a,anchorX:d,root:m,children:n})),X.jsx(Vl.Provider,{value:S,children:n})};function NM(){return new Map}function GS(n=!0){const i=K.useContext(Vl);if(i===null)return[!0,null];const{isPresent:a,onExitComplete:r,register:l}=i,f=K.useId();K.useEffect(()=>{if(n)return l(f)},[n]);const h=K.useCallback(()=>n&&r&&r(f),[f,r,n]);return!a&&r?[!1,h]:[!0]}const tl=n=>n.key||"";function fv(n){const i=[];return K.Children.forEach(n,a=>{K.isValidElement(a)&&i.push(a)}),i}const PM=({children:n,custom:i,initial:a=!0,onExitComplete:r,presenceAffectsLayout:l=!0,mode:f="sync",propagate:h=!1,anchorX:d="left",root:m})=>{const[p,g]=GS(h),v=K.useMemo(()=>fv(n),[n]),S=h&&!p?[]:v.map(tl),T=K.useRef(!0),E=K.useRef(v),_=wh(()=>new Map),[C,M]=K.useState(v),[w,V]=K.useState(v);J0(()=>{T.current=!1,E.current=v;for(let U=0;U<w.length;U++){const G=tl(w[U]);S.includes(G)?_.delete(G):_.get(G)!==!0&&_.set(G,!1)}},[w,S.length,S.join("-")]);const P=[];if(v!==C){let U=[...v];for(let G=0;G<w.length;G++){const H=w[G],Z=tl(H);S.includes(Z)||(U.splice(G,0,H),P.push(H))}return f==="wait"&&P.length&&(U=P),V(fv(U)),M(v),null}const{forceRender:k}=K.useContext(Dh);return X.jsx(X.Fragment,{children:w.map(U=>{const G=tl(U),H=h&&!p?!1:v===w||S.includes(G),Z=()=>{if(_.has(G))_.set(G,!0);else return;let nt=!0;_.forEach(st=>{st||(nt=!1)}),nt&&(k?.(),V(E.current),h&&g?.(),r&&r())};return X.jsx(jM,{isPresent:H,initial:!T.current||a?void 0:!1,custom:i,presenceAffectsLayout:l,mode:f,root:m,onExitComplete:H?void 0:Z,anchorX:d,children:U},G)})})},YS=K.createContext({strict:!1}),hv={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"]},Js={};for(const n in hv)Js[n]={isEnabled:i=>hv[n].some(a=>!!i[a])};function HM(n){for(const i in n)Js[i]={...Js[i],...n[i]}}const qM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function El(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||qM.has(n)}let FS=n=>!El(n);function GM(n){typeof n=="function"&&(FS=i=>i.startsWith("on")?!El(i):n(i))}try{GM(require("@emotion/is-prop-valid").default)}catch{}function YM(n,i,a){const r={};for(const l in n)l==="values"&&typeof n.values=="object"||(FS(l)||a===!0&&El(l)||!i&&!El(l)||n.draggable&&l.startsWith("onDrag"))&&(r[l]=n[l]);return r}const Bl=K.createContext({});function Ul(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function go(n){return typeof n=="string"||Array.isArray(n)}const Wh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],td=["initial",...Wh];function jl(n){return Ul(n.animate)||td.some(i=>go(n[i]))}function KS(n){return!!(jl(n)||n.variants)}function FM(n,i){if(jl(n)){const{initial:a,animate:r}=n;return{initial:a===!1||go(a)?a:void 0,animate:go(r)?r:void 0}}return n.inherit!==!1?i:{}}function KM(n){const{initial:i,animate:a}=FM(n,K.useContext(Bl));return K.useMemo(()=>({initial:i,animate:a}),[dv(i),dv(a)])}function dv(n){return Array.isArray(n)?n.join(" "):n}function mv(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const Wa={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(ot.test(n))n=parseFloat(n);else return n;const a=mv(n,i.target.x),r=mv(n,i.target.y);return`${a}% ${r}%`}},kM={correct:(n,{treeScale:i,projectionDelta:a})=>{const r=n,l=vi.parse(n);if(l.length>5)return r;const f=vi.createTransformer(n),h=typeof l[0]!="number"?1:0,d=a.x.scale*i.x,m=a.y.scale*i.y;l[0+h]/=d,l[1+h]/=m;const p=Ht(d,m,.5);return typeof l[2+h]=="number"&&(l[2+h]/=p),typeof l[3+h]=="number"&&(l[3+h]/=p),f(l)}},Wf={borderRadius:{...Wa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wa,borderTopRightRadius:Wa,borderBottomLeftRadius:Wa,borderBottomRightRadius:Wa,boxShadow:kM};function kS(n,{layout:i,layoutId:a}){return Ws.has(n)||n.startsWith("origin")||(i||a!==void 0)&&(!!Wf[n]||n==="opacity")}const QM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XM=$s.length;function ZM(n,i,a){let r="",l=!0;for(let f=0;f<XM;f++){const h=$s[f],d=n[h];if(d===void 0)continue;let m=!0;if(typeof d=="number"?m=d===(h.startsWith("scale")?1:0):m=parseFloat(d)===0,!m||a){const p=US(d,Zh[h]);if(!m){l=!1;const g=QM[h]||h;r+=`${g}(${p}) `}a&&(i[h]=p)}}return r=r.trim(),a?r=a(i,l?"":r):l&&(r="none"),r}function ed(n,i,a){const{style:r,vars:l,transformOrigin:f}=n;let h=!1,d=!1;for(const m in i){const p=i[m];if(Ws.has(m)){h=!0;continue}else if(dS(m)){l[m]=p;continue}else{const g=US(p,Zh[m]);m.startsWith("origin")?(d=!0,f[m]=g):r[m]=g}}if(i.transform||(h||a?r.transform=ZM(i,n.transform,a):r.transform&&(r.transform="none")),d){const{originX:m="50%",originY:p="50%",originZ:g=0}=f;r.transformOrigin=`${m} ${p} ${g}`}}const nd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function QS(n,i,a){for(const r in i)!ue(i[r])&&!kS(r,a)&&(n[r]=i[r])}function JM({transformTemplate:n},i){return K.useMemo(()=>{const a=nd();return ed(a,i,n),Object.assign({},a.vars,a.style)},[i])}function IM(n,i){const a=n.style||{},r={};return QS(r,a,n),Object.assign(r,JM(n,i)),r}function $M(n,i){const a={},r=IM(n,i);return n.drag&&n.dragListener!==!1&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(a.tabIndex=0),a.style=r,a}const WM={offset:"stroke-dashoffset",array:"stroke-dasharray"},tC={offset:"strokeDashoffset",array:"strokeDasharray"};function eC(n,i,a=1,r=0,l=!0){n.pathLength=1;const f=l?WM:tC;n[f.offset]=ot.transform(-r);const h=ot.transform(i),d=ot.transform(a);n[f.array]=`${h} ${d}`}function XS(n,{attrX:i,attrY:a,attrScale:r,pathLength:l,pathSpacing:f=1,pathOffset:h=0,...d},m,p,g){if(ed(n,d,p),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:S}=n;v.transform&&(S.transform=v.transform,delete v.transform),(S.transform||v.transformOrigin)&&(S.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),S.transform&&(S.transformBox=g?.transformBox??"fill-box",delete v.transformBox),i!==void 0&&(v.x=i),a!==void 0&&(v.y=a),r!==void 0&&(v.scale=r),l!==void 0&&eC(v,l,f,h,!1)}const ZS=()=>({...nd(),attrs:{}}),JS=n=>typeof n=="string"&&n.toLowerCase()==="svg";function nC(n,i,a,r){const l=K.useMemo(()=>{const f=ZS();return XS(f,i,JS(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};QS(f,n.style,n),l.style={...f,...l.style}}return l}const iC=["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 id(n){return typeof n!="string"||n.includes("-")?!1:!!(iC.indexOf(n)>-1||/[A-Z]/u.test(n))}function sC(n,i,a,{latestValues:r},l,f=!1){const d=(id(n)?nC:$M)(i,r,l,n),m=YM(i,typeof n=="string",f),p=n!==K.Fragment?{...m,...d,ref:a}:{},{children:g}=i,v=K.useMemo(()=>ue(g)?g.get():g,[g]);return K.createElement(n,{...p,children:v})}function pv(n){const i=[{},{}];return n?.values.forEach((a,r)=>{i[0][r]=a.get(),i[1][r]=a.getVelocity()}),i}function sd(n,i,a,r){if(typeof i=="function"){const[l,f]=pv(r);i=i(a!==void 0?a:n.custom,l,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[l,f]=pv(r);i=i(a!==void 0?a:n.custom,l,f)}return i}function ol(n){return ue(n)?n.get():n}function aC({scrapeMotionValuesFromProps:n,createRenderState:i},a,r,l){return{latestValues:oC(a,r,l,n),renderState:i()}}function oC(n,i,a,r){const l={},f=r(n,{});for(const S in f)l[S]=ol(f[S]);let{initial:h,animate:d}=n;const m=jl(n),p=KS(n);i&&p&&!m&&n.inherit!==!1&&(h===void 0&&(h=i.initial),d===void 0&&(d=i.animate));let g=a?a.initial===!1:!1;g=g||h===!1;const v=g?d:h;if(v&&typeof v!="boolean"&&!Ul(v)){const S=Array.isArray(v)?v:[v];for(let T=0;T<S.length;T++){const E=sd(n,S[T]);if(E){const{transitionEnd:_,transition:C,...M}=E;for(const w in M){let V=M[w];if(Array.isArray(V)){const P=g?V.length-1:0;V=V[P]}V!==null&&(l[w]=V)}for(const w in _)l[w]=_[w]}}}return l}const IS=n=>(i,a)=>{const r=K.useContext(Bl),l=K.useContext(Vl),f=()=>aC(n,i,r,l);return a?f():wh(f)};function ad(n,i,a){const{style:r}=n,l={};for(const f in r)(ue(r[f])||i.style&&ue(i.style[f])||kS(f,n)||a?.getValue(f)?.liveStyle!==void 0)&&(l[f]=r[f]);return l}const rC=IS({scrapeMotionValuesFromProps:ad,createRenderState:nd});function $S(n,i,a){const r=ad(n,i,a);for(const l in n)if(ue(n[l])||ue(i[l])){const f=$s.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;r[f]=n[l]}return r}const lC=IS({scrapeMotionValuesFromProps:$S,createRenderState:ZS}),uC=Symbol.for("motionComponentSymbol");function Gs(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function cC(n,i,a){return K.useCallback(r=>{r&&n.onMount&&n.onMount(r),i&&(r?i.mount(r):i.unmount()),a&&(typeof a=="function"?a(r):Gs(a)&&(a.current=r))},[i])}const od=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fC="framerAppearId",WS="data-"+od(fC),tb=K.createContext({});function hC(n,i,a,r,l){const{visualElement:f}=K.useContext(Bl),h=K.useContext(YS),d=K.useContext(Vl),m=K.useContext($h).reducedMotion,p=K.useRef(null);r=r||h.renderer,!p.current&&r&&(p.current=r(n,{visualState:i,parent:f,props:a,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:m}));const g=p.current,v=K.useContext(tb);g&&!g.projection&&l&&(g.type==="html"||g.type==="svg")&&dC(p.current,a,l,v);const S=K.useRef(!1);K.useInsertionEffect(()=>{g&&S.current&&g.update(a,d)});const T=a[WS],E=K.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return J0(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),E.current&&g.animationState&&g.animationState.animateChanges())}),K.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),E.current=!1),g.enteringChildren=void 0)}),g}function dC(n,i,a,r){const{layoutId:l,layout:f,drag:h,dragConstraints:d,layoutScroll:m,layoutRoot:p,layoutCrossfade:g}=i;n.projection=new a(n.latestValues,i["data-framer-portal-id"]?void 0:eb(n.parent)),n.projection.setOptions({layoutId:l,layout:f,alwaysMeasureLayout:!!h||d&&Gs(d),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:m,layoutRoot:p})}function eb(n){if(n)return n.options.allowProjection!==!1?n.projection:eb(n.parent)}function Af(n,{forwardMotionProps:i=!1}={},a,r){a&&HM(a);const l=id(n)?lC:rC;function f(d,m){let p;const g={...K.useContext($h),...d,layoutId:mC(d)},{isStatic:v}=g,S=KM(d),T=l(d,v);if(!v&&Oh){pC();const E=yC(g);p=E.MeasureLayout,S.visualElement=hC(n,T,g,r,E.ProjectionNode)}return X.jsxs(Bl.Provider,{value:S,children:[p&&S.visualElement?X.jsx(p,{visualElement:S.visualElement,...g}):null,sC(n,d,cC(T,S.visualElement,m),T,v,i)]})}f.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const h=K.forwardRef(f);return h[uC]=n,h}function mC({layoutId:n}){const i=K.useContext(Dh).id;return i&&n!==void 0?i+"-"+n:n}function pC(n,i){K.useContext(YS).strict}function yC(n){const{drag:i,layout:a}=Js;if(!i&&!a)return{};const r={...i,...a};return{MeasureLayout:i?.isEnabled(n)||a?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function gC(n,i){if(typeof Proxy>"u")return Af;const a=new Map,r=(f,h)=>Af(f,h,n,i),l=(f,h)=>r(f,h);return new Proxy(l,{get:(f,h)=>h==="create"?r:(a.has(h)||a.set(h,Af(h,void 0,n,i)),a.get(h))})}function nb({top:n,left:i,right:a,bottom:r}){return{x:{min:i,max:a},y:{min:n,max:r}}}function vC({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function SC(n,i){if(!i)return n;const a=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function _f(n){return n===void 0||n===1}function th({scale:n,scaleX:i,scaleY:a}){return!_f(n)||!_f(i)||!_f(a)}function qi(n){return th(n)||ib(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function ib(n){return yv(n.x)||yv(n.y)}function yv(n){return n&&n!=="0%"}function Rl(n,i,a){const r=n-a,l=i*r;return a+l}function gv(n,i,a,r,l){return l!==void 0&&(n=Rl(n,l,r)),Rl(n,a,r)+i}function eh(n,i=0,a=1,r,l){n.min=gv(n.min,i,a,r,l),n.max=gv(n.max,i,a,r,l)}function sb(n,{x:i,y:a}){eh(n.x,i.translate,i.scale,i.originPoint),eh(n.y,a.translate,a.scale,a.originPoint)}const vv=.999999999999,Sv=1.0000000000001;function bC(n,i,a,r=!1){const l=a.length;if(!l)return;i.x=i.y=1;let f,h;for(let d=0;d<l;d++){f=a[d],h=f.projectionDelta;const{visualElement:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Fs(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),h&&(i.x*=h.x.scale,i.y*=h.y.scale,sb(n,h)),r&&qi(f.latestValues)&&Fs(n,f.latestValues))}i.x<Sv&&i.x>vv&&(i.x=1),i.y<Sv&&i.y>vv&&(i.y=1)}function Ys(n,i){n.min=n.min+i,n.max=n.max+i}function bv(n,i,a,r,l=.5){const f=Ht(n.min,n.max,l);eh(n,i,a,f,r)}function Fs(n,i){bv(n.x,i.x,i.scaleX,i.scale,i.originX),bv(n.y,i.y,i.scaleY,i.scale,i.originY)}function ab(n,i){return nb(SC(n.getBoundingClientRect(),i))}function TC(n,i,a){const r=ab(n,a),{scroll:l}=i;return l&&(Ys(r.x,l.offset.x),Ys(r.y,l.offset.y)),r}const Tv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ks=()=>({x:Tv(),y:Tv()}),xv=()=>({min:0,max:0}),Wt=()=>({x:xv(),y:xv()}),nh={current:null},ob={current:!1};function xC(){if(ob.current=!0,!!Oh)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>nh.current=n.matches;n.addEventListener("change",i),i()}else nh.current=!1}const EC=new WeakMap;function RC(n,i,a){for(const r in i){const l=i[r],f=a[r];if(ue(l))n.addValue(r,l);else if(ue(f))n.addValue(r,Zs(l,{owner:n}));else if(f!==l)if(n.hasValue(r)){const h=n.getValue(r);h.liveStyle===!0?h.jump(l):h.hasAnimated||h.set(l)}else{const h=n.getStaticValue(r);n.addValue(r,Zs(h!==void 0?h:l,{owner:n}))}}for(const r in a)i[r]===void 0&&n.removeValue(r);return i}const Ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class AC{scrapeMotionValuesFromProps(i,a,r){return{}}constructor({parent:i,props:a,presenceContext:r,reducedMotionConfig:l,blockInitialAnimation:f,visualState:h},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qh,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.renderScheduledAt=0,this.scheduleRender=()=>{const S=be.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Nt.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=h;this.latestValues=m,this.baseTarget={...m},this.initialValues=a.initial?{...m}:{},this.renderState=p,this.parent=i,this.props=a,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=l,this.options=d,this.blockInitialAnimation=!!f,this.isControllingVariants=jl(a),this.isVariantNode=KS(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(a,{},this);for(const S in v){const T=v[S];m[S]!==void 0&&ue(T)&&T.set(m[S])}}mount(i){this.current=i,EC.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,r)=>this.bindToMotionValue(r,a)),ob.current||xC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:nh.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),gi(this.notifyUpdate),gi(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const a=this.features[i];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,a){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const r=Ws.has(i);r&&this.onBindTransform&&this.onBindTransform();const l=a.on("change",h=>{this.latestValues[i]=h,this.props.onUpdate&&Nt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,a)),this.valueSubscriptions.set(i,()=>{l(),f&&f(),a.owner&&a.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Js){const a=Js[i];if(!a)continue;const{isEnabled:r,Feature:l}=a;if(!this.features[i]&&l&&r(this.props)&&(this.features[i]=new l(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,a){this.latestValues[i]=a}update(i,a){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<Ev.length;r++){const l=Ev[r];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const f="on"+l,h=i[f];h&&(this.propEventSubscriptions[l]=this.on(l,h))}this.prevMotionValues=RC(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(i),()=>a.variantChildren.delete(i)}addValue(i,a){const r=this.values.get(i);a!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,a),this.values.set(i,a),this.latestValues[i]=a.get())}removeValue(i){this.values.delete(i);const a=this.valueSubscriptions.get(i);a&&(a(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,a){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&a!==void 0&&(r=Zs(a===null?void 0:a,{owner:this}),this.addValue(i,r)),r}readValue(i,a){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(I0(r)||W0(r))?r=parseFloat(r):!LM(r)&&vi.test(a)&&(r=BS(i,a)),this.setBaseTarget(i,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(i,a){this.baseTarget[i]=a}getBaseTarget(i){const{initial:a}=this.props;let r;if(typeof a=="string"||typeof a=="object"){const f=sd(this.props,a,this.presenceContext?.custom);f&&(r=f[i])}if(a&&r!==void 0)return r;const l=this.getBaseTargetFromProps(this.props,i);return l!==void 0&&!ue(l)?l:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,a){return this.events[i]||(this.events[i]=new Uh),this.events[i].add(a)}notify(i,...a){this.events[i]&&this.events[i].notify(...a)}scheduleRenderMicrotask(){Jh.render(this.render)}}class rb extends AC{constructor(){super(...arguments),this.KeyframeResolver=bM}sortInstanceNodePosition(i,a){return i.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(i,a){return i.style?i.style[a]:void 0}removeValueFromRenderState(i,{vars:a,style:r}){delete a[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;ue(i)&&(this.childSubscription=i.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function lb(n,{style:i,vars:a},r,l){const f=n.style;let h;for(h in i)f[h]=i[h];l?.applyProjectionStyles(f,r);for(h in a)f.setProperty(h,a[h])}function _C(n){return window.getComputedStyle(n)}class MC extends rb{constructor(){super(...arguments),this.type="html",this.renderInstance=lb}readValueFromInstance(i,a){if(Ws.has(a))return this.projection?.isProjecting?kf(a):P_(i,a);{const r=_C(i),l=(dS(a)?r.getPropertyValue(a):r[a])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(i,{transformPagePoint:a}){return ab(i,a)}build(i,a,r){ed(i,a,r.transformTemplate)}scrapeMotionValuesFromProps(i,a,r){return ad(i,a,r)}}const ub=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 CC(n,i,a,r){lb(n,i,void 0,r);for(const l in i.attrs)n.setAttribute(ub.has(l)?l:od(l),i.attrs[l])}class DC extends rb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(i,a){return i[a]}readValueFromInstance(i,a){if(Ws.has(a)){const r=VS(a);return r&&r.default||0}return a=ub.has(a)?a:od(a),i.getAttribute(a)}scrapeMotionValuesFromProps(i,a,r){return $S(i,a,r)}build(i,a,r){XS(i,a,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,a,r,l){CC(i,a,r,l)}mount(i){this.isSVGTag=JS(i.tagName),super.mount(i)}}const wC=(n,i)=>id(n)?new DC(i):new MC(i,{allowProjection:n!==K.Fragment});function ks(n,i,a){const r=n.getProps();return sd(r,i,a!==void 0?a:r.custom,n)}const ih=n=>Array.isArray(n);function OC(n,i,a){n.hasValue(i)?n.getValue(i).set(a):n.addValue(i,Zs(a))}function LC(n){return ih(n)?n[n.length-1]||0:n}function zC(n,i){const a=ks(n,i);let{transitionEnd:r={},transition:l={},...f}=a||{};f={...f,...r};for(const h in f){const d=LC(f[h]);OC(n,h,d)}}function VC(n){return!!(ue(n)&&n.add)}function sh(n,i){const a=n.getValue("willChange");if(VC(a))return a.add(i);if(!a&&Vn.WillChange){const r=new Vn.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function cb(n){return n.props[WS]}const BC=n=>n!==null;function UC(n,{repeat:i,repeatType:a="loop"},r){const l=n.filter(BC),f=i&&a!=="loop"&&i%2===1?0:l.length-1;return l[f]}const jC={type:"spring",stiffness:500,damping:25,restSpeed:10},NC=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),PC={type:"keyframes",duration:.8},HC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qC=(n,{keyframes:i})=>i.length>2?PC:Ws.has(n)?n.startsWith("scale")?NC(i[1]):jC:HC;function GC({when:n,delay:i,delayChildren:a,staggerChildren:r,staggerDirection:l,repeat:f,repeatType:h,repeatDelay:d,from:m,elapsed:p,...g}){return!!Object.keys(g).length}const rd=(n,i,a,r={},l,f)=>h=>{const d=Xh(r,n)||{},m=d.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ln(m);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:i.getVelocity(),...d,delay:-p,onUpdate:S=>{i.set(S),d.onUpdate&&d.onUpdate(S)},onComplete:()=>{h(),d.onComplete&&d.onComplete()},name:n,motionValue:i,element:f?void 0:l};GC(d)||Object.assign(g,qC(n,g)),g.duration&&(g.duration=ln(g.duration)),g.repeatDelay&&(g.repeatDelay=ln(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(If(g),g.delay===0&&(v=!0)),(Vn.instantAnimations||Vn.skipAnimations)&&(v=!0,If(g),g.delay=0),g.allowFlatten=!d.type&&!d.ease,v&&!f&&i.get()!==void 0){const S=UC(g.keyframes,d);if(S!==void 0){Nt.update(()=>{g.onUpdate(S),g.onComplete()});return}}return d.isSync?new kh(g):new lM(g)};function YC({protectedKeys:n,needsAnimating:i},a){const r=n.hasOwnProperty(a)&&i[a]!==!0;return i[a]=!1,r}function fb(n,i,{delay:a=0,transitionOverride:r,type:l}={}){let{transition:f=n.getDefaultTransition(),transitionEnd:h,...d}=i;r&&(f=r);const m=[],p=l&&n.animationState&&n.animationState.getState()[l];for(const g in d){const v=n.getValue(g,n.latestValues[g]??null),S=d[g];if(S===void 0||p&&YC(p,g))continue;const T={delay:a,...Xh(f||{},g)},E=v.get();if(E!==void 0&&!v.isAnimating&&!Array.isArray(S)&&S===E&&!T.velocity)continue;let _=!1;if(window.MotionHandoffAnimation){const M=cb(n);if(M){const w=window.MotionHandoffAnimation(M,g,Nt);w!==null&&(T.startTime=w,_=!0)}}sh(n,g),v.start(rd(g,v,S,n.shouldReduceMotion&&OS.has(g)?{type:!1}:T,n,_));const C=v.animation;C&&m.push(C)}return h&&Promise.all(m).then(()=>{Nt.update(()=>{h&&zC(n,h)})}),m}function hb(n,i,a,r=0,l=1){const f=Array.from(n).sort((p,g)=>p.sortNodePosition(g)).indexOf(i),h=n.size,d=(h-1)*r;return typeof a=="function"?a(f,h):l===1?f*r:d-f*r}function ah(n,i,a={}){const r=ks(n,i,a.type==="exit"?n.presenceContext?.custom:void 0);let{transition:l=n.getDefaultTransition()||{}}=r||{};a.transitionOverride&&(l=a.transitionOverride);const f=r?()=>Promise.all(fb(n,r,a)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:v}=l;return FC(n,i,m,p,g,v,a)}:()=>Promise.resolve(),{when:d}=l;if(d){const[m,p]=d==="beforeChildren"?[f,h]:[h,f];return m().then(()=>p())}else return Promise.all([f(),h(a.delay)])}function FC(n,i,a=0,r=0,l=0,f=1,h){const d=[];for(const m of n.variantChildren)m.notify("AnimationStart",i),d.push(ah(m,i,{...h,delay:a+(typeof r=="function"?0:r)+hb(n.variantChildren,m,r,l,f)}).then(()=>m.notify("AnimationComplete",i)));return Promise.all(d)}function KC(n,i,a={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const l=i.map(f=>ah(n,f,a));r=Promise.all(l)}else if(typeof i=="string")r=ah(n,i,a);else{const l=typeof i=="function"?ks(n,i,a.custom):i;r=Promise.all(fb(n,l,a))}return r.then(()=>{n.notify("AnimationComplete",i)})}function db(n,i){if(!Array.isArray(i))return!1;const a=i.length;if(a!==n.length)return!1;for(let r=0;r<a;r++)if(i[r]!==n[r])return!1;return!0}const kC=td.length;function mb(n){if(!n)return;if(!n.isControllingVariants){const a=n.parent?mb(n.parent)||{}:{};return n.props.initial!==void 0&&(a.initial=n.props.initial),a}const i={};for(let a=0;a<kC;a++){const r=td[a],l=n.props[r];(go(l)||l===!1)&&(i[r]=l)}return i}const QC=[...Wh].reverse(),XC=Wh.length;function ZC(n){return i=>Promise.all(i.map(({animation:a,options:r})=>KC(n,a,r)))}function JC(n){let i=ZC(n),a=Rv(),r=!0;const l=m=>(p,g)=>{const v=ks(n,g,m==="exit"?n.presenceContext?.custom:void 0);if(v){const{transition:S,transitionEnd:T,...E}=v;p={...p,...E,...T}}return p};function f(m){i=m(n)}function h(m){const{props:p}=n,g=mb(n.parent)||{},v=[],S=new Set;let T={},E=1/0;for(let C=0;C<XC;C++){const M=QC[C],w=a[M],V=p[M]!==void 0?p[M]:g[M],P=go(V),k=M===m?w.isActive:null;k===!1&&(E=C);let U=V===g[M]&&V!==p[M]&&P;if(U&&r&&n.manuallyAnimateOnMount&&(U=!1),w.protectedKeys={...T},!w.isActive&&k===null||!V&&!w.prevProp||Ul(V)||typeof V=="boolean")continue;const G=IC(w.prevProp,V);let H=G||M===m&&w.isActive&&!U&&P||C>E&&P,Z=!1;const nt=Array.isArray(V)?V:[V];let st=nt.reduce(l(M),{});k===!1&&(st={});const{prevResolvedValues:Tt={}}=w,Pt={...Tt,...st},Ut=Q=>{H=!0,S.has(Q)&&(Z=!0,S.delete(Q)),w.needsAnimating[Q]=!0;const W=n.getValue(Q);W&&(W.liveStyle=!1)};for(const Q in Pt){const W=st[Q],ft=Tt[Q];if(T.hasOwnProperty(Q))continue;let yt=!1;ih(W)&&ih(ft)?yt=!db(W,ft):yt=W!==ft,yt?W!=null?Ut(Q):S.add(Q):W!==void 0&&S.has(Q)?Ut(Q):w.protectedKeys[Q]=!0}w.prevProp=V,w.prevResolvedValues=st,w.isActive&&(T={...T,...st}),r&&n.blockInitialAnimation&&(H=!1);const zt=U&&G;H&&(!zt||Z)&&v.push(...nt.map(Q=>{const W={type:M};if(typeof Q=="string"&&r&&!zt&&n.manuallyAnimateOnMount&&n.parent){const{parent:ft}=n,yt=ks(ft,Q);if(ft.enteringChildren&&yt){const{delayChildren:A}=yt.transition||{};W.delay=hb(ft.enteringChildren,n,A)}}return{animation:Q,options:W}}))}if(S.size){const C={};if(typeof p.initial!="boolean"){const M=ks(n,Array.isArray(p.initial)?p.initial[0]:p.initial);M&&M.transition&&(C.transition=M.transition)}S.forEach(M=>{const w=n.getBaseTarget(M),V=n.getValue(M);V&&(V.liveStyle=!0),C[M]=w??null}),v.push({animation:C})}let _=!!v.length;return r&&(p.initial===!1||p.initial===p.animate)&&!n.manuallyAnimateOnMount&&(_=!1),r=!1,_?i(v):Promise.resolve()}function d(m,p){if(a[m].isActive===p)return Promise.resolve();n.variantChildren?.forEach(v=>v.animationState?.setActive(m,p)),a[m].isActive=p;const g=h(m);for(const v in a)a[v].protectedKeys={};return g}return{animateChanges:h,setActive:d,setAnimateFunction:f,getState:()=>a,reset:()=>{a=Rv()}}}function IC(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!db(i,n):!1}function Hi(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rv(){return{animate:Hi(!0),whileInView:Hi(),whileHover:Hi(),whileTap:Hi(),whileDrag:Hi(),whileFocus:Hi(),exit:Hi()}}class bi{constructor(i){this.isMounted=!1,this.node=i}update(){}}class $C extends bi{constructor(i){super(i),i.animationState||(i.animationState=JC(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Ul(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:a}=this.node.prevProps||{};i!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let WC=0;class t2 extends bi{constructor(){super(...arguments),this.id=WC++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const l=this.node.animationState.setActive("exit",!i);a&&!i&&l.then(()=>{a(this.id)})}mount(){const{register:i,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const e2={animation:{Feature:$C},exit:{Feature:t2}};function vo(n,i,a,r={passive:!0}){return n.addEventListener(i,a,r),()=>n.removeEventListener(i,a)}function Ao(n){return{point:{x:n.pageX,y:n.pageY}}}const n2=n=>i=>Ih(i)&&n(i,Ao(i));function ro(n,i,a,r){return vo(n,i,n2(a),r)}const pb=1e-4,i2=1-pb,s2=1+pb,yb=.01,a2=0-yb,o2=0+yb;function he(n){return n.max-n.min}function r2(n,i,a){return Math.abs(n-i)<=a}function Av(n,i,a,r=.5){n.origin=r,n.originPoint=Ht(i.min,i.max,n.origin),n.scale=he(a)/he(i),n.translate=Ht(a.min,a.max,n.origin)-n.originPoint,(n.scale>=i2&&n.scale<=s2||isNaN(n.scale))&&(n.scale=1),(n.translate>=a2&&n.translate<=o2||isNaN(n.translate))&&(n.translate=0)}function lo(n,i,a,r){Av(n.x,i.x,a.x,r?r.originX:void 0),Av(n.y,i.y,a.y,r?r.originY:void 0)}function _v(n,i,a){n.min=a.min+i.min,n.max=n.min+he(i)}function l2(n,i,a){_v(n.x,i.x,a.x),_v(n.y,i.y,a.y)}function Mv(n,i,a){n.min=i.min-a.min,n.max=n.min+he(i)}function Al(n,i,a){Mv(n.x,i.x,a.x),Mv(n.y,i.y,a.y)}function Ke(n){return[n("x"),n("y")]}const gb=({current:n})=>n?n.ownerDocument.defaultView:null,Cv=(n,i)=>Math.abs(n-i);function u2(n,i){const a=Cv(n.x,i.x),r=Cv(n.y,i.y);return Math.sqrt(a**2+r**2)}class vb{constructor(i,a,{transformPagePoint:r,contextWindow:l=window,dragSnapToOrigin:f=!1,distanceThreshold:h=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Cf(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=u2(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!E)return;const{point:_}=S,{timestamp:C}=re;this.history.push({..._,timestamp:C});const{onStart:M,onMove:w}=this.handlers;T||(M&&M(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,S)},this.handlePointerMove=(S,T)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Mf(T,this.transformPagePoint),Nt.update(this.updatePoint,!0)},this.handlePointerUp=(S,T)=>{this.end();const{onEnd:E,onSessionEnd:_,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=Cf(S.type==="pointercancel"?this.lastMoveEventInfo:Mf(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(S,M),_&&_(S,M)},!Ih(i))return;this.dragSnapToOrigin=f,this.handlers=a,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=l||window;const d=Ao(i),m=Mf(d,this.transformPagePoint),{point:p}=m,{timestamp:g}=re;this.history=[{...p,timestamp:g}];const{onSessionStart:v}=a;v&&v(i,Cf(m,this.history)),this.removeListeners=xo(ro(this.contextWindow,"pointermove",this.handlePointerMove),ro(this.contextWindow,"pointerup",this.handlePointerUp),ro(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),gi(this.updatePoint)}}function Mf(n,i){return i?{point:i(n.point)}:n}function Dv(n,i){return{x:n.x-i.x,y:n.y-i.y}}function Cf({point:n},i){return{point:n,delta:Dv(n,Sb(i)),offset:Dv(n,c2(i)),velocity:f2(i,.1)}}function c2(n){return n[0]}function Sb(n){return n[n.length-1]}function f2(n,i){if(n.length<2)return{x:0,y:0};let a=n.length-1,r=null;const l=Sb(n);for(;a>=0&&(r=n[a],!(l.timestamp-r.timestamp>ln(i)));)a--;if(!r)return{x:0,y:0};const f=ke(l.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const h={x:(l.x-r.x)/f,y:(l.y-r.y)/f};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function h2(n,{min:i,max:a},r){return i!==void 0&&n<i?n=r?Ht(i,n,r.min):Math.max(n,i):a!==void 0&&n>a&&(n=r?Ht(a,n,r.max):Math.min(n,a)),n}function wv(n,i,a){return{min:i!==void 0?n.min+i:void 0,max:a!==void 0?n.max+a-(n.max-n.min):void 0}}function d2(n,{top:i,left:a,bottom:r,right:l}){return{x:wv(n.x,a,l),y:wv(n.y,i,r)}}function Ov(n,i){let a=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([a,r]=[r,a]),{min:a,max:r}}function m2(n,i){return{x:Ov(n.x,i.x),y:Ov(n.y,i.y)}}function p2(n,i){let a=.5;const r=he(n),l=he(i);return l>r?a=mo(i.min,i.max-r,n.min):r>l&&(a=mo(n.min,n.max-l,i.min)),zn(0,1,a)}function y2(n,i){const a={};return i.min!==void 0&&(a.min=i.min-n.min),i.max!==void 0&&(a.max=i.max-n.min),a}const oh=.35;function g2(n=oh){return n===!1?n=0:n===!0&&(n=oh),{x:Lv(n,"left","right"),y:Lv(n,"top","bottom")}}function Lv(n,i,a){return{min:zv(n,i),max:zv(n,a)}}function zv(n,i){return typeof n=="number"?n:n[i]||0}const v2=new WeakMap;class S2{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:a=!1,distanceThreshold:r}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const f=v=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Ao(v).point)},h=(v,S)=>{const{drag:T,dragPropagation:E,onDragStart:_}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RM(T),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ke(M=>{let w=this.getAxisMotionValue(M).get()||0;if(un.test(w)){const{projection:V}=this.visualElement;if(V&&V.layout){const P=V.layout.layoutBox[M];P&&(w=he(P)*(parseFloat(w)/100))}}this.originPoint[M]=w}),_&&Nt.postRender(()=>_(v,S)),sh(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},d=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:_,onDrag:C}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:M}=S;if(E&&this.currentDirection===null){this.currentDirection=b2(M),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",S.point,M),this.updateAxis("y",S.point,M),this.visualElement.render(),C&&C(v,S)},m=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S,this.stop(v,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Ke(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new vb(i,{onSessionStart:f,onStart:h,onMove:d,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:r,contextWindow:gb(this.visualElement)})}stop(i,a){const r=i||this.latestPointerEvent,l=a||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!l||!r)return;const{velocity:h}=l;this.startAnimation(h);const{onDragEnd:d}=this.getProps();d&&Nt.postRender(()=>d(r,l))}cancel(){this.isDragging=!1;const{projection:i,animationState:a}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(i,a,r){const{drag:l}=this.getProps();if(!r||!el(i,l,this.currentDirection))return;const f=this.getAxisMotionValue(i);let h=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(h=h2(h,this.constraints[i],this.elastic[i])),f.set(h)}resolveConstraints(){const{dragConstraints:i,dragElastic:a}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;i&&Gs(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=d2(r.layoutBox,i):this.constraints=!1,this.elastic=g2(a),l!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ke(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=y2(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:a}=this.getProps();if(!i||!Gs(i))return!1;const r=i.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const f=TC(r,l.root,this.visualElement.getTransformPagePoint());let h=m2(l.layout.layoutBox,f);if(a){const d=a(vC(h));this.hasMutatedConstraints=!!d,d&&(h=nb(d))}return h}startAnimation(i){const{drag:a,dragMomentum:r,dragElastic:l,dragTransition:f,dragSnapToOrigin:h,onDragTransitionEnd:d}=this.getProps(),m=this.constraints||{},p=Ke(g=>{if(!el(g,a,this.currentDirection))return;let v=m&&m[g]||{};h&&(v={min:0,max:0});const S=l?200:1e6,T=l?40:1e7,E={type:"inertia",velocity:r?i[g]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(g,E)});return Promise.all(p).then(d)}startAxisValueAnimation(i,a){const r=this.getAxisMotionValue(i);return sh(this.visualElement,i),r.start(rd(i,r,0,a,this.visualElement,!1))}stopAnimation(){Ke(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){Ke(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const a=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),l=r[a];return l||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){Ke(a=>{const{drag:r}=this.getProps();if(!el(a,r,this.currentDirection))return;const{projection:l}=this.visualElement,f=this.getAxisMotionValue(a);if(l&&l.layout){const{min:h,max:d}=l.layout.layoutBox[a];f.set(i[a]-Ht(h,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Gs(a)||!r||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Ke(h=>{const d=this.getAxisMotionValue(h);if(d&&this.constraints!==!1){const m=d.get();l[h]=p2({min:m,max:m},this.constraints[h])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ke(h=>{if(!el(h,i,null))return;const d=this.getAxisMotionValue(h),{min:m,max:p}=this.constraints[h];d.set(Ht(m,p,l[h]))})}addListeners(){if(!this.visualElement.current)return;v2.set(this.visualElement,this);const i=this.visualElement.current,a=ro(i,"pointerdown",m=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(m)}),r=()=>{const{dragConstraints:m}=this.getProps();Gs(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,f=l.addEventListener("measure",r);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Nt.read(r);const h=vo(window,"resize",()=>this.scalePositionWithinConstraints()),d=l.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ke(g=>{const v=this.getAxisMotionValue(g);v&&(this.originPoint[g]+=m[g].translate,v.set(v.get()+m[g].translate))}),this.visualElement.render())}));return()=>{h(),a(),f(),d&&d()}}getProps(){const i=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:l=!1,dragConstraints:f=!1,dragElastic:h=oh,dragMomentum:d=!0}=i;return{...i,drag:a,dragDirectionLock:r,dragPropagation:l,dragConstraints:f,dragElastic:h,dragMomentum:d}}}function el(n,i,a){return(i===!0||i===n)&&(a===null||a===n)}function b2(n,i=10){let a=null;return Math.abs(n.y)>i?a="y":Math.abs(n.x)>i&&(a="x"),a}class T2 extends bi{constructor(i){super(i),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new S2(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Vv=n=>(i,a)=>{n&&Nt.postRender(()=>n(i,a))};class x2 extends bi{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(i){this.session=new vb(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gb(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:a,onPan:r,onPanEnd:l}=this.node.getProps();return{onSessionStart:Vv(i),onStart:Vv(a),onMove:r,onEnd:(f,h)=>{delete this.session,l&&Nt.postRender(()=>l(f,h))}}}mount(){this.removePointerDownListener=ro(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const rl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Df=!1;class E2 extends K.Component{componentDidMount(){const{visualElement:i,layoutGroup:a,switchLayoutGroup:r,layoutId:l}=this.props,{projection:f}=i;f&&(a.group&&a.group.add(f),r&&r.register&&l&&r.register(f),Df&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),rl.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:a,visualElement:r,drag:l,isPresent:f}=this.props,{projection:h}=r;return h&&(h.isPresent=f,Df=!0,l||i.layoutDependency!==a||a===void 0||i.isPresent!==f?h.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?h.promote():h.relegate()||Nt.postRender(()=>{const d=h.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Jh.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:l}=i;Df=!0,l&&(l.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(l),r&&r.deregister&&r.deregister(l))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function bb(n){const[i,a]=GS(),r=K.useContext(Dh);return X.jsx(E2,{...n,layoutGroup:r,switchLayoutGroup:K.useContext(tb),isPresent:i,safeToRemove:a})}function R2(n,i,a){const r=ue(n)?n:Zs(n);return r.start(rd("",r,i,a)),r.animation}const A2=(n,i)=>n.depth-i.depth;class _2{constructor(){this.children=[],this.isDirty=!1}add(i){Lh(this.children,i),this.isDirty=!0}remove(i){zh(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(A2),this.isDirty=!1,this.children.forEach(i)}}function M2(n,i){const a=be.now(),r=({timestamp:l})=>{const f=l-a;f>=i&&(gi(r),n(f-i))};return Nt.setup(r,!0),()=>gi(r)}const Tb=["TopLeft","TopRight","BottomLeft","BottomRight"],C2=Tb.length,Bv=n=>typeof n=="string"?parseFloat(n):n,Uv=n=>typeof n=="number"||ot.test(n);function D2(n,i,a,r,l,f){l?(n.opacity=Ht(0,a.opacity??1,w2(r)),n.opacityExit=Ht(i.opacity??1,0,O2(r))):f&&(n.opacity=Ht(i.opacity??1,a.opacity??1,r));for(let h=0;h<C2;h++){const d=`border${Tb[h]}Radius`;let m=jv(i,d),p=jv(a,d);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Uv(m)===Uv(p)?(n[d]=Math.max(Ht(Bv(m),Bv(p),r),0),(un.test(p)||un.test(m))&&(n[d]+="%")):n[d]=p}(i.rotate||a.rotate)&&(n.rotate=Ht(i.rotate||0,a.rotate||0,r))}function jv(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const w2=xb(0,.5,rS),O2=xb(.5,.95,Xe);function xb(n,i,a){return r=>r<n?0:r>i?1:a(mo(n,i,r))}function Nv(n,i){n.min=i.min,n.max=i.max}function We(n,i){Nv(n.x,i.x),Nv(n.y,i.y)}function Pv(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}function Hv(n,i,a,r,l){return n-=i,n=Rl(n,1/a,r),l!==void 0&&(n=Rl(n,1/l,r)),n}function L2(n,i=0,a=1,r=.5,l,f=n,h=n){if(un.test(i)&&(i=parseFloat(i),i=Ht(h.min,h.max,i/100)-h.min),typeof i!="number")return;let d=Ht(f.min,f.max,r);n===f&&(d-=i),n.min=Hv(n.min,i,a,d,l),n.max=Hv(n.max,i,a,d,l)}function qv(n,i,[a,r,l],f,h){L2(n,i[a],i[r],i[l],i.scale,f,h)}const z2=["x","scaleX","originX"],V2=["y","scaleY","originY"];function Gv(n,i,a,r){qv(n.x,i,z2,a?a.x:void 0,r?r.x:void 0),qv(n.y,i,V2,a?a.y:void 0,r?r.y:void 0)}function Yv(n){return n.translate===0&&n.scale===1}function Eb(n){return Yv(n.x)&&Yv(n.y)}function Fv(n,i){return n.min===i.min&&n.max===i.max}function B2(n,i){return Fv(n.x,i.x)&&Fv(n.y,i.y)}function Kv(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function Rb(n,i){return Kv(n.x,i.x)&&Kv(n.y,i.y)}function kv(n){return he(n.x)/he(n.y)}function Qv(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}class U2{constructor(){this.members=[]}add(i){Lh(this.members,i),i.scheduleRender()}remove(i){if(zh(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(i){const a=this.members.findIndex(l=>i===l);if(a===0)return!1;let r;for(let l=a;l>=0;l--){const f=this.members[l];if(f.isPresent!==!1){r=f;break}}return r?(this.promote(r),!0):!1}promote(i,a){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender(),i.resumeFrom=r,a&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:l}=i.options;l===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:a,resumingFrom:r}=i;a.onExitComplete&&a.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function j2(n,i,a){let r="";const l=n.x.translate/i.x,f=n.y.translate/i.y,h=a?.z||0;if((l||f||h)&&(r=`translate3d(${l}px, ${f}px, ${h}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),a){const{transformPerspective:p,rotate:g,rotateX:v,rotateY:S,skewX:T,skewY:E}=a;p&&(r=`perspective(${p}px) ${r}`),g&&(r+=`rotate(${g}deg) `),v&&(r+=`rotateX(${v}deg) `),S&&(r+=`rotateY(${S}deg) `),T&&(r+=`skewX(${T}deg) `),E&&(r+=`skewY(${E}deg) `)}const d=n.x.scale*i.x,m=n.y.scale*i.y;return(d!==1||m!==1)&&(r+=`scale(${d}, ${m})`),r||"none"}const wf=["","X","Y","Z"],N2=1e3;let P2=0;function Of(n,i,a,r){const{latestValues:l}=i;l[n]&&(a[n]=l[n],i.setStaticValue(n,0),r&&(r[n]=0))}function Ab(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const a=cb(i);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:l,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(a,"transform",Nt,!(l||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&Ab(r)}function _b({attachResizeListener:n,defaultParent:i,measureScroll:a,checkIsScrollRoot:r,resetTransform:l}){return class{constructor(h={},d=i?.()){this.id=P2++,this.animationId=0,this.animationCommitId=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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(G2),this.nodes.forEach(k2),this.nodes.forEach(Q2),this.nodes.forEach(Y2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new _2)}addEventListener(h,d){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Uh),this.eventHandlers.get(h).add(d)}notifyListeners(h,...d){const m=this.eventHandlers.get(h);m&&m.notify(...d)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=qS(h)&&!wM(h),this.instance=h;const{layoutId:d,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||d)&&(this.isLayoutDirty=!0),n){let g,v=0;const S=()=>this.root.updateBlockedByResize=!1;Nt.read(()=>{v=window.innerWidth}),n(h,()=>{const T=window.innerWidth;T!==v&&(v=T,this.root.updateBlockedByResize=!0,g&&g(),g=M2(S,250),rl.hasAnimatedSinceResize&&(rl.hasAnimatedSinceResize=!1,this.nodes.forEach(Jv)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||p.getDefaultTransition()||$2,{onLayoutAnimationStart:_,onLayoutAnimationComplete:C}=p.getProps(),M=!this.targetLayout||!Rb(this.targetLayout,T),w=!v&&S;if(this.options.layoutRoot||this.resumeFrom||w||v&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const V={...Xh(E,"layout"),onPlay:_,onComplete:C};(p.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V),this.setAnimationOrigin(g,w)}else v||Jv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),gi(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(X2),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ab(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:m}=this.options;if(d===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Xv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(K2),this.nodes.forEach(H2),this.nodes.forEach(q2)):this.nodes.forEach(Zv),this.clearAllSnapshots();const d=be.now();re.delta=zn(0,1e3/60,d-re.timestamp),re.timestamp=d,re.isProcessing=!0,Sf.update.process(re),Sf.preRender.process(re),Sf.render.process(re),re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(F2),this.sharedNodes.forEach(Z2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Nt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!he(this.snapshot.measuredBox.x)&&!he(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(d=!1),d&&this.instance){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:m,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Eb(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;h&&this.instance&&(d||qi(this.latestValues)||g)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const d=this.measurePageBox();let m=this.removeElementScroll(d);return h&&(m=this.removeTransform(m)),W2(m),{animationId:this.root.animationId,measuredBox:d,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return Wt();const d=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tD))){const{scroll:p}=this.root;p&&(Ys(d.x,p.offset.x),Ys(d.y,p.offset.y))}return d}removeElementScroll(h){const d=Wt();if(We(d,h),this.scroll?.wasRoot)return d;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:g,options:v}=p;p!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&We(d,h),Ys(d.x,g.offset.x),Ys(d.y,g.offset.y))}return d}applyTransform(h,d=!1){const m=Wt();We(m,h);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Fs(m,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),qi(g.latestValues)&&Fs(m,g.latestValues)}return qi(this.latestValues)&&Fs(m,this.latestValues),m}removeTransform(h){const d=Wt();We(d,h);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!qi(p.latestValues))continue;th(p.latestValues)&&p.updateSnapshot();const g=Wt(),v=p.measurePageBox();We(g,v),Gv(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return qi(this.latestValues)&&Gv(d,this.latestValues),d}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==d;if(!(h||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!this.layout||!(g||v))return;this.resolvedRelativeTargetAt=re.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),l2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),sb(this.target,this.targetDelta)):We(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||th(this.parent.latestValues)||ib(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,d,m){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Al(this.relativeTargetOrigin,d,m),We(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),d=!!this.resumingFrom||this!==h;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===re.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;We(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,S=this.treeScale.y;bC(this.layoutCorrected,this.treeScale,this.path,d),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Wt());const{target:T}=h;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pv(this.prevProjectionDelta.x,this.projectionDelta.x),Pv(this.prevProjectionDelta.y,this.projectionDelta.y)),lo(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==S||!Qv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ks(),this.projectionDelta=Ks(),this.projectionDeltaWithTransform=Ks()}setAnimationOrigin(h,d=!1){const m=this.snapshot,p=m?m.latestValues:{},g={...this.latestValues},v=Ks();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const S=Wt(),T=m?m.source:void 0,E=this.layout?this.layout.source:void 0,_=T!==E,C=this.getStack(),M=!C||C.members.length<=1,w=!!(_&&!M&&this.options.crossfade===!0&&!this.path.some(I2));this.animationProgress=0;let V;this.mixTargetDelta=P=>{const k=P/1e3;Iv(v.x,h.x,k),Iv(v.y,h.y,k),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Al(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),J2(this.relativeTarget,this.relativeTargetOrigin,S,k),V&&B2(this.relativeTarget,V)&&(this.isProjectionDirty=!1),V||(V=Wt()),We(V,this.relativeTarget)),_&&(this.animationValues=g,D2(g,p,this.latestValues,k,w,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(gi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Nt.update(()=>{rl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zs(0)),this.currentAnimation=R2(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),h.onUpdate&&h.onUpdate(d)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(N2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:d,target:m,layout:p,latestValues:g}=h;if(!(!d||!m||!p)){if(this!==h&&this.layout&&p&&Mb(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||Wt();const v=he(this.layout.layoutBox.x);m.x.min=h.target.x.min,m.x.max=m.x.min+v;const S=he(this.layout.layoutBox.y);m.y.min=h.target.y.min,m.y.max=m.y.min+S}We(d,m),Fs(d,g),lo(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(h,d){this.sharedNodes.has(h)||this.sharedNodes.set(h,new U2),this.sharedNodes.get(h).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:d,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),h&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let d=!1;const{latestValues:m}=h;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(d=!0),!d)return;const p={};m.z&&Of("z",h,p,this.animationValues);for(let g=0;g<wf.length;g++)Of(`rotate${wf[g]}`,h,p,this.animationValues),Of(`skew${wf[g]}`,h,p,this.animationValues);h.render();for(const g in p)h.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);h.scheduleRender()}applyProjectionStyles(h,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=ol(d?.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=ol(d?.pointerEvents)||""),this.hasProjected&&!qi(this.latestValues)&&(h.transform=m?m({},""):"none",this.hasProjected=!1);return}h.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=j2(this.projectionDeltaWithTransform,this.treeScale,g);m&&(v=m(g,v)),h.transform=v;const{x:S,y:T}=this.projectionDelta;h.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,p.animationValues?h.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:h.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const E in Wf){if(g[E]===void 0)continue;const{correct:_,applyTo:C,isCSSVariable:M}=Wf[E],w=v==="none"?g[E]:_(g[E],p);if(C){const V=C.length;for(let P=0;P<V;P++)h[C[P]]=w}else M?this.options.visualElement.renderState.vars[E]=w:h[E]=w}this.options.layoutId&&(h.pointerEvents=p===this?ol(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Xv),this.root.sharedNodes.clear()}}}function H2(n){n.updateLayout()}function q2(n){const i=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:r}=n.layout,{animationType:l}=n.options,f=i.source!==n.layout.source;l==="size"?Ke(g=>{const v=f?i.measuredBox[g]:i.layoutBox[g],S=he(v);v.min=a[g].min,v.max=v.min+S}):Mb(l,i.layoutBox,a)&&Ke(g=>{const v=f?i.measuredBox[g]:i.layoutBox[g],S=he(a[g]);v.max=v.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[g].max=n.relativeTarget[g].min+S)});const h=Ks();lo(h,a,i.layoutBox);const d=Ks();f?lo(d,n.applyTransform(r,!0),i.measuredBox):lo(d,a,i.layoutBox);const m=!Eb(h);let p=!1;if(!n.resumeFrom){const g=n.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:S}=g;if(v&&S){const T=Wt();Al(T,i.layoutBox,v.layoutBox);const E=Wt();Al(E,a,S.layoutBox),Rb(T,E)||(p=!0),g.options.layoutRoot&&(n.relativeTarget=E,n.relativeTargetOrigin=T,n.relativeParent=g)}}}n.notifyListeners("didUpdate",{layout:a,snapshot:i,delta:d,layoutDelta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:a}=n.options;a&&a()}n.options.transition=void 0}function G2(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function Y2(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function F2(n){n.clearSnapshot()}function Xv(n){n.clearMeasurements()}function Zv(n){n.isLayoutDirty=!1}function K2(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function Jv(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function k2(n){n.resolveTargetDelta()}function Q2(n){n.calcProjection()}function X2(n){n.resetSkewAndRotation()}function Z2(n){n.removeLeadSnapshot()}function Iv(n,i,a){n.translate=Ht(i.translate,0,a),n.scale=Ht(i.scale,1,a),n.origin=i.origin,n.originPoint=i.originPoint}function $v(n,i,a,r){n.min=Ht(i.min,a.min,r),n.max=Ht(i.max,a.max,r)}function J2(n,i,a,r){$v(n.x,i.x,a.x,r),$v(n.y,i.y,a.y,r)}function I2(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const $2={duration:.45,ease:[.4,0,.1,1]},Wv=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),t0=Wv("applewebkit/")&&!Wv("chrome/")?Math.round:Xe;function e0(n){n.min=t0(n.min),n.max=t0(n.max)}function W2(n){e0(n.x),e0(n.y)}function Mb(n,i,a){return n==="position"||n==="preserve-aspect"&&!r2(kv(i),kv(a),.2)}function tD(n){return n!==n.root&&n.scroll?.wasRoot}const eD=_b({attachResizeListener:(n,i)=>vo(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lf={current:void 0},Cb=_b({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Lf.current){const n=new eD({});n.mount(window),n.setOptions({layoutScroll:!0}),Lf.current=n}return Lf.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),nD={pan:{Feature:x2},drag:{Feature:T2,ProjectionNode:Cb,MeasureLayout:bb}};function n0(n,i,a){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",a==="Start");const l="onHover"+a,f=r[l];f&&Nt.postRender(()=>f(i,Ao(i)))}class iD extends bi{mount(){const{current:i}=this.node;i&&(this.unmount=AM(i,(a,r)=>(n0(this.node,r,"Start"),l=>n0(this.node,l,"End"))))}unmount(){}}class sD extends bi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=xo(vo(this.node.current,"focus",()=>this.onFocus()),vo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function i0(n,i,a){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",a==="Start");const l="onTap"+(a==="End"?"":a),f=r[l];f&&Nt.postRender(()=>f(i,Ao(i)))}class aD extends bi{mount(){const{current:i}=this.node;i&&(this.unmount=DM(i,(a,r)=>(i0(this.node,r,"Start"),(l,{success:f})=>i0(this.node,l,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const rh=new WeakMap,zf=new WeakMap,oD=n=>{const i=rh.get(n.target);i&&i(n)},rD=n=>{n.forEach(oD)};function lD({root:n,...i}){const a=n||document;zf.has(a)||zf.set(a,{});const r=zf.get(a),l=JSON.stringify(i);return r[l]||(r[l]=new IntersectionObserver(rD,{root:n,...i})),r[l]}function uD(n,i,a){const r=lD(i);return rh.set(n,a),r.observe(n),()=>{rh.delete(n),r.unobserve(n)}}const cD={some:0,all:1};class fD extends bi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:a,margin:r,amount:l="some",once:f}=i,h={root:a?a.current:void 0,rootMargin:r,threshold:typeof l=="number"?l:cD[l]},d=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),S=p?g:v;S&&S(m)};return uD(this.node.current,h,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:a}=this.node;["amount","margin","root"].some(hD(i,a))&&this.startObserver()}unmount(){}}function hD({viewport:n={}},{viewport:i={}}={}){return a=>n[a]!==i[a]}const dD={inView:{Feature:fD},tap:{Feature:aD},focus:{Feature:sD},hover:{Feature:iD}},mD={layout:{ProjectionNode:Cb,MeasureLayout:bb}},pD={...e2,...dD,...nD,...mD},yD=gC(pD,wC),gD=()=>X.jsx("svg",{"aria-hidden":"true",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:X.jsx("path",{d:"M13.5 4.5L6 12L2.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),vD=()=>X.jsxs("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[X.jsx("path",{d:"M10 4V11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),X.jsx("circle",{cx:"10",cy:"14.5",r:"1.25",fill:"currentColor"})]}),SD=()=>X.jsxs("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[X.jsx("circle",{cx:"10",cy:"5.5",r:"1.25",fill:"currentColor"}),X.jsx("path",{d:"M10 9V16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),bD={error:"text-red-500",success:"text-green-500",info:"text-gray-500"},TD=({variant:n})=>{switch(n){case"success":return X.jsx(gD,{});case"error":return X.jsx(vD,{});case"info":return X.jsx(SD,{})}},xD=({message:n,variant:i="info",open:a,onClose:r,duration:l=4e3})=>{const{_:f}=ox();return K.useEffect(()=>{if(a&&l>0){const h=setTimeout(()=>{r()},l);return()=>clearTimeout(h)}},[a,l,r]),X.jsx(PM,{children:a&&X.jsx(yD.div,{className:"fixed top-6 left-1/2 z-50",initial:{y:-100,x:"-50%",opacity:0},animate:{y:0,x:"-50%",opacity:1},exit:{y:-100,x:"-50%",opacity:0},transition:{duration:.15,ease:"easeOut"},children:X.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 rounded-2xl bg-white border border-gray-100",role:"alert",children:[X.jsx("span",{className:`*:size-6 ${bD[i]}`,children:X.jsx(TD,{variant:i})}),X.jsx("span",{className:"text-sm font-bold text-gray-700",children:n}),X.jsx("button",{type:"button",className:"ml-2 p-1 rounded text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-300 focus-visible:ring-offset-2","aria-label":f({id:"yz7wBu"}),onClick:r,children:X.jsx("svg",{"aria-hidden":"true",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:X.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})})},ED=()=>{const{open:n,message:i,variant:a,hideSnackbar:r}=UA();return X.jsx(xD,{open:n,message:i,variant:a,onClose:r})},RD=cR({routeTree:BA}),Db=document.getElementById("root");if(Db==null)throw new Error("Root element not found");vR.createRoot(Db).render(X.jsx(K.StrictMode,{children:X.jsx(Dx,{client:Ln,children:X.jsxs(rx,{i18n:Ll,children:[X.jsx(dR,{router:RD}),X.jsx(ED,{})]})})}));export{OD as $,PM as A,cA as B,uA as C,_h as D,rA as E,Q0 as F,FE as G,VE as H,jE as I,gD as J,vD as K,z0 as L,Mh as M,F0 as N,Ch as O,en as P,Ml as Q,XR as R,_l as S,_D as T,ux as U,cx as V,u0 as W,bx as X,hx as Y,jR as Z,wD as _,zl as a,JR as b,UA as c,G0 as d,bA as e,MA as f,MD as g,uo as h,Rx as i,X as j,CD as k,JT as l,AD as m,fe as n,yD as o,K0 as p,Ln as q,K as r,GR as s,Z0 as t,ox as u,_t as v,Rh as w,Ah as x,lA as y,oA as z};