nao-core 0.0.11__py3-none-any.whl → 0.0.12__py3-none-any.whl
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.
- nao_core/__init__.py +1 -1
- nao_core/bin/migrations-postgres/0000_supreme_cable.sql +85 -0
- nao_core/bin/migrations-postgres/meta/0000_snapshot.json +610 -0
- nao_core/bin/migrations-postgres/meta/_journal.json +13 -0
- nao_core/bin/migrations-sqlite/0000_cloudy_squirrel_girl.sql +85 -0
- nao_core/bin/migrations-sqlite/meta/0000_snapshot.json +590 -0
- nao_core/bin/migrations-sqlite/meta/_journal.json +13 -0
- nao_core/bin/nao-chat-server +0 -0
- nao_core/bin/public/assets/index-BUcR0FCx.css +1 -0
- nao_core/bin/public/assets/index-DDQ8i103.js +14 -0
- nao_core/bin/public/assets/index-nOBqrovO.js +36 -0
- nao_core/bin/public/assets/login-CGCfd7iQ.js +1 -0
- nao_core/bin/public/assets/signinForm-BGrBZeLW.js +1 -0
- nao_core/bin/public/assets/signup-BGjbIX9B.js +1 -0
- nao_core/bin/public/github-icon.svg +19 -0
- nao_core/bin/public/google-icon.svg +2 -0
- nao_core/bin/public/index.html +2 -2
- nao_core/commands/debug.py +4 -0
- nao_core/commands/sync.py +2 -1
- {nao_core-0.0.11.dist-info → nao_core-0.0.12.dist-info}/METADATA +1 -1
- nao_core-0.0.12.dist-info/RECORD +31 -0
- nao_core/bin/public/assets/index-BSxC58nD.js +0 -36
- nao_core/bin/public/assets/index-Dh3br3Ia.js +0 -13
- nao_core/bin/public/assets/index-heKLHGGE.css +0 -1
- nao_core-0.0.11.dist-info/RECORD +0 -20
- {nao_core-0.0.11.dist-info → nao_core-0.0.12.dist-info}/WHEEL +0 -0
- {nao_core-0.0.11.dist-info → nao_core-0.0.12.dist-info}/entry_points.txt +0 -0
- {nao_core-0.0.11.dist-info → nao_core-0.0.12.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function V0(a,i){for(var u=0;u<i.length;u++){const s=i[u];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=u(c);fetch(c.href,f)}})();function zm(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Po={exports:{}},Si={};var Np;function Z0(){if(Np)return Si;Np=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(s,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var d in c)d!=="key"&&(f[d]=c[d])}else f=c;return c=f.ref,{$$typeof:a,type:s,key:h,ref:c!==void 0?c:null,props:f}}return Si.Fragment=i,Si.jsx=u,Si.jsxs=u,Si}var qp;function J0(){return qp||(qp=1,Po.exports=Z0()),Po.exports}var k=J0(),Vo={exports:{}},it={};var Bp;function F0(){if(Bp)return it;Bp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=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"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function O(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,B={};function U(E,q,V){this.props=E,this.context=q,this.refs=B,this.updater=V||z}U.prototype.isReactComponent={},U.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,q,"setState")},U.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Q(){}Q.prototype=U.prototype;function G(E,q,V){this.props=E,this.context=q,this.refs=B,this.updater=V||z}var K=G.prototype=new Q;K.constructor=G,A(K,U.prototype),K.isPureReactComponent=!0;var tt=Array.isArray;function Y(){}var H={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function $(E,q,V){var Z=V.ref;return{$$typeof:a,type:E,key:q,ref:Z!==void 0?Z:null,props:V}}function ot(E,q){return $(E.type,q,E.props)}function rt(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function xt(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(V){return q[V]})}var qt=/\/+/g;function Bt(E,q){return typeof E=="object"&&E!==null&&E.key!=null?xt(""+E.key):q.toString(36)}function Lt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(Y,Y):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function w(E,q,V,Z,at){var lt=typeof E;(lt==="undefined"||lt==="boolean")&&(E=null);var pt=!1;if(E===null)pt=!0;else switch(lt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(E.$$typeof){case a:case i:pt=!0;break;case b:return pt=E._init,w(pt(E._payload),q,V,Z,at)}}if(pt)return at=at(E),pt=Z===""?"."+Bt(E,0):Z,tt(at)?(V="",pt!=null&&(V=pt.replace(qt,"$&/")+"/"),w(at,q,V,"",function(ke){return ke})):at!=null&&(rt(at)&&(at=ot(at,V+(at.key==null||E&&E.key===at.key?"":(""+at.key).replace(qt,"$&/")+"/")+pt)),q.push(at)),1;pt=0;var Gt=Z===""?".":Z+":";if(tt(E))for(var Tt=0;Tt<E.length;Tt++)Z=E[Tt],lt=Gt+Bt(Z,Tt),pt+=w(Z,q,V,lt,at);else if(Tt=O(E),typeof Tt=="function")for(E=Tt.call(E),Tt=0;!(Z=E.next()).done;)Z=Z.value,lt=Gt+Bt(Z,Tt++),pt+=w(Z,q,V,lt,at);else if(lt==="object"){if(typeof E.then=="function")return w(Lt(E),q,V,Z,at);throw q=String(E),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return pt}function P(E,q,V){if(E==null)return E;var Z=[],at=0;return w(E,Z,"","",function(lt){return q.call(V,lt,at++)}),Z}function et(E){if(E._status===-1){var q=E._result;q=q(),q.then(function(V){(E._status===0||E._status===-1)&&(E._status=1,E._result=V)},function(V){(E._status===0||E._status===-1)&&(E._status=2,E._result=V)}),E._status===-1&&(E._status=0,E._result=q)}if(E._status===1)return E._result.default;throw E._result}var bt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Et={map:P,forEach:function(E,q,V){P(E,function(){q.apply(this,arguments)},V)},count:function(E){var q=0;return P(E,function(){q++}),q},toArray:function(E){return P(E,function(q){return q})||[]},only:function(E){if(!rt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return it.Activity=g,it.Children=Et,it.Component=U,it.Fragment=u,it.Profiler=c,it.PureComponent=G,it.StrictMode=s,it.Suspense=m,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,it.__COMPILER_RUNTIME={__proto__:null,c:function(E){return H.H.useMemoCache(E)}},it.cache=function(E){return function(){return E.apply(null,arguments)}},it.cacheSignal=function(){return null},it.cloneElement=function(E,q,V){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var Z=A({},E.props),at=E.key;if(q!=null)for(lt in q.key!==void 0&&(at=""+q.key),q)!X.call(q,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&q.ref===void 0||(Z[lt]=q[lt]);var lt=arguments.length-2;if(lt===1)Z.children=V;else if(1<lt){for(var pt=Array(lt),Gt=0;Gt<lt;Gt++)pt[Gt]=arguments[Gt+2];Z.children=pt}return $(E.type,at,Z)},it.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},it.createElement=function(E,q,V){var Z,at={},lt=null;if(q!=null)for(Z in q.key!==void 0&&(lt=""+q.key),q)X.call(q,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(at[Z]=q[Z]);var pt=arguments.length-2;if(pt===1)at.children=V;else if(1<pt){for(var Gt=Array(pt),Tt=0;Tt<pt;Tt++)Gt[Tt]=arguments[Tt+2];at.children=Gt}if(E&&E.defaultProps)for(Z in pt=E.defaultProps,pt)at[Z]===void 0&&(at[Z]=pt[Z]);return $(E,lt,at)},it.createRef=function(){return{current:null}},it.forwardRef=function(E){return{$$typeof:d,render:E}},it.isValidElement=rt,it.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:et}},it.memo=function(E,q){return{$$typeof:y,type:E,compare:q===void 0?null:q}},it.startTransition=function(E){var q=H.T,V={};H.T=V;try{var Z=E(),at=H.S;at!==null&&at(V,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(Y,bt)}catch(lt){bt(lt)}finally{q!==null&&V.types!==null&&(q.types=V.types),H.T=q}},it.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},it.use=function(E){return H.H.use(E)},it.useActionState=function(E,q,V){return H.H.useActionState(E,q,V)},it.useCallback=function(E,q){return H.H.useCallback(E,q)},it.useContext=function(E){return H.H.useContext(E)},it.useDebugValue=function(){},it.useDeferredValue=function(E,q){return H.H.useDeferredValue(E,q)},it.useEffect=function(E,q){return H.H.useEffect(E,q)},it.useEffectEvent=function(E){return H.H.useEffectEvent(E)},it.useId=function(){return H.H.useId()},it.useImperativeHandle=function(E,q,V){return H.H.useImperativeHandle(E,q,V)},it.useInsertionEffect=function(E,q){return H.H.useInsertionEffect(E,q)},it.useLayoutEffect=function(E,q){return H.H.useLayoutEffect(E,q)},it.useMemo=function(E,q){return H.H.useMemo(E,q)},it.useOptimistic=function(E,q){return H.H.useOptimistic(E,q)},it.useReducer=function(E,q,V){return H.H.useReducer(E,q,V)},it.useRef=function(E){return H.H.useRef(E)},it.useState=function(E){return H.H.useState(E)},it.useSyncExternalStore=function(E,q,V){return H.H.useSyncExternalStore(E,q,V)},it.useTransition=function(){return H.H.useTransition()},it.version="19.2.3",it}var Hp;function Di(){return Hp||(Hp=1,Vo.exports=F0()),Vo.exports}var nt=Di();const bl=zm(nt),o_=V0({__proto__:null,default:bl},[nt]);var k0=Object.create,jm=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,wm=Object.getOwnPropertyNames,W0=Object.getPrototypeOf,I0=Object.prototype.hasOwnProperty,Fe=(a,i)=>function(){return i||(0,a[wm(a)[0]])((i={exports:{}}).exports,i),i.exports},tg=(a,i,u,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var c=wm(i),f=0,h=c.length,d;f<h;f++)d=c[f],!I0.call(a,d)&&d!==u&&jm(a,d,{get:(m=>i[m]).bind(null,d),enumerable:!(s=$0(i,d))||s.enumerable});return a},Yt=(a,i,u)=>(u=a!=null?k0(W0(a)):{},tg(jm(u,"default",{value:a,enumerable:!0}),a)),Dm=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function u(s){"@babel/helpers - typeof";return i.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i.exports.__esModule=!0,i.exports.default=i.exports,u(s)}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}}),eg=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var u=Dm().default;function s(c,f){if(u(c)!="object"||!c)return c;var h=c[Symbol.toPrimitive];if(h!==void 0){var d=h.call(c,f||"default");if(u(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),ng=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var u=Dm().default,s=eg();function c(f){var h=s(f,"string");return u(h)=="symbol"?h:h+""}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ma=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var u=ng();function s(c,f,h){return(f=u(f))in c?Object.defineProperty(c,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[f]=h,c}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ke=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var u=Ma();function s(f,h){var d=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);h&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),d.push.apply(d,m)}return d}function c(f){for(var h=1;h<arguments.length;h++){var d=arguments[h]!=null?arguments[h]:{};h%2?s(Object(d),!0).forEach(function(m){u(f,m,d[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(d)):s(Object(d)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(d,m))})}return f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});function xl(a){const i={subscribe(u){let s=null,c=!1,f=!1,h=!1;function d(){if(s===null){h=!0;return}f||(f=!0,typeof s=="function"?s():s&&s.unsubscribe())}return s=a({next(m){var y;c||(y=u.next)===null||y===void 0||y.call(u,m)},error(m){var y;c||(c=!0,(y=u.error)===null||y===void 0||y.call(u,m),d())},complete(){var m;c||(c=!0,(m=u.complete)===null||m===void 0||m.call(u),d())}}),h&&d(),{unsubscribe:d}},pipe(...u){return u.reduce(ag,i)}};return i}function ag(a,i){return i(a)}function lg(a){const i=new AbortController;return new Promise((s,c)=>{let f=!1;function h(){f||(f=!0,d.unsubscribe())}i.signal.addEventListener("abort",()=>{c(i.signal.reason)});const d=a.subscribe({next(m){f=!0,s(m),h()},error(m){c(m)},complete(){i.abort(),h()}})})}function ig(a){return i=>{let u=0,s=null;const c=[];function f(){s||(s=i.subscribe({next(d){for(const y of c){var m;(m=y.next)===null||m===void 0||m.call(y,d)}},error(d){for(const y of c){var m;(m=y.error)===null||m===void 0||m.call(y,d)}},complete(){for(const m of c){var d;(d=m.complete)===null||d===void 0||d.call(m)}}}))}function h(){if(u===0&&s){const d=s;s=null,d.unsubscribe()}}return xl(d=>(u++,c.push(d),f(),{unsubscribe(){u--,h();const m=c.findIndex(y=>y===d);m>-1&&c.splice(m,1)}}))}}function ug(a){return i=>xl(u=>i.subscribe({next(s){var c;(c=a.next)===null||c===void 0||c.call(a,s),u.next(s)},error(s){var c;(c=a.error)===null||c===void 0||c.call(a,s),u.error(s)},complete(){var s;(s=a.complete)===null||s===void 0||s.call(a),u.complete()}}))}function rg(a){let i=a;const u=[],s=h=>{i!==void 0&&h.next(i),u.push(h)},c=h=>{u.splice(u.indexOf(h),1)},f=xl(h=>(s(h),()=>{c(h)}));return f.next=h=>{if(i!==h){i=h;for(const d of u)d.next(h)}},f.get=()=>i,f}function sg(a){return xl(i=>{function u(c=0,f=a.op){const h=a.links[c];if(!h)throw new Error("No more links to execute - did you forget to add an ending link?");return h({op:f,next(m){return u(c+1,m)}})}return u().subscribe(i)})}function Wn(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}function og(a){return typeof a=="function"}function cg(){return Object.create(null)}const fg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function dg(a){return fg&&Wn(a)&&Symbol.asyncIterator in a}const hg=a=>a();var pg=Object.create,Lm=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,Um=Object.getOwnPropertyNames,yg=Object.getPrototypeOf,vg=Object.prototype.hasOwnProperty,Li=(a,i)=>function(){return i||(0,a[Um(a)[0]])((i={exports:{}}).exports,i),i.exports},gg=(a,i,u,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var c=Um(i),f=0,h=c.length,d;f<h;f++)d=c[f],!vg.call(a,d)&&d!==u&&Lm(a,d,{get:(m=>i[m]).bind(null,d),enumerable:!(s=mg(i,d))||s.enumerable});return a},xr=(a,i,u)=>(u=a!=null?pg(yg(a)):{},gg(Lm(u,"default",{value:a,enumerable:!0}),a));const Nm=()=>{},Qp=a=>{Object.freeze&&Object.freeze(a)};function qm(a,i,u){var s;const c=i.join(".");return(s=u[c])!==null&&s!==void 0||(u[c]=new Proxy(Nm,{get(f,h){if(!(typeof h!="string"||h==="then"))return qm(a,[...i,h],u)},apply(f,h,d){const m=i[i.length-1];let y={args:d,path:i};return m==="call"?y={args:d.length>=2?[d[1]]:[],path:i.slice(0,-1)}:m==="apply"&&(y={args:d.length>=2?d[1]:[],path:i.slice(0,-1)}),Qp(y.args),Qp(y.path),a(y)}})),u[c]}const Bm=a=>qm(a,[],cg()),Sg=a=>new Proxy(Nm,{get(i,u){if(u!=="then")return a(u)}});var Hm=Li({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function u(s){"@babel/helpers - typeof";return i.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i.exports.__esModule=!0,i.exports.default=i.exports,u(s)}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}}),bg=Li({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var u=Hm().default;function s(c,f){if(u(c)!="object"||!c)return c;var h=c[Symbol.toPrimitive];if(h!==void 0){var d=h.call(c,f||"default");if(u(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),_g=Li({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var u=Hm().default,s=bg();function c(f){var h=s(f,"string");return u(h)=="symbol"?h:h+""}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Qm=Li({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var u=_g();function s(c,f,h){return(f=u(f))in c?Object.defineProperty(c,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[f]=h,c}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Oc=Li({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var u=Qm();function s(f,h){var d=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);h&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),d.push.apply(d,m)}return d}function c(f){for(var h=1;h<arguments.length;h++){var d=arguments[h]!=null?arguments[h]:{};h%2?s(Object(d),!0).forEach(function(m){u(f,m,d[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(d)):s(Object(d)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(d,m))})}return f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});xr(Oc());var Yp=xr(Qm()),Og=class extends Error{};function xg(a){if(a instanceof Error)return a;const i=typeof a;if(!(i==="undefined"||i==="function"||a===null)){if(i!=="object")return new Error(String(a));if(Wn(a))return Object.assign(new Og,a)}}var Gp=class extends Error{constructor(a){var i,u,s;const c=xg(a.cause),f=(i=(u=a.message)!==null&&u!==void 0?u:c?.message)!==null&&i!==void 0?i:a.code;super(f,{cause:c}),(0,Yp.default)(this,"cause",void 0),(0,Yp.default)(this,"code",void 0),this.code=a.code,this.name="TRPCError",(s=this.cause)!==null&&s!==void 0||(this.cause=c)}},er=xr(Oc());function Eg(a,i){if("error"in a){const s=i.deserialize(a.error);return{ok:!1,error:(0,er.default)((0,er.default)({},a),{},{error:s})}}return{ok:!0,result:(0,er.default)((0,er.default)({},a.result),(!a.result.type||a.result.type==="data")&&{type:"data",data:i.deserialize(a.result.data)})}}var Zo=class extends Error{constructor(){super("Unable to transform response from server")}};function Tg(a,i){let u;try{u=Eg(a,i)}catch{throw new Zo}if(!u.ok&&(!Wn(u.error.error)||typeof u.error.error.code!="number"))throw new Zo;if(u.ok&&!Wn(u.result))throw new Zo;return u}xr(Oc());function Mg(a){return typeof a=="function"}async function Rg(a,i){const{_def:u}=a;let s=u.procedures[i];for(;!s;){const c=Object.keys(u.lazy).find(h=>i.startsWith(h));if(!c)return null;await u.lazy[c].load(),s=u.procedures[i]}return s}async function Ag(a){const{type:i,path:u}=a,s=await Rg(a.router,u);if(!s||!Mg(s)||s._def.type!==i&&!a.allowMethodOverride)throw new Gp({code:"NOT_FOUND",message:`No "${i}"-procedure on path "${u}"`});if(s._def.type!==i&&a.allowMethodOverride&&s._def.type==="subscription")throw new Gp({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return s(a)}var nr=Yt(Ma()),hl=Yt(Ke());function Cg(a){return a instanceof dr}function zg(a){return Wn(a)&&Wn(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function jg(a,i){return typeof a=="string"?a:Wn(a)&&typeof a.message=="string"?a.message:i}var dr=class or extends Error{constructor(i,u){var s,c;const f=u?.cause;super(i,{cause:f}),(0,nr.default)(this,"cause",void 0),(0,nr.default)(this,"shape",void 0),(0,nr.default)(this,"data",void 0),(0,nr.default)(this,"meta",void 0),this.meta=u?.meta,this.cause=f,this.shape=u==null||(s=u.result)===null||s===void 0?void 0:s.error,this.data=u==null||(c=u.result)===null||c===void 0?void 0:c.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,or.prototype)}static from(i,u={}){const s=i;return Cg(s)?(u.meta&&(s.meta=(0,hl.default)((0,hl.default)({},s.meta),u.meta)),s):zg(s)?new or(s.error.message,(0,hl.default)((0,hl.default)({},u),{},{result:s})):new or(jg(s,"Unknown error"),(0,hl.default)((0,hl.default)({},u),{},{cause:s}))}};function wg(a){const i=a;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:u=>u,deserialize:u=>u},output:{serialize:u=>u,deserialize:u=>u}}}const Kp=a=>typeof a=="function";function Dg(a){if(a)return a;if(typeof window<"u"&&Kp(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Kp(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Mi=Yt(Ke());function Lg(a){return{url:a.url.toString(),fetch:a.fetch,transformer:wg(a.transformer),methodOverride:a.methodOverride}}function Ug(a){const i={};for(let u=0;u<a.length;u++){const s=a[u];i[u]=s}return i}const Ng={query:"GET",mutation:"POST",subscription:"PATCH"};function Ym(a){return"input"in a?a.transformer.input.serialize(a.input):Ug(a.inputs.map(i=>a.transformer.input.serialize(i)))}const Gm=a=>{const i=a.url.split("?");let s=i[0].replace(/\/$/,"")+"/"+a.path;const c=[];if(i[1]&&c.push(i[1]),"inputs"in a&&c.push("batch=1"),a.type==="query"||a.type==="subscription"){const f=Ym(a);f!==void 0&&a.methodOverride!=="POST"&&c.push(`input=${encodeURIComponent(JSON.stringify(f))}`)}return c.length&&(s+="?"+c.join("&")),s},qg=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const i=Ym(a);return i!==void 0?JSON.stringify(i):void 0},Bg=a=>Gg((0,Mi.default)((0,Mi.default)({},a),{},{contentTypeHeader:"application/json",getUrl:Gm,getBody:qg}));var Hg=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const Qg=a=>{var i;if(a?.aborted)throw(i=a.throwIfAborted)===null||i===void 0||i.call(a),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new Hg};async function Yg(a){var i;Qg(a.signal);const u=a.getUrl(a),s=a.getBody(a),c=(i=a.methodOverride)!==null&&i!==void 0?i:Ng[a.type],f=await(async()=>{const d=await a.headers();return Symbol.iterator in d?Object.fromEntries(d):d})(),h=(0,Mi.default)((0,Mi.default)((0,Mi.default)({},a.contentTypeHeader&&c!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),f);return Dg(a.fetch)(u,{method:c,signal:a.signal,body:s,headers:h})}async function Gg(a){const i={},u=await Yg(a);i.response=u;const s=await u.json();return i.responseJSON=s,{json:s,meta:i}}Yt(Ke());const Xp=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Pp(a){let i=null,u=null;const s=()=>{clearTimeout(u),u=null,i=null};function c(d){const m=[[]];let y=0;for(;;){const S=d[y];if(!S)break;const O=m[m.length-1];if(S.aborted){var b;(b=S.reject)===null||b===void 0||b.call(S,new Error("Aborted")),y++;continue}if(a.validate(O.concat(S).map(A=>A.key))){O.push(S),y++;continue}if(O.length===0){var g;(g=S.reject)===null||g===void 0||g.call(S,new Error("Input is too big for a single dispatch")),y++;continue}m.push([])}return m}function f(){const d=c(i);s();for(const m of d){if(!m.length)continue;const y={items:m};for(const g of m)g.batch=y;a.fetch(y.items.map(g=>g.key)).then(async g=>{await Promise.all(g.map(async(O,z)=>{const A=y.items[z];try{var B;const Q=await Promise.resolve(O);(B=A.resolve)===null||B===void 0||B.call(A,Q)}catch(Q){var U;(U=A.reject)===null||U===void 0||U.call(A,Q)}A.batch=null,A.reject=null,A.resolve=null}));for(const O of y.items){var S;(S=O.reject)===null||S===void 0||S.call(O,new Error("Missing result")),O.batch=null}}).catch(g=>{for(const O of y.items){var S;(S=O.reject)===null||S===void 0||S.call(O,g),O.batch=null}})}}function h(d){var m;const y={aborted:!1,key:d,batch:null,resolve:Xp,reject:Xp},b=new Promise((g,S)=>{var O;y.reject=S,y.resolve=g,(O=i)!==null&&O!==void 0||(i=[]),i.push(y)});return(m=u)!==null&&m!==void 0||(u=setTimeout(f)),b}return{load:h}}function Kg(...a){const i=new AbortController,u=a.length;let s=0;const c=()=>{++s===u&&i.abort()};for(const f of a)f?.aborted?c():f?.addEventListener("abort",c,{once:!0});return i.signal}var ar=Yt(Ke());function Xg(a){var i,u;const s=Lg(a),c=(i=a.maxURLLength)!==null&&i!==void 0?i:1/0,f=(u=a.maxItems)!==null&&u!==void 0?u:1/0;return()=>{const h=b=>({validate(g){if(c===1/0&&f===1/0)return!0;if(g.length>f)return!1;const S=g.map(A=>A.path).join(","),O=g.map(A=>A.input);return Gm((0,ar.default)((0,ar.default)({},s),{},{type:b,path:S,inputs:O,signal:null})).length<=c},async fetch(g){const S=g.map(Q=>Q.path).join(","),O=g.map(Q=>Q.input),z=Kg(...g.map(Q=>Q.signal)),A=await Bg((0,ar.default)((0,ar.default)({},s),{},{path:S,inputs:O,type:b,headers(){return a.headers?typeof a.headers=="function"?a.headers({opList:g}):a.headers:{}},signal:z}));return(Array.isArray(A.json)?A.json:g.map(()=>A.json)).map(Q=>({meta:A.meta,json:Q}))}}),d=Pp(h("query")),m=Pp(h("mutation")),y={query:d,mutation:m};return({op:b})=>xl(g=>{if(b.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const O=y[b.type].load(b);let z;return O.then(A=>{z=A;const B=Tg(A.json,s.transformer.output);if(!B.ok){g.error(dr.from(B.error,{meta:A.meta}));return}g.next({context:A.meta,result:B.result}),g.complete()}).catch(A=>{g.error(dr.from(A,{meta:z?.meta}))}),()=>{}})}}var Ye=Yt(Ke());function Pg(a){return typeof FormData>"u"?!1:a instanceof FormData}const Jo={css:{query:["72e3ff","3fb0d8"],mutation:["c5a3fc","904dfc"],subscription:["ff49e1","d83fbe"]},ansi:{regular:{query:["\x1B[30;46m","\x1B[97;46m"],mutation:["\x1B[30;45m","\x1B[97;45m"],subscription:["\x1B[30;42m","\x1B[97;42m"]},bold:{query:["\x1B[1;30;46m","\x1B[1;97;46m"],mutation:["\x1B[1;30;45m","\x1B[1;97;45m"],subscription:["\x1B[1;30;42m","\x1B[1;97;42m"]}}};function Vg(a){const{direction:i,type:u,withContext:s,path:c,id:f,input:h}=a,d=[],m=[];if(a.colorMode==="none")d.push(i==="up"?">>":"<<",u,`#${f}`,c);else if(a.colorMode==="ansi"){const[y,b]=Jo.ansi.regular[u],[g,S]=Jo.ansi.bold[u];d.push(i==="up"?y:b,i==="up"?">>":"<<",u,i==="up"?g:S,`#${f}`,c,"\x1B[0m")}else{const[y,b]=Jo.css[u],g=`
|
|
2
|
-
background-color: #${i==="up"?y:b};
|
|
3
|
-
color: ${i==="up"?"black":"white"};
|
|
4
|
-
padding: 2px;
|
|
5
|
-
`;d.push("%c",i==="up"?">>":"<<",u,`#${f}`,`%c${c}%c`,"%O"),m.push(g,`${g}; font-weight: bold;`,`${g}; font-weight: normal;`)}return i==="up"?m.push(s?{input:h,context:a.context}:{input:h}):m.push((0,Ye.default)({input:h,result:a.result,elapsedMs:a.elapsedMs},s&&{context:a.context})),{parts:d,args:m}}const Zg=({c:a=console,colorMode:i="css",withContext:u})=>s=>{const c=s.input,f=Pg(c)?Object.fromEntries(c):c,{parts:h,args:d}=Vg((0,Ye.default)((0,Ye.default)({},s),{},{colorMode:i,input:f,withContext:u})),m=s.direction==="down"&&s.result&&(s.result instanceof Error||"error"in s.result.result&&s.result.result.error)?"error":"log";a[m].apply(null,[h.join(" ")].concat(d))};function Jg(a={}){var i,u;const{enabled:s=()=>!0}=a,c=(i=a.colorMode)!==null&&i!==void 0?i:typeof window>"u"?"ansi":"css",f=(u=a.withContext)!==null&&u!==void 0?u:c==="css",{logger:h=Zg({c:a.console,colorMode:c,withContext:f})}=a;return()=>({op:d,next:m})=>xl(y=>{s((0,Ye.default)((0,Ye.default)({},d),{},{direction:"up"}))&&h((0,Ye.default)((0,Ye.default)({},d),{},{direction:"up"}));const b=Date.now();function g(S){const O=Date.now()-b;s((0,Ye.default)((0,Ye.default)({},d),{},{direction:"down",result:S}))&&h((0,Ye.default)((0,Ye.default)({},d),{},{direction:"down",elapsedMs:O,result:S}))}return m(d).pipe(ug({next(S){g(S)},error(S){g(S)}})).subscribe(y)})}const Km=(a,...i)=>typeof a=="function"?a(...i):a;Yt(Ma());function Fg(){let a,i;return{promise:new Promise((s,c)=>{a=s,i=c}),resolve:a,reject:i}}async function kg(a){const i=await Km(a.url);if(!a.connectionParams)return i;const s=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+s}async function $g(a){const i={method:"connectionParams",data:await Km(a)};return JSON.stringify(i)}Yt(Ma());var Sa=Yt(Ma());function Wg(a){const{promise:i,resolve:u,reject:s}=Fg();return a.addEventListener("open",()=>{a.removeEventListener("error",s),u()}),a.addEventListener("error",s),i}function Ig(a,{intervalMs:i,pongTimeoutMs:u}){let s,c;function f(){s=setTimeout(()=>{a.send("PING"),c=setTimeout(()=>{a.close()},u)},i)}function h(){clearTimeout(s),f()}function d(){clearTimeout(c),h()}a.addEventListener("open",f),a.addEventListener("message",({data:m})=>{clearTimeout(s),f(),m==="PONG"&&d()}),a.addEventListener("close",()=>{clearTimeout(s),clearTimeout(c)})}var tS=class hc{constructor(i){var u;if((0,Sa.default)(this,"id",++hc.connectCount),(0,Sa.default)(this,"WebSocketPonyfill",void 0),(0,Sa.default)(this,"urlOptions",void 0),(0,Sa.default)(this,"keepAliveOpts",void 0),(0,Sa.default)(this,"wsObservable",rg(null)),(0,Sa.default)(this,"openPromise",null),this.WebSocketPonyfill=(u=i.WebSocketPonyfill)!==null&&u!==void 0?u:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=i.urlOptions,this.keepAliveOpts=i.keepAlive}get ws(){return this.wsObservable.get()}set ws(i){this.wsObservable.next(i)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var i=this;if(i.openPromise)return i.openPromise;i.id=++hc.connectCount;const u=kg(i.urlOptions).then(s=>new i.WebSocketPonyfill(s));i.openPromise=u.then(async s=>{i.ws=s,s.addEventListener("message",function({data:c}){c==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&Ig(s,i.keepAliveOpts),s.addEventListener("close",()=>{i.ws===s&&(i.ws=null)}),await Wg(s),i.urlOptions.connectionParams&&s.send(await $g(i.urlOptions.connectionParams))});try{await i.openPromise}finally{i.openPromise=null}}async close(){var i=this;try{await i.openPromise}finally{var u;(u=i.ws)===null||u===void 0||u.close()}}};(0,Sa.default)(tS,"connectCount",0);Yt(Ma());Yt(Ke());var Fo=Yt(Ma()),Vp=Yt(Ke()),Xm=class{constructor(a){(0,Fo.default)(this,"links",void 0),(0,Fo.default)(this,"runtime",void 0),(0,Fo.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=a.links.map(i=>i(this.runtime))}$request(a){var i;return sg({links:this.links,op:(0,Vp.default)((0,Vp.default)({},a),{},{context:(i=a.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(ig())}async requestAsPromise(a){var i=this;try{const u=i.$request(a);return(await lg(u)).result.data}catch(u){throw dr.from(u)}}query(a,i,u){return this.requestAsPromise({type:"query",path:a,input:i,context:u?.context,signal:u?.signal})}mutation(a,i,u){return this.requestAsPromise({type:"mutation",path:a,input:i,context:u?.context,signal:u?.signal})}subscription(a,i,u){return this.$request({type:"subscription",path:a,input:i,context:u.context,signal:u.signal}).subscribe({next(c){switch(c.result.type){case"state":{var f;(f=u.onConnectionStateChange)===null||f===void 0||f.call(u,c.result);break}case"started":{var h;(h=u.onStarted)===null||h===void 0||h.call(u,{context:c.context});break}case"stopped":{var d;(d=u.onStopped)===null||d===void 0||d.call(u);break}case"data":case void 0:{var m;(m=u.onData)===null||m===void 0||m.call(u,c.result.data);break}}},error(c){var f;(f=u.onError)===null||f===void 0||f.call(u,c)},complete(){var c;(c=u.onComplete)===null||c===void 0||c.call(u)}})}};const Pm=Symbol.for("trpc_untypedClient"),eS={query:"query",mutate:"mutation",subscribe:"subscription"},nS=a=>eS[a];function aS(a){const i=Bm(({path:u,args:s})=>{const c=[...u],f=nS(c.pop()),h=c.join(".");return a[f](h,...s)});return Sg(u=>u===Pm?a:i[u])}function lS(a){const i=new Xm(a);return aS(i)}function iS(a){return a[Pm]}Yt(Ke());Yt(Ke());var uS=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function u(c){var f,h,d,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,d=Symbol.iterator);m--;){if(h&&(f=c[h])!=null)return f.call(c);if(d&&(f=c[d])!=null)return new s(f.call(c));h="@@asyncIterator",d="@@iterator"}throw new TypeError("Object is not async iterable")}function s(c){function f(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var d=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:d}})}return s=function(d){this.s=d,this.n=d.next},s.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(d){var m=this.s.return;return m===void 0?Promise.resolve({value:d,done:!0}):f(m.apply(this.s,arguments))},throw:function(d){var m=this.s.return;return m===void 0?Promise.reject(d):f(m.apply(this.s,arguments))}},new s(c)}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}});Yt(uS());Yt(Ke());var rS=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(a,i){function u(){var s=typeof SuppressedError=="function"?SuppressedError:function(d,m){var y=Error();return y.name="SuppressedError",y.error=d,y.suppressed=m,y},c={},f=[];function h(d,m){if(m!=null){if(Object(m)!==m)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(d)var y=m[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(y===void 0&&(y=m[Symbol.dispose||Symbol.for("Symbol.dispose")],d))var b=y;if(typeof y!="function")throw new TypeError("Object is not disposable.");b&&(y=function(){try{b.call(m)}catch(S){return Promise.reject(S)}}),f.push({v:m,d:y,a:d})}else d&&f.push({d:m,a:d});return m}return{e:c,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var m,y=this.e,b=0;function g(){for(;m=f.pop();)try{if(!m.a&&b===1)return b=0,f.push(m),Promise.resolve().then(g);if(m.d){var O=m.d.call(m.v);if(m.a)return b|=2,Promise.resolve(O).then(g,S)}else b|=1}catch(z){return S(z)}if(b===1)return y!==c?Promise.reject(y):Promise.resolve();if(y!==c)throw y}function S(O){return y=y!==c?new s(O,y):O,g()}return g()}}}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}}),Vm=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,i){function u(s,c){this.v=s,this.k=c}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}}),sS=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,i){var u=Vm();function s(c){return new u(c,0)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),oS=Fe({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,i){var u=Vm();function s(f){return function(){return new c(f.apply(this,arguments))}}function c(f){var h,d;function m(b,g){try{var S=f[b](g),O=S.value,z=O instanceof u;Promise.resolve(z?O.v:O).then(function(A){if(z){var B=b==="return"?"return":"next";if(!O.k||A.done)return m(B,A);A=f[B](A).value}y(S.done?"return":"normal",A)},function(A){m("throw",A)})}catch(A){y("throw",A)}}function y(b,g){switch(b){case"return":h.resolve({value:g,done:!0});break;case"throw":h.reject(g);break;default:h.resolve({value:g,done:!1})}(h=h.next)?m(h.key,h.arg):d=null}this._invoke=function(b,g){return new Promise(function(S,O){var z={key:b,arg:g,resolve:S,reject:O,next:null};d?d=d.next=z:(h=d=z,m(b,g))})},typeof f.return!="function"&&(this.return=void 0)}c.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(f){return this._invoke("next",f)},c.prototype.throw=function(f){return this._invoke("throw",f)},c.prototype.return=function(f){return this._invoke("return",f)},i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Yt(rS());Yt(sS());Yt(oS());Yt(Ke());var Er=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cS={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},fS=class{#t=cS;#e=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,i){return this.#t.setTimeout(a,i)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,i){return this.#t.setInterval(a,i)}clearInterval(a){this.#t.clearInterval(a)}},pc=new fS;function dS(a){setTimeout(a,0)}var Tr=typeof window>"u"||"Deno"in globalThis;function Ge(){}function hS(a,i){return typeof a=="function"?a(i):a}function pS(a){return typeof a=="number"&&a>=0&&a!==1/0}function mS(a,i){return Math.max(a+(i||0)-Date.now(),0)}function mc(a,i){return typeof a=="function"?a(i):a}function yS(a,i){return typeof a=="function"?a(i):a}function Zp(a,i){const{type:u="all",exact:s,fetchStatus:c,predicate:f,queryKey:h,stale:d}=a;if(h){if(s){if(i.queryHash!==xc(h,i.options))return!1}else if(!ji(i.queryKey,h))return!1}if(u!=="all"){const m=i.isActive();if(u==="active"&&!m||u==="inactive"&&m)return!1}return!(typeof d=="boolean"&&i.isStale()!==d||c&&c!==i.state.fetchStatus||f&&!f(i))}function Jp(a,i){const{exact:u,status:s,predicate:c,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(u){if(zi(i.options.mutationKey)!==zi(f))return!1}else if(!ji(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||c&&!c(i))}function xc(a,i){return(i?.queryKeyHashFn||zi)(a)}function zi(a){return JSON.stringify(a,(i,u)=>yc(u)?Object.keys(u).sort().reduce((s,c)=>(s[c]=u[c],s),{}):u)}function ji(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(u=>ji(a[u],i[u])):!1}var vS=Object.prototype.hasOwnProperty;function Zm(a,i){if(a===i)return a;const u=Fp(a)&&Fp(i);if(!u&&!(yc(a)&&yc(i)))return i;const c=(u?a:Object.keys(a)).length,f=u?i:Object.keys(i),h=f.length,d=u?new Array(h):{};let m=0;for(let y=0;y<h;y++){const b=u?y:f[y],g=a[b],S=i[b];if(g===S){d[b]=g,(u?y<c:vS.call(a,b))&&m++;continue}if(g===null||S===null||typeof g!="object"||typeof S!="object"){d[b]=S;continue}const O=Zm(g,S);d[b]=O,O===g&&m++}return c===h&&m===c?a:d}function Fp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function yc(a){if(!kp(a))return!1;const i=a.constructor;if(i===void 0)return!0;const u=i.prototype;return!(!kp(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function kp(a){return Object.prototype.toString.call(a)==="[object Object]"}function gS(a){return new Promise(i=>{pc.setTimeout(i,a)})}function SS(a,i,u){return typeof u.structuralSharing=="function"?u.structuralSharing(a,i):u.structuralSharing!==!1?Zm(a,i):i}function bS(a,i,u=0){const s=[...a,i];return u&&s.length>u?s.slice(1):s}function _S(a,i,u=0){const s=[i,...a];return u&&s.length>u?s.slice(0,-1):s}var gn=Symbol();function Jm(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===gn?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function OS(a,i,u){let s=!1,c;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(c??=i(),s||(s=!0,c.aborted?u():c.addEventListener("abort",u,{once:!0})),c)}),a}var xS=class extends Er{#t;#e;#n;constructor(){super(),this.#n=a=>{if(!Tr&&window.addEventListener){const i=()=>a();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(a){this.#n=a,this.#e?.(),this.#e=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Fm=new xS;function ES(){let a,i;const u=new Promise((c,f)=>{a=c,i=f});u.status="pending",u.catch(()=>{});function s(c){Object.assign(u,c),delete u.resolve,delete u.reject}return u.resolve=c=>{s({status:"fulfilled",value:c}),a(c)},u.reject=c=>{s({status:"rejected",reason:c}),i(c)},u}var TS=dS;function MS(){let a=[],i=0,u=d=>{d()},s=d=>{d()},c=TS;const f=d=>{i?a.push(d):c(()=>{u(d)})},h=()=>{const d=a;a=[],d.length&&c(()=>{s(()=>{d.forEach(m=>{u(m)})})})};return{batch:d=>{let m;i++;try{m=d()}finally{i--,i||h()}return m},batchCalls:d=>(...m)=>{f(()=>{d(...m)})},schedule:f,setNotifyFunction:d=>{u=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{c=d}}}var ae=MS(),RS=class extends Er{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(!Tr&&window.addEventListener){const i=()=>a(!0),u=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(this.setOnline.bind(this))}setOnline(a){this.#t!==a&&(this.#t=a,this.listeners.forEach(u=>{u(a)}))}isOnline(){return this.#t}},hr=new RS;function AS(a){return Math.min(1e3*2**a,3e4)}function km(a){return(a??"online")==="online"?hr.isOnline():!0}var vc=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function $m(a){let i=!1,u=0,s;const c=ES(),f=()=>c.status!=="pending",h=A=>{if(!f()){const B=new vc(A);S(B),a.onCancel?.(B)}},d=()=>{i=!0},m=()=>{i=!1},y=()=>Fm.isFocused()&&(a.networkMode==="always"||hr.isOnline())&&a.canRun(),b=()=>km(a.networkMode)&&a.canRun(),g=A=>{f()||(s?.(),c.resolve(A))},S=A=>{f()||(s?.(),c.reject(A))},O=()=>new Promise(A=>{s=B=>{(f()||y())&&A(B)},a.onPause?.()}).then(()=>{s=void 0,f()||a.onContinue?.()}),z=()=>{if(f())return;let A;const B=u===0?a.initialPromise:void 0;try{A=B??a.fn()}catch(U){A=Promise.reject(U)}Promise.resolve(A).then(g).catch(U=>{if(f())return;const Q=a.retry??(Tr?0:3),G=a.retryDelay??AS,K=typeof G=="function"?G(u,U):G,tt=Q===!0||typeof Q=="number"&&u<Q||typeof Q=="function"&&Q(u,U);if(i||!tt){S(U);return}u++,a.onFail?.(u,U),gS(K).then(()=>y()?void 0:O()).then(()=>{i?S(U):z()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(s?.(),c),cancelRetry:d,continueRetry:m,canStart:b,start:()=>(b()?z():O().then(z),c)}}var Wm=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pS(this.gcTime)&&(this.#t=pc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Tr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(pc.clearTimeout(this.#t),this.#t=void 0)}},CS=class extends Wm{#t;#e;#n;#l;#a;#u;#r;constructor(a){super(),this.#r=!1,this.#u=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#n=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#t=Wp(this.options),this.state=a.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#u,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Wp(this.options);i.data!==void 0&&(this.setState($p(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(a,i){const u=SS(this.state.data,a,this.options);return this.#i({data:u,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),u}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(Ge).catch(Ge):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(a=>yS(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>mc(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!mS(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#r?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const u=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#r=!0,u.signal)})},c=()=>{const d=Jm(this.options,i),y=(()=>{const b={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#r=!1,this.options.persister?this.options.persister(d,y,this):d(y)},h=(()=>{const d={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return s(d),d})();this.options.behavior?.onFetch(h,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=$m({initialPromise:i?.initialPromise,fn:h.fetchFn,onCancel:d=>{d instanceof vc&&d.revert&&this.setState({...this.#e,fetchStatus:"idle"}),u.abort()},onFail:(d,m)=>{this.#i({type:"failed",failureCount:d,error:m})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof vc){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(a){const i=u=>{switch(a.type){case"failed":return{...u,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...zS(u.data,this.options),fetchMeta:a.meta??null};case"success":const s={...u,...$p(a.data,a.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=a.manual?s:void 0,s;case"error":const c=a.error;return{...u,error:c,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...a.state}}};this.state=i(this.state),ae.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function zS(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:km(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function $p(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wp(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,u=i!==void 0,s=u?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:u?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}function Ip(a){return{onFetch:(i,u)=>{const s=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let d={pages:[],pageParams:[]},m=0;const y=async()=>{let b=!1;const g=z=>{OS(z,()=>i.signal,()=>b=!0)},S=Jm(i.options,i.fetchOptions),O=async(z,A,B)=>{if(b)return Promise.reject();if(A==null&&z.pages.length)return Promise.resolve(z);const Q=(()=>{const Y={client:i.client,queryKey:i.queryKey,pageParam:A,direction:B?"backward":"forward",meta:i.options.meta};return g(Y),Y})(),G=await S(Q),{maxPages:K}=i.options,tt=B?_S:bS;return{pages:tt(z.pages,G,K),pageParams:tt(z.pageParams,A,K)}};if(c&&f.length){const z=c==="backward",A=z?jS:tm,B={pages:f,pageParams:h},U=A(s,B);d=await O(B,U,z)}else{const z=a??f.length;do{const A=m===0?h[0]??s.initialPageParam:tm(s,d);if(m>0&&A==null)break;d=await O(d,A),m++}while(m<z)}return d};i.options.persister?i.fetchFn=()=>i.options.persister?.(y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},u):i.fetchFn=y}}}function tm(a,{pages:i,pageParams:u}){const s=i.length-1;return i.length>0?a.getNextPageParam(i[s],i,u[s],u):void 0}function jS(a,{pages:i,pageParams:u}){return i.length>0?a.getPreviousPageParam?.(i[0],i,u[0],u):void 0}var wS=class extends Wm{#t;#e;#n;#l;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#n=a.mutationCache,this.#e=[],this.state=a.state||DS(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#a({type:"continue"})},u={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=$m({fn:()=>this.options.mutationFn?this.options.mutationFn(a,u):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#l.canStart();try{if(s)i();else{this.#a({type:"pending",variables:a,isPaused:c}),await this.#n.config.onMutate?.(a,this,u);const h=await this.options.onMutate?.(a,u);h!==this.state.context&&this.#a({type:"pending",context:h,variables:a,isPaused:c})}const f=await this.#l.start();return await this.#n.config.onSuccess?.(f,a,this.state.context,this,u),await this.options.onSuccess?.(f,a,this.state.context,u),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(f,null,a,this.state.context,u),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,a,this.state.context,this,u)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,a,this.state.context,u)}catch(h){Promise.reject(h)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,u)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,a,this.state.context,u)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(a){const i=u=>{switch(a.type){case"failed":return{...u,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...u,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:a.error,failureCount:u.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ae.batch(()=>{this.#e.forEach(u=>{u.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function DS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var LS=class extends Er{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(a,i,u){const s=new wS({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:u});return this.add(s),s}add(a){this.#t.add(a);const i=lr(a);if(typeof i=="string"){const u=this.#e.get(i);u?u.push(a):this.#e.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=lr(a);if(typeof i=="string"){const u=this.#e.get(i);if(u)if(u.length>1){const s=u.indexOf(a);s!==-1&&u.splice(s,1)}else u[0]===a&&this.#e.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=lr(a);if(typeof i=="string"){const s=this.#e.get(i)?.find(c=>c.state.status==="pending");return!s||s===a}else return!0}runNext(a){const i=lr(a);return typeof i=="string"?this.#e.get(i)?.find(s=>s!==a&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ae.batch(()=>{this.#t.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(a){const i={exact:!0,...a};return this.getAll().find(u=>Jp(i,u))}findAll(a={}){return this.getAll().filter(i=>Jp(a,i))}notify(a){ae.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return ae.batch(()=>Promise.all(a.map(i=>i.continue().catch(Ge))))}};function lr(a){return a.options.scope?.id}var US=class extends Er{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,u){const s=i.queryKey,c=i.queryHash??xc(s,i);let f=this.get(c);return f||(f=new CS({client:a,queryKey:s,queryHash:c,options:a.defaultQueryOptions(i),state:u,defaultOptions:a.getQueryDefaults(s)}),this.add(f)),f}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#t.get(a.queryHash);i&&(a.destroy(),i===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){ae.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(u=>Zp(i,u))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(u=>Zp(a,u)):i}notify(a){ae.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){ae.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){ae.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},NS=class{#t;#e;#n;#l;#a;#u;#r;#i;constructor(a={}){this.#t=a.queryCache||new US,this.#e=a.mutationCache||new LS,this.#n=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Fm.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=hr.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#e.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),u=this.#t.build(this,i),s=u.state.data;return s===void 0?this.fetchQuery(a):(a.revalidateIfStale&&u.isStaleByTime(mc(i.staleTime,u))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:u})=>{const s=u.data;return[i,s]})}setQueryData(a,i,u){const s=this.defaultQueryOptions({queryKey:a}),f=this.#t.get(s.queryHash)?.state.data,h=hS(i,f);if(h!==void 0)return this.#t.build(this,s).setData(h,{...u,manual:!0})}setQueriesData(a,i,u){return ae.batch(()=>this.#t.findAll(a).map(({queryKey:s})=>[s,this.setQueryData(s,i,u)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state}removeQueries(a){const i=this.#t;ae.batch(()=>{i.findAll(a).forEach(u=>{i.remove(u)})})}resetQueries(a,i){const u=this.#t;return ae.batch(()=>(u.findAll(a).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const u={revert:!0,...i},s=ae.batch(()=>this.#t.findAll(a).map(c=>c.cancel(u)));return Promise.all(s).then(Ge).catch(Ge)}invalidateQueries(a,i={}){return ae.batch(()=>(this.#t.findAll(a).forEach(u=>{u.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const u={...i,cancelRefetch:i.cancelRefetch??!0},s=ae.batch(()=>this.#t.findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,u);return u.throwOnError||(f=f.catch(Ge)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(Ge)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const u=this.#t.build(this,i);return u.isStaleByTime(mc(i.staleTime,u))?u.fetch(i):Promise.resolve(u.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Ge).catch(Ge)}fetchInfiniteQuery(a){return a.behavior=Ip(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Ge).catch(Ge)}ensureInfiniteQueryData(a){return a.behavior=Ip(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return hr.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#l.set(zi(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],u={};return i.forEach(s=>{ji(a,s.queryKey)&&Object.assign(u,s.defaultOptions)}),u}setMutationDefaults(a,i){this.#a.set(zi(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],u={};return i.forEach(s=>{ji(a,s.mutationKey)&&Object.assign(u,s.defaultOptions)}),u}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=xc(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.queryFn===gn&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},qS=nt.createContext(void 0),BS=({client:a,children:i})=>(nt.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),k.jsx(qS.Provider,{value:a,children:i}));var HS=Object.create,Im=Object.defineProperty,QS=Object.getOwnPropertyDescriptor,ty=Object.getOwnPropertyNames,YS=Object.getPrototypeOf,GS=Object.prototype.hasOwnProperty,In=(a,i)=>function(){return i||(0,a[ty(a)[0]])((i={exports:{}}).exports,i),i.exports},KS=(a,i,u,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var c=ty(i),f=0,h=c.length,d;f<h;f++)d=c[f],!GS.call(a,d)&&d!==u&&Im(a,d,{get:(m=>i[m]).bind(null,d),enumerable:!(s=QS(i,d))||s.enumerable});return a},ta=(a,i,u)=>(u=a!=null?HS(YS(a)):{},KS(i||!a||!a.__esModule?Im(u,"default",{value:a,enumerable:!0}):u,a)),ey=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function u(s){"@babel/helpers - typeof";return i.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i.exports.__esModule=!0,i.exports.default=i.exports,u(s)}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}}),XS=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var u=ey().default;function s(c,f){if(u(c)!="object"||!c)return c;var h=c[Symbol.toPrimitive];if(h!==void 0){var d=h.call(c,f||"default");if(u(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),PS=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var u=ey().default,s=XS();function c(f){var h=s(f,"string");return u(h)=="symbol"?h:h+""}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),VS=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var u=PS();function s(c,f,h){return(f=u(f))in c?Object.defineProperty(c,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[f]=h,c}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),El=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var u=VS();function s(f,h){var d=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);h&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),d.push.apply(d,m)}return d}function c(f){for(var h=1;h<arguments.length;h++){var d=arguments[h]!=null?arguments[h]:{};h%2?s(Object(d),!0).forEach(function(m){u(f,m,d[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(d)):s(Object(d)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(d,m))})}return f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),ZS=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function u(c){var f,h,d,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,d=Symbol.iterator);m--;){if(h&&(f=c[h])!=null)return f.call(c);if(d&&(f=c[d])!=null)return new s(f.call(c));h="@@asyncIterator",d="@@iterator"}throw new TypeError("Object is not async iterable")}function s(c){function f(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var d=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:d}})}return s=function(d){this.s=d,this.n=d.next},s.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(d){var m=this.s.return;return m===void 0?Promise.resolve({value:d,done:!0}):f(m.apply(this.s,arguments))},throw:function(d){var m=this.s.return;return m===void 0?Promise.reject(d):f(m.apply(this.s,arguments))}},new s(c)}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}}),JS=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,i){function u(s,c){if(s==null)return{};var f={};for(var h in s)if({}.hasOwnProperty.call(s,h)){if(c.includes(h))continue;f[h]=s[h]}return f}i.exports=u,i.exports.__esModule=!0,i.exports.default=i.exports}}),FS=In({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,i){var u=JS();function s(c,f){if(c==null)return{};var h,d,m=u(c,f);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(c);for(d=0;d<y.length;d++)h=y[d],f.includes(h)||{}.propertyIsEnumerable.call(c,h)&&(m[h]=c[h])}return m}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ri=ta(El(),1),kS=ta(ZS(),1),$S=ta(FS(),1);const WS=["cursor","direction"];function Mr(a){return{path:a.path.join(".")}}function IS(a){return a.length>=3}function ny(a){return IS(a)?{type:"prefixed",prefix:a[0],path:a[1],args:a[2]}:{type:"unprefixed",prefix:void 0,path:a[0],args:a[1]}}function Ec(a,i,u){var s;const c=ny(a);let f=(s=c.args)===null||s===void 0?void 0:s.input;if(u){var h,d;f=(0,Ri.default)((0,Ri.default)((0,Ri.default)({},(h=(d=c.args)===null||d===void 0?void 0:d.input)!==null&&h!==void 0?h:{}),u.pageParam!==void 0?{cursor:u.pageParam}:{}),{},{direction:u.direction})}return[c.path.join("."),f,i?.trpc]}async function tb(a,i,u){const c=i.getQueryCache().build(i,{queryKey:u});c.setState({data:[],status:"success"});const f=[];var h=!1,d=!1,m;try{for(var y=(0,kS.default)(a),b;h=!(b=await y.next()).done;h=!1){const g=b.value;f.push(g),c.setState({data:[...f]})}}catch(g){d=!0,m=g}finally{try{h&&y.return!=null&&await y.return()}finally{if(d)throw m}}return f}function vn(a){const i=hg(()=>{const{input:u,type:s}=a,c=a.path.flatMap(f=>f.split("."));if(!u&&s==="any")return c.length?[c]:[];if(s==="infinite"&&Wn(u)&&("direction"in u||"cursor"in u)){const{cursor:f,direction:h}=u,d=(0,$S.default)(u,WS);return[c,{input:d,type:"infinite"}]}return[c,(0,Ri.default)((0,Ri.default)({},typeof u<"u"&&u!==gn&&{input:u}),s&&s!=="any"&&{type:s})]});return a.prefix&&i.unshift([a.prefix]),i}function ay(a){const i=[a.path.flatMap(u=>u.split("."))];return a.prefix&&i.unshift([a.prefix]),i}function Tc(a){return og(a)?a():a}var pl=ta(El());function eb(a){var i;const{input:u,query:s,path:c,queryKey:f,opts:h}=a,d=u===gn,m=async y=>{var b;const g=(0,pl.default)((0,pl.default)({},h),{},{trpc:(0,pl.default)((0,pl.default)({},h?.trpc),!(h==null||(b=h.trpc)===null||b===void 0)&&b.abortOnUnmount?{signal:y.signal}:{signal:null})});return await s(...Ec(f,g,{direction:y.direction,pageParam:y.pageParam}))};return Object.assign((0,pl.default)((0,pl.default)({},h??{}),{},{queryKey:f,queryFn:d?gn:m,initialPageParam:(i=h?.initialCursor)!==null&&i!==void 0?i:u?.cursor}),{trpc:Mr({path:c})})}var em=ta(El());function nb(a){var i;const{mutate:u,path:s,opts:c,overrides:f}=a,h=Tc(a.queryClient),d=ay({path:s,prefix:c?.keyPrefix}),m=h.defaultMutationOptions(h.getMutationDefaults(d)),y=(i=f?.onSuccess)!==null&&i!==void 0?i:g=>g.originalFn(),b=async g=>await u(...Ec([...d,{input:g}],c));return(0,em.default)((0,em.default)({},c),{},{mutationKey:d,mutationFn:b,onSuccess(...g){var S,O;return y({originalFn:()=>{var A,B,U;return(A=c==null||(B=c.onSuccess)===null||B===void 0?void 0:B.call(c,...g))!==null&&A!==void 0?A:m==null||(U=m.onSuccess)===null||U===void 0?void 0:U.call(m,...g)},queryClient:h,meta:(S=(O=c?.meta)!==null&&O!==void 0?O:m?.meta)!==null&&S!==void 0?S:{}})},trpc:Mr({path:s})})}var ml=ta(El());function ab(a){const{input:i,query:u,path:s,queryKey:c,opts:f}=a,h=Tc(a.queryClient),d=i===gn,m=async y=>{var b;const g=(0,ml.default)((0,ml.default)({},f),{},{trpc:(0,ml.default)((0,ml.default)({},f?.trpc),!(f==null||(b=f.trpc)===null||b===void 0)&&b.abortOnUnmount?{signal:y.signal}:{signal:null})}),S=y.queryKey,O=await u(...Ec(S,g));return dg(O)?tb(O,h,S):O};return Object.assign((0,ml.default)((0,ml.default)({},f),{},{queryKey:c,queryFn:d?gn:m}),{trpc:Mr({path:s})})}var nm=ta(El(),1);const lb=a=>{var i;const{subscribe:u,path:s,queryKey:c,opts:f={}}=a,h=(i=ny(c))===null||i===void 0||(i=i.args)===null||i===void 0?void 0:i.input,d="enabled"in f?!!f.enabled:h!==gn,m=y=>u(s.join("."),h??void 0,y);return(0,nm.default)((0,nm.default)({},f),{},{enabled:d,subscribe:m,queryKey:c,trpc:Mr({path:s})})};var yl=ta(El(),1);function ib(a){const i=a.keyPrefix,u=s=>(c,f,h)=>"router"in a?Promise.resolve(Tc(a.ctx)).then(m=>Ag({router:a.router,path:c,getRawInput:async()=>f,ctx:m,type:s,signal:void 0})):(a.client instanceof Xm?a.client:iS(a.client))[s](c,f,h);return Bm(({args:s,path:c})=>{const f=[...c],h=f.pop(),[d,m]=s;return{"~types":void 0,pathKey:()=>vn({path:f,type:"any",prefix:i}),pathFilter:()=>(0,yl.default)((0,yl.default)({},d),{},{queryKey:vn({path:f,type:"any",prefix:i})}),queryOptions:()=>ab({input:d,opts:m,path:f,queryClient:a.queryClient,queryKey:vn({path:f,input:d,type:"query",prefix:i}),query:u("query")}),queryKey:()=>vn({path:f,input:d,type:"query",prefix:i}),queryFilter:()=>(0,yl.default)((0,yl.default)({},m),{},{queryKey:vn({path:f,input:d,type:"query",prefix:i})}),infiniteQueryOptions:()=>eb({input:d,opts:m,path:f,queryKey:vn({path:f,input:d,type:"infinite",prefix:i}),query:u("query")}),infiniteQueryKey:()=>vn({path:f,input:d,type:"infinite",prefix:i}),infiniteQueryFilter:()=>(0,yl.default)((0,yl.default)({},m),{},{queryKey:vn({path:f,input:d,type:"infinite",prefix:i})}),mutationOptions:()=>{var b;return nb({opts:d,path:f,queryClient:a.queryClient,mutate:u("mutation"),overrides:(b=a.overrides)===null||b===void 0?void 0:b.mutations})},mutationKey:()=>ay({path:f,prefix:i}),subscriptionOptions:()=>lb({opts:m,path:f,queryKey:vn({path:f,input:d,type:"any",prefix:i}),subscribe:u("subscription")})}[h]()})}const gc=new WeakMap,ub=new WeakMap,pr={current:[]};let ko=!1,Ai=0;const Ti=new Set,ir=new Map;function ly(a){for(const i of a){if(pr.current.includes(i))continue;pr.current.push(i),i.recompute();const u=ub.get(i);if(u)for(const s of u){const c=gc.get(s);c?.length&&ly(c)}}}function rb(a){const i={prevVal:a.prevState,currentVal:a.state};for(const u of a.listeners)u(i)}function sb(a){const i={prevVal:a.prevState,currentVal:a.state};for(const u of a.listeners)u(i)}function iy(a){if(Ai>0&&!ir.has(a)&&ir.set(a,a.prevState),Ti.add(a),!(Ai>0)&&!ko)try{for(ko=!0;Ti.size>0;){const i=Array.from(Ti);Ti.clear();for(const u of i){const s=ir.get(u)??u.prevState;u.prevState=s,rb(u)}for(const u of i){const s=gc.get(u);s&&(pr.current.push(u),ly(s))}for(const u of i){const s=gc.get(u);if(s)for(const c of s)sb(c)}}}finally{ko=!1,pr.current=[],ir.clear()}}function Ci(a){Ai++;try{a()}finally{if(Ai--,Ai===0){const i=Ti.values().next().value;i&&iy(i)}}}function ob(a){return typeof a=="function"}class cb{constructor(i,u){this.listeners=new Set,this.subscribe=s=>{var c,f;this.listeners.add(s);const h=(f=(c=this.options)==null?void 0:c.onSubscribe)==null?void 0:f.call(c,s,this);return()=>{this.listeners.delete(s),h?.()}},this.prevState=i,this.state=i,this.options=u}setState(i){var u,s,c;this.prevState=this.state,(u=this.options)!=null&&u.updateFn?this.state=this.options.updateFn(this.prevState)(i):ob(i)?this.state=i(this.prevState):this.state=i,(c=(s=this.options)==null?void 0:s.onUpdate)==null||c.call(s),iy(this)}}const kn="__TSR_index",am="popstate",lm="beforeunload";function fb(a){let i=a.getLocation();const u=new Set,s=h=>{i=a.getLocation(),u.forEach(d=>d({location:i,action:h}))},c=h=>{a.notifyOnIndexChange??!0?s(h):i=a.getLocation()},f=async({task:h,navigateOpts:d,...m})=>{if(d?.ignoreBlocker??!1){h();return}const b=a.getBlockers?.()??[],g=m.type==="PUSH"||m.type==="REPLACE";if(typeof document<"u"&&b.length&&g)for(const S of b){const O=mr(m.path,m.state);if(await S.blockerFn({currentLocation:i,nextLocation:O,action:m.type})){a.onBlocked?.();return}}h()};return{get location(){return i},get length(){return a.getLength()},subscribers:u,subscribe:h=>(u.add(h),()=>{u.delete(h)}),push:(h,d,m)=>{const y=i.state[kn];d=im(y+1,d),f({task:()=>{a.pushState(h,d),s({type:"PUSH"})},navigateOpts:m,type:"PUSH",path:h,state:d})},replace:(h,d,m)=>{const y=i.state[kn];d=im(y,d),f({task:()=>{a.replaceState(h,d),s({type:"REPLACE"})},navigateOpts:m,type:"REPLACE",path:h,state:d})},go:(h,d)=>{f({task:()=>{a.go(h),c({type:"GO",index:h})},navigateOpts:d,type:"GO"})},back:h=>{f({task:()=>{a.back(h?.ignoreBlocker??!1),c({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{a.forward(h?.ignoreBlocker??!1),c({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>i.state[kn]!==0,createHref:h=>a.createHref(h),block:h=>{if(!a.setBlockers)return()=>{};const d=a.getBlockers?.()??[];return a.setBlockers([...d,h]),()=>{const m=a.getBlockers?.()??[];a.setBlockers?.(m.filter(y=>y!==h))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:s}}function im(a,i){i||(i={});const u=Mc();return{...i,key:u,__TSR_key:u,[kn]:a}}function db(a){const i=typeof document<"u"?window:void 0,u=i.history.pushState,s=i.history.replaceState;let c=[];const f=()=>c,h=X=>c=X,d=(X=>X),m=(()=>mr(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const X=Mc();i.history.replaceState({[kn]:0,key:X,__TSR_key:X},"")}let y=m(),b,g=!1,S=!1,O=!1,z=!1;const A=()=>y;let B,U;const Q=()=>{B&&(H._ignoreSubscribers=!0,(B.isPush?i.history.pushState:i.history.replaceState)(B.state,"",B.href),H._ignoreSubscribers=!1,B=void 0,U=void 0,b=void 0)},G=(X,$,ot)=>{const rt=d($);U||(b=y),y=mr($,ot),B={href:rt,state:ot,isPush:B?.isPush||X==="push"},U||(U=Promise.resolve().then(()=>Q()))},K=X=>{y=m(),H.notify({type:X})},tt=async()=>{if(S){S=!1;return}const X=m(),$=X.state[kn]-y.state[kn],ot=$===1,rt=$===-1,xt=!ot&&!rt||g;g=!1;const qt=xt?"GO":rt?"BACK":"FORWARD",Bt=xt?{type:"GO",index:$}:{type:rt?"BACK":"FORWARD"};if(O)O=!1;else{const Lt=f();if(typeof document<"u"&&Lt.length){for(const w of Lt)if(await w.blockerFn({currentLocation:y,nextLocation:X,action:qt})){S=!0,i.history.go(1),H.notify(Bt);return}}}y=m(),H.notify(Bt)},Y=X=>{if(z){z=!1;return}let $=!1;const ot=f();if(typeof document<"u"&&ot.length)for(const rt of ot){const xt=rt.enableBeforeUnload??!0;if(xt===!0){$=!0;break}if(typeof xt=="function"&&xt()===!0){$=!0;break}}if($)return X.preventDefault(),X.returnValue=""},H=fb({getLocation:A,getLength:()=>i.history.length,pushState:(X,$)=>G("push",X,$),replaceState:(X,$)=>G("replace",X,$),back:X=>(X&&(O=!0),z=!0,i.history.back()),forward:X=>{X&&(O=!0),z=!0,i.history.forward()},go:X=>{g=!0,i.history.go(X)},createHref:X=>d(X),flush:Q,destroy:()=>{i.history.pushState=u,i.history.replaceState=s,i.removeEventListener(lm,Y,{capture:!0}),i.removeEventListener(am,tt)},onBlocked:()=>{b&&y!==b&&(y=b)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return i.addEventListener(lm,Y,{capture:!0}),i.addEventListener(am,tt),i.history.pushState=function(...X){const $=u.apply(i.history,X);return H._ignoreSubscribers||K("PUSH"),$},i.history.replaceState=function(...X){const $=s.apply(i.history,X);return H._ignoreSubscribers||K("REPLACE"),$},H}function mr(a,i){const u=a.indexOf("#"),s=a.indexOf("?"),c=Mc();return{href:a,pathname:a.substring(0,u>0?s>0?Math.min(u,s):u:s>0?s:a.length),hash:u>-1?a.substring(u):"",search:s>-1?a.slice(s,u===-1?void 0:u):"",state:i||{[kn]:0,key:c,__TSR_key:c}}}function Mc(){return(Math.random()+1).toString(36).substring(7)}function yr(a){return a[a.length-1]}function hb(a){return typeof a=="function"}function Jn(a,i){return hb(a)?a(i):a}const pb=Object.prototype.hasOwnProperty;function Ue(a,i){if(a===i)return a;const u=i,s=sm(a)&&sm(u);if(!s&&!(vr(a)&&vr(u)))return u;const c=s?a:um(a);if(!c)return u;const f=s?u:um(u);if(!f)return u;const h=c.length,d=f.length,m=s?new Array(d):{};let y=0;for(let b=0;b<d;b++){const g=s?b:f[b],S=a[g],O=u[g];if(S===O){m[g]=S,(s?b<h:pb.call(a,g))&&y++;continue}if(S===null||O===null||typeof S!="object"||typeof O!="object"){m[g]=O;continue}const z=Ue(S,O);m[g]=z,z===S&&y++}return h===d&&y===h?a:m}function um(a){const i=[],u=Object.getOwnPropertyNames(a);for(const c of u){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;i.push(c)}const s=Object.getOwnPropertySymbols(a);for(const c of s){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;i.push(c)}return i}function vr(a){if(!rm(a))return!1;const i=a.constructor;if(typeof i>"u")return!0;const u=i.prototype;return!(!rm(u)||!u.hasOwnProperty("isPrototypeOf"))}function rm(a){return Object.prototype.toString.call(a)==="[object Object]"}function sm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function _a(a,i,u){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return!1;for(let s=0,c=a.length;s<c;s++)if(!_a(a[s],i[s],u))return!1;return!0}if(vr(a)&&vr(i)){const s=u?.ignoreUndefined??!0;if(u?.partial){for(const h in i)if((!s||i[h]!==void 0)&&!_a(a[h],i[h],u))return!1;return!0}let c=0;if(!s)c=Object.keys(a).length;else for(const h in a)a[h]!==void 0&&c++;let f=0;for(const h in i)if((!s||i[h]!==void 0)&&(f++,f>c||!_a(a[h],i[h],u)))return!1;return c===f}return!1}function _l(a){let i,u;const s=new Promise((c,f)=>{i=c,u=f});return s.status="pending",s.resolve=c=>{s.status="resolved",s.value=c,i(c),a?.(c)},s.reject=c=>{s.status="rejected",u(c)},s}function mb(a){return typeof a?.message!="string"?!1:a.message.startsWith("Failed to fetch dynamically imported module")||a.message.startsWith("error loading dynamically imported module")||a.message.startsWith("Importing a module script failed")}function $n(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function om(a){try{return decodeURI(a)}catch{return a.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}}function cm(a,i){if(!a)return a;const u=/%25|%5C/gi;let s=0,c="",f;for(;(f=u.exec(a))!==null;)c+=om(a.slice(s,f.index))+f[0],s=u.lastIndex;return c+om(s?a.slice(s):a)}var yb="Invariant failed";function Sn(a,i){if(!a)throw new Error(yb)}function gr(a){const i=new Map;let u,s;const c=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,s&&(s.next=f,f.prev=s)):(f.next.prev=void 0,u=f.next,f.next=void 0,s&&(f.prev=s,s.next=f)),s=f)};return{get(f){const h=i.get(f);if(h)return c(h),h.value},set(f,h){if(i.size>=a&&u){const m=u;i.delete(m.key),m.next&&(u=m.next,m.next.prev=void 0),m===s&&(s=void 0)}const d=i.get(f);if(d)d.value=h,c(d);else{const m={key:f,value:h,prev:s};s&&(s.next=m),s=m,u||(u=m),i.set(f,m)}},clear(){i.clear(),u=void 0,s=void 0}}}const Ol=0,Ea=1,Ta=2,wi=3,gl=4,vb=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,gb=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Sb=/^([^{]*)\{\$\}([^}]*)$/;function Rc(a,i,u=new Uint16Array(6)){const s=a.indexOf("/",i),c=s===-1?a.length:s,f=a.substring(i,c);if(!f||!f.includes("$"))return u[0]=Ol,u[1]=i,u[2]=i,u[3]=c,u[4]=c,u[5]=c,u;if(f==="$"){const y=a.length;return u[0]=Ta,u[1]=i,u[2]=i,u[3]=y,u[4]=y,u[5]=y,u}if(f.charCodeAt(0)===36)return u[0]=Ea,u[1]=i,u[2]=i+1,u[3]=c,u[4]=c,u[5]=c,u;const h=f.match(Sb);if(h){const b=h[1].length;return u[0]=Ta,u[1]=i+b,u[2]=i+b+1,u[3]=i+b+2,u[4]=i+b+3,u[5]=a.length,u}const d=f.match(gb);if(d){const y=d[1],b=d[2],g=d[3],S=y.length;return u[0]=wi,u[1]=i+S,u[2]=i+S+3,u[3]=i+S+3+b.length,u[4]=c-g.length,u[5]=c,u}const m=f.match(vb);if(m){const y=m[1],b=m[2],g=m[3],S=y.length;return u[0]=Ea,u[1]=i+S,u[2]=i+S+2,u[3]=i+S+2+b.length,u[4]=c-g.length,u[5]=c,u}return u[0]=Ol,u[1]=i,u[2]=i,u[3]=c,u[4]=c,u[5]=c,u}function Rr(a,i,u,s,c,f,h){h?.(u);let d=s;{const m=u.fullPath??u.from,y=m.length,b=u.options?.caseSensitive??a;for(;d<y;){const S=Rc(m,d,i);let O;const z=d,A=S[5];switch(d=A+1,f++,S[0]){case Ol:{const U=m.substring(S[2],S[3]);if(b){const Q=c.static?.get(U);if(Q)O=Q;else{c.static??=new Map;const G=Sl(u.fullPath??u.from);G.parent=c,G.depth=f,O=G,c.static.set(U,G)}}else{const Q=U.toLowerCase(),G=c.staticInsensitive?.get(Q);if(G)O=G;else{c.staticInsensitive??=new Map;const K=Sl(u.fullPath??u.from);K.parent=c,K.depth=f,O=K,c.staticInsensitive.set(Q,K)}}break}case Ea:{const U=m.substring(z,S[1]),Q=m.substring(S[4],A),G=b&&!!(U||Q),K=U?G?U:U.toLowerCase():void 0,tt=Q?G?Q:Q.toLowerCase():void 0,Y=c.dynamic?.find(H=>H.caseSensitive===G&&H.prefix===K&&H.suffix===tt);if(Y)O=Y;else{const H=Wo(Ea,u.fullPath??u.from,G,K,tt);O=H,H.depth=f,H.parent=c,c.dynamic??=[],c.dynamic.push(H)}break}case wi:{const U=m.substring(z,S[1]),Q=m.substring(S[4],A),G=b&&!!(U||Q),K=U?G?U:U.toLowerCase():void 0,tt=Q?G?Q:Q.toLowerCase():void 0,Y=c.optional?.find(H=>H.caseSensitive===G&&H.prefix===K&&H.suffix===tt);if(Y)O=Y;else{const H=Wo(wi,u.fullPath??u.from,G,K,tt);O=H,H.parent=c,H.depth=f,c.optional??=[],c.optional.push(H)}break}case Ta:{const U=m.substring(z,S[1]),Q=m.substring(S[4],A),G=b&&!!(U||Q),K=U?G?U:U.toLowerCase():void 0,tt=Q?G?Q:Q.toLowerCase():void 0,Y=Wo(Ta,u.fullPath??u.from,G,K,tt);O=Y,Y.parent=c,Y.depth=f,c.wildcard??=[],c.wildcard.push(Y)}}c=O}const g=(u.path||!u.children)&&!u.isRoot;if(g&&m.endsWith("/")){const S=Sl(u.fullPath??u.from);S.kind=gl,S.parent=c,f++,S.depth=f,c.index=S,c=S}g&&!c.route&&(c.route=u,c.fullPath=u.fullPath??u.from)}if(u.children)for(const m of u.children)Rr(a,i,m,d,c,f,h)}function $o(a,i){if(a.prefix&&i.prefix&&a.prefix!==i.prefix){if(a.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(a.prefix))return 1}if(a.suffix&&i.suffix&&a.suffix!==i.suffix){if(a.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(a.suffix))return 1}return a.prefix&&!i.prefix?-1:!a.prefix&&i.prefix?1:a.suffix&&!i.suffix?-1:!a.suffix&&i.suffix?1:a.caseSensitive&&!i.caseSensitive?-1:!a.caseSensitive&&i.caseSensitive?1:0}function ba(a){if(a.static)for(const i of a.static.values())ba(i);if(a.staticInsensitive)for(const i of a.staticInsensitive.values())ba(i);if(a.dynamic?.length){a.dynamic.sort($o);for(const i of a.dynamic)ba(i)}if(a.optional?.length){a.optional.sort($o);for(const i of a.optional)ba(i)}if(a.wildcard?.length){a.wildcard.sort($o);for(const i of a.wildcard)ba(i)}}function Sl(a){return{kind:Ol,depth:0,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null}}function Wo(a,i,u,s,c){return{kind:a,depth:0,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,caseSensitive:u,prefix:s,suffix:c}}function bb(a,i){const u=Sl("/"),s=new Uint16Array(6);for(const c of a)Rr(!1,s,c,1,u,0);ba(u),i.masksTree=u,i.flatCache=gr(1e3)}function _b(a,i){a||="/";const u=i.flatCache.get(a);if(u)return u;const s=Ac(a,i.masksTree);return i.flatCache.set(a,s),s}function Ob(a,i,u,s,c){a||="/",s||="/";const f=i?`case\0${a}`:a;let h=c.singleCache.get(f);if(!h){h=Sl("/");const d=new Uint16Array(6);Rr(i,d,{from:a},1,h,0),c.singleCache.set(f,h)}return Ac(s,h,u)}function xb(a,i,u=!1){const s=u?a:`nofuzz\0${a}`,c=i.matchCache.get(s);if(c!==void 0)return c;a||="/";const f=Ac(a,i.segmentTree,u);return f&&(f.branch=Rb(f.route)),i.matchCache.set(s,f),f}function Eb(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function Tb(a,i=!1,u){const s=Sl(a.fullPath),c=new Uint16Array(6),f={},h={};let d=0;return Rr(i,c,a,1,s,0,y=>{if(u?.(y,d),Sn(!(y.id in f),`Duplicate routes found with id: ${String(y.id)}`),f[y.id]=y,d!==0&&y.path){const b=Eb(y.fullPath);(!h[b]||y.fullPath.endsWith("/"))&&(h[b]=y)}d++}),ba(s),{processedTree:{segmentTree:s,singleCache:gr(1e3),matchCache:gr(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function Ac(a,i,u=!1){const s=a.split("/"),c=Cb(a,s,i,u);if(!c)return null;const f=Mb(a,s,c);return"**"in c&&(f["**"]=c["**"]),{route:c.node.route,params:f}}function Mb(a,i,u){const s=Ab(u.node);let c=null;const f={};for(let h=0,d=0,m=0;d<s.length;h++,d++,m++){const y=s[d],b=i[h],g=m;if(b&&(m+=b.length),y.kind===Ea){c??=u.node.fullPath.split("/");const S=c[d],O=y.prefix?.length??0;if(S.charCodeAt(O)===123){const A=y.suffix?.length??0,B=S.substring(O+2,S.length-A-1),U=b.substring(O,b.length-A);f[B]=decodeURIComponent(U)}else{const A=S.substring(1);f[A]=decodeURIComponent(b)}}else if(y.kind===wi){if(u.skipped&1<<d){h--;continue}c??=u.node.fullPath.split("/");const S=c[d],O=y.prefix?.length??0,z=y.suffix?.length??0,A=S.substring(O+3,S.length-z-1),B=y.suffix||y.prefix?b.substring(O,b.length-z):b;B&&(f[A]=decodeURIComponent(B))}else if(y.kind===Ta){const S=y,O=a.substring(g+(S.prefix?.length??0),a.length-(S.suffix?.length??0)),z=decodeURIComponent(O);f["*"]=z,f._splat=z;break}}return f}function Rb(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function Ab(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function Cb(a,i,u,s){if(a==="/"&&u.index)return{node:u.index,skipped:0};const c=!yr(i),f=c&&a!=="/",h=i.length-(c?1:0),d=[{node:u,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let m=null,y=null,b=null;for(;d.length;){const g=d.pop();let{node:S,index:O,skipped:z,depth:A,statics:B,dynamics:U,optionals:Q}=g;s&&S.route&&S.kind!==gl&&bi(y,g)&&(y=g);const G=O===h;if(G&&(S.route&&!f&&bi(b,g)&&(b=g),!S.optional&&!S.wildcard&&!S.index))continue;const K=G?void 0:i[O];let tt;if(G&&S.index){const Y={node:S.index,index:O,skipped:z,depth:A+1,statics:B,dynamics:U,optionals:Q};if(B===h&&!U&&!Q&&!z)return Y;bi(b,Y)&&(b=Y)}if(S.wildcard&&bi(m,g))for(const Y of S.wildcard){const{prefix:H,suffix:X}=Y;if(!(H&&(G||!(Y.caseSensitive?K:tt??=K.toLowerCase()).startsWith(H)))){if(X){if(G)continue;const $=i.slice(O).join("/").slice(-X.length);if((Y.caseSensitive?$:$.toLowerCase())!==X)continue}m={node:Y,index:h,skipped:z,depth:A,statics:B,dynamics:U,optionals:Q};break}}if(S.optional){const Y=z|1<<A,H=A+1;for(let X=S.optional.length-1;X>=0;X--){const $=S.optional[X];d.push({node:$,index:O,skipped:Y,depth:H,statics:B,dynamics:U,optionals:Q})}if(!G)for(let X=S.optional.length-1;X>=0;X--){const $=S.optional[X],{prefix:ot,suffix:rt}=$;if(ot||rt){const xt=$.caseSensitive?K:tt??=K.toLowerCase();if(ot&&!xt.startsWith(ot)||rt&&!xt.endsWith(rt))continue}d.push({node:$,index:O+1,skipped:z,depth:H,statics:B,dynamics:U,optionals:Q+1})}}if(!G&&S.dynamic&&K)for(let Y=S.dynamic.length-1;Y>=0;Y--){const H=S.dynamic[Y],{prefix:X,suffix:$}=H;if(X||$){const ot=H.caseSensitive?K:tt??=K.toLowerCase();if(X&&!ot.startsWith(X)||$&&!ot.endsWith($))continue}d.push({node:H,index:O+1,skipped:z,depth:A+1,statics:B,dynamics:U+1,optionals:Q})}if(!G&&S.staticInsensitive){const Y=S.staticInsensitive.get(tt??=K.toLowerCase());Y&&d.push({node:Y,index:O+1,skipped:z,depth:A+1,statics:B+1,dynamics:U,optionals:Q})}if(!G&&S.static){const Y=S.static.get(K);Y&&d.push({node:Y,index:O+1,skipped:z,depth:A+1,statics:B+1,dynamics:U,optionals:Q})}}if(b&&m)return bi(m,b)?b:m;if(b)return b;if(m)return m;if(s&&y){let g=y.index;for(let O=0;O<y.index;O++)g+=i[O].length;const S=g===a.length?"/":a.slice(g);return{node:y.node,skipped:y.skipped,"**":decodeURIComponent(S)}}return null}function bi(a,i){return a?i.statics>a.statics||i.statics===a.statics&&(i.dynamics>a.dynamics||i.dynamics===a.dynamics&&(i.optionals>a.optionals||i.optionals===a.optionals&&((i.node.kind===gl)>(a.node.kind===gl)||i.node.kind===gl==(a.node.kind===gl)&&i.depth>a.depth))):!0}function cr(a){return Cc(a.filter(i=>i!==void 0).join("/"))}function Cc(a){return a.replace(/\/{2,}/g,"/")}function uy(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function Oa(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/{1,}$/,""):a}function ry(a){return Oa(uy(a))}function Sr(a,i){return a?.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function zb(a,i,u){return Sr(a,u)===Sr(i,u)}function jb({base:a,to:i,trailingSlash:u="never",cache:s}){const c=i.startsWith("/"),f=!c&&i===".";let h;if(s){h=c?i:f?a:a+"\0"+i;const g=s.get(h);if(g)return g}let d;if(f)d=a.split("/");else if(c)d=i.split("/");else{for(d=a.split("/");d.length>1&&yr(d)==="";)d.pop();const g=i.split("/");for(let S=0,O=g.length;S<O;S++){const z=g[S];z===""?S?S===O-1&&d.push(z):d=[z]:z===".."?d.pop():z==="."||d.push(z)}}d.length>1&&(yr(d)===""?u==="never"&&d.pop():u==="always"&&d.push(""));let m,y="";for(let g=0;g<d.length;g++){g>0&&(y+="/");const S=d[g];if(!S)continue;m=Rc(S,0,m);const O=m[0];if(O===Ol){y+=S;continue}const z=m[5],A=S.substring(0,m[1]),B=S.substring(m[4],z),U=S.substring(m[2],m[3]);O===Ea?y+=A||B?`${A}{$${U}}${B}`:`$${U}`:O===Ta?y+=A||B?`${A}{$}${B}`:"$":y+=`${A}{-$${U}}${B}`}y=Cc(y);const b=y||"/";return h&&s&&s.set(h,b),b}function Io(a,i,u){const s=i[a];return typeof s!="string"?s:a==="_splat"?encodeURI(s):wb(s,u)}function tc({path:a,params:i,decodeCharMap:u}){let s=!1;const c={};if(!a||a==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:s};if(!a.includes("$"))return{interpolatedPath:a,usedParams:c,isMissingParams:s};const f=a.length;let h=0,d,m="";for(;h<f;){const b=h;d=Rc(a,b,d);const g=d[5];if(h=g+1,b===g)continue;const S=d[0];if(S===Ol){m+="/"+a.substring(b,g);continue}if(S===Ta){const O=i._splat;c._splat=O,c["*"]=O;const z=a.substring(b,d[1]),A=a.substring(d[4],g);if(!O){s=!0,(z||A)&&(m+="/"+z+A);continue}const B=Io("_splat",i,u);m+="/"+z+B+A;continue}if(S===Ea){const O=a.substring(d[2],d[3]);!s&&!(O in i)&&(s=!0),c[O]=i[O];const z=a.substring(b,d[1]),A=a.substring(d[4],g),B=Io(O,i,u)??"undefined";m+="/"+z+B+A;continue}if(S===wi){const O=a.substring(d[2],d[3]),z=i[O];if(z==null)continue;c[O]=z;const A=a.substring(b,d[1]),B=a.substring(d[4],g),U=Io(O,i,u)??"";m+="/"+A+U+B;continue}}return a.endsWith("/")&&(m+="/"),{usedParams:c,interpolatedPath:m||"/",isMissingParams:s}}function wb(a,i){let u=encodeURIComponent(a);if(i)for(const[s,c]of i)u=u.replaceAll(s,c);return u}function xe(a){return!!a?.isNotFound}function Db(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const br="tsr-scroll-restoration-v1_3",Lb=(a,i)=>{let u;return(...s)=>{u||(u=setTimeout(()=>{a(...s),u=null},i))}};function Ub(){const a=Db();if(!a)return null;const i=a.getItem(br);let u=i?JSON.parse(i):{};return{state:u,set:s=>(u=Jn(s,u)||u,a.setItem(br,JSON.stringify(u)))}}const ur=Ub(),Sc=a=>a.state.__TSR_key||a.href;function Nb(a){const i=[];let u;for(;u=a.parentNode;)i.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(u.children,a)+1})`),a=u;return`${i.reverse().join(" > ")}`.toLowerCase()}let _r=!1;function sy({storageKey:a,key:i,behavior:u,shouldScrollRestoration:s,scrollToTopSelectors:c,location:f}){let h;try{h=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(y){console.error(y);return}const d=i||window.history.state?.__TSR_key,m=h[d];_r=!0;t:{if(s&&m&&Object.keys(m).length>0){for(const g in m){const S=m[g];if(g==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:u});else if(g){const O=document.querySelector(g);O&&(O.scrollLeft=S.scrollX,O.scrollTop=S.scrollY)}}break t}const y=(f??window.location).hash.split("#",2)[1];if(y){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const S=document.getElementById(y);S&&S.scrollIntoView(g)}break t}const b={top:0,left:0,behavior:u};if(window.scrollTo(b),c)for(const g of c){if(g==="window")continue;const S=typeof g=="function"?g():document.querySelector(g);S&&S.scrollTo(b)}}_r=!1}function qb(a,i){if(!ur&&!a.isServer||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isServer||a.isScrollRestorationSetup||!ur))return;a.isScrollRestorationSetup=!0,_r=!1;const s=a.options.getScrollRestorationKey||Sc;window.history.scrollRestoration="manual";const c=f=>{if(_r||!a.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=Nb(f.target)}const d=s(a.state.location);ur.set(m=>{const y=m[d]||={},b=y[h]||={};if(h==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(h){const g=document.querySelector(h);g&&(b.scrollX=g.scrollLeft||0,b.scrollY=g.scrollTop||0)}return m})};typeof document<"u"&&document.addEventListener("scroll",Lb(c,100),!0),a.subscribe("onRendered",f=>{const h=s(f.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(sy({storageKey:br,key:h,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&ur.set(d=>(d[h]||={},d)))})}function Bb(a){if(typeof document<"u"&&document.querySelector){const i=a.state.location.state.__hashScrollIntoViewOptions??!0;if(i&&a.state.location.hash!==""){const u=document.getElementById(a.state.location.hash);u&&u.scrollIntoView(i)}}}function Hb(a,i=String){const u=new URLSearchParams;for(const s in a){const c=a[s];c!==void 0&&u.set(s,i(c))}return u.toString()}function ec(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function Qb(a){const i=new URLSearchParams(a),u={};for(const[s,c]of i.entries()){const f=u[s];f==null?u[s]=ec(c):Array.isArray(f)?f.push(ec(c)):u[s]=[f,ec(c)]}return u}const Yb=Kb(JSON.parse),Gb=Xb(JSON.stringify,JSON.parse);function Kb(a){return i=>{i[0]==="?"&&(i=i.substring(1));const u=Qb(i);for(const s in u){const c=u[s];if(typeof c=="string")try{u[s]=a(c)}catch{}}return u}}function Xb(a,i){const u=typeof i=="function";function s(c){if(typeof c=="object"&&c!==null)try{return a(c)}catch{}else if(u&&typeof c=="string")try{return i(c),a(c)}catch{}return c}return c=>{const f=Hb(c,s);return f?`?${f}`:""}}const Oe="__root__";function Pb(a){if(a.statusCode=a.statusCode||a.code||307,!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const i=new Headers(a.headers);a.href&&i.get("Location")===null&&i.set("Location",a.href);const u=new Response(null,{status:a.statusCode,headers:i});if(u.options=a,a.throw)throw u;return u}function Ne(a){return a instanceof Response&&!!a.options}const fr=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},Ar=(a,i)=>!!(a.preload&&!a.router.state.matches.some(u=>u.id===i)),zc=(a,i,u=!0)=>{const s={...a.router.options.context??{}},c=u?i:i-1;for(let f=0;f<=c;f++){const h=a.matches[f];if(!h)continue;const d=a.router.getMatch(h.id);d&&Object.assign(s,d.__routeContext,d.__beforeLoadContext)}return s},oy=(a,i)=>{const u=a.router.routesById[i.routeId??""]??a.router.routeTree;!u.options.notFoundComponent&&a.router.options?.defaultNotFoundComponent&&(u.options.notFoundComponent=a.router.options.defaultNotFoundComponent),Sn(u.options.notFoundComponent);const s=a.matches.find(c=>c.routeId===u.id);Sn(s,"Could not find match for route: "+u.id),a.updateMatch(s.id,c=>({...c,status:"notFound",error:i,isFetching:!1})),i.routerCode==="BEFORE_LOAD"&&u.parentRoute&&(i.routeId=u.parentRoute.id,oy(a,i))},Fn=(a,i,u)=>{if(!(!Ne(u)&&!xe(u))){if(Ne(u)&&u.redirectHandled&&!u.options.reloadDocument)throw u;if(i){i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0;const s=Ne(u)?"redirected":"notFound";i._nonReactive.error=u,a.updateMatch(i.id,c=>({...c,status:s,isFetching:!1,error:u})),xe(u)&&!u.routeId&&(u.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()}throw Ne(u)?(a.rendered=!0,u.options._fromLocation=a.location,u.redirectHandled=!0,u=a.router.resolveRedirect(u),u):(oy(a,u),u)}},cy=(a,i)=>{const u=a.router.getMatch(i);return!!(!a.router.isServer&&u._nonReactive.dehydrated||a.router.isServer&&u.ssr===!1)},_i=(a,i,u,s)=>{const{id:c,routeId:f}=a.matches[i],h=a.router.looseRoutesById[f];if(u instanceof Promise)throw u;u.routerCode=s,a.firstBadMatchIndex??=i,Fn(a,a.router.getMatch(c),u);try{h.options.onError?.(u)}catch(d){u=d,Fn(a,a.router.getMatch(c),u)}a.updateMatch(c,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:u,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},Vb=(a,i,u,s)=>{const c=a.router.getMatch(i),f=a.matches[u-1]?.id,h=f?a.router.getMatch(f):void 0;if(a.router.isShell()){c.ssr=s.id===Oe;return}if(h?.ssr===!1){c.ssr=!1;return}const d=O=>O===!0&&h?.ssr==="data-only"?"data-only":O,m=a.router.options.defaultSsr??!0;if(s.options.ssr===void 0){c.ssr=d(m);return}if(typeof s.options.ssr!="function"){c.ssr=d(s.options.ssr);return}const{search:y,params:b}=c,g={search:rr(y,c.searchError),params:rr(b,c.paramsError),location:a.location,matches:a.matches.map(O=>({index:O.index,pathname:O.pathname,fullPath:O.fullPath,staticData:O.staticData,id:O.id,routeId:O.routeId,search:rr(O.search,O.searchError),params:rr(O.params,O.paramsError),ssr:O.ssr}))},S=s.options.ssr(g);if($n(S))return S.then(O=>{c.ssr=d(O??m)});c.ssr=d(S??m)},fy=(a,i,u,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const c=u.options.pendingMs??a.router.options.defaultPendingMs;if(!!(a.onReady&&!a.router.isServer&&!Ar(a,i)&&(u.options.loader||u.options.beforeLoad||py(u))&&typeof c=="number"&&c!==1/0&&(u.options.pendingComponent??a.router.options?.defaultPendingComponent))){const h=setTimeout(()=>{fr(a)},c);s._nonReactive.pendingTimeout=h}},Zb=(a,i,u)=>{const s=a.router.getMatch(i);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;fy(a,i,u,s);const c=()=>{const f=a.router.getMatch(i);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Fn(a,f,f.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(c):c()},Jb=(a,i,u,s)=>{const c=a.router.getMatch(i),f=c._nonReactive.loadPromise;c._nonReactive.loadPromise=_l(()=>{f?.resolve()});const{paramsError:h,searchError:d}=c;h&&_i(a,u,h,"PARSE_PARAMS"),d&&_i(a,u,d,"VALIDATE_SEARCH"),fy(a,i,s,c);const m=new AbortController,y=a.matches[u-1]?.id;(y?a.router.getMatch(y):void 0)?.context??a.router.options.context;let g=!1;const S=()=>{g||(g=!0,a.updateMatch(i,Y=>({...Y,isFetching:"beforeLoad",fetchCount:Y.fetchCount+1,abortController:m})))},O=()=>{c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,Y=>({...Y,isFetching:!1}))};if(!s.options.beforeLoad){Ci(()=>{S(),O()});return}c._nonReactive.beforeLoadPromise=_l();const z={...zc(a,u,!1),...c.__routeContext},{search:A,params:B,cause:U}=c,Q=Ar(a,i),G={search:A,abortController:m,params:B,preload:Q,context:z,location:a.location,navigate:Y=>a.router.navigate({...Y,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:Q?"preload":U,matches:a.matches,...a.router.options.additionalContext},K=Y=>{if(Y===void 0){Ci(()=>{S(),O()});return}(Ne(Y)||xe(Y))&&(S(),_i(a,u,Y,"BEFORE_LOAD")),Ci(()=>{S(),a.updateMatch(i,H=>({...H,__beforeLoadContext:Y})),O()})};let tt;try{if(tt=s.options.beforeLoad(G),$n(tt))return S(),tt.catch(Y=>{_i(a,u,Y,"BEFORE_LOAD")}).then(K)}catch(Y){S(),_i(a,u,Y,"BEFORE_LOAD")}K(tt)},Fb=(a,i)=>{const{id:u,routeId:s}=a.matches[i],c=a.router.looseRoutesById[s],f=()=>{if(a.router.isServer){const m=Vb(a,u,i,c);if($n(m))return m.then(d)}return d()},h=()=>Jb(a,u,i,c),d=()=>{if(cy(a,u))return;const m=Zb(a,u,c);return $n(m)?m.then(h):h()};return f()},kb=(a,i,u)=>{const s=a.router.getMatch(i);if(!s||!u.options.head&&!u.options.scripts&&!u.options.headers)return;const c={matches:a.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([u.options.head?.(c),u.options.scripts?.(c),u.options.headers?.(c)]).then(([f,h,d])=>{const m=f?.meta,y=f?.links,b=f?.scripts,g=f?.styles;return{meta:m,links:y,headScripts:b,headers:d,scripts:h,styles:g}})},dy=(a,i,u,s)=>{const c=a.matchPromises[u-1],{params:f,loaderDeps:h,abortController:d,cause:m}=a.router.getMatch(i),y=zc(a,u),b=Ar(a,i);return{params:f,deps:h,preload:!!b,parentMatchPromise:c,abortController:d,context:y,location:a.location,navigate:g=>a.router.navigate({...g,_fromLocation:a.location}),cause:b?"preload":m,route:s,...a.router.options.additionalContext}},fm=async(a,i,u,s)=>{try{const c=a.router.getMatch(i);try{(!a.router.isServer||c.ssr===!0)&&hy(s);const f=s.options.loader?.(dy(a,i,u,s)),h=s.options.loader&&$n(f);if((h||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||c._nonReactive.minPendingPromise)&&a.updateMatch(i,y=>({...y,isFetching:"loader"})),s.options.loader){const y=h?await f:f;Fn(a,a.router.getMatch(i),y),y!==void 0&&a.updateMatch(i,b=>({...b,loaderData:y}))}s._lazyPromise&&await s._lazyPromise;const m=c._nonReactive.minPendingPromise;m&&await m,s._componentsPromise&&await s._componentsPromise,a.updateMatch(i,y=>({...y,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(f){let h=f;const d=c._nonReactive.minPendingPromise;d&&await d,xe(f)&&await s.options.notFoundComponent?.preload?.(),Fn(a,a.router.getMatch(i),f);try{s.options.onError?.(f)}catch(m){h=m,Fn(a,a.router.getMatch(i),m)}a.updateMatch(i,m=>({...m,error:h,status:"error",isFetching:!1}))}}catch(c){const f=a.router.getMatch(i);f&&(f._nonReactive.loaderPromise=void 0),Fn(a,f,c)}},$b=async(a,i)=>{const{id:u,routeId:s}=a.matches[i];let c=!1,f=!1;const h=a.router.looseRoutesById[s],d=()=>{a.updateMatch(u,b=>({...b,context:zc(a,i)}))};if(cy(a,u)){if(a.router.isServer)return a.router.getMatch(u)}else{const b=a.router.getMatch(u);if(b._nonReactive.loaderPromise){if(b.status==="success"&&!a.sync&&!b.preload)return b;await b._nonReactive.loaderPromise;const g=a.router.getMatch(u),S=g._nonReactive.error||g.error;S&&Fn(a,g,S)}else{const g=Date.now()-b.updatedAt,S=Ar(a,u),O=S?h.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:h.options.staleTime??a.router.options.defaultStaleTime??0,z=h.options.shouldReload,A=typeof z=="function"?z(dy(a,u,i,h)):z,B=!!S&&!a.router.state.matches.some(K=>K.id===u),U=a.router.getMatch(u);U._nonReactive.loaderPromise=_l(),B!==U.preload&&a.updateMatch(u,K=>({...K,preload:B}));const{status:Q,invalid:G}=U;c=Q==="success"&&(G||(A??g>O)),S&&h.options.preload===!1||(c&&!a.sync?(f=!0,(async()=>{try{await fm(a,u,i,h),d();const K=a.router.getMatch(u);K._nonReactive.loaderPromise?.resolve(),K._nonReactive.loadPromise?.resolve(),K._nonReactive.loaderPromise=void 0}catch(K){Ne(K)&&await a.router.navigate(K.options)}})()):(Q!=="success"||c&&a.sync)&&await fm(a,u,i,h))}}const m=a.router.getMatch(u);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 y=f?m.isFetching:!1;return y!==m.isFetching||m.invalid!==!1?(a.updateMatch(u,b=>({...b,isFetching:y,invalid:!1})),a.router.getMatch(u)):m};async function dm(a){const i=Object.assign(a,{matchPromises:[]});!i.router.isServer&&i.router.state.matches.some(u=>u._forcePending)&&fr(i);try{for(let d=0;d<i.matches.length;d++){const m=Fb(i,d);$n(m)&&await m}const u=i.firstBadMatchIndex??i.matches.length;for(let d=0;d<u;d++)i.matchPromises.push($b(i,d));const c=(await Promise.allSettled(i.matchPromises)).filter(d=>d.status==="rejected").map(d=>d.reason);let f;for(const d of c){if(Ne(d))throw d;!f&&xe(d)&&(f=d)}for(const d of i.matches){const{id:m,routeId:y}=d,b=i.router.looseRoutesById[y];try{const g=kb(i,m,b);if(g){const S=await g;i.updateMatch(m,O=>({...O,...S}))}}catch(g){console.error(`Error executing head for route ${y}:`,g)}}if(f)throw f;const h=fr(i);$n(h)&&await h}catch(u){if(xe(u)&&!i.preload){const s=fr(i);throw $n(s)&&await s,u}if(Ne(u))throw u}return i.matches}async function hy(a){if(!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(i=>{const{id:u,...s}=i.options;Object.assign(a.options,s),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0),!a._componentsLoaded&&a._componentsPromise===void 0){const i=()=>{const u=[];for(const s of my){const c=a.options[s]?.preload;c&&u.push(c())}if(u.length)return Promise.all(u).then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0});a._componentsLoaded=!0,a._componentsPromise=void 0};a._componentsPromise=a._lazyPromise?a._lazyPromise.then(i):i()}return a._componentsPromise}function rr(a,i){return i?{status:"error",error:i}:{status:"success",value:a}}function py(a){for(const i of my)if(a.options[i]?.preload)return!0;return!1}const my=["component","errorComponent","pendingComponent","notFoundComponent"];function Wb(a){return{input:({url:i})=>{for(const u of a)i=yy(u,i);return i},output:({url:i})=>{for(let u=a.length-1;u>=0;u--)i=vy(a[u],i);return i}}}function Ib(a){const i=ry(a.basepath),u=`/${i}`,s=`${u}/`,c=a.caseSensitive?u:u.toLowerCase(),f=a.caseSensitive?s:s.toLowerCase();return{input:({url:h})=>{const d=a.caseSensitive?h.pathname:h.pathname.toLowerCase();return d===c?h.pathname="/":d.startsWith(f)&&(h.pathname=h.pathname.slice(u.length)),h},output:({url:h})=>(h.pathname=cr(["/",i,h.pathname]),h)}}function yy(a,i){const u=a?.input?.({url:i});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return i}function vy(a,i){const u=a?.output?.({url:i});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return i}function xa(a){const i=a.resolvedLocation,u=a.location,s=i?.pathname!==u.pathname,c=i?.href!==u.href,f=i?.hash!==u.hash;return{fromLocation:i,toLocation:u,pathChanged:s,hrefChanged:c,hashChanged:f}}class t1{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=u=>u(),this.update=u=>{u.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 s=this.options,c=this.basepath??s?.basepath??"/",f=this.basepath===void 0,h=s?.rewrite;this.options={...s,...u},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=db())),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 cb(n1(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(S=>!["redirected"].includes(S.status))}}}),qb(this));let d=!1;const m=this.options.basepath??"/",y=this.options.rewrite;if(f||c!==m||h!==y){this.basepath=m;const S=[];ry(m)!==""&&S.push(Ib({basepath:m})),y&&S.push(y),this.rewrite=S.length===0?void 0:S.length===1?S[0]:Wb(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:u,routesByPath:s,processedTree:c}=Tb(this.routeTree,this.options.caseSensitive,(h,d)=>{h.init({originalIndex:d})});this.options.routeMasks&&bb(this.options.routeMasks,c),this.routesById=u,this.routesByPath=s,this.processedTree=c;const f=this.options.notFoundRoute;f&&(f.init({originalIndex:99999999999}),this.routesById[f.id]=f)},this.subscribe=(u,s)=>{const c={eventType:u,fn:s};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=u=>{this.subscribers.forEach(s=>{s.eventType===u.type&&s.fn(u)})},this.parseLocation=(u,s)=>{const c=({href:m,state:y})=>{const b=new URL(m,this.origin),g=yy(this.rewrite,b),S=this.options.parseSearch(g.search),O=this.options.stringifySearch(S);return g.search=O,{href:g.href.replace(g.origin,""),publicHref:m,url:g,pathname:cm(g.pathname),searchStr:O,search:Ue(s?.search,S),hash:g.hash.split("#").reverse()[0]??"",state:Ue(s?.state,y)}},f=c(u),{__tempLocation:h,__tempKey:d}=f.state;if(h&&(!d||d===this.tempLocationKey)){const m=c(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=gr(1e3),this.resolvePathWithBase=(u,s)=>jb({base:u,to:Cc(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(u,s,c)=>typeof u=="string"?this.matchRoutesInternal({pathname:u,search:s},c):this.matchRoutesInternal(u,s),this.getMatchedRoutes=u=>a1({pathname:u,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=u=>{const s=this.getMatch(u);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const u=this.state.matches.filter(f=>f.status==="pending"),s=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...u,...s]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=u=>{const s=(f={})=>{const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutes(h,{_buildLocation:!0}),m=yr(d);f.from;const y=f.unsafeRelative==="path"?h.pathname:f.from??m.fullPath,b=this.resolvePathWithBase(y,"."),g=m.search,S={...m.params},O=f.to?this.resolvePathWithBase(b,`${f.to}`):this.resolvePathWithBase(b,"."),z=f.params===!1||f.params===null?{}:(f.params??!0)===!0?S:Object.assign(S,Jn(f.params,S)),A=tc({path:O,params:z}).interpolatedPath,B=this.matchRoutes(A,void 0,{_buildLocation:!0}).map(ot=>this.looseRoutesById[ot.routeId]);if(Object.keys(z).length>0)for(const ot of B){const rt=ot.options.params?.stringify??ot.options.stringifyParams;rt&&Object.assign(z,rt(z))}const U=u.leaveParams?O:cm(tc({path:O,params:z,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let Q=g;if(u._includeValidateSearch&&this.options.search?.strict){const ot={};B.forEach(rt=>{if(rt.options.validateSearch)try{Object.assign(ot,bc(rt.options.validateSearch,{...ot,...Q}))}catch{}}),Q=ot}Q=l1({search:Q,dest:f,destRoutes:B,_includeValidateSearch:u._includeValidateSearch}),Q=Ue(g,Q);const G=this.options.stringifySearch(Q),K=f.hash===!0?h.hash:f.hash?Jn(f.hash,h.hash):void 0,tt=K?`#${K}`:"";let Y=f.state===!0?h.state:f.state?Jn(f.state,h.state):{};Y=Ue(h.state,Y);const H=`${U}${G}${tt}`,X=new URL(H,this.origin),$=vy(this.rewrite,X);return{publicHref:$.pathname+$.search+$.hash,href:H,url:$,pathname:U,search:Q,searchStr:G,state:Y,hash:K??"",unmaskOnReload:f.unmaskOnReload}},c=(f={},h)=>{const d=s(f);let m=h?s(h):void 0;if(!m){const y={};if(this.options.routeMasks){const b=_b(d.pathname,this.processedTree);if(b){Object.assign(y,b.params);const{from:g,params:S,...O}=b.route,z=S===!1||S===null?{}:(S??!0)===!0?y:Object.assign(y,Jn(S,y));h={from:u.from,...O,params:z},m=s(h)}}}return m&&(d.maskedLocation=m),d};return u.mask?c(u,{from:u.from,...u.mask}):c(u)},this.commitLocation=({viewTransition:u,ignoreBlocker:s,...c})=>{const f=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(b=>{c.state[b]=this.latestLocation.state[b]});const y=_a(c.state,this.latestLocation.state);return m.forEach(b=>{delete c.state[b]}),y},h=Oa(this.latestLocation.href)===Oa(c.href),d=this.commitLocationPromise;if(this.commitLocationPromise=_l(()=>{d?.resolve()}),h&&f())this.load();else{let{maskedLocation:m,hashScrollIntoView:y,url:b,...g}=c;m&&(g={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=u,this.history[c.replace?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:s})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:u,resetScroll:s,hashScrollIntoView:c,viewTransition:f,ignoreBlocker:h,href:d,...m}={})=>{if(d){const g=this.history.location.state.__TSR_index,S=mr(d,{__TSR_index:u?g:g+1});m.to=S.pathname,m.search=this.options.parseSearch(S.search),m.hash=S.hash.slice(1)}const y=this.buildLocation({...m,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const b=this.commitLocation({...y,viewTransition:f,replace:u,resetScroll:s,hashScrollIntoView:c,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:u,reloadDocument:s,href:c,publicHref:f,...h})=>{let d=!1;if(c)try{new URL(`${c}`),d=!0}catch{}if(d&&!s&&(s=!0),s){if(!c||!f&&!d){const y=this.buildLocation({to:u,...h});c=c??y.url.href,f=f??y.url.href}const m=!d&&f?f:c;if(!h.ignoreBlocker){const b=this.history.getBlockers?.()??[];for(const g of b)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(m):window.location.href=m,Promise.resolve()}return this.buildAndCommitLocation({...h,href:c,to:u,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const s=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==s.publicHref||s.url.origin!==this.origin){const c=this.getParsedLocationHref(s);throw Pb({href:c})}}const u=this.matchRoutes(this.latestLocation);this.__store.setState(s=>({...s,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:u,cachedMatches:s.cachedMatches.filter(c=>!u.some(f=>f.id===c.id))}))},this.load=async u=>{let s,c,f;for(f=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const m=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...xa({resolvedLocation:y,location:m})}),this.emit({type:"onBeforeLoad",...xa({resolvedLocation:y,location:m})}),await dm({router:this,sync:u?.sync,matches:this.state.pendingMatches,location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],g=[],S=[];Ci(()=>{this.__store.setState(O=>{const z=O.matches,A=O.pendingMatches||O.matches;return b=z.filter(B=>!A.some(U=>U.id===B.id)),g=A.filter(B=>!z.some(U=>U.id===B.id)),S=A.filter(B=>z.some(U=>U.id===B.id)),{...O,isLoading:!1,loadedAt:Date.now(),matches:A,pendingMatches:void 0,cachedMatches:[...O.cachedMatches,...b.filter(B=>B.status!=="error"&&B.status!=="notFound")]}}),this.clearExpiredCache()}),[[b,"onLeave"],[g,"onEnter"],[S,"onStay"]].forEach(([O,z])=>{O.forEach(A=>{this.looseRoutesById[A.routeId].options[z]?.(A)})})})})}})}catch(m){Ne(m)?(s=m,this.isServer||this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):xe(m)&&(c=m),this.__store.setState(y=>({...y,statusCode:s?s.status:c?404:y.matches.some(b=>b.status==="error")?500:200,redirect:s}))}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=u=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.state.resolvedLocation,d=typeof s.types=="function"?s.types(xa({resolvedLocation:h,location:f})):s.types;if(d===!1){u();return}c={update:u,types:d}}else c=u;document.startViewTransition(c)}else u()},this.updateMatch=(u,s)=>{this.startTransition(()=>{const c=this.state.pendingMatches?.some(f=>f.id===u)?"pendingMatches":this.state.matches.some(f=>f.id===u)?"matches":this.state.cachedMatches.some(f=>f.id===u)?"cachedMatches":"";c&&this.__store.setState(f=>({...f,[c]:f[c]?.map(h=>h.id===u?s(h):h)}))})},this.getMatch=u=>{const s=c=>c.id===u;return this.state.cachedMatches.find(s)??this.state.pendingMatches?.find(s)??this.state.matches.find(s)},this.invalidate=u=>{const s=c=>u?.filter?.(c)??!0?{...c,invalid:!0,...u?.forcePending||c.status==="error"||c.status==="notFound"?{status:"pending",error:void 0}:void 0}:c;return this.__store.setState(c=>({...c,matches:c.matches.map(s),cachedMatches:c.cachedMatches.map(s),pendingMatches:c.pendingMatches?.map(s)})),this.shouldViewTransition=!1,this.load({sync:u?.sync})},this.getParsedLocationHref=u=>{let s=u.url.href;return this.origin&&u.url.origin===this.origin&&(s=s.replace(this.origin,"")||"/"),s},this.resolveRedirect=u=>{if(!u.options.href){const s=this.buildLocation(u.options),c=this.getParsedLocationHref(s);u.options.href=s.href,u.headers.set("Location",c)}return u.headers.get("Location")||u.headers.set("Location",u.options.href),u},this.clearCache=u=>{const s=u?.filter;s!==void 0?this.__store.setState(c=>({...c,cachedMatches:c.cachedMatches.filter(f=>!s(f))})):this.__store.setState(c=>({...c,cachedMatches:[]}))},this.clearExpiredCache=()=>{const u=s=>{const c=this.looseRoutesById[s.routeId];if(!c.options.loader)return!0;const f=(s.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:Date.now()-s.updatedAt>=f};this.clearCache({filter:u})},this.loadRouteChunk=hy,this.preloadRoute=async u=>{const s=this.buildLocation(u);let c=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:u});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)]);Ci(()=>{c.forEach(d=>{h.has(d.id)||this.__store.setState(m=>({...m,cachedMatches:[...m.cachedMatches,d]}))})});try{return c=await dm({router:this,matches:c,location:s,preload:!0,updateMatch:(d,m)=>{f.has(d)?c=c.map(y=>y.id===d?m(y):y):this.updateMatch(d,m)}}),c}catch(d){if(Ne(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:s});xe(d)||console.error(d);return}},this.matchRoute=(u,s)=>{const c={...u,to:u.to?this.resolvePathWithBase(u.from||"",u.to):void 0,params:u.params||{},leaveParams:!0},f=this.buildLocation(c);if(s?.pending&&this.state.status!=="pending")return!1;const d=(s?.pending===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,m=Ob(f.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,d.pathname,this.processedTree);return!m||u.params&&!_a(m.params,u.params,{partial:!0})?!1:s?.includeSearch??!0?_a(d.search,f.search,{partial:!0})?m.params:!1:m.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(u=>u.status==="notFound"||u.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...i,caseSensitive:i.caseSensitive??!1,notFoundMode:i.notFoundMode??"fuzzy",stringifySearch:i.stringifySearch??Gb,parseSearch:i.parseSearch??Yb}),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,u){const s=this.getMatchedRoutes(i.pathname),{foundRoute:c,routeParams:f}=s;let{matchedRoutes:h}=s,d=!1;(c?c.path!=="/"&&f["**"]:Oa(i.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:d=!0);const m=(()=>{if(d){if(this.options.notFoundMode!=="root")for(let g=h.length-1;g>=0;g--){const S=h[g];if(S.children)return S.id}return Oe}})(),y=[],b=g=>g?.id?g.context??this.options.context??void 0:this.options.context??void 0;return h.forEach((g,S)=>{const O=y[S-1],[z,A,B]=(()=>{const qt=O?.search??i.search,Bt=O?._strictSearch??void 0;try{const Lt=bc(g.options.validateSearch,{...qt})??void 0;return[{...qt,...Lt},{...Bt,...Lt},void 0]}catch(Lt){let w=Lt;if(Lt instanceof Or||(w=new Or(Lt.message,{cause:Lt})),u?.throwOnError)throw w;return[qt,{},w]}})(),U=g.options.loaderDeps?.({search:z})??"",Q=U?JSON.stringify(U):"",{interpolatedPath:G,usedParams:K}=tc({path:g.fullPath,params:f,decodeCharMap:this.pathParamsDecodeCharMap}),tt=g.id+G+Q,Y=this.getMatch(tt),H=this.state.matches.find(qt=>qt.routeId===g.id),X=Y?._strictParams??K;let $;if(!Y){const qt=g.options.params?.parse??g.options.parseParams;if(qt)try{Object.assign(X,qt(X))}catch(Bt){if(xe(Bt)||Ne(Bt)?$=Bt:$=new e1(Bt.message,{cause:Bt}),u?.throwOnError)throw $}}Object.assign(f,X);const ot=H?"stay":"enter";let rt;if(Y)rt={...Y,cause:ot,params:H?Ue(H.params,f):f,_strictParams:X,search:Ue(H?H.search:Y.search,z),_strictSearch:A};else{const qt=g.options.loader||g.options.beforeLoad||g.lazyFn||py(g)?"pending":"success";rt={id:tt,ssr:this.isServer?void 0:g.options.ssr,index:S,routeId:g.id,params:H?Ue(H.params,f):f,_strictParams:X,pathname:G,updatedAt:Date.now(),search:H?Ue(H.search,z):z,_strictSearch:A,searchError:void 0,status:qt,isFetching:!1,error:void 0,paramsError:$,__routeContext:void 0,_nonReactive:{loadPromise:_l()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ot,loaderDeps:H?Ue(H.loaderDeps,U):U,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}u?.preload||(rt.globalNotFound=m===g.id),rt.searchError=B;const xt=b(O);rt.context={...xt,...rt.__routeContext,...rt.__beforeLoadContext},y.push(rt)}),y.forEach((g,S)=>{const O=this.looseRoutesById[g.routeId];if(!this.getMatch(g.id)&&u?._buildLocation!==!0){const A=y[S-1],B=b(A);if(O.options.context){const U={deps:g.loaderDeps,params:g.params,context:B??{},location:i,navigate:Q=>this.navigate({...Q,_fromLocation:i}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:y};g.__routeContext=O.options.context(U)??void 0}g.context={...B,...g.__routeContext,...g.__beforeLoadContext}}}),y}}class Or extends Error{}class e1 extends Error{}function n1(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function bc(a,i){if(a==null)return{};if("~standard"in a){const u=a["~standard"].validate(i);if(u instanceof Promise)throw new Or("Async validation not supported");if(u.issues)throw new Or(JSON.stringify(u.issues,void 0,2),{cause:u});return u.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function a1({pathname:a,routesById:i,processedTree:u}){const s={},c=Oa(a);let f;const h=xb(c,u,!0);return h&&(f=h.route,Object.assign(s,h.params)),{matchedRoutes:h?.branch||[i[Oe]],routeParams:s,foundRoute:f}}function l1({search:a,dest:i,destRoutes:u,_includeValidateSearch:s}){const c=u.reduce((d,m)=>{const y=[];if("search"in m.options)m.options.search?.middlewares&&y.push(...m.options.search.middlewares);else if(m.options.preSearchFilters||m.options.postSearchFilters){const b=({search:g,next:S})=>{let O=g;"preSearchFilters"in m.options&&m.options.preSearchFilters&&(O=m.options.preSearchFilters.reduce((A,B)=>B(A),g));const z=S(O);return"postSearchFilters"in m.options&&m.options.postSearchFilters?m.options.postSearchFilters.reduce((A,B)=>B(A),z):z};y.push(b)}if(s&&m.options.validateSearch){const b=({search:g,next:S})=>{const O=S(g);try{return{...O,...bc(m.options.validateSearch,O)??void 0}}catch{return O}};y.push(b)}return d.concat(y)},[])??[],f=({search:d})=>i.search?i.search===!0?d:Jn(i.search,d):{};c.push(f);const h=(d,m)=>{if(d>=c.length)return m;const y=c[d];return y({search:m,next:g=>h(d+1,g)})};return h(0,a)}const i1="Error preloading route! ☝️";class gy{constructor(i){if(this.init=u=>{this.originalIndex=u.originalIndex;const s=this.options,c=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=Oe:this.parentRoute||Sn(!1);let f=c?Oe:s?.path;f&&f!=="/"&&(f=uy(f));const h=s?.id||f;let d=c?Oe:cr([this.parentRoute.id===Oe?"":this.parentRoute.id,h]);f===Oe&&(f="/"),d!==Oe&&(d=cr(["/",d]));const m=d===Oe?"/":cr([this.parentRoute.fullPath,f]);this._path=f,this._id=d,this._fullPath=m,this._to=m},this.addChildren=u=>this._addFileChildren(u),this._addFileChildren=u=>(Array.isArray(u)&&(this.children=u),typeof u=="object"&&u!==null&&(this.children=Object.values(u)),this),this._addFileTypes=()=>this,this.updateLoader=u=>(Object.assign(this.options,u),this),this.update=u=>(Object.assign(this.options,u),this),this.lazy=u=>(this.lazyFn=u,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 u1 extends gy{constructor(i){super(i)}}function jc(a){const i=a.errorComponent??Cr;return k.jsx(r1,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:u,reset:s})=>u?nt.createElement(i,{error:u,reset:s}):a.children})}class r1 extends nt.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,u){u.error&&u.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(i,u){this.props.onCatch&&this.props.onCatch(i,u)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Cr({error:a}){const[i,u]=nt.useState(!1);return k.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[k.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),k.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>u(s=>!s),children:i?"Hide Error":"Show Error"})]}),k.jsx("div",{style:{height:".25rem"}}),i?k.jsx("div",{children:k.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?k.jsx("code",{children:a.message}):null})}):null]})}function s1({children:a,fallback:i=null}){return o1()?k.jsx(bl.Fragment,{children:a}):k.jsx(bl.Fragment,{children:i})}function o1(){return bl.useSyncExternalStore(c1,()=>!0,()=>!1)}function c1(){return()=>{}}var nc={exports:{}},ac={},lc={exports:{}},ic={};var hm;function f1(){if(hm)return ic;hm=1;var a=Di();function i(g,S){return g===S&&(g!==0||1/g===1/S)||g!==g&&S!==S}var u=typeof Object.is=="function"?Object.is:i,s=a.useState,c=a.useEffect,f=a.useLayoutEffect,h=a.useDebugValue;function d(g,S){var O=S(),z=s({inst:{value:O,getSnapshot:S}}),A=z[0].inst,B=z[1];return f(function(){A.value=O,A.getSnapshot=S,m(A)&&B({inst:A})},[g,O,S]),c(function(){return m(A)&&B({inst:A}),g(function(){m(A)&&B({inst:A})})},[g]),h(O),O}function m(g){var S=g.getSnapshot;g=g.value;try{var O=S();return!u(g,O)}catch{return!0}}function y(g,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:d;return ic.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,ic}var pm;function d1(){return pm||(pm=1,lc.exports=f1()),lc.exports}var mm;function h1(){if(mm)return ac;mm=1;var a=Di(),i=d1();function u(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var s=typeof Object.is=="function"?Object.is:u,c=i.useSyncExternalStore,f=a.useRef,h=a.useEffect,d=a.useMemo,m=a.useDebugValue;return ac.useSyncExternalStoreWithSelector=function(y,b,g,S,O){var z=f(null);if(z.current===null){var A={hasValue:!1,value:null};z.current=A}else A=z.current;z=d(function(){function U(Y){if(!Q){if(Q=!0,G=Y,Y=S(Y),O!==void 0&&A.hasValue){var H=A.value;if(O(H,Y))return K=H}return K=Y}if(H=K,s(G,Y))return H;var X=S(Y);return O!==void 0&&O(H,X)?(G=Y,H):(G=Y,K=X)}var Q=!1,G,K,tt=g===void 0?null:g;return[function(){return U(b())},tt===null?void 0:function(){return U(tt())}]},[b,g,S,O]);var B=c(y,z[0],z[1]);return h(function(){A.hasValue=!0,A.value=B},[B]),m(B),B},ac}var ym;function p1(){return ym||(ym=1,nc.exports=h1()),nc.exports}var m1=p1();function y1(a,i=s=>s,u={}){const s=u.equal??v1;return m1.useSyncExternalStoreWithSelector(a.subscribe,()=>a.state,()=>a.state,i,s)}function v1(a,i){if(Object.is(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;if(a instanceof Map&&i instanceof Map){if(a.size!==i.size)return!1;for(const[s,c]of a)if(!i.has(s)||!Object.is(c,i.get(s)))return!1;return!0}if(a instanceof Set&&i instanceof Set){if(a.size!==i.size)return!1;for(const s of a)if(!i.has(s))return!1;return!0}if(a instanceof Date&&i instanceof Date)return a.getTime()===i.getTime();const u=vm(a);if(u.length!==vm(i).length)return!1;for(let s=0;s<u.length;s++)if(!Object.prototype.hasOwnProperty.call(i,u[s])||!Object.is(a[u[s]],i[u[s]]))return!1;return!0}function vm(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}const uc=nt.createContext(null);function Sy(){return typeof document>"u"?uc:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=uc,uc)}function Ee(a){const i=nt.useContext(Sy());return a?.warn,i}function fe(a){const i=Ee({warn:a?.router===void 0}),u=a?.router||i,s=nt.useRef(void 0);return y1(u.__store,c=>{if(a?.select){if(a.structuralSharing??u.options.defaultStructuralSharing){const f=Ue(s.current,a.select(c));return s.current=f,f}return a.select(c)}return c})}const zr=nt.createContext(void 0),g1=nt.createContext(void 0);function Je(a){const i=nt.useContext(a.from?g1:zr);return fe({select:s=>{const c=s.matches.find(f=>a.from?a.from===f.routeId:f.id===i);if(Sn(!((a.shouldThrow??!0)&&!c),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),c!==void 0)return a.select?a.select(c):c},structuralSharing:a.structuralSharing})}function wc(a){return Je({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function Dc(a){const{select:i,...u}=a;return Je({...u,select:s=>i?i(s.loaderDeps):s.loaderDeps})}function Lc(a){return Je({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const u=a.strict===!1?i.params:i._strictParams;return a.select?a.select(u):u}})}function Uc(a){return Je({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.search):i.search})}const sr=typeof window<"u"?nt.useLayoutEffect:nt.useEffect;function rc(a){const i=nt.useRef({value:a,prev:null}),u=i.current.value;return a!==u&&(i.current={value:a,prev:u}),i.current.prev}function S1(a,i,u={},s={}){nt.useEffect(()=>{if(!a.current||s.disabled||typeof IntersectionObserver!="function")return;const c=new IntersectionObserver(([f])=>{i(f)},u);return c.observe(a.current),()=>{c.disconnect()}},[i,u,s.disabled,a])}function b1(a){const i=nt.useRef(null);return nt.useImperativeHandle(a,()=>i.current,[]),i}function Nc(a){const i=Ee();return nt.useCallback(u=>i.navigate({...u,from:u.from??a?.from}),[a?.from,i])}var sc={exports:{}},ee={};var gm;function _1(){if(gm)return ee;gm=1;var a=Di();function i(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(m,y,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:m,containerInfo:y,implementation:b}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ee.createPortal=function(m,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return f(m,y,null,b)},ee.flushSync=function(m){var y=h.T,b=s.p;try{if(h.T=null,s.p=2,m)return m()}finally{h.T=y,s.p=b,s.d.f()}},ee.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(m,y))},ee.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},ee.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var b=y.as,g=d(b,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,O=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?s.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:O}):b==="script"&&s.d.X(m,{crossOrigin:g,integrity:S,fetchPriority:O,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ee.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=d(y.as,y.crossOrigin);s.d.M(m,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(m)},ee.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,g=d(b,y.crossOrigin);s.d.L(m,b,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ee.preloadModule=function(m,y){if(typeof m=="string")if(y){var b=d(y.as,y.crossOrigin);s.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(m)},ee.requestFormReset=function(m){s.d.r(m)},ee.unstable_batchedUpdates=function(m,y){return m(y)},ee.useFormState=function(m,y,b){return h.H.useFormState(m,y,b)},ee.useFormStatus=function(){return h.H.useHostTransitionStatus()},ee.version="19.2.3",ee}var Sm;function by(){if(Sm)return sc.exports;Sm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),sc.exports=_1(),sc.exports}var O1=by();function x1(a,i){const u=Ee(),[s,c]=nt.useState(!1),f=nt.useRef(!1),h=b1(i),{activeProps:d,inactiveProps:m,activeOptions:y,to:b,preload:g,preloadDelay:S,hashScrollIntoView:O,replace:z,startTransition:A,resetScroll:B,viewTransition:U,children:Q,target:G,disabled:K,style:tt,className:Y,onClick:H,onFocus:X,onMouseEnter:$,onMouseLeave:ot,onTouchStart:rt,ignoreBlocker:xt,params:qt,search:Bt,hash:Lt,state:w,mask:P,reloadDocument:et,unsafeRelative:bt,from:Et,_fromLocation:E,...q}=a,V=fe({select:Mt=>Mt.location.search,structuralSharing:!0}),Z=a.from,at=nt.useMemo(()=>({...a,from:Z}),[u,V,Z,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),lt=nt.useMemo(()=>u.buildLocation({...at}),[u,at]),pt=nt.useMemo(()=>{if(K)return;let Mt=lt.maskedLocation?lt.maskedLocation.url.href:lt.url.href,gt=!1;return u.origin&&(Mt.startsWith(u.origin)?Mt=u.history.createHref(Mt.replace(u.origin,""))||"/":gt=!0),{href:Mt,external:gt}},[K,lt.maskedLocation,lt.url,u.origin,u.history]),Gt=nt.useMemo(()=>{if(pt?.external)return pt.href;try{return new URL(b),b}catch{}},[b,pt]),Tt=a.reloadDocument||Gt?!1:g??u.options.defaultPreload,ke=S??u.options.defaultPreloadDelay??0,bn=fe({select:Mt=>{if(Gt)return!1;if(y?.exact){if(!zb(Mt.location.pathname,lt.pathname,u.basepath))return!1}else{const gt=Sr(Mt.location.pathname,u.basepath),de=Sr(lt.pathname,u.basepath);if(!(gt.startsWith(de)&&(gt.length===de.length||gt[de.length]==="/")))return!1}return(y?.includeSearch??!0)&&!_a(Mt.location.search,lt.search,{partial:!y?.exact,ignoreUndefined:!y?.explicitUndefined})?!1:y?.includeHash?Mt.location.hash===lt.hash:!0}}),qe=nt.useCallback(()=>{u.preloadRoute({...at}).catch(Mt=>{console.warn(Mt),console.warn(i1)})},[u,at]),Ui=nt.useCallback(Mt=>{Mt?.isIntersecting&&qe()},[qe]);S1(h,Ui,A1,{disabled:!!K||Tt!=="viewport"}),nt.useEffect(()=>{f.current||!K&&Tt==="render"&&(qe(),f.current=!0)},[K,qe,Tt]);const $e=Mt=>{const gt=Mt.currentTarget.getAttribute("target"),de=G!==void 0?G:gt;if(!K&&!C1(Mt)&&!Mt.defaultPrevented&&(!de||de==="_self")&&Mt.button===0){Mt.preventDefault(),O1.flushSync(()=>{c(!0)});const Ml=u.subscribe("onResolved",()=>{Ml(),c(!1)});u.navigate({...at,replace:z,resetScroll:B,hashScrollIntoView:O,startTransition:A,viewTransition:U,ignoreBlocker:xt})}};if(Gt)return{...q,ref:h,href:Gt,...Q&&{children:Q},...G&&{target:G},...K&&{disabled:K},...tt&&{style:tt},...Y&&{className:Y},...H&&{onClick:H},...X&&{onFocus:X},...$&&{onMouseEnter:$},...ot&&{onMouseLeave:ot},...rt&&{onTouchStart:rt}};const Ra=Mt=>{K||Tt&&qe()},Tl=Ra,jr=Mt=>{if(!(K||!Tt))if(!ke)qe();else{const gt=Mt.target;if(Oi.has(gt))return;const de=setTimeout(()=>{Oi.delete(gt),qe()},ke);Oi.set(gt,de)}},Ni=Mt=>{if(K||!Tt||!ke)return;const gt=Mt.target,de=Oi.get(gt);de&&(clearTimeout(de),Oi.delete(gt))},_n=bn?Jn(d,{})??E1:oc,On=bn?oc:Jn(m,{})??oc,Aa=[Y,_n.className,On.className].filter(Boolean).join(" "),qi=(tt||_n.style||On.style)&&{...tt,..._n.style,...On.style};return{...q,..._n,...On,href:pt?.href,ref:h,onClick:xi([H,$e]),onFocus:xi([X,Ra]),onMouseEnter:xi([$,jr]),onMouseLeave:xi([ot,Ni]),onTouchStart:xi([rt,Tl]),disabled:!!K,target:G,...qi&&{style:qi},...Aa&&{className:Aa},...K&&T1,...bn&&M1,...s&&R1}}const oc={},E1={className:"active"},T1={role:"link","aria-disabled":!0},M1={"data-status":"active","aria-current":"page"},R1={"data-transitioning":"transitioning"},Oi=new WeakMap,A1={rootMargin:"100px"},xi=a=>i=>{for(const u of a)if(u){if(i.defaultPrevented)return;u(i)}},_y=nt.forwardRef((a,i)=>{const{_asChild:u,...s}=a,{type:c,ref:f,...h}=x1(s,i),d=typeof s.children=="function"?s.children({isActive:h["data-status"]==="active"}):s.children;return u===void 0&&delete h.disabled,nt.createElement(u||"a",{...h,ref:f},d)});function C1(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}let z1=class extends gy{constructor(i){super(i),this.useMatch=u=>Je({select:u?.select,from:this.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>Je({...u,from:this.id,select:s=>u?.select?u.select(s.context):s.context}),this.useSearch=u=>Uc({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useParams=u=>Lc({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useLoaderDeps=u=>Dc({...u,from:this.id}),this.useLoaderData=u=>wc({...u,from:this.id}),this.useNavigate=()=>Nc({from:this.fullPath}),this.Link=bl.forwardRef((u,s)=>k.jsx(_y,{ref:s,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}};function j1(a){return new z1(a)}class w1 extends u1{constructor(i){super(i),this.useMatch=u=>Je({select:u?.select,from:this.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>Je({...u,from:this.id,select:s=>u?.select?u.select(s.context):s.context}),this.useSearch=u=>Uc({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useParams=u=>Lc({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useLoaderDeps=u=>Dc({...u,from:this.id}),this.useLoaderData=u=>wc({...u,from:this.id}),this.useNavigate=()=>Nc({from:this.fullPath}),this.Link=bl.forwardRef((u,s)=>k.jsx(_y,{ref:s,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}}function D1(a){return new w1(a)}function _c(a){return typeof a=="object"?new bm(a,{silent:!0}).createRoute(a):new bm(a,{silent:!0}).createRoute}class bm{constructor(i,u){this.path=i,this.createRoute=s=>{this.silent;const c=j1(s);return c.isRoot=!1,c},this.silent=u?.silent}}class _m{constructor(i){this.useMatch=u=>Je({select:u?.select,from:this.options.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>Je({from:this.options.id,select:s=>u?.select?u.select(s.context):s.context}),this.useSearch=u=>Uc({select:u?.select,structuralSharing:u?.structuralSharing,from:this.options.id}),this.useParams=u=>Lc({select:u?.select,structuralSharing:u?.structuralSharing,from:this.options.id}),this.useLoaderDeps=u=>Dc({...u,from:this.options.id}),this.useLoaderData=u=>wc({...u,from:this.options.id}),this.useNavigate=()=>{const u=Ee();return Nc({from:u.routesById[this.options.id].fullPath})},this.options=i,this.$$typeof=Symbol.for("react.memo")}}function Om(a){return typeof a=="object"?new _m(a):i=>new _m({id:a,...i})}function L1(a,i){let u,s,c,f;const h=()=>(u||(u=a().then(m=>{u=void 0,s=m[i]}).catch(m=>{if(c=m,mb(c)&&c instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const y=`tanstack_router_reload:${c.message}`;sessionStorage.getItem(y)||(sessionStorage.setItem(y,"1"),f=!0)}})),u),d=function(y){if(f)throw window.location.reload(),new Promise(()=>{});if(c)throw c;if(!s)if(nt.use)nt.use(h());else throw h();return nt.createElement(s,y)};return d.preload=h,d}function U1(){const a=Ee(),i=nt.useRef({router:a,mounted:!1}),[u,s]=nt.useState(!1),{hasPendingMatches:c,isLoading:f}=fe({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),h=rc(f),d=f||u||c,m=rc(d),y=f||c,b=rc(y);return a.startTransition=g=>{s(!0),nt.startTransition(()=>{g(),s(!1)})},nt.useEffect(()=>{const g=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Oa(a.latestLocation.publicHref)!==Oa(S.publicHref)&&a.commitLocation({...S,replace:!0}),()=>{g()}},[a,a.history]),sr(()=>{if(typeof window<"u"&&a.ssr||i.current.router===a&&i.current.mounted)return;i.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),sr(()=>{h&&!f&&a.emit({type:"onLoad",...xa(a.state)})},[h,a,f]),sr(()=>{b&&!y&&a.emit({type:"onBeforeRouteMount",...xa(a.state)})},[y,b,a]),sr(()=>{if(m&&!d){const g=xa(a.state);a.emit({type:"onResolved",...g}),a.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),g.hrefChanged&&Bb(a)}},[d,m,a]),null}function N1(a){const i=fe({select:u=>`not-found-${u.location.pathname}-${u.status}`});return k.jsx(jc,{getResetKey:()=>i,onCatch:(u,s)=>{if(xe(u))a.onCatch?.(u,s);else throw u},errorComponent:({error:u})=>{if(xe(u))return a.fallback?.(u);throw u},children:a.children})}function q1(){return k.jsx("p",{children:"Not Found"})}function vl(a){return k.jsx(k.Fragment,{children:a.children})}function Oy(a,i,u){return i.options.notFoundComponent?k.jsx(i.options.notFoundComponent,{...u}):a.options.defaultNotFoundComponent?k.jsx(a.options.defaultNotFoundComponent,{...u}):k.jsx(q1,{})}function B1({children:a}){const i=Ee();return i.isServer?k.jsx("script",{nonce:i.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:a+";document.currentScript.remove()"}}):null}function H1(){const a=Ee();if(!a.isScrollRestoring||!a.isServer||typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return null;const u=(a.options.getScrollRestorationKey||Sc)(a.latestLocation),s=u!==Sc(a.latestLocation)?u:void 0,c={storageKey:br,shouldScrollRestoration:!0};return s&&(c.key=s),k.jsx(B1,{children:`(${sy.toString()})(${JSON.stringify(c)})`})}const xy=nt.memo(function({matchId:i}){const u=Ee(),s=fe({select:U=>{const Q=U.matches.find(G=>G.id===i);return Sn(Q),{routeId:Q.routeId,ssr:Q.ssr,_displayPending:Q._displayPending}},structuralSharing:!0}),c=u.routesById[s.routeId],f=c.options.pendingComponent??u.options.defaultPendingComponent,h=f?k.jsx(f,{}):null,d=c.options.errorComponent??u.options.defaultErrorComponent,m=c.options.onCatch??u.options.defaultOnCatch,y=c.isRoot?c.options.notFoundComponent??u.options.notFoundRoute?.options.component:c.options.notFoundComponent,b=s.ssr===!1||s.ssr==="data-only",g=(!c.isRoot||c.options.wrapInSuspense||b)&&(c.options.wrapInSuspense??f??(c.options.errorComponent?.preload||b))?nt.Suspense:vl,S=d?jc:vl,O=y?N1:vl,z=fe({select:U=>U.loadedAt}),A=fe({select:U=>{const Q=U.matches.findIndex(G=>G.id===i);return U.matches[Q-1]?.routeId}}),B=c.isRoot?c.options.shellComponent??vl:vl;return k.jsxs(B,{children:[k.jsx(zr.Provider,{value:i,children:k.jsx(g,{fallback:h,children:k.jsx(S,{getResetKey:()=>z,errorComponent:d||Cr,onCatch:(U,Q)=>{if(xe(U))throw U;m?.(U,Q)},children:k.jsx(O,{fallback:U=>{if(!y||U.routeId&&U.routeId!==s.routeId||!U.routeId&&!c.isRoot)throw U;return nt.createElement(y,U)},children:b||s._displayPending?k.jsx(s1,{fallback:h,children:k.jsx(xm,{matchId:i})}):k.jsx(xm,{matchId:i})})})})}),A===Oe&&u.options.scrollRestoration?k.jsxs(k.Fragment,{children:[k.jsx(Q1,{}),k.jsx(H1,{})]}):null]})});function Q1(){const a=Ee(),i=nt.useRef(void 0);return k.jsx("script",{suppressHydrationWarning:!0,ref:u=>{u&&(i.current===void 0||i.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...xa(a.state)}),i.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}const xm=nt.memo(function({matchId:i}){const u=Ee(),{match:s,key:c,routeId:f}=fe({select:m=>{const y=m.matches.find(z=>z.id===i),b=y.routeId,S=(u.routesById[b].options.remountDeps??u.options.defaultRemountDeps)?.({routeId:b,loaderDeps:y.loaderDeps,params:y._strictParams,search:y._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:b,match:{id:y.id,status:y.status,error:y.error,invalid:y.invalid,_forcePending:y._forcePending,_displayPending:y._displayPending}}},structuralSharing:!0}),h=u.routesById[f],d=nt.useMemo(()=>{const m=h.options.component??u.options.defaultComponent;return m?k.jsx(m,{},c):k.jsx(Ey,{})},[c,h.options.component,u.options.defaultComponent]);if(s._displayPending)throw u.getMatch(s.id)?._nonReactive.displayPendingPromise;if(s._forcePending)throw u.getMatch(s.id)?._nonReactive.minPendingPromise;if(s.status==="pending"){const m=h.options.pendingMinMs??u.options.defaultPendingMinMs;if(m){const y=u.getMatch(s.id);if(y&&!y._nonReactive.minPendingPromise&&!u.isServer){const b=_l();y._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),y._nonReactive.minPendingPromise=void 0},m)}}throw u.getMatch(s.id)?._nonReactive.loadPromise}if(s.status==="notFound")return Sn(xe(s.error)),Oy(u,h,s.error);if(s.status==="redirected")throw Sn(Ne(s.error)),u.getMatch(s.id)?._nonReactive.loadPromise;if(s.status==="error"){if(u.isServer){const m=(h.options.errorComponent??u.options.defaultErrorComponent)||Cr;return k.jsx(m,{error:s.error,reset:void 0,info:{componentStack:""}})}throw s.error}return d}),Ey=nt.memo(function(){const i=Ee(),u=nt.useContext(zr),s=fe({select:y=>y.matches.find(b=>b.id===u)?.routeId}),c=i.routesById[s],f=fe({select:y=>{const g=y.matches.find(S=>S.id===u);return Sn(g),g.globalNotFound}}),h=fe({select:y=>{const b=y.matches,g=b.findIndex(S=>S.id===u);return b[g+1]?.id}}),d=i.options.defaultPendingComponent?k.jsx(i.options.defaultPendingComponent,{}):null;if(f)return Oy(i,c,void 0);if(!h)return null;const m=k.jsx(xy,{matchId:h});return s===Oe?k.jsx(nt.Suspense,{fallback:d,children:m}):m});function Y1(){const a=Ee(),u=a.routesById[Oe].options.pendingComponent??a.options.defaultPendingComponent,s=u?k.jsx(u,{}):null,c=a.isServer||typeof document<"u"&&a.ssr?vl:nt.Suspense,f=k.jsxs(c,{fallback:s,children:[!a.isServer&&k.jsx(U1,{}),k.jsx(G1,{})]});return a.options.InnerWrap?k.jsx(a.options.InnerWrap,{children:f}):f}function G1(){const a=Ee(),i=fe({select:c=>c.matches[0]?.id}),u=fe({select:c=>c.loadedAt}),s=i?k.jsx(xy,{matchId:i}):null;return k.jsx(zr.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?s:k.jsx(jc,{getResetKey:()=>u,errorComponent:Cr,onCatch:c=>{c.message||c.toString()},children:s})})}const K1=a=>new X1(a);class X1 extends t1{constructor(i){super(i)}}typeof globalThis<"u"?(globalThis.createFileRoute=_c,globalThis.createLazyFileRoute=Om):typeof window<"u"&&(window.createFileRoute=_c,window.createLazyFileRoute=Om);function P1({router:a,children:i,...u}){Object.keys(u).length>0&&a.update({...a.options,...u,context:{...a.options.context,...u.context}});const s=Sy(),c=k.jsx(s.Provider,{value:a,children:i});return a.options.Wrap?k.jsx(a.options.Wrap,{children:c}):c}function V1({router:a,...i}){return k.jsx(P1,{router:a,...i,children:k.jsx(Y1,{})})}var cc={exports:{}},Ei={},fc={exports:{}},dc={};var Em;function Z1(){return Em||(Em=1,(function(a){function i(w,P){var et=w.length;w.push(P);t:for(;0<et;){var bt=et-1>>>1,Et=w[bt];if(0<c(Et,P))w[bt]=P,w[et]=Et,et=bt;else break t}}function u(w){return w.length===0?null:w[0]}function s(w){if(w.length===0)return null;var P=w[0],et=w.pop();if(et!==P){w[0]=et;t:for(var bt=0,Et=w.length,E=Et>>>1;bt<E;){var q=2*(bt+1)-1,V=w[q],Z=q+1,at=w[Z];if(0>c(V,et))Z<Et&&0>c(at,V)?(w[bt]=at,w[Z]=et,bt=Z):(w[bt]=V,w[q]=et,bt=q);else if(Z<Et&&0>c(at,et))w[bt]=at,w[Z]=et,bt=Z;else break t}}return P}function c(w,P){var et=w.sortIndex-P.sortIndex;return et!==0?et:w.id-P.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();a.unstable_now=function(){return h.now()-d}}var m=[],y=[],b=1,g=null,S=3,O=!1,z=!1,A=!1,B=!1,U=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function K(w){for(var P=u(y);P!==null;){if(P.callback===null)s(y);else if(P.startTime<=w)s(y),P.sortIndex=P.expirationTime,i(m,P);else break;P=u(y)}}function tt(w){if(A=!1,K(w),!z)if(u(m)!==null)z=!0,Y||(Y=!0,xt());else{var P=u(y);P!==null&&Lt(tt,P.startTime-w)}}var Y=!1,H=-1,X=5,$=-1;function ot(){return B?!0:!(a.unstable_now()-$<X)}function rt(){if(B=!1,Y){var w=a.unstable_now();$=w;var P=!0;try{t:{z=!1,A&&(A=!1,Q(H),H=-1),O=!0;var et=S;try{e:{for(K(w),g=u(m);g!==null&&!(g.expirationTime>w&&ot());){var bt=g.callback;if(typeof bt=="function"){g.callback=null,S=g.priorityLevel;var Et=bt(g.expirationTime<=w);if(w=a.unstable_now(),typeof Et=="function"){g.callback=Et,K(w),P=!0;break e}g===u(m)&&s(m),K(w)}else s(m);g=u(m)}if(g!==null)P=!0;else{var E=u(y);E!==null&&Lt(tt,E.startTime-w),P=!1}}break t}finally{g=null,S=et,O=!1}P=void 0}}finally{P?xt():Y=!1}}}var xt;if(typeof G=="function")xt=function(){G(rt)};else if(typeof MessageChannel<"u"){var qt=new MessageChannel,Bt=qt.port2;qt.port1.onmessage=rt,xt=function(){Bt.postMessage(null)}}else xt=function(){U(rt,0)};function Lt(w,P){H=U(function(){w(a.unstable_now())},P)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(w){w.callback=null},a.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<w?Math.floor(1e3/w):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(w){switch(S){case 1:case 2:case 3:var P=3;break;default:P=S}var et=S;S=P;try{return w()}finally{S=et}},a.unstable_requestPaint=function(){B=!0},a.unstable_runWithPriority=function(w,P){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var et=S;S=w;try{return P()}finally{S=et}},a.unstable_scheduleCallback=function(w,P,et){var bt=a.unstable_now();switch(typeof et=="object"&&et!==null?(et=et.delay,et=typeof et=="number"&&0<et?bt+et:bt):et=bt,w){case 1:var Et=-1;break;case 2:Et=250;break;case 5:Et=1073741823;break;case 4:Et=1e4;break;default:Et=5e3}return Et=et+Et,w={id:b++,callback:P,priorityLevel:w,startTime:et,expirationTime:Et,sortIndex:-1},et>bt?(w.sortIndex=et,i(y,w),u(m)===null&&w===u(y)&&(A?(Q(H),H=-1):A=!0,Lt(tt,et-bt))):(w.sortIndex=Et,i(m,w),z||O||(z=!0,Y||(Y=!0,xt()))),w},a.unstable_shouldYield=ot,a.unstable_wrapCallback=function(w){var P=S;return function(){var et=S;S=P;try{return w.apply(this,arguments)}finally{S=et}}}})(dc)),dc}var Tm;function J1(){return Tm||(Tm=1,fc.exports=Z1()),fc.exports}var Mm;function F1(){if(Mm)return Ei;Mm=1;var a=J1(),i=Di(),u=by();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n: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(s(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(s(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return m(r),t;if(o===l)return m(r),e;o=o.sibling}throw Error(s(188))}if(n.return!==l.return)n=r,l=o;else{for(var p=!1,v=r.child;v;){if(v===n){p=!0,n=r,l=o;break}if(v===l){p=!0,l=r,n=o;break}v=v.sibling}if(!p){for(v=o.child;v;){if(v===n){p=!0,n=o,l=r;break}if(v===l){p=!0,l=o,n=r;break}v=v.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),tt=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),rt=Symbol.iterator;function xt(t){return t===null||typeof t!="object"?null:(t=rt&&t[rt]||t["@@iterator"],typeof t=="function"?t:null)}var qt=Symbol.for("react.client.reference");function Bt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===qt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case A:return"Fragment";case U:return"Profiler";case B:return"StrictMode";case tt:return"Suspense";case Y:return"SuspenseList";case $:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case z:return"Portal";case G:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case K:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:Bt(t.type)||"Memo";case X:e=t._payload,t=t._init;try{return Bt(t(e))}catch{}}return null}var Lt=Array.isArray,w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et={pending:!1,data:null,method:null,action:null},bt=[],Et=-1;function E(t){return{current:t}}function q(t){0>Et||(t.current=bt[Et],bt[Et]=null,Et--)}function V(t,e){Et++,bt[Et]=t.current,t.current=e}var Z=E(null),at=E(null),lt=E(null),pt=E(null);function Gt(t,e){switch(V(lt,e),V(at,t),V(Z,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ip(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ip(e),t=up(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(Z),V(Z,t)}function Tt(){q(Z),q(at),q(lt)}function ke(t){t.memoizedState!==null&&V(pt,t);var e=Z.current,n=up(e,t.type);e!==n&&(V(at,t),V(Z,n))}function bn(t){at.current===t&&(q(Z),q(at)),pt.current===t&&(q(pt),mi._currentValue=et)}var qe,Ui;function $e(t){if(qe===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);qe=e&&e[1]||"",Ui=-1<n.stack.indexOf(`
|
|
6
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
7
|
-
`+qe+t+Ui}var Ra=!1;function Tl(t,e){if(!t||Ra)return"";Ra=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(j){var C=j}Reflect.construct(t,[],N)}else{try{N.call()}catch(j){C=j}t.call(N.prototype)}}else{try{throw Error()}catch(j){C=j}(N=t())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(j){if(j&&C&&typeof j.stack=="string")return[j.stack,C.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),p=o[0],v=o[1];if(p&&v){var _=p.split(`
|
|
8
|
-
`),R=v.split(`
|
|
9
|
-
`);for(r=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;if(l===_.length||r===R.length)for(l=_.length-1,r=R.length-1;1<=l&&0<=r&&_[l]!==R[r];)r--;for(;1<=l&&0<=r;l--,r--)if(_[l]!==R[r]){if(l!==1||r!==1)do if(l--,r--,0>r||_[l]!==R[r]){var D=`
|
|
10
|
-
`+_[l].replace(" at new "," at ");return t.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",t.displayName)),D}while(1<=l&&0<=r);break}}}finally{Ra=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?$e(n):""}function jr(t,e){switch(t.tag){case 26:case 27:case 5:return $e(t.type);case 16:return $e("Lazy");case 13:return t.child!==e&&e!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return Tl(t.type,!1);case 11:return Tl(t.type.render,!1);case 1:return Tl(t.type,!0);case 31:return $e("Activity");default:return""}}function Ni(t){try{var e="",n=null;do e+=jr(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
11
|
-
Error generating stack: `+l.message+`
|
|
12
|
-
`+l.stack}}var _n=Object.prototype.hasOwnProperty,On=a.unstable_scheduleCallback,Aa=a.unstable_cancelCallback,qi=a.unstable_shouldYield,Mt=a.unstable_requestPaint,gt=a.unstable_now,de=a.unstable_getCurrentPriorityLevel,Ml=a.unstable_ImmediatePriority,qc=a.unstable_UserBlockingPriority,Bi=a.unstable_NormalPriority,Ry=a.unstable_LowPriority,Bc=a.unstable_IdlePriority,Ay=a.log,Cy=a.unstable_setDisableYieldValue,Rl=null,he=null;function xn(t){if(typeof Ay=="function"&&Cy(t),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(Rl,t)}catch{}}var pe=Math.clz32?Math.clz32:wy,zy=Math.log,jy=Math.LN2;function wy(t){return t>>>=0,t===0?32:31-(zy(t)/jy|0)|0}var Hi=256,Qi=262144,Yi=4194304;function ea(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 Gi(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,o=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~o,l!==0?r=ea(l):(p&=v,p!==0?r=ea(p):n||(n=v&~t,n!==0&&(r=ea(n))))):(v=l&~o,v!==0?r=ea(v):p!==0?r=ea(p):n||(n=l&~t,n!==0&&(r=ea(n)))),r===0?0:e!==0&&e!==r&&(e&o)===0&&(o=r&-r,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:r}function Al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Dy(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 Hc(){var t=Yi;return Yi<<=1,(Yi&62914560)===0&&(Yi=4194304),t}function wr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Cl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ly(t,e,n,l,r,o){var p=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,_=t.expirationTimes,R=t.hiddenUpdates;for(n=p&~n;0<n;){var D=31-pe(n),N=1<<D;v[D]=0,_[D]=-1;var C=R[D];if(C!==null)for(R[D]=null,D=0;D<C.length;D++){var j=C[D];j!==null&&(j.lane&=-536870913)}n&=~N}l!==0&&Qc(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(p&~e))}function Qc(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-pe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Yc(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-pe(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Gc(t,e){var n=e&-e;return n=(n&42)!==0?1:Dr(n),(n&(t.suspendedLanes|e))!==0?0:n}function Dr(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 Lr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Kc(){var t=P.p;return t!==0?t:(t=window.event,t===void 0?32:Cp(t.type))}function Xc(t,e){var n=P.p;try{return P.p=t,e()}finally{P.p=n}}var En=Math.random().toString(36).slice(2),kt="__reactFiber$"+En,le="__reactProps$"+En,Ca="__reactContainer$"+En,Ur="__reactEvents$"+En,Uy="__reactListeners$"+En,Ny="__reactHandles$"+En,Pc="__reactResources$"+En,zl="__reactMarker$"+En;function Nr(t){delete t[kt],delete t[le],delete t[Ur],delete t[Uy],delete t[Ny]}function za(t){var e=t[kt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ca]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=hp(t);t!==null;){if(n=t[kt])return n;t=hp(t)}return e}t=n,n=t.parentNode}return null}function ja(t){if(t=t[kt]||t[Ca]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function jl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function wa(t){var e=t[Pc];return e||(e=t[Pc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Jt(t){t[zl]=!0}var Vc=new Set,Zc={};function na(t,e){Da(t,e),Da(t+"Capture",e)}function Da(t,e){for(Zc[t]=e,t=0;t<e.length;t++)Vc.add(e[t])}var qy=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]*$"),Jc={},Fc={};function By(t){return _n.call(Fc,t)?!0:_n.call(Jc,t)?!1:qy.test(t)?Fc[t]=!0:(Jc[t]=!0,!1)}function Ki(t,e,n){if(By(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Xi(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function We(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function kc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Hy(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,o=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(p){n=""+p,o.call(this,p)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function qr(t){if(!t._valueTracker){var e=kc(t)?"checked":"value";t._valueTracker=Hy(t,e,""+t[e])}}function $c(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=kc(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Pi(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 Qy=/[\n"\\]/g;function Me(t){return t.replace(Qy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Br(t,e,n,l,r,o,p,v){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?Hr(t,p,Te(e)):n!=null?Hr(t,p,Te(n)):l!=null&&t.removeAttribute("value"),r==null&&o!=null&&(t.defaultChecked=!!o),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Te(v):t.removeAttribute("name")}function Wc(t,e,n,l,r,o,p,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){qr(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=v?t.checked:!!l,t.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),qr(t)}function Hr(t,e,n){e==="number"&&Pi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function La(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Ic(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function tf(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(s(92));if(Lt(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),qr(t)}function Ua(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yy=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 ef(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Yy.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function nf(t,e,n){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&ef(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&ef(t,o,e[o])}function Qr(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 Gy=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"]]),Ky=/^[\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 Vi(t){return Ky.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var Yr=null;function Gr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Na=null,qa=null;function af(t){var e=ja(t);if(e&&(t=e.stateNode)){var n=t[le]||null;t:switch(t=e.stateNode,e.type){case"input":if(Br(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Me(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[le]||null;if(!r)throw Error(s(90));Br(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&$c(l)}break t;case"textarea":Ic(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&La(t,!!n.multiple,e,!1)}}}var Kr=!1;function lf(t,e,n){if(Kr)return t(e,n);Kr=!0;try{var l=t(e);return l}finally{if(Kr=!1,(Na!==null||qa!==null)&&(Du(),Na&&(e=Na,t=qa,qa=Na=null,af(e),t)))for(e=0;e<t.length;e++)af(t[e])}}function wl(t,e){var n=t.stateNode;if(n===null)return null;var l=n[le]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(s(231,e,typeof n));return n}var tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xr=!1;if(tn)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Xr=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Xr=!1}var Tn=null,Pr=null,Zi=null;function uf(){if(Zi)return Zi;var t,e=Pr,n=e.length,l,r="value"in Tn?Tn.value:Tn.textContent,o=r.length;for(t=0;t<n&&e[t]===r[t];t++);var p=n-t;for(l=1;l<=p&&e[n-l]===r[o-l];l++);return Zi=r.slice(t,1<l?1-l:void 0)}function Ji(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 Fi(){return!0}function rf(){return!1}function ie(t){function e(n,l,r,o,p){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=o,this.target=p,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fi:rf,this.isPropagationStopped=rf,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),e}var aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ki=ie(aa),Ll=g({},aa,{view:0,detail:0}),Xy=ie(Ll),Vr,Zr,Ul,$i=g({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fr,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!==Ul&&(Ul&&t.type==="mousemove"?(Vr=t.screenX-Ul.screenX,Zr=t.screenY-Ul.screenY):Zr=Vr=0,Ul=t),Vr)},movementY:function(t){return"movementY"in t?t.movementY:Zr}}),sf=ie($i),Py=g({},$i,{dataTransfer:0}),Vy=ie(Py),Zy=g({},Ll,{relatedTarget:0}),Jr=ie(Zy),Jy=g({},aa,{animationName:0,elapsedTime:0,pseudoElement:0}),Fy=ie(Jy),ky=g({},aa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$y=ie(ky),Wy=g({},aa,{data:0}),of=ie(Wy),Iy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tv={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"},ev={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ev[t])?!!e[t]:!1}function Fr(){return nv}var av=g({},Ll,{key:function(t){if(t.key){var e=Iy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ji(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?tv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fr,charCode:function(t){return t.type==="keypress"?Ji(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ji(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lv=ie(av),iv=g({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=ie(iv),uv=g({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fr}),rv=ie(uv),sv=g({},aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ov=ie(sv),cv=g({},$i,{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}),fv=ie(cv),dv=g({},aa,{newState:0,oldState:0}),hv=ie(dv),pv=[9,13,27,32],kr=tn&&"CompositionEvent"in window,Nl=null;tn&&"documentMode"in document&&(Nl=document.documentMode);var mv=tn&&"TextEvent"in window&&!Nl,ff=tn&&(!kr||Nl&&8<Nl&&11>=Nl),df=" ",hf=!1;function pf(t,e){switch(t){case"keyup":return pv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ba=!1;function yv(t,e){switch(t){case"compositionend":return mf(e);case"keypress":return e.which!==32?null:(hf=!0,df);case"textInput":return t=e.data,t===df&&hf?null:t;default:return null}}function vv(t,e){if(Ba)return t==="compositionend"||!kr&&pf(t,e)?(t=uf(),Zi=Pr=Tn=null,Ba=!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 ff&&e.locale!=="ko"?null:e.data;default:return null}}var gv={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 yf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!gv[t.type]:e==="textarea"}function vf(t,e,n,l){Na?qa?qa.push(l):qa=[l]:Na=l,e=Qu(e,"onChange"),0<e.length&&(n=new ki("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ql=null,Bl=null;function Sv(t){Ih(t,0)}function Wi(t){var e=jl(t);if($c(e))return t}function gf(t,e){if(t==="change")return e}var Sf=!1;if(tn){var $r;if(tn){var Wr="oninput"in document;if(!Wr){var bf=document.createElement("div");bf.setAttribute("oninput","return;"),Wr=typeof bf.oninput=="function"}$r=Wr}else $r=!1;Sf=$r&&(!document.documentMode||9<document.documentMode)}function _f(){ql&&(ql.detachEvent("onpropertychange",Of),Bl=ql=null)}function Of(t){if(t.propertyName==="value"&&Wi(Bl)){var e=[];vf(e,Bl,t,Gr(t)),lf(Sv,e)}}function bv(t,e,n){t==="focusin"?(_f(),ql=e,Bl=n,ql.attachEvent("onpropertychange",Of)):t==="focusout"&&_f()}function _v(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wi(Bl)}function Ov(t,e){if(t==="click")return Wi(e)}function xv(t,e){if(t==="input"||t==="change")return Wi(e)}function Ev(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var me=typeof Object.is=="function"?Object.is:Ev;function Hl(t,e){if(me(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!_n.call(e,r)||!me(t[r],e[r]))return!1}return!0}function xf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ef(t,e){var n=xf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=xf(n)}}function Tf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Tf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Mf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Pi(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Pi(t.document)}return e}function Ir(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 Tv=tn&&"documentMode"in document&&11>=document.documentMode,Ha=null,ts=null,Ql=null,es=!1;function Rf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;es||Ha==null||Ha!==Pi(l)||(l=Ha,"selectionStart"in l&&Ir(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ql&&Hl(Ql,l)||(Ql=l,l=Qu(ts,"onSelect"),0<l.length&&(e=new ki("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Ha)))}function la(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Qa={animationend:la("Animation","AnimationEnd"),animationiteration:la("Animation","AnimationIteration"),animationstart:la("Animation","AnimationStart"),transitionrun:la("Transition","TransitionRun"),transitionstart:la("Transition","TransitionStart"),transitioncancel:la("Transition","TransitionCancel"),transitionend:la("Transition","TransitionEnd")},ns={},Af={};tn&&(Af=document.createElement("div").style,"AnimationEvent"in window||(delete Qa.animationend.animation,delete Qa.animationiteration.animation,delete Qa.animationstart.animation),"TransitionEvent"in window||delete Qa.transitionend.transition);function ia(t){if(ns[t])return ns[t];if(!Qa[t])return t;var e=Qa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Af)return ns[t]=e[n];return t}var Cf=ia("animationend"),zf=ia("animationiteration"),jf=ia("animationstart"),Mv=ia("transitionrun"),Rv=ia("transitionstart"),Av=ia("transitioncancel"),wf=ia("transitionend"),Df=new Map,as="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(" ");as.push("scrollEnd");function Be(t,e){Df.set(t,e),na(e,[t])}var Ii=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)},Re=[],Ya=0,ls=0;function tu(){for(var t=Ya,e=ls=Ya=0;e<t;){var n=Re[e];Re[e++]=null;var l=Re[e];Re[e++]=null;var r=Re[e];Re[e++]=null;var o=Re[e];if(Re[e++]=null,l!==null&&r!==null){var p=l.pending;p===null?r.next=r:(r.next=p.next,p.next=r),l.pending=r}o!==0&&Lf(n,r,o)}}function eu(t,e,n,l){Re[Ya++]=t,Re[Ya++]=e,Re[Ya++]=n,Re[Ya++]=l,ls|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function is(t,e,n,l){return eu(t,e,n,l),nu(t)}function ua(t,e){return eu(t,null,null,e),nu(t)}function Lf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,o=t.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(r=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,r&&e!==null&&(r=31-pe(n),t=o.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),o):null}function nu(t){if(50<si)throw si=0,mo=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ga={};function Cv(t,e,n,l){this.tag=t,this.key=n,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ye(t,e,n,l){return new Cv(t,e,n,l)}function us(t){return t=t.prototype,!(!t||!t.isReactComponent)}function en(t,e){var n=t.alternate;return n===null?(n=ye(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Uf(t,e){t.flags&=65011714;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function au(t,e,n,l,r,o){var p=0;if(l=t,typeof t=="function")us(t)&&(p=1);else if(typeof t=="string")p=L0(t,n,Z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case $:return t=ye(31,n,e,r),t.elementType=$,t.lanes=o,t;case A:return ra(n.children,r,o,e);case B:p=8,r|=24;break;case U:return t=ye(12,n,e,r|2),t.elementType=U,t.lanes=o,t;case tt:return t=ye(13,n,e,r),t.elementType=tt,t.lanes=o,t;case Y:return t=ye(19,n,e,r),t.elementType=Y,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:p=10;break t;case Q:p=9;break t;case K:p=11;break t;case H:p=14;break t;case X:p=16,l=null;break t}p=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=ye(p,n,e,r),e.elementType=t,e.type=l,e.lanes=o,e}function ra(t,e,n,l){return t=ye(7,t,l,e),t.lanes=n,t}function rs(t,e,n){return t=ye(6,t,null,e),t.lanes=n,t}function Nf(t){var e=ye(18,null,null,0);return e.stateNode=t,e}function ss(t,e,n){return e=ye(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var qf=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var n=qf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ni(e)},qf.set(t,e),e)}return{value:t,source:e,stack:Ni(e)}}var Ka=[],Xa=0,lu=null,Yl=0,Ce=[],ze=0,Mn=null,Xe=1,Pe="";function nn(t,e){Ka[Xa++]=Yl,Ka[Xa++]=lu,lu=t,Yl=e}function Bf(t,e,n){Ce[ze++]=Xe,Ce[ze++]=Pe,Ce[ze++]=Mn,Mn=t;var l=Xe;t=Pe;var r=32-pe(l)-1;l&=~(1<<r),n+=1;var o=32-pe(e)+r;if(30<o){var p=r-r%5;o=(l&(1<<p)-1).toString(32),l>>=p,r-=p,Xe=1<<32-pe(e)+r|n<<r|l,Pe=o+t}else Xe=1<<o|n<<r|l,Pe=t}function os(t){t.return!==null&&(nn(t,1),Bf(t,1,0))}function cs(t){for(;t===lu;)lu=Ka[--Xa],Ka[Xa]=null,Yl=Ka[--Xa],Ka[Xa]=null;for(;t===Mn;)Mn=Ce[--ze],Ce[ze]=null,Pe=Ce[--ze],Ce[ze]=null,Xe=Ce[--ze],Ce[ze]=null}function Hf(t,e){Ce[ze++]=Xe,Ce[ze++]=Pe,Ce[ze++]=Mn,Xe=e.id,Pe=e.overflow,Mn=t}var $t=null,jt=null,mt=!1,Rn=null,je=!1,fs=Error(s(519));function An(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(Ae(e,t)),fs}function Qf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[kt]=t,e[le]=l,n){case"dialog":ft("cancel",e),ft("close",e);break;case"iframe":case"object":case"embed":ft("load",e);break;case"video":case"audio":for(n=0;n<ci.length;n++)ft(ci[n],e);break;case"source":ft("error",e);break;case"img":case"image":case"link":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"input":ft("invalid",e),Wc(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ft("invalid",e);break;case"textarea":ft("invalid",e),tf(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||ap(e.textContent,n)?(l.popover!=null&&(ft("beforetoggle",e),ft("toggle",e)),l.onScroll!=null&&ft("scroll",e),l.onScrollEnd!=null&&ft("scrollend",e),l.onClick!=null&&(e.onclick=Ie),e=!0):e=!1,e||An(t,!0)}function Yf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:je=!1;return;case 27:case 3:je=!0;return;default:$t=$t.return}}function Pa(t){if(t!==$t)return!1;if(!mt)return Yf(t),mt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||zo(t.type,t.memoizedProps)),n=!n),n&&jt&&An(t),Yf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));jt=dp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));jt=dp(t)}else e===27?(e=jt,Gn(t.type)?(t=Uo,Uo=null,jt=t):jt=e):jt=$t?De(t.stateNode.nextSibling):null;return!0}function sa(){jt=$t=null,mt=!1}function ds(){var t=Rn;return t!==null&&(oe===null?oe=t:oe.push.apply(oe,t),Rn=null),t}function Gl(t){Rn===null?Rn=[t]:Rn.push(t)}var hs=E(null),oa=null,an=null;function Cn(t,e,n){V(hs,e._currentValue),e._currentValue=n}function ln(t){t._currentValue=hs.current,q(hs)}function ps(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function ms(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var o=r.dependencies;if(o!==null){var p=r.child;o=o.firstContext;t:for(;o!==null;){var v=o;o=r;for(var _=0;_<e.length;_++)if(v.context===e[_]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),ps(o.return,n,t),l||(p=null);break t}o=v.next}}else if(r.tag===18){if(p=r.return,p===null)throw Error(s(341));p.lanes|=n,o=p.alternate,o!==null&&(o.lanes|=n),ps(p,n,t),p=null}else p=r.child;if(p!==null)p.return=r;else for(p=r;p!==null;){if(p===t){p=null;break}if(r=p.sibling,r!==null){r.return=p.return,p=r;break}p=p.return}r=p}}function Va(t,e,n,l){t=null;for(var r=e,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var p=r.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var v=r.type;me(r.pendingProps.value,p.value)||(t!==null?t.push(v):t=[v])}}else if(r===pt.current){if(p=r.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(mi):t=[mi])}r=r.return}t!==null&&ms(e,t,n,l),e.flags|=262144}function iu(t){for(t=t.firstContext;t!==null;){if(!me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ca(t){oa=t,an=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Gf(oa,t)}function uu(t,e){return oa===null&&ca(t),Gf(t,e)}function Gf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},an===null){if(t===null)throw Error(s(308));an=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else an=an.next=e;return n}var zv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},jv=a.unstable_scheduleCallback,wv=a.unstable_NormalPriority,Kt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ys(){return{controller:new zv,data:new Map,refCount:0}}function Kl(t){t.refCount--,t.refCount===0&&jv(wv,function(){t.controller.abort()})}var Xl=null,vs=0,Za=0,Ja=null;function Dv(t,e){if(Xl===null){var n=Xl=[];vs=0,Za=_o(),Ja={status:"pending",value:void 0,then:function(l){n.push(l)}}}return vs++,e.then(Kf,Kf),e}function Kf(){if(--vs===0&&Xl!==null){Ja!==null&&(Ja.status="fulfilled");var t=Xl;Xl=null,Za=0,Ja=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Lv(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var Xf=w.S;w.S=function(t,e){Rh=gt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Dv(t,e),Xf!==null&&Xf(t,e)};var fa=E(null);function gs(){var t=fa.current;return t!==null?t:zt.pooledCache}function ru(t,e){e===null?V(fa,fa.current):V(fa,e.pool)}function Pf(){var t=gs();return t===null?null:{parent:Kt._currentValue,pool:t}}var Fa=Error(s(460)),Ss=Error(s(474)),su=Error(s(542)),ou={then:function(){}};function Vf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Zf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ie,Ie),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ff(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ff(t),t}throw ha=e,Fa}}function da(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ha=n,Fa):n}}var ha=null;function Jf(){if(ha===null)throw Error(s(459));var t=ha;return ha=null,t}function Ff(t){if(t===Fa||t===su)throw Error(s(483))}var ka=null,Pl=0;function cu(t){var e=Pl;return Pl+=1,ka===null&&(ka=[]),Zf(ka,t,e)}function Vl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function fu(t,e){throw e.$$typeof===S?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function kf(t){function e(T,x){if(t){var M=T.deletions;M===null?(T.deletions=[x],T.flags|=16):M.push(x)}}function n(T,x){if(!t)return null;for(;x!==null;)e(T,x),x=x.sibling;return null}function l(T){for(var x=new Map;T!==null;)T.key!==null?x.set(T.key,T):x.set(T.index,T),T=T.sibling;return x}function r(T,x){return T=en(T,x),T.index=0,T.sibling=null,T}function o(T,x,M){return T.index=M,t?(M=T.alternate,M!==null?(M=M.index,M<x?(T.flags|=67108866,x):M):(T.flags|=67108866,x)):(T.flags|=1048576,x)}function p(T){return t&&T.alternate===null&&(T.flags|=67108866),T}function v(T,x,M,L){return x===null||x.tag!==6?(x=rs(M,T.mode,L),x.return=T,x):(x=r(x,M),x.return=T,x)}function _(T,x,M,L){var W=M.type;return W===A?D(T,x,M.props.children,L,M.key):x!==null&&(x.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===X&&da(W)===x.type)?(x=r(x,M.props),Vl(x,M),x.return=T,x):(x=au(M.type,M.key,M.props,null,T.mode,L),Vl(x,M),x.return=T,x)}function R(T,x,M,L){return x===null||x.tag!==4||x.stateNode.containerInfo!==M.containerInfo||x.stateNode.implementation!==M.implementation?(x=ss(M,T.mode,L),x.return=T,x):(x=r(x,M.children||[]),x.return=T,x)}function D(T,x,M,L,W){return x===null||x.tag!==7?(x=ra(M,T.mode,L,W),x.return=T,x):(x=r(x,M),x.return=T,x)}function N(T,x,M){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=rs(""+x,T.mode,M),x.return=T,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case O:return M=au(x.type,x.key,x.props,null,T.mode,M),Vl(M,x),M.return=T,M;case z:return x=ss(x,T.mode,M),x.return=T,x;case X:return x=da(x),N(T,x,M)}if(Lt(x)||xt(x))return x=ra(x,T.mode,M,null),x.return=T,x;if(typeof x.then=="function")return N(T,cu(x),M);if(x.$$typeof===G)return N(T,uu(T,x),M);fu(T,x)}return null}function C(T,x,M,L){var W=x!==null?x.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return W!==null?null:v(T,x,""+M,L);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case O:return M.key===W?_(T,x,M,L):null;case z:return M.key===W?R(T,x,M,L):null;case X:return M=da(M),C(T,x,M,L)}if(Lt(M)||xt(M))return W!==null?null:D(T,x,M,L,null);if(typeof M.then=="function")return C(T,x,cu(M),L);if(M.$$typeof===G)return C(T,x,uu(T,M),L);fu(T,M)}return null}function j(T,x,M,L,W){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return T=T.get(M)||null,v(x,T,""+L,W);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case O:return T=T.get(L.key===null?M:L.key)||null,_(x,T,L,W);case z:return T=T.get(L.key===null?M:L.key)||null,R(x,T,L,W);case X:return L=da(L),j(T,x,M,L,W)}if(Lt(L)||xt(L))return T=T.get(M)||null,D(x,T,L,W,null);if(typeof L.then=="function")return j(T,x,M,cu(L),W);if(L.$$typeof===G)return j(T,x,M,uu(x,L),W);fu(x,L)}return null}function J(T,x,M,L){for(var W=null,yt=null,F=x,st=x=0,ht=null;F!==null&&st<M.length;st++){F.index>st?(ht=F,F=null):ht=F.sibling;var vt=C(T,F,M[st],L);if(vt===null){F===null&&(F=ht);break}t&&F&&vt.alternate===null&&e(T,F),x=o(vt,x,st),yt===null?W=vt:yt.sibling=vt,yt=vt,F=ht}if(st===M.length)return n(T,F),mt&&nn(T,st),W;if(F===null){for(;st<M.length;st++)F=N(T,M[st],L),F!==null&&(x=o(F,x,st),yt===null?W=F:yt.sibling=F,yt=F);return mt&&nn(T,st),W}for(F=l(F);st<M.length;st++)ht=j(F,T,st,M[st],L),ht!==null&&(t&&ht.alternate!==null&&F.delete(ht.key===null?st:ht.key),x=o(ht,x,st),yt===null?W=ht:yt.sibling=ht,yt=ht);return t&&F.forEach(function(Zn){return e(T,Zn)}),mt&&nn(T,st),W}function I(T,x,M,L){if(M==null)throw Error(s(151));for(var W=null,yt=null,F=x,st=x=0,ht=null,vt=M.next();F!==null&&!vt.done;st++,vt=M.next()){F.index>st?(ht=F,F=null):ht=F.sibling;var Zn=C(T,F,vt.value,L);if(Zn===null){F===null&&(F=ht);break}t&&F&&Zn.alternate===null&&e(T,F),x=o(Zn,x,st),yt===null?W=Zn:yt.sibling=Zn,yt=Zn,F=ht}if(vt.done)return n(T,F),mt&&nn(T,st),W;if(F===null){for(;!vt.done;st++,vt=M.next())vt=N(T,vt.value,L),vt!==null&&(x=o(vt,x,st),yt===null?W=vt:yt.sibling=vt,yt=vt);return mt&&nn(T,st),W}for(F=l(F);!vt.done;st++,vt=M.next())vt=j(F,T,st,vt.value,L),vt!==null&&(t&&vt.alternate!==null&&F.delete(vt.key===null?st:vt.key),x=o(vt,x,st),yt===null?W=vt:yt.sibling=vt,yt=vt);return t&&F.forEach(function(P0){return e(T,P0)}),mt&&nn(T,st),W}function Ct(T,x,M,L){if(typeof M=="object"&&M!==null&&M.type===A&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case O:t:{for(var W=M.key;x!==null;){if(x.key===W){if(W=M.type,W===A){if(x.tag===7){n(T,x.sibling),L=r(x,M.props.children),L.return=T,T=L;break t}}else if(x.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===X&&da(W)===x.type){n(T,x.sibling),L=r(x,M.props),Vl(L,M),L.return=T,T=L;break t}n(T,x);break}else e(T,x);x=x.sibling}M.type===A?(L=ra(M.props.children,T.mode,L,M.key),L.return=T,T=L):(L=au(M.type,M.key,M.props,null,T.mode,L),Vl(L,M),L.return=T,T=L)}return p(T);case z:t:{for(W=M.key;x!==null;){if(x.key===W)if(x.tag===4&&x.stateNode.containerInfo===M.containerInfo&&x.stateNode.implementation===M.implementation){n(T,x.sibling),L=r(x,M.children||[]),L.return=T,T=L;break t}else{n(T,x);break}else e(T,x);x=x.sibling}L=ss(M,T.mode,L),L.return=T,T=L}return p(T);case X:return M=da(M),Ct(T,x,M,L)}if(Lt(M))return J(T,x,M,L);if(xt(M)){if(W=xt(M),typeof W!="function")throw Error(s(150));return M=W.call(M),I(T,x,M,L)}if(typeof M.then=="function")return Ct(T,x,cu(M),L);if(M.$$typeof===G)return Ct(T,x,uu(T,M),L);fu(T,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,x!==null&&x.tag===6?(n(T,x.sibling),L=r(x,M),L.return=T,T=L):(n(T,x),L=rs(M,T.mode,L),L.return=T,T=L),p(T)):n(T,x)}return function(T,x,M,L){try{Pl=0;var W=Ct(T,x,M,L);return ka=null,W}catch(F){if(F===Fa||F===su)throw F;var yt=ye(29,F,null,T.mode);return yt.lanes=L,yt.return=T,yt}}}var pa=kf(!0),$f=kf(!1),zn=!1;function bs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _s(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 jn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(St&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=nu(t),Lf(t,null,n),e}return eu(t,l,e,n),nu(t)}function Zl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Yc(t,n)}}function Os(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=p:o=o.next=p,n=n.next}while(n!==null);o===null?r=o=e:o=o.next=e}else r=o=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var xs=!1;function Jl(){if(xs){var t=Ja;if(t!==null)throw t}}function Fl(t,e,n,l){xs=!1;var r=t.updateQueue;zn=!1;var o=r.firstBaseUpdate,p=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var _=v,R=_.next;_.next=null,p===null?o=R:p.next=R,p=_;var D=t.alternate;D!==null&&(D=D.updateQueue,v=D.lastBaseUpdate,v!==p&&(v===null?D.firstBaseUpdate=R:v.next=R,D.lastBaseUpdate=_))}if(o!==null){var N=r.baseState;p=0,D=R=_=null,v=o;do{var C=v.lane&-536870913,j=C!==v.lane;if(j?(dt&C)===C:(l&C)===C){C!==0&&C===Za&&(xs=!0),D!==null&&(D=D.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var J=t,I=v;C=e;var Ct=n;switch(I.tag){case 1:if(J=I.payload,typeof J=="function"){N=J.call(Ct,N,C);break t}N=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=I.payload,C=typeof J=="function"?J.call(Ct,N,C):J,C==null)break t;N=g({},N,C);break t;case 2:zn=!0}}C=v.callback,C!==null&&(t.flags|=64,j&&(t.flags|=8192),j=r.callbacks,j===null?r.callbacks=[C]:j.push(C))}else j={lane:C,tag:v.tag,payload:v.payload,callback:v.callback,next:null},D===null?(R=D=j,_=N):D=D.next=j,p|=C;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;j=v,v=j.next,j.next=null,r.lastBaseUpdate=j,r.shared.pending=null}}while(!0);D===null&&(_=N),r.baseState=_,r.firstBaseUpdate=R,r.lastBaseUpdate=D,o===null&&(r.shared.lanes=0),qn|=p,t.lanes=p,t.memoizedState=N}}function Wf(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function If(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Wf(n[t],e)}var $a=E(null),du=E(0);function td(t,e){t=pn,V(du,t),V($a,e),pn=t|e.baseLanes}function Es(){V(du,pn),V($a,$a.current)}function Ts(){pn=du.current,q($a),q(du)}var ve=E(null),we=null;function Dn(t){var e=t.alternate;V(Ht,Ht.current&1),V(ve,t),we===null&&(e===null||$a.current!==null||e.memoizedState!==null)&&(we=t)}function Ms(t){V(Ht,Ht.current),V(ve,t),we===null&&(we=t)}function ed(t){t.tag===22?(V(Ht,Ht.current),V(ve,t),we===null&&(we=t)):Ln()}function Ln(){V(Ht,Ht.current),V(ve,ve.current)}function ge(t){q(ve),we===t&&(we=null),q(Ht)}var Ht=E(0);function hu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Do(n)||Lo(n)))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 un=0,ut=null,Rt=null,Xt=null,pu=!1,Wa=!1,ma=!1,mu=0,kl=0,Ia=null,Uv=0;function Ut(){throw Error(s(321))}function Rs(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!me(t[n],e[n]))return!1;return!0}function As(t,e,n,l,r,o){return un=o,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,w.H=t===null||t.memoizedState===null?Bd:Ks,ma=!1,o=n(l,r),ma=!1,Wa&&(o=ad(e,n,l,r)),nd(t),o}function nd(t){w.H=Il;var e=Rt!==null&&Rt.next!==null;if(un=0,Xt=Rt=ut=null,pu=!1,kl=0,Ia=null,e)throw Error(s(300));t===null||Pt||(t=t.dependencies,t!==null&&iu(t)&&(Pt=!0))}function ad(t,e,n,l){ut=t;var r=0;do{if(Wa&&(Ia=null),kl=0,Wa=!1,25<=r)throw Error(s(301));if(r+=1,Xt=Rt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}w.H=Hd,o=e(n,l)}while(Wa);return o}function Nv(){var t=w.H,e=t.useState()[0];return e=typeof e.then=="function"?$l(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Cs(){var t=mu!==0;return mu=0,t}function zs(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function js(t){if(pu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}pu=!1}un=0,Xt=Rt=ut=null,Wa=!1,kl=mu=0,Ia=null}function ne(){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 Qt(){if(Rt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Xt===null?ut.memoizedState:Xt.next;if(e!==null)Xt=e,Rt=t;else{if(t===null)throw ut.alternate===null?Error(s(467)):Error(s(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function yu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $l(t){var e=kl;return kl+=1,Ia===null&&(Ia=[]),t=Zf(Ia,t,e),e=ut,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,w.H=e===null||e.memoizedState===null?Bd:Ks),t}function vu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return $l(t);if(t.$$typeof===G)return Wt(t)}throw Error(s(438,String(t)))}function ws(t){var e=null,n=ut.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ut.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=yu(),ut.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=ot;return e.index++,n}function rn(t,e){return typeof e=="function"?e(t):e}function gu(t){var e=Qt();return Ds(e,Rt,t)}function Ds(t,e,n){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var r=t.baseQueue,o=l.pending;if(o!==null){if(r!==null){var p=r.next;r.next=o.next,o.next=p}e.baseQueue=r=o,l.pending=null}if(o=t.baseState,r===null)t.memoizedState=o;else{e=r.next;var v=p=null,_=null,R=e,D=!1;do{var N=R.lane&-536870913;if(N!==R.lane?(dt&N)===N:(un&N)===N){var C=R.revertLane;if(C===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),N===Za&&(D=!0);else if((un&C)===C){R=R.next,C===Za&&(D=!0);continue}else N={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},_===null?(v=_=N,p=o):_=_.next=N,ut.lanes|=C,qn|=C;N=R.action,ma&&n(o,N),o=R.hasEagerState?R.eagerState:n(o,N)}else C={lane:N,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},_===null?(v=_=C,p=o):_=_.next=C,ut.lanes|=N,qn|=N;R=R.next}while(R!==null&&R!==e);if(_===null?p=o:_.next=v,!me(o,t.memoizedState)&&(Pt=!0,D&&(n=Ja,n!==null)))throw n;t.memoizedState=o,t.baseState=p,t.baseQueue=_,l.lastRenderedState=o}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Ls(t){var e=Qt(),n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,o=e.memoizedState;if(r!==null){n.pending=null;var p=r=r.next;do o=t(o,p.action),p=p.next;while(p!==r);me(o,e.memoizedState)||(Pt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function ld(t,e,n){var l=ut,r=Qt(),o=mt;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=e();var p=!me((Rt||r).memoizedState,n);if(p&&(r.memoizedState=n,Pt=!0),r=r.queue,qs(rd.bind(null,l,r,t),[t]),r.getSnapshot!==e||p||Xt!==null&&Xt.memoizedState.tag&1){if(l.flags|=2048,tl(9,{destroy:void 0},ud.bind(null,l,r,n,e),null),zt===null)throw Error(s(349));o||(un&127)!==0||id(l,e,n)}return n}function id(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ut.updateQueue,e===null?(e=yu(),ut.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ud(t,e,n,l){e.value=n,e.getSnapshot=l,sd(e)&&od(t)}function rd(t,e,n){return n(function(){sd(e)&&od(t)})}function sd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!me(t,n)}catch{return!0}}function od(t){var e=ua(t,2);e!==null&&ce(e,t,2)}function Us(t){var e=ne();if(typeof t=="function"){var n=t;if(t=n(),ma){xn(!0);try{n()}finally{xn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:t},e}function cd(t,e,n,l){return t.baseState=n,Ds(t,Rt,typeof l=="function"?l:rn)}function qv(t,e,n,l,r){if(_u(t))throw Error(s(485));if(t=e.action,t!==null){var o={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){o.listeners.push(p)}};w.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,fd(e,o)):(o.next=n.next,e.pending=n.next=o)}}function fd(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var o=w.T,p={};w.T=p;try{var v=n(r,l),_=w.S;_!==null&&_(p,v),dd(t,e,v)}catch(R){Ns(t,e,R)}finally{o!==null&&p.types!==null&&(o.types=p.types),w.T=o}}else try{o=n(r,l),dd(t,e,o)}catch(R){Ns(t,e,R)}}function dd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){hd(t,e,l)},function(l){return Ns(t,e,l)}):hd(t,e,n)}function hd(t,e,n){e.status="fulfilled",e.value=n,pd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,fd(t,n)))}function Ns(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,pd(e),e=e.next;while(e!==l)}t.action=null}function pd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function md(t,e){return e}function yd(t,e){if(mt){var n=zt.formState;if(n!==null){t:{var l=ut;if(mt){if(jt){e:{for(var r=jt,o=je;r.nodeType!==8;){if(!o){r=null;break e}if(r=De(r.nextSibling),r===null){r=null;break e}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){jt=De(r.nextSibling),l=r.data==="F!";break t}}An(l)}l=!1}l&&(e=n[0])}}return n=ne(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:md,lastRenderedState:e},n.queue=l,n=Ud.bind(null,ut,l),l.dispatch=n,l=Us(!1),o=Gs.bind(null,ut,!1,l.queue),l=ne(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=qv.bind(null,ut,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function vd(t){var e=Qt();return gd(e,Rt,t)}function gd(t,e,n){if(e=Ds(t,e,md)[0],t=gu(rn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=$l(e)}catch(p){throw p===Fa?su:p}else l=e;e=Qt();var r=e.queue,o=r.dispatch;return n!==e.memoizedState&&(ut.flags|=2048,tl(9,{destroy:void 0},Bv.bind(null,r,n),null)),[l,o,t]}function Bv(t,e){t.action=e}function Sd(t){var e=Qt(),n=Rt;if(n!==null)return gd(e,n,t);Qt(),e=e.memoizedState,n=Qt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function tl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ut.updateQueue,e===null&&(e=yu(),ut.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function bd(){return Qt().memoizedState}function Su(t,e,n,l){var r=ne();ut.flags|=t,r.memoizedState=tl(1|e,{destroy:void 0},n,l===void 0?null:l)}function bu(t,e,n,l){var r=Qt();l=l===void 0?null:l;var o=r.memoizedState.inst;Rt!==null&&l!==null&&Rs(l,Rt.memoizedState.deps)?r.memoizedState=tl(e,o,n,l):(ut.flags|=t,r.memoizedState=tl(1|e,o,n,l))}function _d(t,e){Su(8390656,8,t,e)}function qs(t,e){bu(2048,8,t,e)}function Hv(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=yu(),ut.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Od(t){var e=Qt().memoizedState;return Hv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function xd(t,e){return bu(4,2,t,e)}function Ed(t,e){return bu(4,4,t,e)}function Td(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Md(t,e,n){n=n!=null?n.concat([t]):null,bu(4,4,Td.bind(null,e,t),n)}function Bs(){}function Rd(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Rs(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Ad(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Rs(e,l[1]))return l[0];if(l=t(),ma){xn(!0);try{t()}finally{xn(!1)}}return n.memoizedState=[l,e],l}function Hs(t,e,n){return n===void 0||(un&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Ch(),ut.lanes|=t,qn|=t,n)}function Cd(t,e,n,l){return me(n,e)?n:$a.current!==null?(t=Hs(t,n,l),me(t,e)||(Pt=!0),t):(un&42)===0||(un&1073741824)!==0&&(dt&261930)===0?(Pt=!0,t.memoizedState=n):(t=Ch(),ut.lanes|=t,qn|=t,e)}function zd(t,e,n,l,r){var o=P.p;P.p=o!==0&&8>o?o:8;var p=w.T,v={};w.T=v,Gs(t,!1,e,n);try{var _=r(),R=w.S;if(R!==null&&R(v,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var D=Lv(_,l);Wl(t,e,D,_e(t))}else Wl(t,e,l,_e(t))}catch(N){Wl(t,e,{then:function(){},status:"rejected",reason:N},_e())}finally{P.p=o,p!==null&&v.types!==null&&(p.types=v.types),w.T=p}}function Qv(){}function Qs(t,e,n,l){if(t.tag!==5)throw Error(s(476));var r=jd(t).queue;zd(t,r,e,et,n===null?Qv:function(){return wd(t),n(l)})}function jd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:et,baseState:et,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:et},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function wd(t){var e=jd(t);e.next===null&&(e=t.alternate.memoizedState),Wl(t,e.next.queue,{},_e())}function Ys(){return Wt(mi)}function Dd(){return Qt().memoizedState}function Ld(){return Qt().memoizedState}function Yv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=_e();t=jn(n);var l=wn(e,t,n);l!==null&&(ce(l,e,n),Zl(l,e,n)),e={cache:ys()},t.payload=e;return}e=e.return}}function Gv(t,e,n){var l=_e();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_u(t)?Nd(e,n):(n=is(t,e,n,l),n!==null&&(ce(n,t,l),qd(n,e,l)))}function Ud(t,e,n){var l=_e();Wl(t,e,n,l)}function Wl(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_u(t))Nd(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var p=e.lastRenderedState,v=o(p,n);if(r.hasEagerState=!0,r.eagerState=v,me(v,p))return eu(t,e,r,0),zt===null&&tu(),!1}catch{}if(n=is(t,e,r,l),n!==null)return ce(n,t,l),qd(n,e,l),!0}return!1}function Gs(t,e,n,l){if(l={lane:2,revertLane:_o(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_u(t)){if(e)throw Error(s(479))}else e=is(t,n,l,2),e!==null&&ce(e,t,2)}function _u(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function Nd(t,e){Wa=pu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function qd(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Yc(t,n)}}var Il={readContext:Wt,use:vu,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};Il.useEffectEvent=Ut;var Bd={readContext:Wt,use:vu,useCallback:function(t,e){return ne().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:_d,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Su(4194308,4,Td.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Su(4194308,4,t,e)},useInsertionEffect:function(t,e){Su(4,2,t,e)},useMemo:function(t,e){var n=ne();e=e===void 0?null:e;var l=t();if(ma){xn(!0);try{t()}finally{xn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ne();if(n!==void 0){var r=n(e);if(ma){xn(!0);try{n(e)}finally{xn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=Gv.bind(null,ut,t),[l.memoizedState,t]},useRef:function(t){var e=ne();return t={current:t},e.memoizedState=t},useState:function(t){t=Us(t);var e=t.queue,n=Ud.bind(null,ut,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Bs,useDeferredValue:function(t,e){var n=ne();return Hs(n,t,e)},useTransition:function(){var t=Us(!1);return t=zd.bind(null,ut,t.queue,!0,!1),ne().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ut,r=ne();if(mt){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),zt===null)throw Error(s(349));(dt&127)!==0||id(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,_d(rd.bind(null,l,o,t),[t]),l.flags|=2048,tl(9,{destroy:void 0},ud.bind(null,l,o,n,e),null),n},useId:function(){var t=ne(),e=zt.identifierPrefix;if(mt){var n=Pe,l=Xe;n=(l&~(1<<32-pe(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=mu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Uv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ys,useFormState:yd,useActionState:yd,useOptimistic:function(t){var e=ne();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Gs.bind(null,ut,!0,n),n.dispatch=e,[t,e]},useMemoCache:ws,useCacheRefresh:function(){return ne().memoizedState=Yv.bind(null,ut)},useEffectEvent:function(t){var e=ne(),n={impl:t};return e.memoizedState=n,function(){if((St&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Ks={readContext:Wt,use:vu,useCallback:Rd,useContext:Wt,useEffect:qs,useImperativeHandle:Md,useInsertionEffect:xd,useLayoutEffect:Ed,useMemo:Ad,useReducer:gu,useRef:bd,useState:function(){return gu(rn)},useDebugValue:Bs,useDeferredValue:function(t,e){var n=Qt();return Cd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=gu(rn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:$l(t),e]},useSyncExternalStore:ld,useId:Dd,useHostTransitionStatus:Ys,useFormState:vd,useActionState:vd,useOptimistic:function(t,e){var n=Qt();return cd(n,Rt,t,e)},useMemoCache:ws,useCacheRefresh:Ld};Ks.useEffectEvent=Od;var Hd={readContext:Wt,use:vu,useCallback:Rd,useContext:Wt,useEffect:qs,useImperativeHandle:Md,useInsertionEffect:xd,useLayoutEffect:Ed,useMemo:Ad,useReducer:Ls,useRef:bd,useState:function(){return Ls(rn)},useDebugValue:Bs,useDeferredValue:function(t,e){var n=Qt();return Rt===null?Hs(n,t,e):Cd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Ls(rn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:$l(t),e]},useSyncExternalStore:ld,useId:Dd,useHostTransitionStatus:Ys,useFormState:Sd,useActionState:Sd,useOptimistic:function(t,e){var n=Qt();return Rt!==null?cd(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ws,useCacheRefresh:Ld};Hd.useEffectEvent=Od;function Xs(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ps={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=_e(),r=jn(l);r.payload=e,n!=null&&(r.callback=n),e=wn(t,r,l),e!==null&&(ce(e,t,l),Zl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=_e(),r=jn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=wn(t,r,l),e!==null&&(ce(e,t,l),Zl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=_e(),l=jn(n);l.tag=2,e!=null&&(l.callback=e),e=wn(t,l,n),e!==null&&(ce(e,t,n),Zl(e,t,n))}};function Qd(t,e,n,l,r,o,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,o,p):e.prototype&&e.prototype.isPureReactComponent?!Hl(n,l)||!Hl(r,o):!0}function Yd(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Ps.enqueueReplaceState(e,e.state,null)}function ya(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Gd(t){Ii(t)}function Kd(t){console.error(t)}function Xd(t){Ii(t)}function Ou(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Pd(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Vs(t,e,n){return n=jn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ou(t,e)},n}function Vd(t){return t=jn(t),t.tag=3,t}function Zd(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=l.value;t.payload=function(){return r(o)},t.callback=function(){Pd(e,n,l)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){Pd(e,n,l),typeof r!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function Kv(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Va(e,n,r,!0),n=ve.current,n!==null){switch(n.tag){case 31:case 13:return we===null?Lu():n.alternate===null&&Nt===0&&(Nt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===ou?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),go(t,l,r)),!1;case 22:return n.flags|=65536,l===ou?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),go(t,l,r)),!1}throw Error(s(435,n.tag))}return go(t,l,r),Lu(),!1}if(mt)return e=ve.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==fs&&(t=Error(s(422),{cause:l}),Gl(Ae(t,n)))):(l!==fs&&(e=Error(s(423),{cause:l}),Gl(Ae(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=Ae(l,n),r=Vs(t.stateNode,l,r),Os(t,r),Nt!==4&&(Nt=2)),!1;var o=Error(s(520),{cause:l});if(o=Ae(o,n),ri===null?ri=[o]:ri.push(o),Nt!==4&&(Nt=2),e===null)return!0;l=Ae(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=Vs(n.stateNode,l,t),Os(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Bn===null||!Bn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Vd(r),Zd(r,t,n,l),Os(n,r),!1}n=n.return}while(n!==null);return!1}var Zs=Error(s(461)),Pt=!1;function It(t,e,n,l){e.child=t===null?$f(e,null,n,l):pa(e,t.child,n,l)}function Jd(t,e,n,l,r){n=n.render;var o=e.ref;if("ref"in l){var p={};for(var v in l)v!=="ref"&&(p[v]=l[v])}else p=l;return ca(e),l=As(t,e,n,p,o,r),v=Cs(),t!==null&&!Pt?(zs(t,e,r),sn(t,e,r)):(mt&&v&&os(e),e.flags|=1,It(t,e,l,r),e.child)}function Fd(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!us(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,kd(t,e,o,l,r)):(t=au(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!eo(t,r)){var p=o.memoizedProps;if(n=n.compare,n=n!==null?n:Hl,n(p,l)&&t.ref===e.ref)return sn(t,e,r)}return e.flags|=1,t=en(o,l),t.ref=e.ref,t.return=e,e.child=t}function kd(t,e,n,l,r){if(t!==null){var o=t.memoizedProps;if(Hl(o,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=o,eo(t,r))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,sn(t,e,r)}return Js(t,e,n,l,r)}function $d(t,e,n,l){var r=l.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~o}else l=0,e.child=null;return Wd(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ru(e,o!==null?o.cachePool:null),o!==null?td(e,o):Es(),ed(e);else return l=e.lanes=536870912,Wd(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(ru(e,o.cachePool),td(e,o),Ln(),e.memoizedState=null):(t!==null&&ru(e,null),Es(),Ln());return It(t,e,r,n),e.child}function ti(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Wd(t,e,n,l,r){var o=gs();return o=o===null?null:{parent:Kt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&ru(e,null),Es(),ed(e),t!==null&&Va(t,e,l,!0),e.childLanes=r,null}function xu(t,e){return e=Tu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Id(t,e,n){return pa(e,t.child,null,n),t=xu(e,e.pendingProps),t.flags|=2,ge(e),e.memoizedState=null,t}function Xv(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(mt){if(l.mode==="hidden")return t=xu(e,l),e.lanes=536870912,ti(null,t);if(Ms(e),(t=jt)?(t=fp(t,je),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Mn!==null?{id:Xe,overflow:Pe}:null,retryLane:536870912,hydrationErrors:null},n=Nf(t),n.return=e,e.child=n,$t=e,jt=null)):t=null,t===null)throw An(e);return e.lanes=536870912,null}return xu(e,l)}var o=t.memoizedState;if(o!==null){var p=o.dehydrated;if(Ms(e),r)if(e.flags&256)e.flags&=-257,e=Id(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(Pt||Va(t,e,n,!1),r=(n&t.childLanes)!==0,Pt||r){if(l=zt,l!==null&&(p=Gc(l,n),p!==0&&p!==o.retryLane))throw o.retryLane=p,ua(t,p),ce(l,t,p),Zs;Lu(),e=Id(t,e,n)}else t=o.treeContext,jt=De(p.nextSibling),$t=e,mt=!0,Rn=null,je=!1,t!==null&&Hf(e,t),e=xu(e,l),e.flags|=4096;return e}return t=en(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Eu(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Js(t,e,n,l,r){return ca(e),n=As(t,e,n,l,void 0,r),l=Cs(),t!==null&&!Pt?(zs(t,e,r),sn(t,e,r)):(mt&&l&&os(e),e.flags|=1,It(t,e,n,r),e.child)}function th(t,e,n,l,r,o){return ca(e),e.updateQueue=null,n=ad(e,l,n,r),nd(t),l=Cs(),t!==null&&!Pt?(zs(t,e,o),sn(t,e,o)):(mt&&l&&os(e),e.flags|=1,It(t,e,n,o),e.child)}function eh(t,e,n,l,r){if(ca(e),e.stateNode===null){var o=Ga,p=n.contextType;typeof p=="object"&&p!==null&&(o=Wt(p)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ps,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},bs(e),p=n.contextType,o.context=typeof p=="object"&&p!==null?Wt(p):Ga,o.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Xs(e,n,p,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(p=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),p!==o.state&&Ps.enqueueReplaceState(o,o.state,null),Fl(e,l,o,r),Jl(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var v=e.memoizedProps,_=ya(n,v);o.props=_;var R=o.context,D=n.contextType;p=Ga,typeof D=="object"&&D!==null&&(p=Wt(D));var N=n.getDerivedStateFromProps;D=typeof N=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,D||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||R!==p)&&Yd(e,o,l,p),zn=!1;var C=e.memoizedState;o.state=C,Fl(e,l,o,r),Jl(),R=e.memoizedState,v||C!==R||zn?(typeof N=="function"&&(Xs(e,n,N,l),R=e.memoizedState),(_=zn||Qd(e,n,_,l,C,R,p))?(D||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=R),o.props=l,o.state=R,o.context=p,l=_):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,_s(t,e),p=e.memoizedProps,D=ya(n,p),o.props=D,N=e.pendingProps,C=o.context,R=n.contextType,_=Ga,typeof R=="object"&&R!==null&&(_=Wt(R)),v=n.getDerivedStateFromProps,(R=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(p!==N||C!==_)&&Yd(e,o,l,_),zn=!1,C=e.memoizedState,o.state=C,Fl(e,l,o,r),Jl();var j=e.memoizedState;p!==N||C!==j||zn||t!==null&&t.dependencies!==null&&iu(t.dependencies)?(typeof v=="function"&&(Xs(e,n,v,l),j=e.memoizedState),(D=zn||Qd(e,n,D,l,C,j,_)||t!==null&&t.dependencies!==null&&iu(t.dependencies))?(R||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,j,_),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,j,_)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||p===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=j),o.props=l,o.state=j,o.context=_,l=D):(typeof o.componentDidUpdate!="function"||p===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,Eu(t,e),l=(e.flags&128)!==0,o||l?(o=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&l?(e.child=pa(e,t.child,null,r),e.child=pa(e,null,n,r)):It(t,e,n,r),e.memoizedState=o.state,t=e.child):t=sn(t,e,r),t}function nh(t,e,n,l){return sa(),e.flags|=256,It(t,e,n,l),e.child}var Fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ks(t){return{baseLanes:t,cachePool:Pf()}}function $s(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=be),t}function ah(t,e,n){var l=e.pendingProps,r=!1,o=(e.flags&128)!==0,p;if((p=o)||(p=t!==null&&t.memoizedState===null?!1:(Ht.current&2)!==0),p&&(r=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(mt){if(r?Dn(e):Ln(),(t=jt)?(t=fp(t,je),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Mn!==null?{id:Xe,overflow:Pe}:null,retryLane:536870912,hydrationErrors:null},n=Nf(t),n.return=e,e.child=n,$t=e,jt=null)):t=null,t===null)throw An(e);return Lo(t)?e.lanes=32:e.lanes=536870912,null}var v=l.children;return l=l.fallback,r?(Ln(),r=e.mode,v=Tu({mode:"hidden",children:v},r),l=ra(l,r,n,null),v.return=e,l.return=e,v.sibling=l,e.child=v,l=e.child,l.memoizedState=ks(n),l.childLanes=$s(t,p,n),e.memoizedState=Fs,ti(null,l)):(Dn(e),Ws(e,v))}var _=t.memoizedState;if(_!==null&&(v=_.dehydrated,v!==null)){if(o)e.flags&256?(Dn(e),e.flags&=-257,e=Is(t,e,n)):e.memoizedState!==null?(Ln(),e.child=t.child,e.flags|=128,e=null):(Ln(),v=l.fallback,r=e.mode,l=Tu({mode:"visible",children:l.children},r),v=ra(v,r,n,null),v.flags|=2,l.return=e,v.return=e,l.sibling=v,e.child=l,pa(e,t.child,null,n),l=e.child,l.memoizedState=ks(n),l.childLanes=$s(t,p,n),e.memoizedState=Fs,e=ti(null,l));else if(Dn(e),Lo(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var R=p.dgst;p=R,l=Error(s(419)),l.stack="",l.digest=p,Gl({value:l,source:null,stack:null}),e=Is(t,e,n)}else if(Pt||Va(t,e,n,!1),p=(n&t.childLanes)!==0,Pt||p){if(p=zt,p!==null&&(l=Gc(p,n),l!==0&&l!==_.retryLane))throw _.retryLane=l,ua(t,l),ce(p,t,l),Zs;Do(v)||Lu(),e=Is(t,e,n)}else Do(v)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,jt=De(v.nextSibling),$t=e,mt=!0,Rn=null,je=!1,t!==null&&Hf(e,t),e=Ws(e,l.children),e.flags|=4096);return e}return r?(Ln(),v=l.fallback,r=e.mode,_=t.child,R=_.sibling,l=en(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,R!==null?v=en(R,v):(v=ra(v,r,n,null),v.flags|=2),v.return=e,l.return=e,l.sibling=v,e.child=l,ti(null,l),l=e.child,v=t.child.memoizedState,v===null?v=ks(n):(r=v.cachePool,r!==null?(_=Kt._currentValue,r=r.parent!==_?{parent:_,pool:_}:r):r=Pf(),v={baseLanes:v.baseLanes|n,cachePool:r}),l.memoizedState=v,l.childLanes=$s(t,p,n),e.memoizedState=Fs,ti(t.child,l)):(Dn(e),n=t.child,t=n.sibling,n=en(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=n,e.memoizedState=null,n)}function Ws(t,e){return e=Tu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Tu(t,e){return t=ye(22,t,null,e),t.lanes=0,t}function Is(t,e,n){return pa(e,t.child,null,n),t=Ws(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function lh(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),ps(t.return,e,n)}function to(t,e,n,l,r,o){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:o}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=n,p.tailMode=r,p.treeForkCount=o)}function ih(t,e,n){var l=e.pendingProps,r=l.revealOrder,o=l.tail;l=l.children;var p=Ht.current,v=(p&2)!==0;if(v?(p=p&1|2,e.flags|=128):p&=1,V(Ht,p),It(t,e,l,n),l=mt?Yl:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&lh(t,n,e);else if(t.tag===19)lh(t,n,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(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&hu(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),to(e,!1,r,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&hu(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}to(e,!0,n,null,o,l);break;case"together":to(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Va(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,n=en(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=en(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function eo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&iu(t)))}function Pv(t,e,n){switch(e.tag){case 3:Gt(e,e.stateNode.containerInfo),Cn(e,Kt,t.memoizedState.cache),sa();break;case 27:case 5:ke(e);break;case 4:Gt(e,e.stateNode.containerInfo);break;case 10:Cn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ms(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Dn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?ah(t,e,n):(Dn(e),t=sn(t,e,n),t!==null?t.sibling:null);Dn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Va(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return ih(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),V(Ht,Ht.current),l)break;return null;case 22:return e.lanes=0,$d(t,e,n,e.pendingProps);case 24:Cn(e,Kt,t.memoizedState.cache)}return sn(t,e,n)}function uh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!eo(t,n)&&(e.flags&128)===0)return Pt=!1,Pv(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,mt&&(e.flags&1048576)!==0&&Bf(e,Yl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=da(e.elementType),e.type=t,typeof t=="function")us(t)?(l=ya(t,l),e.tag=1,e=eh(null,e,t,l,n)):(e.tag=0,e=Js(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===K){e.tag=11,e=Jd(null,e,t,l,n);break t}else if(r===H){e.tag=14,e=Fd(null,e,t,l,n);break t}}throw e=Bt(t)||t,Error(s(306,e,""))}}return e;case 0:return Js(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=ya(l,e.pendingProps),eh(t,e,l,r,n);case 3:t:{if(Gt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var o=e.memoizedState;r=o.element,_s(t,e),Fl(e,l,null,n);var p=e.memoizedState;if(l=p.cache,Cn(e,Kt,l),l!==o.cache&&ms(e,[Kt],n,!0),Jl(),l=p.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=nh(t,e,l,n);break t}else if(l!==r){r=Ae(Error(s(424)),e),Gl(r),e=nh(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,jt=De(t.firstChild),$t=e,mt=!0,Rn=null,je=!0,n=$f(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sa(),l===r){e=sn(t,e,n);break t}It(t,e,l,n)}e=e.child}return e;case 26:return Eu(t,e),t===null?(n=vp(e.type,null,e.pendingProps,null))?e.memoizedState=n:mt||(n=e.type,t=e.pendingProps,l=Yu(lt.current).createElement(n),l[kt]=e,l[le]=t,te(l,n,t),Jt(l),e.stateNode=l):e.memoizedState=vp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ke(e),t===null&&mt&&(l=e.stateNode=pp(e.type,e.pendingProps,lt.current),$t=e,je=!0,r=jt,Gn(e.type)?(Uo=r,jt=De(l.firstChild)):jt=r),It(t,e,e.pendingProps.children,n),Eu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&mt&&((r=l=jt)&&(l=_0(l,e.type,e.pendingProps,je),l!==null?(e.stateNode=l,$t=e,jt=De(l.firstChild),je=!1,r=!0):r=!1),r||An(e)),ke(e),r=e.type,o=e.pendingProps,p=t!==null?t.memoizedProps:null,l=o.children,zo(r,o)?l=null:p!==null&&zo(r,p)&&(e.flags|=32),e.memoizedState!==null&&(r=As(t,e,Nv,null,null,n),mi._currentValue=r),Eu(t,e),It(t,e,l,n),e.child;case 6:return t===null&&mt&&((t=n=jt)&&(n=O0(n,e.pendingProps,je),n!==null?(e.stateNode=n,$t=e,jt=null,t=!0):t=!1),t||An(e)),null;case 13:return ah(t,e,n);case 4:return Gt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=pa(e,null,l,n):It(t,e,l,n),e.child;case 11:return Jd(t,e,e.type,e.pendingProps,n);case 7:return It(t,e,e.pendingProps,n),e.child;case 8:return It(t,e,e.pendingProps.children,n),e.child;case 12:return It(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Cn(e,e.type,l.value),It(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,ca(e),r=Wt(r),l=l(r),e.flags|=1,It(t,e,l,n),e.child;case 14:return Fd(t,e,e.type,e.pendingProps,n);case 15:return kd(t,e,e.type,e.pendingProps,n);case 19:return ih(t,e,n);case 31:return Xv(t,e,n);case 22:return $d(t,e,n,e.pendingProps);case 24:return ca(e),l=Wt(Kt),t===null?(r=gs(),r===null&&(r=zt,o=ys(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},bs(e),Cn(e,Kt,r)):((t.lanes&n)!==0&&(_s(t,e),Fl(e,null,null,n),Jl()),r=t.memoizedState,o=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Cn(e,Kt,l)):(l=o.cache,Cn(e,Kt,l),l!==r.cache&&ms(e,[Kt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function on(t){t.flags|=4}function no(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(Dh())t.flags|=8192;else throw ha=ou,Ss}else t.flags&=-16777217}function rh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Op(e))if(Dh())t.flags|=8192;else throw ha=ou,Ss}function Mu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Hc():536870912,t.lanes|=e,ll|=e)}function ei(t,e){if(!mt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function wt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function Vv(t,e,n){var l=e.pendingProps;switch(cs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(e),null;case 1:return wt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ln(Kt),Tt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Pa(e)?on(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ds())),wt(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(on(e),o!==null?(wt(e),rh(e,o)):(wt(e),no(e,r,null,l,n))):o?o!==t.memoizedState?(on(e),wt(e),rh(e,o)):(wt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&on(e),wt(e),no(e,r,t,l,n)),null;case 27:if(bn(e),n=lt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&on(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return wt(e),null}t=Z.current,Pa(e)?Qf(e):(t=pp(r,l,n),e.stateNode=t,on(e))}return wt(e),null;case 5:if(bn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&on(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return wt(e),null}if(o=Z.current,Pa(e))Qf(e);else{var p=Yu(lt.current);switch(o){case 1:o=p.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=p.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=p.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=p.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=p.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?p.createElement(r,{is:l.is}):p.createElement(r)}}o[kt]=e,o[le]=l;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)o.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=o;t:switch(te(o,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&on(e)}}return wt(e),no(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&on(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(s(166));if(t=lt.current,Pa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=$t,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ap(t.nodeValue,n)),t||An(e,!0)}else t=Yu(t).createTextNode(l),t[kt]=e,e.stateNode=t}return wt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Pa(e),n!==null){if(t===null){if(!l)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[kt]=e}else sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;wt(e),t=!1}else n=ds(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ge(e),e):(ge(e),null);if((e.flags&128)!==0)throw Error(s(558))}return wt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Pa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(s(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[kt]=e}else sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;wt(e),r=!1}else r=ds(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(ge(e),e):(ge(e),null)}return ge(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Mu(e,e.updateQueue),wt(e),null);case 4:return Tt(),t===null&&To(e.stateNode.containerInfo),wt(e),null;case 10:return ln(e.type),wt(e),null;case 19:if(q(Ht),l=e.memoizedState,l===null)return wt(e),null;if(r=(e.flags&128)!==0,o=l.rendering,o===null)if(r)ei(l,!1);else{if(Nt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=hu(t),o!==null){for(e.flags|=128,ei(l,!1),t=o.updateQueue,e.updateQueue=t,Mu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Uf(n,t),n=n.sibling;return V(Ht,Ht.current&1|2),mt&&nn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&>()>ju&&(e.flags|=128,r=!0,ei(l,!1),e.lanes=4194304)}else{if(!r)if(t=hu(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Mu(e,t),ei(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!mt)return wt(e),null}else 2*gt()-l.renderingStartTime>ju&&n!==536870912&&(e.flags|=128,r=!0,ei(l,!1),e.lanes=4194304);l.isBackwards?(o.sibling=e.child,e.child=o):(t=l.last,t!==null?t.sibling=o:e.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=gt(),t.sibling=null,n=Ht.current,V(Ht,r?n&1|2:n&1),mt&&nn(e,l.treeForkCount),t):(wt(e),null);case 22:case 23:return ge(e),Ts(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(wt(e),e.subtreeFlags&6&&(e.flags|=8192)):wt(e),n=e.updateQueue,n!==null&&Mu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&q(fa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ln(Kt),wt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Zv(t,e){switch(cs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ln(Kt),Tt(),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(ge(e),e.alternate===null)throw Error(s(340));sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ge(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Ht),null;case 4:return Tt(),null;case 10:return ln(e.type),null;case 22:case 23:return ge(e),Ts(),t!==null&&q(fa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ln(Kt),null;case 25:return null;default:return null}}function sh(t,e){switch(cs(e),e.tag){case 3:ln(Kt),Tt();break;case 26:case 27:case 5:bn(e);break;case 4:Tt();break;case 31:e.memoizedState!==null&&ge(e);break;case 13:ge(e);break;case 19:q(Ht);break;case 10:ln(e.type);break;case 22:case 23:ge(e),Ts(),t!==null&&q(fa);break;case 24:ln(Kt)}}function ni(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var o=n.create,p=n.inst;l=o(),p.destroy=l}n=n.next}while(n!==r)}}catch(v){Ot(e,e.return,v)}}function Un(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&t)===t){var p=l.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,r=e;var _=n,R=v;try{R()}catch(D){Ot(r,_,D)}}}l=l.next}while(l!==o)}}catch(D){Ot(e,e.return,D)}}function oh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{If(e,n)}catch(l){Ot(t,t.return,l)}}}function ch(t,e,n){n.props=ya(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ot(t,e,l)}}function ai(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Ot(t,e,r)}}function Ve(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Ot(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Ot(t,e,r)}else n.current=null}function fh(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Ot(t,t.return,r)}}function ao(t,e,n){try{var l=t.stateNode;m0(l,t.type,n,e),l[le]=e}catch(r){Ot(t,t.return,r)}}function dh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Gn(t.type)||t.tag===4}function lo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||dh(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&&Gn(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 io(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ie));else if(l!==4&&(l===27&&Gn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(io(t,e,n),t=t.sibling;t!==null;)io(t,e,n),t=t.sibling}function Ru(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Gn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ru(t,e,n),t=t.sibling;t!==null;)Ru(t,e,n),t=t.sibling}function hh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);te(e,l,n),e[kt]=t,e[le]=n}catch(o){Ot(t,t.return,o)}}var cn=!1,Vt=!1,uo=!1,ph=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function Jv(t,e){if(t=t.containerInfo,Ao=Ju,t=Mf(t),Ir(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var p=0,v=-1,_=-1,R=0,D=0,N=t,C=null;e:for(;;){for(var j;N!==n||r!==0&&N.nodeType!==3||(v=p+r),N!==o||l!==0&&N.nodeType!==3||(_=p+l),N.nodeType===3&&(p+=N.nodeValue.length),(j=N.firstChild)!==null;)C=N,N=j;for(;;){if(N===t)break e;if(C===n&&++R===r&&(v=p),C===o&&++D===l&&(_=p),(j=N.nextSibling)!==null)break;N=C,C=N.parentNode}N=j}n=v===-1||_===-1?null:{start:v,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(Co={focusedElem:t,selectionRange:n},Ju=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,o=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(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,r=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var J=ya(n.type,r);t=l.getSnapshotBeforeUpdate(J,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(I){Ot(n,n.return,I)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)wo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wo(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(s(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function mh(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:dn(t,n),l&4&&ni(5,n);break;case 1:if(dn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(p){Ot(n,n.return,p)}else{var r=ya(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){Ot(n,n.return,p)}}l&64&&oh(n),l&512&&ai(n,n.return);break;case 3:if(dn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{If(t,e)}catch(p){Ot(n,n.return,p)}}break;case 27:e===null&&l&4&&hh(n);case 26:case 5:dn(t,n),e===null&&l&4&&fh(n),l&512&&ai(n,n.return);break;case 12:dn(t,n);break;case 31:dn(t,n),l&4&&gh(t,n);break;case 13:dn(t,n),l&4&&Sh(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=a0.bind(null,n),x0(t,n))));break;case 22:if(l=n.memoizedState!==null||cn,!l){e=e!==null&&e.memoizedState!==null||Vt,r=cn;var o=Vt;cn=l,(Vt=e)&&!o?hn(t,n,(n.subtreeFlags&8772)!==0):dn(t,n),cn=r,Vt=o}break;case 30:break;default:dn(t,n)}}function yh(t){var e=t.alternate;e!==null&&(t.alternate=null,yh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Nr(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 Dt=null,ue=!1;function fn(t,e,n){for(n=n.child;n!==null;)vh(t,e,n),n=n.sibling}function vh(t,e,n){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 26:Vt||Ve(n,e),fn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Vt||Ve(n,e);var l=Dt,r=ue;Gn(n.type)&&(Dt=n.stateNode,ue=!1),fn(t,e,n),di(n.stateNode),Dt=l,ue=r;break;case 5:Vt||Ve(n,e);case 6:if(l=Dt,r=ue,Dt=null,fn(t,e,n),Dt=l,ue=r,Dt!==null)if(ue)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(n.stateNode)}catch(o){Ot(n,e,o)}else try{Dt.removeChild(n.stateNode)}catch(o){Ot(n,e,o)}break;case 18:Dt!==null&&(ue?(t=Dt,op(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),dl(t)):op(Dt,n.stateNode));break;case 4:l=Dt,r=ue,Dt=n.stateNode.containerInfo,ue=!0,fn(t,e,n),Dt=l,ue=r;break;case 0:case 11:case 14:case 15:Un(2,n,e),Vt||Un(4,n,e),fn(t,e,n);break;case 1:Vt||(Ve(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&ch(n,e,l)),fn(t,e,n);break;case 21:fn(t,e,n);break;case 22:Vt=(l=Vt)||n.memoizedState!==null,fn(t,e,n),Vt=l;break;default:fn(t,e,n)}}function gh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{dl(t)}catch(n){Ot(e,e.return,n)}}}function Sh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{dl(t)}catch(n){Ot(e,e.return,n)}}function Fv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ph),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ph),e;default:throw Error(s(435,t.tag))}}function Au(t,e){var n=Fv(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=l0.bind(null,t,l);l.then(r,r)}})}function re(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],o=t,p=e,v=p;t:for(;v!==null;){switch(v.tag){case 27:if(Gn(v.type)){Dt=v.stateNode,ue=!1;break t}break;case 5:Dt=v.stateNode,ue=!1;break t;case 3:case 4:Dt=v.stateNode.containerInfo,ue=!0;break t}v=v.return}if(Dt===null)throw Error(s(160));vh(o,p,r),Dt=null,ue=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)bh(e,t),e=e.sibling}var He=null;function bh(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),se(t),l&4&&(Un(3,t,t.return),ni(3,t),Un(5,t,t.return));break;case 1:re(e,t),se(t),l&512&&(Vt||n===null||Ve(n,n.return)),l&64&&cn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=He;if(re(e,t),se(t),l&512&&(Vt||n===null||Ve(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":o=r.getElementsByTagName("title")[0],(!o||o[zl]||o[kt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(l),r.head.insertBefore(o,r.querySelector("head > title"))),te(o,l,n),o[kt]=t,Jt(o),l=o;break t;case"link":var p=bp("link","href",r).get(l+(n.href||""));if(p){for(var v=0;v<p.length;v++)if(o=p[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(v,1);break e}}o=r.createElement(l),te(o,l,n),r.head.appendChild(o);break;case"meta":if(p=bp("meta","content",r).get(l+(n.content||""))){for(v=0;v<p.length;v++)if(o=p[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(v,1);break e}}o=r.createElement(l),te(o,l,n),r.head.appendChild(o);break;default:throw Error(s(468,l))}o[kt]=t,Jt(o),l=o}t.stateNode=l}else _p(r,t.type,t.stateNode);else t.stateNode=Sp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?_p(r,t.type,t.stateNode):Sp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ao(t,t.memoizedProps,n.memoizedProps)}break;case 27:re(e,t),se(t),l&512&&(Vt||n===null||Ve(n,n.return)),n!==null&&l&4&&ao(t,t.memoizedProps,n.memoizedProps);break;case 5:if(re(e,t),se(t),l&512&&(Vt||n===null||Ve(n,n.return)),t.flags&32){r=t.stateNode;try{Ua(r,"")}catch(J){Ot(t,t.return,J)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,ao(t,r,n!==null?n.memoizedProps:r)),l&1024&&(uo=!0);break;case 6:if(re(e,t),se(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(J){Ot(t,t.return,J)}}break;case 3:if(Xu=null,r=He,He=Gu(e.containerInfo),re(e,t),He=r,se(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{dl(e.containerInfo)}catch(J){Ot(t,t.return,J)}uo&&(uo=!1,_h(t));break;case 4:l=He,He=Gu(t.stateNode.containerInfo),re(e,t),se(t),He=l;break;case 12:re(e,t),se(t);break;case 31:re(e,t),se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Au(t,l)));break;case 13:re(e,t),se(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(zu=gt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Au(t,l)));break;case 22:r=t.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,R=cn,D=Vt;if(cn=R||r,Vt=D||_,re(e,t),Vt=D,cn=R,se(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||_||cn||Vt||va(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){_=n=e;try{if(o=_.stateNode,r)p=o.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=_.stateNode;var N=_.memoizedProps.style,C=N!=null&&N.hasOwnProperty("display")?N.display:null;v.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(J){Ot(_,_.return,J)}}}else if(e.tag===6){if(n===null){_=e;try{_.stateNode.nodeValue=r?"":_.memoizedProps}catch(J){Ot(_,_.return,J)}}}else if(e.tag===18){if(n===null){_=e;try{var j=_.stateNode;r?cp(j,!0):cp(_.stateNode,!1)}catch(J){Ot(_,_.return,J)}}}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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Au(t,n))));break;case 19:re(e,t),se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Au(t,l)));break;case 30:break;case 21:break;default:re(e,t),se(t)}}function se(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(dh(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,o=lo(t);Ru(t,o,r);break;case 5:var p=n.stateNode;n.flags&32&&(Ua(p,""),n.flags&=-33);var v=lo(t);Ru(t,v,p);break;case 3:case 4:var _=n.stateNode.containerInfo,R=lo(t);io(t,R,_);break;default:throw Error(s(161))}}catch(D){Ot(t,t.return,D)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function _h(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;_h(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)mh(t,e.alternate,e),e=e.sibling}function va(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Un(4,e,e.return),va(e);break;case 1:Ve(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&ch(e,e.return,n),va(e);break;case 27:di(e.stateNode);case 26:case 5:Ve(e,e.return),va(e);break;case 22:e.memoizedState===null&&va(e);break;case 30:va(e);break;default:va(e)}t=t.sibling}}function hn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,o=e,p=o.flags;switch(o.tag){case 0:case 11:case 15:hn(r,o,n),ni(4,o);break;case 1:if(hn(r,o,n),l=o,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(R){Ot(l,l.return,R)}if(l=o,r=l.updateQueue,r!==null){var v=l.stateNode;try{var _=r.shared.hiddenCallbacks;if(_!==null)for(r.shared.hiddenCallbacks=null,r=0;r<_.length;r++)Wf(_[r],v)}catch(R){Ot(l,l.return,R)}}n&&p&64&&oh(o),ai(o,o.return);break;case 27:hh(o);case 26:case 5:hn(r,o,n),n&&l===null&&p&4&&fh(o),ai(o,o.return);break;case 12:hn(r,o,n);break;case 31:hn(r,o,n),n&&p&4&&gh(r,o);break;case 13:hn(r,o,n),n&&p&4&&Sh(r,o);break;case 22:o.memoizedState===null&&hn(r,o,n),ai(o,o.return);break;case 30:break;default:hn(r,o,n)}e=e.sibling}}function ro(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Kl(n))}function so(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Kl(t))}function Qe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Oh(t,e,n,l),e=e.sibling}function Oh(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Qe(t,e,n,l),r&2048&&ni(9,e);break;case 1:Qe(t,e,n,l);break;case 3:Qe(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Kl(t)));break;case 12:if(r&2048){Qe(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,p=o.id,v=o.onPostCommit;typeof v=="function"&&v(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Ot(e,e.return,_)}}else Qe(t,e,n,l);break;case 31:Qe(t,e,n,l);break;case 13:Qe(t,e,n,l);break;case 23:break;case 22:o=e.stateNode,p=e.alternate,e.memoizedState!==null?o._visibility&2?Qe(t,e,n,l):li(t,e):o._visibility&2?Qe(t,e,n,l):(o._visibility|=2,el(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&ro(p,e);break;case 24:Qe(t,e,n,l),r&2048&&so(e.alternate,e);break;default:Qe(t,e,n,l)}}function el(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,p=e,v=n,_=l,R=p.flags;switch(p.tag){case 0:case 11:case 15:el(o,p,v,_,r),ni(8,p);break;case 23:break;case 22:var D=p.stateNode;p.memoizedState!==null?D._visibility&2?el(o,p,v,_,r):li(o,p):(D._visibility|=2,el(o,p,v,_,r)),r&&R&2048&&ro(p.alternate,p);break;case 24:el(o,p,v,_,r),r&&R&2048&&so(p.alternate,p);break;default:el(o,p,v,_,r)}e=e.sibling}}function li(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:li(n,l),r&2048&&ro(l.alternate,l);break;case 24:li(n,l),r&2048&&so(l.alternate,l);break;default:li(n,l)}e=e.sibling}}var ii=8192;function nl(t,e,n){if(t.subtreeFlags&ii)for(t=t.child;t!==null;)xh(t,e,n),t=t.sibling}function xh(t,e,n){switch(t.tag){case 26:nl(t,e,n),t.flags&ii&&t.memoizedState!==null&&U0(n,He,t.memoizedState,t.memoizedProps);break;case 5:nl(t,e,n);break;case 3:case 4:var l=He;He=Gu(t.stateNode.containerInfo),nl(t,e,n),He=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ii,ii=16777216,nl(t,e,n),ii=l):nl(t,e,n));break;default:nl(t,e,n)}}function Eh(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 ui(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ft=l,Mh(l,t)}Eh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(t),t=t.sibling}function Th(t){switch(t.tag){case 0:case 11:case 15:ui(t),t.flags&2048&&Un(9,t,t.return);break;case 3:ui(t);break;case 12:ui(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Cu(t)):ui(t);break;default:ui(t)}}function Cu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ft=l,Mh(l,t)}Eh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Un(8,e,e.return),Cu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Cu(e));break;default:Cu(e)}t=t.sibling}}function Mh(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Un(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Kl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ft=l;else t:for(n=t;Ft!==null;){l=Ft;var r=l.sibling,o=l.return;if(yh(l),l===n){Ft=null;break t}if(r!==null){r.return=o,Ft=r;break t}Ft=o}}}var kv={getCacheForType:function(t){var e=Wt(Kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(Kt).controller.signal}},$v=typeof WeakMap=="function"?WeakMap:Map,St=0,zt=null,ct=null,dt=0,_t=0,Se=null,Nn=!1,al=!1,oo=!1,pn=0,Nt=0,qn=0,ga=0,co=0,be=0,ll=0,ri=null,oe=null,fo=!1,zu=0,Rh=0,ju=1/0,wu=null,Bn=null,Zt=0,Hn=null,il=null,mn=0,ho=0,po=null,Ah=null,si=0,mo=null;function _e(){return(St&2)!==0&&dt!==0?dt&-dt:w.T!==null?_o():Kc()}function Ch(){if(be===0)if((dt&536870912)===0||mt){var t=Qi;Qi<<=1,(Qi&3932160)===0&&(Qi=262144),be=t}else be=536870912;return t=ve.current,t!==null&&(t.flags|=32),be}function ce(t,e,n){(t===zt&&(_t===2||_t===9)||t.cancelPendingCommit!==null)&&(ul(t,0),Qn(t,dt,be,!1)),Cl(t,n),((St&2)===0||t!==zt)&&(t===zt&&((St&2)===0&&(ga|=n),Nt===4&&Qn(t,dt,be,!1)),Ze(t))}function zh(t,e,n){if((St&6)!==0)throw Error(s(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Al(t,e),r=l?t0(t,e):vo(t,e,!0),o=l;do{if(r===0){al&&!l&&Qn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!Wv(n)){r=vo(t,e,!1),o=!1;continue}if(r===2){if(o=e,t.errorRecoveryDisabledLanes&o)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var v=t;r=ri;var _=v.current.memoizedState.isDehydrated;if(_&&(ul(v,p).flags|=256),p=vo(v,p,!1),p!==2){if(oo&&!_){v.errorRecoveryDisabledLanes|=o,ga|=o,r=4;break t}o=oe,oe=r,o!==null&&(oe===null?oe=o:oe.push.apply(oe,o))}r=p}if(o=!1,r!==2)continue}}if(r===1){ul(t,0),Qn(t,e,0,!0);break}t:{switch(l=t,o=r,o){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Qn(l,e,be,!Nn);break t;case 2:oe=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(r=zu+300-gt(),10<r)){if(Qn(l,e,be,!Nn),Gi(l,0,!0)!==0)break t;mn=e,l.timeoutHandle=rp(jh.bind(null,l,n,oe,wu,fo,e,be,ga,ll,Nn,o,"Throttled",-0,0),r);break t}jh(l,n,oe,wu,fo,e,be,ga,ll,Nn,o,null,-0,0)}}break}while(!0);Ze(t)}function jh(t,e,n,l,r,o,p,v,_,R,D,N,C,j){if(t.timeoutHandle=-1,N=e.subtreeFlags,N&8192||(N&16785408)===16785408){N={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},xh(e,o,N);var J=(o&62914560)===o?zu-gt():(o&4194048)===o?Rh-gt():0;if(J=N0(N,J),J!==null){mn=o,t.cancelPendingCommit=J(Hh.bind(null,t,e,o,n,l,r,p,v,_,D,N,null,C,j)),Qn(t,o,p,!R);return}}Hh(t,e,o,n,l,r,p,v,_)}function Wv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],o=r.getSnapshot;r=r.value;try{if(!me(o(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 Qn(t,e,n,l){e&=~co,e&=~ga,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var o=31-pe(r),p=1<<o;l[o]=-1,r&=~p}n!==0&&Qc(t,n,e)}function Du(){return(St&6)===0?(oi(0),!1):!0}function yo(){if(ct!==null){if(_t===0)var t=ct.return;else t=ct,an=oa=null,js(t),ka=null,Pl=0,t=ct;for(;t!==null;)sh(t.alternate,t),t=t.return;ct=null}}function ul(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,g0(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,yo(),zt=t,ct=n=en(t.current,null),dt=e,_t=0,Se=null,Nn=!1,al=Al(t,e),oo=!1,ll=be=co=ga=qn=Nt=0,oe=ri=null,fo=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-pe(l),o=1<<r;e|=t[r],l&=~o}return pn=e,tu(),n}function wh(t,e){ut=null,w.H=Il,e===Fa||e===su?(e=Jf(),_t=3):e===Ss?(e=Jf(),_t=4):_t=e===Zs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,ct===null&&(Nt=1,Ou(t,Ae(e,t.current)))}function Dh(){var t=ve.current;return t===null?!0:(dt&4194048)===dt?we===null:(dt&62914560)===dt||(dt&536870912)!==0?t===we:!1}function Lh(){var t=w.H;return w.H=Il,t===null?Il:t}function Uh(){var t=w.A;return w.A=kv,t}function Lu(){Nt=4,Nn||(dt&4194048)!==dt&&ve.current!==null||(al=!0),(qn&134217727)===0&&(ga&134217727)===0||zt===null||Qn(zt,dt,be,!1)}function vo(t,e,n){var l=St;St|=2;var r=Lh(),o=Uh();(zt!==t||dt!==e)&&(wu=null,ul(t,e)),e=!1;var p=Nt;t:do try{if(_t!==0&&ct!==null){var v=ct,_=Se;switch(_t){case 8:yo(),p=6;break t;case 3:case 2:case 9:case 6:ve.current===null&&(e=!0);var R=_t;if(_t=0,Se=null,rl(t,v,_,R),n&&al){p=0;break t}break;default:R=_t,_t=0,Se=null,rl(t,v,_,R)}}Iv(),p=Nt;break}catch(D){wh(t,D)}while(!0);return e&&t.shellSuspendCounter++,an=oa=null,St=l,w.H=r,w.A=o,ct===null&&(zt=null,dt=0,tu()),p}function Iv(){for(;ct!==null;)Nh(ct)}function t0(t,e){var n=St;St|=2;var l=Lh(),r=Uh();zt!==t||dt!==e?(wu=null,ju=gt()+500,ul(t,e)):al=Al(t,e);t:do try{if(_t!==0&&ct!==null){e=ct;var o=Se;e:switch(_t){case 1:_t=0,Se=null,rl(t,e,o,1);break;case 2:case 9:if(Vf(o)){_t=0,Se=null,qh(e);break}e=function(){_t!==2&&_t!==9||zt!==t||(_t=7),Ze(t)},o.then(e,e);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:Vf(o)?(_t=0,Se=null,qh(e)):(_t=0,Se=null,rl(t,e,o,7));break;case 5:var p=null;switch(ct.tag){case 26:p=ct.memoizedState;case 5:case 27:var v=ct;if(p?Op(p):v.stateNode.complete){_t=0,Se=null;var _=v.sibling;if(_!==null)ct=_;else{var R=v.return;R!==null?(ct=R,Uu(R)):ct=null}break e}}_t=0,Se=null,rl(t,e,o,5);break;case 6:_t=0,Se=null,rl(t,e,o,6);break;case 8:yo(),Nt=6;break t;default:throw Error(s(462))}}e0();break}catch(D){wh(t,D)}while(!0);return an=oa=null,w.H=l,w.A=r,St=n,ct!==null?0:(zt=null,dt=0,tu(),Nt)}function e0(){for(;ct!==null&&!qi();)Nh(ct)}function Nh(t){var e=uh(t.alternate,t,pn);t.memoizedProps=t.pendingProps,e===null?Uu(t):ct=e}function qh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=th(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=th(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:js(e);default:sh(n,e),e=ct=Uf(e,pn),e=uh(n,e,pn)}t.memoizedProps=t.pendingProps,e===null?Uu(t):ct=e}function rl(t,e,n,l){an=oa=null,js(e),ka=null,Pl=0;var r=e.return;try{if(Kv(t,r,e,n,dt)){Nt=1,Ou(t,Ae(n,t.current)),ct=null;return}}catch(o){if(r!==null)throw ct=r,o;Nt=1,Ou(t,Ae(n,t.current)),ct=null;return}e.flags&32768?(mt||l===1?t=!0:al||(dt&536870912)!==0?t=!1:(Nn=t=!0,(l===2||l===9||l===3||l===6)&&(l=ve.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bh(e,t)):Uu(e)}function Uu(t){var e=t;do{if((e.flags&32768)!==0){Bh(e,Nn);return}t=e.return;var n=Vv(e.alternate,e,pn);if(n!==null){ct=n;return}if(e=e.sibling,e!==null){ct=e;return}ct=e=t}while(e!==null);Nt===0&&(Nt=5)}function Bh(t,e){do{var n=Zv(t.alternate,t);if(n!==null){n.flags&=32767,ct=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ct=t;return}ct=t=n}while(t!==null);Nt=6,ct=null}function Hh(t,e,n,l,r,o,p,v,_){t.cancelPendingCommit=null;do Nu();while(Zt!==0);if((St&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(o=e.lanes|e.childLanes,o|=ls,Ly(t,n,o,p,v,_),t===zt&&(ct=zt=null,dt=0),il=e,Hn=t,mn=n,ho=o,po=r,Ah=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,i0(Bi,function(){return Xh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=w.T,w.T=null,r=P.p,P.p=2,p=St,St|=4;try{Jv(t,e,n)}finally{St=p,P.p=r,w.T=l}}Zt=1,Qh(),Yh(),Gh()}}function Qh(){if(Zt===1){Zt=0;var t=Hn,e=il,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var l=P.p;P.p=2;var r=St;St|=4;try{bh(e,t);var o=Co,p=Mf(t.containerInfo),v=o.focusedElem,_=o.selectionRange;if(p!==v&&v&&v.ownerDocument&&Tf(v.ownerDocument.documentElement,v)){if(_!==null&&Ir(v)){var R=_.start,D=_.end;if(D===void 0&&(D=R),"selectionStart"in v)v.selectionStart=R,v.selectionEnd=Math.min(D,v.value.length);else{var N=v.ownerDocument||document,C=N&&N.defaultView||window;if(C.getSelection){var j=C.getSelection(),J=v.textContent.length,I=Math.min(_.start,J),Ct=_.end===void 0?I:Math.min(_.end,J);!j.extend&&I>Ct&&(p=Ct,Ct=I,I=p);var T=Ef(v,I),x=Ef(v,Ct);if(T&&x&&(j.rangeCount!==1||j.anchorNode!==T.node||j.anchorOffset!==T.offset||j.focusNode!==x.node||j.focusOffset!==x.offset)){var M=N.createRange();M.setStart(T.node,T.offset),j.removeAllRanges(),I>Ct?(j.addRange(M),j.extend(x.node,x.offset)):(M.setEnd(x.node,x.offset),j.addRange(M))}}}}for(N=[],j=v;j=j.parentNode;)j.nodeType===1&&N.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<N.length;v++){var L=N[v];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Ju=!!Ao,Co=Ao=null}finally{St=r,P.p=l,w.T=n}}t.current=e,Zt=2}}function Yh(){if(Zt===2){Zt=0;var t=Hn,e=il,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var l=P.p;P.p=2;var r=St;St|=4;try{mh(t,e.alternate,e)}finally{St=r,P.p=l,w.T=n}}Zt=3}}function Gh(){if(Zt===4||Zt===3){Zt=0,Mt();var t=Hn,e=il,n=mn,l=Ah;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,il=Hn=null,Kh(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Bn=null),Lr(n),e=e.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(Rl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=w.T,r=P.p,P.p=2,w.T=null;try{for(var o=t.onRecoverableError,p=0;p<l.length;p++){var v=l[p];o(v.value,{componentStack:v.stack})}}finally{w.T=e,P.p=r}}(mn&3)!==0&&Nu(),Ze(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===mo?si++:(si=0,mo=t):si=0,oi(0)}}function Kh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Kl(e)))}function Nu(){return Qh(),Yh(),Gh(),Xh()}function Xh(){if(Zt!==5)return!1;var t=Hn,e=ho;ho=0;var n=Lr(mn),l=w.T,r=P.p;try{P.p=32>n?32:n,w.T=null,n=po,po=null;var o=Hn,p=mn;if(Zt=0,il=Hn=null,mn=0,(St&6)!==0)throw Error(s(331));var v=St;if(St|=4,Th(o.current),Oh(o,o.current,p,n),St=v,oi(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(Rl,o)}catch{}return!0}finally{P.p=r,w.T=l,Kh(t,e)}}function Ph(t,e,n){e=Ae(n,e),e=Vs(t.stateNode,e,2),t=wn(t,e,2),t!==null&&(Cl(t,2),Ze(t))}function Ot(t,e,n){if(t.tag===3)Ph(t,t,n);else for(;e!==null;){if(e.tag===3){Ph(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Bn===null||!Bn.has(l))){t=Ae(n,t),n=Vd(2),l=wn(e,n,2),l!==null&&(Zd(n,l,e,t),Cl(l,2),Ze(l));break}}e=e.return}}function go(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new $v;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(oo=!0,r.add(n),t=n0.bind(null,t,e,n),e.then(t,t))}function n0(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(dt&n)===n&&(Nt===4||Nt===3&&(dt&62914560)===dt&&300>gt()-zu?(St&2)===0&&ul(t,0):co|=n,ll===dt&&(ll=0)),Ze(t)}function Vh(t,e){e===0&&(e=Hc()),t=ua(t,e),t!==null&&(Cl(t,e),Ze(t))}function a0(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Vh(t,n)}function l0(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(e),Vh(t,n)}function i0(t,e){return On(t,e)}var qu=null,sl=null,So=!1,Bu=!1,bo=!1,Yn=0;function Ze(t){t!==sl&&t.next===null&&(sl===null?qu=sl=t:sl=sl.next=t),Bu=!0,So||(So=!0,r0())}function oi(t,e){if(!bo&&Bu){bo=!0;do for(var n=!1,l=qu;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var o=0;else{var p=l.suspendedLanes,v=l.pingedLanes;o=(1<<31-pe(42|t)+1)-1,o&=r&~(p&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,kh(l,o))}else o=dt,o=Gi(l,l===zt?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Al(l,o)||(n=!0,kh(l,o));l=l.next}while(n);bo=!1}}function u0(){Zh()}function Zh(){Bu=So=!1;var t=0;Yn!==0&&v0()&&(t=Yn);for(var e=gt(),n=null,l=qu;l!==null;){var r=l.next,o=Jh(l,e);o===0?(l.next=null,n===null?qu=r:n.next=r,r===null&&(sl=n)):(n=l,(t!==0||(o&3)!==0)&&(Bu=!0)),l=r}Zt!==0&&Zt!==5||oi(t),Yn!==0&&(Yn=0)}function Jh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var p=31-pe(o),v=1<<p,_=r[p];_===-1?((v&n)===0||(v&l)!==0)&&(r[p]=Dy(v,e)):_<=e&&(t.expiredLanes|=v),o&=~v}if(e=zt,n=dt,n=Gi(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(_t===2||_t===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Aa(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Al(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Aa(l),Lr(n)){case 2:case 8:n=qc;break;case 32:n=Bi;break;case 268435456:n=Bc;break;default:n=Bi}return l=Fh.bind(null,t),n=On(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Aa(l),t.callbackPriority=2,t.callbackNode=null,2}function Fh(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Nu()&&t.callbackNode!==n)return null;var l=dt;return l=Gi(t,t===zt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(zh(t,l,e),Jh(t,gt()),t.callbackNode!=null&&t.callbackNode===n?Fh.bind(null,t):null)}function kh(t,e){if(Nu())return null;zh(t,e,!0)}function r0(){S0(function(){(St&6)!==0?On(Ml,u0):Zh()})}function _o(){if(Yn===0){var t=Za;t===0&&(t=Hi,Hi<<=1,(Hi&261888)===0&&(Hi=256)),Yn=t}return Yn}function $h(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vi(""+t)}function Wh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function s0(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=$h((r[le]||null).action),p=l.submitter;p&&(e=(e=p[le]||null)?$h(e.formAction):p.getAttribute("formAction"),e!==null&&(o=e,p=null));var v=new ki("action","action",null,l,r);t.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Yn!==0){var _=p?Wh(r,p):new FormData(r);Qs(n,{pending:!0,data:_,method:r.method,action:o},null,_)}}else typeof o=="function"&&(v.preventDefault(),_=p?Wh(r,p):new FormData(r),Qs(n,{pending:!0,data:_,method:r.method,action:o},o,_))},currentTarget:r}]})}}for(var Oo=0;Oo<as.length;Oo++){var xo=as[Oo],o0=xo.toLowerCase(),c0=xo[0].toUpperCase()+xo.slice(1);Be(o0,"on"+c0)}Be(Cf,"onAnimationEnd"),Be(zf,"onAnimationIteration"),Be(jf,"onAnimationStart"),Be("dblclick","onDoubleClick"),Be("focusin","onFocus"),Be("focusout","onBlur"),Be(Mv,"onTransitionRun"),Be(Rv,"onTransitionStart"),Be(Av,"onTransitionCancel"),Be(wf,"onTransitionEnd"),Da("onMouseEnter",["mouseout","mouseover"]),Da("onMouseLeave",["mouseout","mouseover"]),Da("onPointerEnter",["pointerout","pointerover"]),Da("onPointerLeave",["pointerout","pointerover"]),na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),na("onBeforeInput",["compositionend","keypress","textInput","paste"]),na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ci="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(" "),f0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ci));function Ih(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var o=void 0;if(e)for(var p=l.length-1;0<=p;p--){var v=l[p],_=v.instance,R=v.currentTarget;if(v=v.listener,_!==o&&r.isPropagationStopped())break t;o=v,r.currentTarget=R;try{o(r)}catch(D){Ii(D)}r.currentTarget=null,o=_}else for(p=0;p<l.length;p++){if(v=l[p],_=v.instance,R=v.currentTarget,v=v.listener,_!==o&&r.isPropagationStopped())break t;o=v,r.currentTarget=R;try{o(r)}catch(D){Ii(D)}r.currentTarget=null,o=_}}}}function ft(t,e){var n=e[Ur];n===void 0&&(n=e[Ur]=new Set);var l=t+"__bubble";n.has(l)||(tp(e,t,2,!1),n.add(l))}function Eo(t,e,n){var l=0;e&&(l|=4),tp(n,t,l,e)}var Hu="_reactListening"+Math.random().toString(36).slice(2);function To(t){if(!t[Hu]){t[Hu]=!0,Vc.forEach(function(n){n!=="selectionchange"&&(f0.has(n)||Eo(n,!1,t),Eo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Hu]||(e[Hu]=!0,Eo("selectionchange",!1,e))}}function tp(t,e,n,l){switch(Cp(e)){case 2:var r=H0;break;case 8:r=Q0;break;default:r=Qo}n=r.bind(null,e,n,t),r=void 0,!Xr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Mo(t,e,n,l,r){var o=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var v=l.stateNode.containerInfo;if(v===r)break;if(p===4)for(p=l.return;p!==null;){var _=p.tag;if((_===3||_===4)&&p.stateNode.containerInfo===r)return;p=p.return}for(;v!==null;){if(p=za(v),p===null)return;if(_=p.tag,_===5||_===6||_===26||_===27){l=o=p;continue t}v=v.parentNode}}l=l.return}lf(function(){var R=o,D=Gr(n),N=[];t:{var C=Df.get(t);if(C!==void 0){var j=ki,J=t;switch(t){case"keypress":if(Ji(n)===0)break t;case"keydown":case"keyup":j=lv;break;case"focusin":J="focus",j=Jr;break;case"focusout":J="blur",j=Jr;break;case"beforeblur":case"afterblur":j=Jr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=sf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Vy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=rv;break;case Cf:case zf:case jf:j=Fy;break;case wf:j=ov;break;case"scroll":case"scrollend":j=Xy;break;case"wheel":j=fv;break;case"copy":case"cut":case"paste":j=$y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=cf;break;case"toggle":case"beforetoggle":j=hv}var I=(e&4)!==0,Ct=!I&&(t==="scroll"||t==="scrollend"),T=I?C!==null?C+"Capture":null:C;I=[];for(var x=R,M;x!==null;){var L=x;if(M=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||M===null||T===null||(L=wl(x,T),L!=null&&I.push(fi(x,L,M))),Ct)break;x=x.return}0<I.length&&(C=new j(C,J,null,n,D),N.push({event:C,listeners:I}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout",C&&n!==Yr&&(J=n.relatedTarget||n.fromElement)&&(za(J)||J[Ca]))break t;if((j||C)&&(C=D.window===D?D:(C=D.ownerDocument)?C.defaultView||C.parentWindow:window,j?(J=n.relatedTarget||n.toElement,j=R,J=J?za(J):null,J!==null&&(Ct=f(J),I=J.tag,J!==Ct||I!==5&&I!==27&&I!==6)&&(J=null)):(j=null,J=R),j!==J)){if(I=sf,L="onMouseLeave",T="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(I=cf,L="onPointerLeave",T="onPointerEnter",x="pointer"),Ct=j==null?C:jl(j),M=J==null?C:jl(J),C=new I(L,x+"leave",j,n,D),C.target=Ct,C.relatedTarget=M,L=null,za(D)===R&&(I=new I(T,x+"enter",J,n,D),I.target=M,I.relatedTarget=Ct,L=I),Ct=L,j&&J)e:{for(I=d0,T=j,x=J,M=0,L=T;L;L=I(L))M++;L=0;for(var W=x;W;W=I(W))L++;for(;0<M-L;)T=I(T),M--;for(;0<L-M;)x=I(x),L--;for(;M--;){if(T===x||x!==null&&T===x.alternate){I=T;break e}T=I(T),x=I(x)}I=null}else I=null;j!==null&&ep(N,C,j,I,!1),J!==null&&Ct!==null&&ep(N,Ct,J,I,!0)}}t:{if(C=R?jl(R):window,j=C.nodeName&&C.nodeName.toLowerCase(),j==="select"||j==="input"&&C.type==="file")var yt=gf;else if(yf(C))if(Sf)yt=xv;else{yt=_v;var F=bv}else j=C.nodeName,!j||j.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?R&&Qr(R.elementType)&&(yt=gf):yt=Ov;if(yt&&(yt=yt(t,R))){vf(N,yt,n,D);break t}F&&F(t,C,R),t==="focusout"&&R&&C.type==="number"&&R.memoizedProps.value!=null&&Hr(C,"number",C.value)}switch(F=R?jl(R):window,t){case"focusin":(yf(F)||F.contentEditable==="true")&&(Ha=F,ts=R,Ql=null);break;case"focusout":Ql=ts=Ha=null;break;case"mousedown":es=!0;break;case"contextmenu":case"mouseup":case"dragend":es=!1,Rf(N,n,D);break;case"selectionchange":if(Tv)break;case"keydown":case"keyup":Rf(N,n,D)}var st;if(kr)t:{switch(t){case"compositionstart":var ht="onCompositionStart";break t;case"compositionend":ht="onCompositionEnd";break t;case"compositionupdate":ht="onCompositionUpdate";break t}ht=void 0}else Ba?pf(t,n)&&(ht="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(ht="onCompositionStart");ht&&(ff&&n.locale!=="ko"&&(Ba||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&Ba&&(st=uf()):(Tn=D,Pr="value"in Tn?Tn.value:Tn.textContent,Ba=!0)),F=Qu(R,ht),0<F.length&&(ht=new of(ht,t,null,n,D),N.push({event:ht,listeners:F}),st?ht.data=st:(st=mf(n),st!==null&&(ht.data=st)))),(st=mv?yv(t,n):vv(t,n))&&(ht=Qu(R,"onBeforeInput"),0<ht.length&&(F=new of("onBeforeInput","beforeinput",null,n,D),N.push({event:F,listeners:ht}),F.data=st)),s0(N,t,R,n,D)}Ih(N,e)})}function fi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Qu(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=wl(t,n),r!=null&&l.unshift(fi(t,r,o)),r=wl(t,e),r!=null&&l.push(fi(t,r,o))),t.tag===3)return l;t=t.return}return[]}function d0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ep(t,e,n,l,r){for(var o=e._reactName,p=[];n!==null&&n!==l;){var v=n,_=v.alternate,R=v.stateNode;if(v=v.tag,_!==null&&_===l)break;v!==5&&v!==26&&v!==27||R===null||(_=R,r?(R=wl(n,o),R!=null&&p.unshift(fi(n,R,_))):r||(R=wl(n,o),R!=null&&p.push(fi(n,R,_)))),n=n.return}p.length!==0&&t.push({event:e,listeners:p})}var h0=/\r\n?/g,p0=/\u0000|\uFFFD/g;function np(t){return(typeof t=="string"?t:""+t).replace(h0,`
|
|
13
|
-
`).replace(p0,"")}function ap(t,e){return e=np(e),np(t)===e}function At(t,e,n,l,r,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ua(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ua(t,""+l);break;case"className":Xi(t,"class",l);break;case"tabIndex":Xi(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(t,n,l);break;case"style":nf(t,l,o);break;case"data":if(e!=="object"){Xi(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Vi(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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 o=="function"&&(n==="formAction"?(e!=="input"&&At(t,e,"name",r.name,r,null),At(t,e,"formEncType",r.formEncType,r,null),At(t,e,"formMethod",r.formMethod,r,null),At(t,e,"formTarget",r.formTarget,r,null)):(At(t,e,"encType",r.encType,r,null),At(t,e,"method",r.method,r,null),At(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Vi(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Ie);break;case"onScroll":l!=null&&ft("scroll",t);break;case"onScrollEnd":l!=null&&ft("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Vi(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":ft("beforetoggle",t),ft("toggle",t),Ki(t,"popover",l);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ki(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gy.get(n)||n,Ki(t,n,l))}}function Ro(t,e,n,l,r,o){switch(n){case"style":nf(t,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Ua(t,l):(typeof l=="number"||typeof l=="bigint")&&Ua(t,""+l);break;case"onScroll":l!=null&&ft("scroll",t);break;case"onScrollEnd":l!=null&&ft("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zc.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),o=t[le]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,r),typeof l=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Ki(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",t),ft("load",t);var l=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var p=n[o];if(p!=null)switch(o){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:At(t,e,o,p,n,null)}}r&&At(t,e,"srcSet",n.srcSet,n,null),l&&At(t,e,"src",n.src,n,null);return;case"input":ft("invalid",t);var v=o=p=r=null,_=null,R=null;for(l in n)if(n.hasOwnProperty(l)){var D=n[l];if(D!=null)switch(l){case"name":r=D;break;case"type":p=D;break;case"checked":_=D;break;case"defaultChecked":R=D;break;case"value":o=D;break;case"defaultValue":v=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,e));break;default:At(t,e,l,D,n,null)}}Wc(t,o,v,_,R,p,r,!1);return;case"select":ft("invalid",t),l=p=o=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":o=v;break;case"defaultValue":p=v;break;case"multiple":l=v;default:At(t,e,r,v,n,null)}e=o,n=p,t.multiple=!!l,e!=null?La(t,!!l,e,!1):n!=null&&La(t,!!l,n,!0);return;case"textarea":ft("invalid",t),o=r=l=null;for(p in n)if(n.hasOwnProperty(p)&&(v=n[p],v!=null))switch(p){case"value":l=v;break;case"defaultValue":r=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:At(t,e,p,v,n,null)}tf(t,l,r,o);return;case"option":for(_ in n)n.hasOwnProperty(_)&&(l=n[_],l!=null)&&(_==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":At(t,e,_,l,n,null));return;case"dialog":ft("beforetoggle",t),ft("toggle",t),ft("cancel",t),ft("close",t);break;case"iframe":case"object":ft("load",t);break;case"video":case"audio":for(l=0;l<ci.length;l++)ft(ci[l],t);break;case"image":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"embed":case"source":case"link":ft("error",t),ft("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(R in n)if(n.hasOwnProperty(R)&&(l=n[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:At(t,e,R,l,n,null)}return;default:if(Qr(e)){for(D in n)n.hasOwnProperty(D)&&(l=n[D],l!==void 0&&Ro(t,e,D,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&At(t,e,v,l,n,null))}function m0(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,p=null,v=null,_=null,R=null,D=null;for(j in n){var N=n[j];if(n.hasOwnProperty(j)&&N!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":_=N;default:l.hasOwnProperty(j)||At(t,e,j,null,l,N)}}for(var C in l){var j=l[C];if(N=n[C],l.hasOwnProperty(C)&&(j!=null||N!=null))switch(C){case"type":o=j;break;case"name":r=j;break;case"checked":R=j;break;case"defaultChecked":D=j;break;case"value":p=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,e));break;default:j!==N&&At(t,e,C,j,l,N)}}Br(t,p,v,_,R,D,o,r);return;case"select":j=p=v=C=null;for(o in n)if(_=n[o],n.hasOwnProperty(o)&&_!=null)switch(o){case"value":break;case"multiple":j=_;default:l.hasOwnProperty(o)||At(t,e,o,null,l,_)}for(r in l)if(o=l[r],_=n[r],l.hasOwnProperty(r)&&(o!=null||_!=null))switch(r){case"value":C=o;break;case"defaultValue":v=o;break;case"multiple":p=o;default:o!==_&&At(t,e,r,o,l,_)}e=v,n=p,l=j,C!=null?La(t,!!n,C,!1):!!l!=!!n&&(e!=null?La(t,!!n,e,!0):La(t,!!n,n?[]:"",!1));return;case"textarea":j=C=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:At(t,e,v,null,l,r)}for(p in l)if(r=l[p],o=n[p],l.hasOwnProperty(p)&&(r!=null||o!=null))switch(p){case"value":C=r;break;case"defaultValue":j=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&At(t,e,p,r,l,o)}Ic(t,C,j);return;case"option":for(var J in n)C=n[J],n.hasOwnProperty(J)&&C!=null&&!l.hasOwnProperty(J)&&(J==="selected"?t.selected=!1:At(t,e,J,null,l,C));for(_ in l)C=l[_],j=n[_],l.hasOwnProperty(_)&&C!==j&&(C!=null||j!=null)&&(_==="selected"?t.selected=C&&typeof C!="function"&&typeof C!="symbol":At(t,e,_,C,l,j));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 I in n)C=n[I],n.hasOwnProperty(I)&&C!=null&&!l.hasOwnProperty(I)&&At(t,e,I,null,l,C);for(R in l)if(C=l[R],j=n[R],l.hasOwnProperty(R)&&C!==j&&(C!=null||j!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(137,e));break;default:At(t,e,R,C,l,j)}return;default:if(Qr(e)){for(var Ct in n)C=n[Ct],n.hasOwnProperty(Ct)&&C!==void 0&&!l.hasOwnProperty(Ct)&&Ro(t,e,Ct,void 0,l,C);for(D in l)C=l[D],j=n[D],!l.hasOwnProperty(D)||C===j||C===void 0&&j===void 0||Ro(t,e,D,C,l,j);return}}for(var T in n)C=n[T],n.hasOwnProperty(T)&&C!=null&&!l.hasOwnProperty(T)&&At(t,e,T,null,l,C);for(N in l)C=l[N],j=n[N],!l.hasOwnProperty(N)||C===j||C==null&&j==null||At(t,e,N,C,l,j)}function lp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],o=r.transferSize,p=r.initiatorType,v=r.duration;if(o&&v&&lp(p)){for(p=0,v=r.responseEnd,l+=1;l<n.length;l++){var _=n[l],R=_.startTime;if(R>v)break;var D=_.transferSize,N=_.initiatorType;D&&lp(N)&&(_=_.responseEnd,p+=D*(_<v?1:(v-R)/(_-R)))}if(--l,e+=8*(o+p)/(r.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 Ao=null,Co=null;function Yu(t){return t.nodeType===9?t:t.ownerDocument}function ip(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 up(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 zo(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 jo=null;function v0(){var t=window.event;return t&&t.type==="popstate"?t===jo?!1:(jo=t,!0):(jo=null,!1)}var rp=typeof setTimeout=="function"?setTimeout:void 0,g0=typeof clearTimeout=="function"?clearTimeout:void 0,sp=typeof Promise=="function"?Promise:void 0,S0=typeof queueMicrotask=="function"?queueMicrotask:typeof sp<"u"?function(t){return sp.resolve(null).then(t).catch(b0)}:rp;function b0(t){setTimeout(function(){throw t})}function Gn(t){return t==="head"}function op(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),dl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")di(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,di(n);for(var o=n.firstChild;o;){var p=o.nextSibling,v=o.nodeName;o[zl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=p}}else n==="body"&&di(t.ownerDocument.body);n=r}while(n);dl(e)}function cp(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function wo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wo(n),Nr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function _0(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[zl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=De(t.nextSibling),t===null)break}return null}function O0(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=De(t.nextSibling),t===null))return null;return t}function fp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=De(t.nextSibling),t===null))return null;return t}function Do(t){return t.data==="$?"||t.data==="$~"}function Lo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function x0(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function De(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 Uo=null;function dp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return De(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function hp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function pp(t,e,n){switch(e=Yu(n),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function di(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Nr(t)}var Le=new Map,mp=new Set;function Gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=P.d;P.d={f:E0,r:T0,D:M0,C:R0,L:A0,m:C0,X:j0,S:z0,M:w0};function E0(){var t=yn.f(),e=Du();return t||e}function T0(t){var e=ja(t);e!==null&&e.tag===5&&e.type==="form"?wd(e):yn.r(t)}var ol=typeof document>"u"?null:document;function yp(t,e,n){var l=ol;if(l&&typeof e=="string"&&e){var r=Me(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),mp.has(r)||(mp.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),te(e,"link",t),Jt(e),l.head.appendChild(e)))}}function M0(t){yn.D(t),yp("dns-prefetch",t,null)}function R0(t,e){yn.C(t,e),yp("preconnect",t,e)}function A0(t,e,n){yn.L(t,e,n);var l=ol;if(l&&t&&e){var r='link[rel="preload"][as="'+Me(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Me(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Me(n.imageSizes)+'"]')):r+='[href="'+Me(t)+'"]';var o=r;switch(e){case"style":o=cl(t);break;case"script":o=fl(t)}Le.has(o)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Le.set(o,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(hi(o))||e==="script"&&l.querySelector(pi(o))||(e=l.createElement("link"),te(e,"link",t),Jt(e),l.head.appendChild(e)))}}function C0(t,e){yn.m(t,e);var n=ol;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Me(l)+'"][href="'+Me(t)+'"]',o=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=fl(t)}if(!Le.has(o)&&(t=g({rel:"modulepreload",href:t},e),Le.set(o,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(pi(o)))return}l=n.createElement("link"),te(l,"link",t),Jt(l),n.head.appendChild(l)}}}function z0(t,e,n){yn.S(t,e,n);var l=ol;if(l&&t){var r=wa(l).hoistableStyles,o=cl(t);e=e||"default";var p=r.get(o);if(!p){var v={loading:0,preload:null};if(p=l.querySelector(hi(o)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Le.get(o))&&No(t,n);var _=p=l.createElement("link");Jt(_),te(_,"link",t),_._p=new Promise(function(R,D){_.onload=R,_.onerror=D}),_.addEventListener("load",function(){v.loading|=1}),_.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ku(p,e,l)}p={type:"stylesheet",instance:p,count:1,state:v},r.set(o,p)}}}function j0(t,e){yn.X(t,e);var n=ol;if(n&&t){var l=wa(n).hoistableScripts,r=fl(t),o=l.get(r);o||(o=n.querySelector(pi(r)),o||(t=g({src:t,async:!0},e),(e=Le.get(r))&&qo(t,e),o=n.createElement("script"),Jt(o),te(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function w0(t,e){yn.M(t,e);var n=ol;if(n&&t){var l=wa(n).hoistableScripts,r=fl(t),o=l.get(r);o||(o=n.querySelector(pi(r)),o||(t=g({src:t,async:!0,type:"module"},e),(e=Le.get(r))&&qo(t,e),o=n.createElement("script"),Jt(o),te(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function vp(t,e,n,l){var r=(r=lt.current)?Gu(r):null;if(!r)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=cl(n.href),n=wa(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=cl(n.href);var o=wa(r).hoistableStyles,p=o.get(t);if(p||(r=r.ownerDocument||r,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,p),(o=r.querySelector(hi(t)))&&!o._p&&(p.instance=o,p.state.loading=5),Le.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Le.set(t,n),o||D0(r,t,n,p.state))),e&&l===null)throw Error(s(528,""));return p}if(e&&l!==null)throw Error(s(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=fl(n),n=wa(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function cl(t){return'href="'+Me(t)+'"'}function hi(t){return'link[rel="stylesheet"]['+t+"]"}function gp(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function D0(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),te(e,"link",n),Jt(e),t.head.appendChild(e))}function fl(t){return'[src="'+Me(t)+'"]'}function pi(t){return"script[async]"+t}function Sp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Me(n.href)+'"]');if(l)return e.instance=l,Jt(l),l;var r=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Jt(l),te(l,"style",r),Ku(l,n.precedence,t),e.instance=l;case"stylesheet":r=cl(n.href);var o=t.querySelector(hi(r));if(o)return e.state.loading|=4,e.instance=o,Jt(o),o;l=gp(n),(r=Le.get(r))&&No(l,r),o=(t.ownerDocument||t).createElement("link"),Jt(o);var p=o;return p._p=new Promise(function(v,_){p.onload=v,p.onerror=_}),te(o,"link",l),e.state.loading|=4,Ku(o,n.precedence,t),e.instance=o;case"script":return o=fl(n.src),(r=t.querySelector(pi(o)))?(e.instance=r,Jt(r),r):(l=n,(r=Le.get(o))&&(l=g({},n),qo(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),Jt(r),te(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Ku(l,n.precedence,t));return e.instance}function Ku(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,o=r,p=0;p<l.length;p++){var v=l[p];if(v.dataset.precedence===e)o=v;else if(o!==r)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function No(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function qo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Xu=null;function bp(t,e,n){if(Xu===null){var l=new Map,r=Xu=new Map;r.set(n,l)}else r=Xu,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var o=n[r];if(!(o[zl]||o[kt]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var p=o.getAttribute(e)||"";p=t+p;var v=l.get(p);v?v.push(o):l.set(p,[o])}}return l}function _p(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function L0(t,e,n){if(n===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 Op(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function U0(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=cl(l.href),o=e.querySelector(hi(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Pu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Jt(o);return}o=e.ownerDocument||e,l=gp(l),(r=Le.get(r))&&No(l,r),o=o.createElement("link"),Jt(o);var p=o;p._p=new Promise(function(v,_){p.onload=v,p.onerror=_}),te(o,"link",l),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Pu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Bo=0;function N0(t,e){return t.stylesheets&&t.count===0&&Zu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Zu(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&Bo===0&&(Bo=62500*y0());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Zu(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>Bo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vu=null;function Zu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vu=new Map,e.forEach(q0,t),Vu=null,Pu.call(t))}function q0(t,e){if(!(e.state.loading&4)){var n=Vu.get(t);if(n)var l=n.get(null);else{n=new Map,Vu.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var p=r[o];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),l=p)}l&&n.set(null,l)}r=e.instance,p=r.getAttribute("data-precedence"),o=n.get(p)||l,o===l&&n.set(null,r),n.set(p,r),this.count++,l=Pu.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),o?o.parentNode.insertBefore(r,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var mi={$$typeof:G,Provider:null,Consumer:null,_currentValue:et,_currentValue2:et,_threadCount:0};function B0(t,e,n,l,r,o,p,v,_){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=wr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wr(0),this.hiddenUpdates=wr(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function xp(t,e,n,l,r,o,p,v,_,R,D,N){return t=new B0(t,e,n,p,_,R,D,N,v),e=1,o===!0&&(e|=24),o=ye(3,null,null,e),t.current=o,o.stateNode=t,e=ys(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},bs(o),t}function Ep(t){return t?(t=Ga,t):Ga}function Tp(t,e,n,l,r,o){r=Ep(r),l.context===null?l.context=r:l.pendingContext=r,l=jn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=wn(t,l,e),n!==null&&(ce(n,t,e),Zl(n,t,e))}function Mp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ho(t,e){Mp(t,e),(t=t.alternate)&&Mp(t,e)}function Rp(t){if(t.tag===13||t.tag===31){var e=ua(t,67108864);e!==null&&ce(e,t,67108864),Ho(t,67108864)}}function Ap(t){if(t.tag===13||t.tag===31){var e=_e();e=Dr(e);var n=ua(t,e);n!==null&&ce(n,t,e),Ho(t,e)}}var Ju=!0;function H0(t,e,n,l){var r=w.T;w.T=null;var o=P.p;try{P.p=2,Qo(t,e,n,l)}finally{P.p=o,w.T=r}}function Q0(t,e,n,l){var r=w.T;w.T=null;var o=P.p;try{P.p=8,Qo(t,e,n,l)}finally{P.p=o,w.T=r}}function Qo(t,e,n,l){if(Ju){var r=Yo(l);if(r===null)Mo(t,e,l,Fu,n),zp(t,l);else if(G0(r,t,e,n,l))l.stopPropagation();else if(zp(t,l),e&4&&-1<Y0.indexOf(t)){for(;r!==null;){var o=ja(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var p=ea(o.pendingLanes);if(p!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var _=1<<31-pe(p);v.entanglements[1]|=_,p&=~_}Ze(o),(St&6)===0&&(ju=gt()+500,oi(0))}}break;case 31:case 13:v=ua(o,2),v!==null&&ce(v,o,2),Du(),Ho(o,2)}if(o=Yo(l),o===null&&Mo(t,e,l,Fu,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else Mo(t,e,l,null,n)}}function Yo(t){return t=Gr(t),Go(t)}var Fu=null;function Go(t){if(Fu=null,t=za(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=d(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Fu=t,null}function Cp(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(de()){case Ml:return 2;case qc:return 8;case Bi:case Ry:return 32;case Bc:return 268435456;default:return 32}default:return 32}}var Ko=!1,Kn=null,Xn=null,Pn=null,yi=new Map,vi=new Map,Vn=[],Y0="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 zp(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":yi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":vi.delete(e.pointerId)}}function gi(t,e,n,l,r,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[r]},e!==null&&(e=ja(e),e!==null&&Rp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function G0(t,e,n,l,r){switch(e){case"focusin":return Kn=gi(Kn,t,e,n,l,r),!0;case"dragenter":return Xn=gi(Xn,t,e,n,l,r),!0;case"mouseover":return Pn=gi(Pn,t,e,n,l,r),!0;case"pointerover":var o=r.pointerId;return yi.set(o,gi(yi.get(o)||null,t,e,n,l,r)),!0;case"gotpointercapture":return o=r.pointerId,vi.set(o,gi(vi.get(o)||null,t,e,n,l,r)),!0}return!1}function jp(t){var e=za(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,Xc(t.priority,function(){Ap(n)});return}}else if(e===31){if(e=d(n),e!==null){t.blockedOn=e,Xc(t.priority,function(){Ap(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ku(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Yo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Yr=l,n.target.dispatchEvent(l),Yr=null}else return e=ja(n),e!==null&&Rp(e),t.blockedOn=n,!1;e.shift()}return!0}function wp(t,e,n){ku(t)&&n.delete(e)}function K0(){Ko=!1,Kn!==null&&ku(Kn)&&(Kn=null),Xn!==null&&ku(Xn)&&(Xn=null),Pn!==null&&ku(Pn)&&(Pn=null),yi.forEach(wp),vi.forEach(wp)}function $u(t,e){t.blockedOn===e&&(t.blockedOn=null,Ko||(Ko=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,K0)))}var Wu=null;function Dp(t){Wu!==t&&(Wu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Wu===t&&(Wu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Go(l||n)===null)continue;break}var o=ja(n);o!==null&&(t.splice(e,3),e-=3,Qs(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function dl(t){function e(_){return $u(_,t)}Kn!==null&&$u(Kn,t),Xn!==null&&$u(Xn,t),Pn!==null&&$u(Pn,t),yi.forEach(e),vi.forEach(e);for(var n=0;n<Vn.length;n++){var l=Vn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Vn.length&&(n=Vn[0],n.blockedOn===null);)jp(n),n.blockedOn===null&&Vn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],o=n[l+1],p=r[le]||null;if(typeof o=="function")p||Dp(n);else if(p){var v=null;if(o&&o.hasAttribute("formAction")){if(r=o,p=o[le]||null)v=p.formAction;else if(Go(r)!==null)continue}else v=p.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),Dp(n)}}}function Lp(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(p){return r=p})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Xo(t){this._internalRoot=t}Iu.prototype.render=Xo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,l=_e();Tp(n,l,t,e,null,null)},Iu.prototype.unmount=Xo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Tp(t.current,2,null,t,null,null),Du(),e[Ca]=null}};function Iu(t){this._internalRoot=t}Iu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Kc();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Vn.length&&e!==0&&e<Vn[n].priority;n++);Vn.splice(n,0,t),n===0&&jp(t)}};var Up=i.version;if(Up!=="19.2.3")throw Error(s(527,Up,"19.2.3"));P.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=y(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var X0={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tr.isDisabled&&tr.supportsFiber)try{Rl=tr.inject(X0),he=tr}catch{}}return Ei.createRoot=function(t,e){if(!c(t))throw Error(s(299));var n=!1,l="",r=Gd,o=Kd,p=Xd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=xp(t,1,!1,null,null,n,l,null,r,o,p,Lp),t[Ca]=e.current,To(t),new Xo(e)},Ei.hydrateRoot=function(t,e,n){if(!c(t))throw Error(s(299));var l=!1,r="",o=Gd,p=Kd,v=Xd,_=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),e=xp(t,1,!0,e,n??null,l,r,_,o,p,v,Lp),e.context=Ep(null),n=e.current,l=_e(),l=Dr(l),r=jn(l),r.callback=null,wn(n,r,l),n=l,e.current.lanes=n,Cl(e,n),Ze(e),t[Ca]=e.current,To(t),new Iu(e)},Ei.version="19.2.3",Ei}var Rm;function k1(){if(Rm)return cc.exports;Rm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),cc.exports=F1(),cc.exports}var $1=k1();const W1=zm($1),Ty=D1({component:()=>k.jsx(k.Fragment,{children:k.jsx(Ey,{})})}),I1="modulepreload",t_=function(a){return"/"+a},Am={},e_=function(i,u,s){let c=Promise.resolve();if(u&&u.length>0){let m=function(y){return Promise.all(y.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),d=h?.nonce||h?.getAttribute("nonce");c=m(u.map(y=>{if(y=t_(y),y in Am)return;Am[y]=!0;const b=y.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${g}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":I1,b||(S.as="script"),S.crossOrigin="",S.href=y,d&&S.setAttribute("nonce",d),document.head.appendChild(S),b)return new Promise((O,z)=>{S.addEventListener("load",O),S.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return c.then(h=>{for(const d of h||[])d.status==="rejected"&&f(d.reason);return i().catch(f)})},n_=()=>e_(()=>import("./index-BSxC58nD.js"),[]),a_=_c("/")({component:L1(n_,"component")}),l_=a_.update({id:"/",path:"/",getParentRoute:()=>Ty}),i_={IndexRoute:l_},u_=Ty._addFileChildren(i_)._addFileTypes(),r_=K1({routeTree:u_,context:{},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),My=new NS({defaultOptions:{queries:{retry:!1}}}),s_=lS({links:[Jg(),Xg({url:"/api/trpc"})]});ib({client:s_,queryClient:My});const Cm=document.getElementById("app");Cm.innerHTML||W1.createRoot(Cm).render(k.jsx(nt.StrictMode,{children:k.jsx(BS,{client:My,children:k.jsx(V1,{router:r_})})}));export{o_ as R,zm as g,k as j,nt as r};
|