68 lines
349 KiB
JavaScript
68 lines
349 KiB
JavaScript
var Cb=Object.defineProperty;var gv=a=>{throw TypeError(a)};var Rb=(a,i,c)=>i in a?Cb(a,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[i]=c;var Yf=(a,i,c)=>Rb(a,typeof i!="symbol"?i+"":i,c),Gf=(a,i,c)=>i.has(a)||gv("Cannot "+c);var C=(a,i,c)=>(Gf(a,i,"read from private field"),c?c.call(a):i.get(a)),ct=(a,i,c)=>i.has(a)?gv("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,c),W=(a,i,c,r)=>(Gf(a,i,"write to private field"),r?r.call(a,c):i.set(a,c),c),Ct=(a,i,c)=>(Gf(a,i,"access private method"),c);var Uc=(a,i,c,r)=>({set _(o){W(a,i,o,c)},get _(){return C(a,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function c(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(o){if(o.ep)return;o.ep=!0;const h=c(o);fetch(o.href,h)}})();function Ab(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Vf={exports:{}},Lu={};/**
|
|
* @license React
|
|
* react-jsx-runtime.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Sv;function zb(){if(Sv)return Lu;Sv=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,h){var m=null;if(h!==void 0&&(m=""+h),o.key!==void 0&&(m=""+o.key),"key"in o){h={};for(var d in o)d!=="key"&&(h[d]=o[d])}else h=o;return o=h.ref,{$$typeof:a,type:r,key:m,ref:o!==void 0?o:null,props:h}}return Lu.Fragment=i,Lu.jsx=c,Lu.jsxs=c,Lu}var pv;function Nb(){return pv||(pv=1,Vf.exports=zb()),Vf.exports}var H=Nb(),Xf={exports:{}},dt={};/**
|
|
* @license React
|
|
* react.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var bv;function Db(){if(bv)return dt;bv=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),p=Symbol.for("react.view_transition"),_=Symbol.iterator;function E(R){return R===null||typeof R!="object"?null:(R=_&&R[_]||R["@@iterator"],typeof R=="function"?R:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,K={};function w(R,J,it){this.props=R,this.context=J,this.refs=K,this.updater=it||D}w.prototype.isReactComponent={},w.prototype.setState=function(R,J){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,J,"setState")},w.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function L(){}L.prototype=w.prototype;function X(R,J,it){this.props=R,this.context=J,this.refs=K,this.updater=it||D}var Y=X.prototype=new L;Y.constructor=X,M(Y,w.prototype),Y.isPureReactComponent=!0;var G=Array.isArray;function V(){}var F={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function k(R,J,it){var I=it.ref;return{$$typeof:a,type:R,key:J,ref:I!==void 0?I:null,props:it}}function rt(R,J){return k(R.type,J,R.props)}function ft(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function bt(R){var J={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(it){return J[it]})}var mt=/\/+/g;function st(R,J){return typeof R=="object"&&R!==null&&R.key!=null?bt(""+R.key):J.toString(36)}function Z(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(V,V):(R.status="pending",R.then(function(J){R.status==="pending"&&(R.status="fulfilled",R.value=J)},function(J){R.status==="pending"&&(R.status="rejected",R.reason=J)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function $(R,J,it,I,yt){var Rt=typeof R;(Rt==="undefined"||Rt==="boolean")&&(R=null);var At=!1;if(R===null)At=!0;else switch(Rt){case"bigint":case"string":case"number":At=!0;break;case"object":switch(R.$$typeof){case a:case i:At=!0;break;case b:return At=R._init,$(At(R._payload),J,it,I,yt)}}if(At)return yt=yt(R),At=I===""?"."+st(R,0):I,G(yt)?(it="",At!=null&&(it=At.replace(mt,"$&/")+"/"),$(yt,J,it,"",function(Mn){return Mn})):yt!=null&&(ft(yt)&&(yt=rt(yt,it+(yt.key==null||R&&R.key===yt.key?"":(""+yt.key).replace(mt,"$&/")+"/")+At)),J.push(yt)),1;At=0;var at=I===""?".":I+":";if(G(R))for(var ht=0;ht<R.length;ht++)I=R[ht],Rt=at+st(I,ht),At+=$(I,J,it,Rt,yt);else if(ht=E(R),typeof ht=="function")for(R=ht.call(R),ht=0;!(I=R.next()).done;)I=I.value,Rt=at+st(I,ht++),At+=$(I,J,it,Rt,yt);else if(Rt==="object"){if(typeof R.then=="function")return $(Z(R),J,it,I,yt);throw J=String(R),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return At}function et(R,J,it){if(R==null)return R;var I=[],yt=0;return $(R,I,"","",function(Rt){return J.call(it,Rt,yt++)}),I}function Dt(R){if(R._status===-1){var J=R._result,it=J();it.then(function(I){(R._status===0||R._status===-1)&&(R._status=1,R._result=I,it.status===void 0&&(it.status="fulfilled",it.value=I))},function(I){(R._status===0||R._status===-1)&&(R._status=2,R._result=I,it.status===void 0&&(it.status="rejected",it.reason=I))}),R._status===-1&&(R._status=0,R._result=it)}if(R._status===1)return R._result.default;throw R._result}var pt=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function Se(R){var J=F.T,it={};it.types=J!==null?J.types:null,F.T=it;try{var I=R(),yt=F.S;yt!==null&&yt(it,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(V,pt)}catch(Rt){pt(Rt)}finally{J!==null&&it.types!==null&&(J.types=it.types),F.T=J}}function Re(R){var J=F.T;if(J!==null){var it=J.types;it===null?J.types=[R]:it.indexOf(R)===-1&&it.push(R)}else Se(Re.bind(null,R))}var ne={map:et,forEach:function(R,J,it){et(R,function(){J.apply(this,arguments)},it)},count:function(R){var J=0;return et(R,function(){J++}),J},toArray:function(R){return et(R,function(J){return J})||[]},only:function(R){if(!ft(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return dt.Activity=y,dt.Children=ne,dt.Component=w,dt.Fragment=c,dt.Profiler=o,dt.PureComponent=X,dt.StrictMode=r,dt.Suspense=v,dt.ViewTransition=p,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,dt.__COMPILER_RUNTIME={__proto__:null,c:function(R){return F.H.useMemoCache(R)}},dt.addTransitionType=Re,dt.cache=function(R){return function(){return R.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(R,J,it){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var I=M({},R.props),yt=R.key;if(J!=null)for(Rt in J.key!==void 0&&(yt=""+J.key),J)!Q.call(J,Rt)||Rt==="key"||Rt==="__self"||Rt==="__source"||Rt==="ref"&&J.ref===void 0||(I[Rt]=J[Rt]);var Rt=arguments.length-2;if(Rt===1)I.children=it;else if(1<Rt){for(var At=Array(Rt),at=0;at<Rt;at++)At[at]=arguments[at+2];I.children=At}return k(R.type,yt,I)},dt.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:h,_context:R},R},dt.createElement=function(R,J,it){var I,yt={},Rt=null;if(J!=null)for(I in J.key!==void 0&&(Rt=""+J.key),J)Q.call(J,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(yt[I]=J[I]);var At=arguments.length-2;if(At===1)yt.children=it;else if(1<At){for(var at=Array(At),ht=0;ht<At;ht++)at[ht]=arguments[ht+2];yt.children=at}if(R&&R.defaultProps)for(I in At=R.defaultProps,At)yt[I]===void 0&&(yt[I]=At[I]);return k(R,Rt,yt)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(R){return{$$typeof:d,render:R}},dt.isValidElement=ft,dt.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:Dt}},dt.memo=function(R,J){return{$$typeof:S,type:R,compare:J===void 0?null:J}},dt.startTransition=Se,dt.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},dt.use=function(R){return F.H.use(R)},dt.useActionState=function(R,J,it){return F.H.useActionState(R,J,it)},dt.useCallback=function(R,J){return F.H.useCallback(R,J)},dt.useContext=function(R){return F.H.useContext(R)},dt.useDebugValue=function(){},dt.useDeferredValue=function(R,J){return F.H.useDeferredValue(R,J)},dt.useEffect=function(R,J){return F.H.useEffect(R,J)},dt.useEffectEvent=function(R){return F.H.useEffectEvent(R)},dt.useId=function(){return F.H.useId()},dt.useImperativeHandle=function(R,J,it){return F.H.useImperativeHandle(R,J,it)},dt.useInsertionEffect=function(R,J){return F.H.useInsertionEffect(R,J)},dt.useLayoutEffect=function(R,J){return F.H.useLayoutEffect(R,J)},dt.useMemo=function(R,J){return F.H.useMemo(R,J)},dt.useOptimistic=function(R,J){return F.H.useOptimistic(R,J)},dt.useReducer=function(R,J,it){return F.H.useReducer(R,J,it)},dt.useRef=function(R){return F.H.useRef(R)},dt.useState=function(R){return F.H.useState(R)},dt.useSyncExternalStore=function(R,J,it){return F.H.useSyncExternalStore(R,J,it)},dt.useTransition=function(){return F.H.useTransition()},dt.version="19.3.0",dt}var _v;function es(){return _v||(_v=1,Xf.exports=Db()),Xf.exports}var tt=es();const $c=Ab(tt),Og=tt.createContext(void 0),Cg=a=>{const i=tt.useContext(Og);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Mb=({client:a,children:i})=>(tt.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),H.jsx(Og.Provider,{value:a,children:i})),xb={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)};var Ml,Ah,mg,Ub=(mg=class{constructor(){ct(this,Ml,xb);ct(this,Ah,!1)}setTimeoutProvider(a){W(this,Ml,a)}setTimeout(a,i){return C(this,Ml).setTimeout(a,i)}clearTimeout(a){C(this,Ml).clearTimeout(a)}setInterval(a,i){return C(this,Ml).setInterval(a,i)}clearInterval(a){C(this,Ml).clearInterval(a)}},Ml=new WeakMap,Ah=new WeakMap,mg);const da=new Ub;function wb(a){setTimeout(a,0)}const jb=typeof window>"u"||"Deno"in globalThis;function Ue(){}function Hb(a,i){return typeof a=="function"?a(i):a}function Rg(a){return typeof a=="number"&&a>=0&&a!==1/0}function Ag(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Xt(a,i){return typeof a=="function"?a(i):a}function Tv(a,i){const{type:c="all",exact:r,fetchStatus:o,predicate:h,queryKey:m,stale:d}=a;if(m){if(r){if(i.queryHash!==zh(m,i.options))return!1}else if(!Qi(i.queryKey,m))return!1}if(c!=="all"){const v=i.isActive();if(c==="active"&&!v||c==="inactive"&&v)return!1}return!(typeof d=="boolean"&&i.isStale()!==d||o&&o!==i.state.fetchStatus||h&&!h(i))}function Ev(a,i){const{exact:c,status:r,predicate:o,mutationKey:h}=a;if(h){if(!i.options.mutationKey)return!1;if(c){if(Xu(i.options.mutationKey)!==Xu(h))return!1}else if(!Qi(i.options.mutationKey,h))return!1}return!(r&&i.state.status!==r||o&&!o(i))}function zh(a,i){return((i==null?void 0:i.queryKeyHashFn)||Xu)(a)}function Xu(a){return JSON.stringify(a,(i,c)=>uh(c)?Object.keys(c).sort().reduce((r,o)=>(r[o]=c[o],r),{}):c)}function Qi(a,i){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(a&&i&&typeof a=="object"&&typeof i=="object"){if(Array.isArray(a)&&Array.isArray(i)){if(i.length>a.length)return!1;for(let r=0;r<i.length;r++)if(!Qi(a[r],i[r]))return!1;return!0}const c=Object.keys(i);for(const r of c)if(!Qi(a[r],i[r]))return!1;return!0}return!1}const Lb=Object.prototype.hasOwnProperty;function zg(a,i,c=0){if(a===i)return a;if(c>500)return i;const r=Ov(a)&&Ov(i);if(!r&&!(uh(a)&&uh(i)))return i;const o=(r?a:Object.keys(a)).length,h=r?i:Object.keys(i),m=h.length,d=r?new Array(m):{};let v=0;for(let S=0;S<m;S++){const b=r?S:h[S],y=a[b],p=i[b];if(y===p){d[b]=y,(r?S<o:Lb.call(a,b))&&v++;continue}if(y===null||p===null||typeof y!="object"||typeof p!="object"){d[b]=p;continue}const _=zg(y,p,c+1);d[b]=_,_===y&&v++}return o===m&&v===o?a:d}function Kf(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const c in a)if(a[c]!==i[c])return!1;return!0}function Ov(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function uh(a){if(!Cv(a))return!1;const i=Object.getPrototypeOf(a),c=i==null?void 0:i.constructor;if(c===void 0)return!0;if(typeof c!="function")return!1;const r=c.prototype;return!(!Cv(r)||!r.hasOwnProperty("isPrototypeOf")||i!==Object.prototype)}function Cv(a){return Object.prototype.toString.call(a)==="[object Object]"}function Bb(a){return new Promise(i=>{da.setTimeout(i,a)})}function sh(a,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(a,i):c.structuralSharing!==!1?zg(a,i):i}function qb(a,i,c=0){const r=[...a,i];return c&&r.length>c?r.slice(1):r}function Qb(a,i,c=0){const r=[i,...a];return c&&r.length>c?r.slice(0,-1):r}const Nh=Symbol();function Ng(a,i){return!a.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!a.queryFn||a.queryFn===Nh?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function Dg(a,i){return typeof a=="function"?a(...i):!!a}function Yb(a,i,c){let r=!1,o;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(o??(o=i()),r||(r=!0,o.aborted?c():o.addEventListener("abort",c,{once:!0})),o)}),a}let Gb=()=>jb;const Dh=()=>Gb();var ns=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(){}},ya,xl,Ai,yg,Vb=(yg=class extends ns{constructor(){super();ct(this,ya);ct(this,xl);ct(this,Ai);W(this,Ai,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){C(this,xl)||this.setEventListener(C(this,Ai))}onUnsubscribe(){var i;this.hasListeners()||((i=C(this,xl))==null||i.call(this),W(this,xl,void 0))}setEventListener(i){var c;W(this,Ai,i),(c=C(this,xl))==null||c.call(this),W(this,xl,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){C(this,ya)!==i&&(W(this,ya,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(c=>{c(i)})}isFocused(){var i;return typeof C(this,ya)=="boolean"?C(this,ya):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},ya=new WeakMap,xl=new WeakMap,Ai=new WeakMap,yg);const Mh=new Vb,Xb=wb;function Kb(){let a=[],i=0,c=d=>{d()},r=d=>{d()},o=Xb;const h=d=>{i?a.push(d):o(()=>{c(d)})},m=()=>{const d=a;a=[],d.length&&o(()=>{r(()=>{d.forEach(v=>{c(v)})})})};return{batch:d=>{let v;i++;try{v=d()}finally{i--,i||m()}return v},batchCalls:d=>(...v)=>{h(()=>{d(...v)})},schedule:h,setNotifyFunction:d=>{c=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}const ye=Kb();var zi,Ul,Ni,vg,Zb=(vg=class extends ns{constructor(){super();ct(this,zi,!0);ct(this,Ul);ct(this,Ni);W(this,Ni,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Ul)||this.setEventListener(C(this,Ni))}onUnsubscribe(){var i;this.hasListeners()||((i=C(this,Ul))==null||i.call(this),W(this,Ul,void 0))}setEventListener(i){var c;W(this,Ni,i),(c=C(this,Ul))==null||c.call(this),W(this,Ul,i(this.setOnline.bind(this)))}setOnline(i){C(this,zi)!==i&&(W(this,zi,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return C(this,zi)}},zi=new WeakMap,Ul=new WeakMap,Ni=new WeakMap,vg);const Zc=new Zb;function Jb(a){return Math.min(1e3*2**a,3e4)}function Mg(a){return(a??"online")==="online"?Zc.isOnline():!0}var ch=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function xg(a){let i=!1,c=0,r,o="pending",h,m;const d=new Promise((w,L)=>{h=w,m=L});d.catch(Ue);const v=()=>o!=="pending",S=w=>{var L;if(!v()){const X=new ch(w);D(X),(L=a.onCancel)==null||L.call(a,X)}},b=()=>{i=!0},y=()=>{i=!1},p=()=>Mh.isFocused()&&(a.networkMode==="always"||Zc.isOnline())&&a.canRun(),_=()=>Mg(a.networkMode)&&a.canRun(),E=w=>{v()||(r==null||r(),o="resolved",h(w))},D=w=>{v()||(r==null||r(),o="rejected",m(w))},M=()=>new Promise(w=>{var L;r=X=>{(v()||p())&&w(X)},(L=a.onPause)==null||L.call(a)}).then(()=>{var w;r=void 0,v()||(w=a.onContinue)==null||w.call(a)}),K=()=>{if(v())return;let w;const L=c===0?a.initialPromise:void 0;try{w=L??a.fn()}catch(X){w=Promise.reject(X)}Promise.resolve(w).then(E).catch(X=>{var Q;if(v())return;const Y=a.retry??(Dh()?0:3),G=a.retryDelay??Jb,V=typeof G=="function"?G(c,X):G,F=Y===!0||typeof Y=="number"&&c<Y||typeof Y=="function"&&Y(c,X);if(i||!F){D(X);return}c++,(Q=a.onFail)==null||Q.call(a,c,X),Bb(V).then(()=>p()?void 0:M()).then(()=>{i?D(X):K()})})};return{promise:d,status:()=>o,cancel:S,continue:()=>(r==null||r(),d),cancelRetry:b,continueRetry:y,canStart:_,start:()=>(_()?K():M().then(K),d)}}var va,gg,Ug=(gg=class{constructor(){ct(this,va)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rg(this.gcTime)&&W(this,va,da.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Dh()?1/0:3e5))}clearGcTimeout(){C(this,va)!==void 0&&(da.clearTimeout(C(this,va)),W(this,va,void 0))}},va=new WeakMap,gg);function Fb(a){return{onFetch:(i,c)=>{var b,y,p,_,E;const r=i.options,o=(p=(y=(b=i.fetchOptions)==null?void 0:b.meta)==null?void 0:y.fetchMore)==null?void 0:p.direction,h=((_=i.state.data)==null?void 0:_.pages)||[],m=((E=i.state.data)==null?void 0:E.pageParams)||[];let d={pages:[],pageParams:[]},v=0;const S=async()=>{let D=!1;const M=L=>{Yb(L,()=>i.signal,()=>D=!0)},K=Ng(i.options,i.fetchOptions),w=async(L,X,Y)=>{if(D)return Promise.reject(i.signal.reason);if(X==null&&L.pages.length)return Promise.resolve(L);const V=(()=>{const rt={client:i.client,queryKey:i.queryKey,pageParam:X,direction:Y?"backward":"forward",meta:i.options.meta};return M(rt),rt})(),F=await K(V),{maxPages:Q}=i.options,k=Y?Qb:qb;return{pages:k(L.pages,F,Q),pageParams:k(L.pageParams,X,Q)}};if(o&&h.length){const L=o==="backward",X=L?kb:Rv,Y={pages:h,pageParams:m};d=await w(Y,X(r,Y),L)}else{const L=a??h.length;do{const X=v===0?m[0]??r.initialPageParam:Rv(r,d);if(v>0&&X==null)break;d=await w(d,X),v++}while(v<L)}return d};i.options.persister?i.fetchFn=()=>{var D,M;return(M=(D=i.options).persister)==null?void 0:M.call(D,S,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c)}:i.fetchFn=S}}}function Rv(a,{pages:i,pageParams:c}){const r=i.length-1;return i.length>0?a.getNextPageParam(i[r],i,c[r],c):void 0}function kb(a,{pages:i,pageParams:c}){var r;return i.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,i[0],i,c[0],c):void 0}var Di,ga,Mi,en,Sa,ee,Iu,pa,rn,Fn,Sg,Ib=(Sg=class extends Ug{constructor(i){super();ct(this,rn);ct(this,Di);ct(this,ga);ct(this,Mi);ct(this,en);ct(this,Sa);ct(this,ee);ct(this,Iu);ct(this,pa);W(this,pa,!1),W(this,Iu,i.defaultOptions),this.setOptions(i.options),this.observers=[],W(this,Sa,i.client),W(this,en,C(this,Sa).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,W(this,ga,zv(this.options)),this.state=i.state??C(this,ga),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,Di)}get promise(){var i;return(i=C(this,ee))==null?void 0:i.promise}setOptions(i){if(this.options={...C(this,Iu),...i},i!=null&&i._type&&W(this,Di,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=zv(this.options);c.data!==void 0&&(this.setState(Av(c.data,c.dataUpdatedAt)),W(this,ga,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,en).remove(this)}setData(i,c){const r=sh(this.state.data,i,this.options);return Ct(this,rn,Fn).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(i){Ct(this,rn,Fn).call(this,{type:"setState",state:i})}cancel(i){var r,o;const c=(r=C(this,ee))==null?void 0:r.promise;return(o=C(this,ee))==null||o.cancel(i),c?c.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,ga)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Xt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Xt(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Ag(this.state.dataUpdatedAt,i)}onFocus(){var i,c;(i=this.observers.find(r=>r.shouldFetchOnWindowFocus()))==null||i.refetch({cancelRefetch:!1}),(c=C(this,ee))==null||c.continue()}onOnline(){var i,c;(i=this.observers.find(r=>r.shouldFetchOnReconnect()))==null||i.refetch({cancelRefetch:!1}),(c=C(this,ee))==null||c.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),C(this,en).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){const c=this.observers.indexOf(i);c!==-1&&(this.observers.splice(c,1),this.observers.length||(C(this,ee)&&(C(this,pa)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?C(this,ee).cancel({revert:!0}):C(this,ee).cancelRetry()),this.scheduleGc()),C(this,en).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ct(this,rn,Fn).call(this,{type:"invalidate"})}async fetch(i,c){var S,b,y,p,_,E,D,M,K,w,L,X;if(this.state.fetchStatus!=="idle"&&((S=C(this,ee))==null?void 0:S.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(C(this,ee))return C(this,ee).continueRetry(),C(this,ee).promise}if(i&&this.setOptions(i),!this.options.queryFn){const Y=this.observers.find(G=>G.options.queryFn);Y&&this.setOptions(Y.options)}const r=new AbortController,o=Y=>{Object.defineProperty(Y,"signal",{enumerable:!0,get:()=>(W(this,pa,!0),r.signal)})},h=()=>{const Y=Ng(this.options,c),V=(()=>{const F={client:C(this,Sa),queryKey:this.queryKey,meta:this.meta};return o(F),F})();return W(this,pa,!1),this.options.persister?this.options.persister(Y,V,this):Y(V)},d=(()=>{const Y={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:C(this,Sa),state:this.state,fetchFn:h};return o(Y),Y})();(b=C(this,Di)==="infinite"?Fb(this.options.pages):this.options.behavior)==null||b.onFetch(d,this),W(this,Mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=d.fetchOptions)==null?void 0:y.meta))&&Ct(this,rn,Fn).call(this,{type:"fetch",meta:(p=d.fetchOptions)==null?void 0:p.meta});const v=W(this,ee,xg({initialPromise:c==null?void 0:c.initialPromise,fn:d.fetchFn,onCancel:Y=>{Y instanceof ch&&Y.revert&&this.setState({...C(this,Mi),fetchStatus:"idle"}),r.abort()},onFail:(Y,G)=>{Ct(this,rn,Fn).call(this,{type:"failed",failureCount:Y,error:G})},onPause:()=>{Ct(this,rn,Fn).call(this,{type:"pause"})},onContinue:()=>{Ct(this,rn,Fn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const Y=await v.start();if(Y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Y),(E=(_=C(this,en).config).onSuccess)==null||E.call(_,Y,this),(M=(D=C(this,en).config).onSettled)==null||M.call(D,Y,this.state.error,this),Y}catch(Y){if(Y instanceof ch){if(Y.silent)return C(this,ee).promise;if(Y.revert){if(this.state.data===void 0)throw Y;return this.state.data}}throw Ct(this,rn,Fn).call(this,{type:"error",error:Y}),(w=(K=C(this,en).config).onError)==null||w.call(K,Y,this),(X=(L=C(this,en).config).onSettled)==null||X.call(L,this.state.data,Y,this),Y}finally{C(this,ee)===v&&W(this,ee,void 0),this.scheduleGc()}}},Di=new WeakMap,ga=new WeakMap,Mi=new WeakMap,en=new WeakMap,Sa=new WeakMap,ee=new WeakMap,Iu=new WeakMap,pa=new WeakMap,rn=new WeakSet,Fn=function(i){const c=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...wg(r.data,this.options),fetchMeta:i.meta??null};case"success":const o={...r,...Av(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,Mi,i.manual?o:void 0),o;case"error":const h=i.error;return{...r,error:h,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=c(this.state),ye.batch(()=>{this.observers.slice().forEach(r=>{r.onQueryUpdate()}),C(this,en).notify({query:this,type:"updated",action:i})})},Sg);function wg(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mg(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Av(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zv(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,c=i!==void 0,r=c?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Ee,zt,Pu,Oe,ba,xi,kn,$u,Ui,wi,_a,Ta,wl,ji,Ut,Yu,rh,oh,fh,hh,dh,mh,yh,vh,pg,Pb=(pg=class extends ns{constructor(i,c){super();ct(this,Ut);ct(this,Ee);ct(this,zt);ct(this,Pu);ct(this,Oe);ct(this,ba);ct(this,xi);ct(this,kn);ct(this,$u);ct(this,Ui);ct(this,wi);ct(this,_a);ct(this,Ta);ct(this,wl);ct(this,ji,new Set);this.options=c,W(this,Ee,i),W(this,kn,null),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,zt).addObserver(this),Nv(C(this,zt),this.options)?Ct(this,Ut,Yu).call(this):this.updateResult(),Ct(this,Ut,dh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gh(C(this,zt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gh(C(this,zt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ct(this,Ut,mh).call(this),Ct(this,Ut,yh).call(this),C(this,zt).removeObserver(this)}setOptions(i){const c=this.options,r=C(this,zt);if(this.options=C(this,Ee).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xt(this.options.enabled,C(this,zt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ct(this,Ut,vh).call(this),C(this,zt).setOptions(this.options),c._defaulted&&!Kf(this.options,c)&&C(this,Ee).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,zt),observer:this});const o=this.hasListeners();o&&Dv(C(this,zt),r,this.options,c)&&Ct(this,Ut,Yu).call(this),this.updateResult(),o&&(C(this,zt)!==r||Xt(this.options.enabled,C(this,zt))!==Xt(c.enabled,C(this,zt))||Xt(this.options.staleTime,C(this,zt))!==Xt(c.staleTime,C(this,zt)))&&Ct(this,Ut,oh).call(this);const h=Ct(this,Ut,fh).call(this);o&&(C(this,zt)!==r||Xt(this.options.enabled,C(this,zt))!==Xt(c.enabled,C(this,zt))||h!==C(this,wl))&&Ct(this,Ut,hh).call(this,h)}getOptimisticResult(i){const c=C(this,Ee).getQueryCache().build(C(this,Ee),i),r=this.createResult(c,i);return Kf(this.getCurrentResult(),r)||(W(this,Oe,r),W(this,xi,this.options),W(this,ba,C(this,zt).state)),r}getCurrentResult(){return C(this,Oe)}trackResult(i,c){return new Proxy(i,{get:(r,o)=>(this.trackProp(o),c==null||c(o),Reflect.get(r,o))})}trackProp(i){C(this,ji).add(i)}getCurrentQuery(){return C(this,zt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const c=C(this,Ee).defaultQueryOptions(i),r=C(this,Ee).getQueryCache().build(C(this,Ee),c);let o=()=>{},h;const m=new Promise(d=>{h=d,o=C(this,Ee).getQueryCache().subscribe(v=>{v.type==="updated"&&v.query.queryHash===r.queryHash&&r.state.data!==void 0&&(o(),d(this.createResult(r,c)))})});return Promise.race([r.fetch().then(()=>{const d=this.createResult(r,c);return h==null||h(d),d}).finally(()=>{o()}),m])}fetch(i){return Ct(this,Ut,Yu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Oe)))}createResult(i,c){var G;const r=C(this,zt),o=this.options,h=C(this,Oe),m=C(this,ba),d=C(this,xi),v=i!==r?i.state:C(this,Pu),{state:S}=i;let b={...S},y=!1,p;if(c._optimisticResults){const V=this.hasListeners(),F=!V&&Nv(i,c),Q=V&&Dv(i,r,c,o);(F||Q)&&(b={...b,...wg(S.data,i.options)}),c._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:E,status:D}=b;p=b.data;let M=!1;if(c.placeholderData!==void 0&&p===void 0&&D==="pending"){let V;h!=null&&h.isPlaceholderData&&c.placeholderData===(d==null?void 0:d.placeholderData)?(V=h.data,M=!0):V=typeof c.placeholderData=="function"?c.placeholderData((G=C(this,wi))==null?void 0:G.state.data,C(this,wi)):c.placeholderData,V!==void 0&&(D="success",p=sh(h==null?void 0:h.data,V,c),y=!0)}if(c.select&&p!==void 0&&!M)if(h&&p===(m==null?void 0:m.data)&&c.select===C(this,$u))p=C(this,Ui);else try{W(this,$u,c.select),p=c.select(p),p=sh(h==null?void 0:h.data,p,c),W(this,Ui,p),W(this,kn,null)}catch(V){W(this,kn,V)}else p===void 0&&W(this,kn,null);C(this,kn)&&(_=C(this,kn),p=C(this,Ui),E=Date.now(),D="error",y=!1);const K=b.fetchStatus==="fetching",w=D==="pending",L=D==="error",X=w&&K,Y=p!==void 0;return{status:D,fetchStatus:b.fetchStatus,isPending:w,isSuccess:D==="success",isError:L,isInitialLoading:X,isLoading:X,data:p,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:E,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:K,isRefetching:K&&!w,isLoadingError:L&&!Y,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:L&&Y,isStale:xh(i,c),refetch:this.refetch,isEnabled:Xt(c.enabled,i)!==!1}}updateResult(){const i=C(this,Oe),c=this.createResult(C(this,zt),this.options);if(W(this,ba,C(this,zt).state),W(this,xi,this.options),C(this,ba).data!==void 0&&W(this,wi,C(this,zt)),Kf(c,i))return;W(this,Oe,c);const o=(()=>{if(!i)return!0;const{notifyOnChangeProps:h}=this.options,m=typeof h=="function"?h():h;if(m==="all"||!m&&!C(this,ji).size)return!0;const d=new Set(m??C(this,ji));return this.options.throwOnError&&d.add("error"),Object.keys(C(this,Oe)).some(v=>{const S=v;return C(this,Oe)[S]!==i[S]&&d.has(S)})})();ye.batch(()=>{o&&this.listeners.forEach(h=>{h(C(this,Oe))}),C(this,Ee).getQueryCache().notify({query:C(this,zt),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ct(this,Ut,dh).call(this)}},Ee=new WeakMap,zt=new WeakMap,Pu=new WeakMap,Oe=new WeakMap,ba=new WeakMap,xi=new WeakMap,kn=new WeakMap,$u=new WeakMap,Ui=new WeakMap,wi=new WeakMap,_a=new WeakMap,Ta=new WeakMap,wl=new WeakMap,ji=new WeakMap,Ut=new WeakSet,Yu=function(i){Ct(this,Ut,vh).call(this);let c=C(this,zt).fetch(this.options,i);return i!=null&&i.throwOnError||(c=c.catch(Ue)),c},rh=function(i){return!Dh()&&Xt(this.options.enabled,C(this,zt))!==!1&&Rg(i)},oh=function(){Ct(this,Ut,mh).call(this);const i=Xt(this.options.staleTime,C(this,zt));if(C(this,Oe).isStale||!Ct(this,Ut,rh).call(this,i))return;const c=Ag(C(this,Oe).dataUpdatedAt,i)+1;W(this,_a,da.setTimeout(()=>{C(this,Oe).isStale||this.updateResult()},c))},fh=function(){return Xt(this.options.refetchInterval,C(this,zt))??!1},hh=function(i){Ct(this,Ut,yh).call(this),W(this,wl,i),!(C(this,wl)===0||!Ct(this,Ut,rh).call(this,C(this,wl)))&&W(this,Ta,da.setInterval(()=>{(this.options.refetchIntervalInBackground||Mh.isFocused())&&Ct(this,Ut,Yu).call(this)},C(this,wl)))},dh=function(){Ct(this,Ut,oh).call(this),Ct(this,Ut,hh).call(this,Ct(this,Ut,fh).call(this))},mh=function(){C(this,_a)!==void 0&&(da.clearTimeout(C(this,_a)),W(this,_a,void 0))},yh=function(){C(this,Ta)!==void 0&&(da.clearInterval(C(this,Ta)),W(this,Ta,void 0))},vh=function(){const i=C(this,Ee).getQueryCache().build(C(this,Ee),this.options);if(i===C(this,zt))return;const c=C(this,zt);W(this,zt,i),W(this,Pu,i.state),this.hasListeners()&&(c==null||c.removeObserver(this),i.addObserver(this))},pg);function $b(a,i){return Xt(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Xt(i.retryOnMount,a)===!1)}function Nv(a,i){return $b(a,i)||a.state.data!==void 0&&gh(a,i,i.refetchOnMount)}function gh(a,i,c){if(Xt(i.enabled,a)!==!1&&Xt(i.staleTime,a)!=="static"){const r=Xt(c,a);return r==="always"||r!==!1&&xh(a,i)}return!1}function Dv(a,i,c,r){return(a!==i||Xt(r.enabled,a)===!1)&&(!c.suspense||a.state.status!=="error")&&xh(a,c)}function xh(a,i){return Xt(i.enabled,a)!==!1&&a.isStaleByTime(Xt(i.staleTime,a))}var Wu,Cn,ge,Ea,Rn,Nl,bg,Wb=(bg=class extends Ug{constructor(i){super();ct(this,Rn);ct(this,Wu);ct(this,Cn);ct(this,ge);ct(this,Ea);W(this,Wu,i.client),this.mutationId=i.mutationId,W(this,ge,i.mutationCache),W(this,Cn,[]),this.state=i.state||t_(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){C(this,Cn).includes(i)||(C(this,Cn).push(i),this.clearGcTimeout(),C(this,ge).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){W(this,Cn,C(this,Cn).filter(c=>c!==i)),this.scheduleGc(),C(this,ge).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){C(this,Cn).length||(this.state.status==="pending"?this.scheduleGc():C(this,ge).remove(this))}continue(){var i;return((i=C(this,Ea))==null?void 0:i.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(i){var d,v,S,b,y,p,_,E,D,M,K,w,L,X,Y,G,V,F;const c=()=>{Ct(this,Rn,Nl).call(this,{type:"continue"})},r={client:C(this,Wu),meta:this.options.meta,mutationKey:this.options.mutationKey},o=W(this,Ea,xg({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(Q,k)=>{Ct(this,Rn,Nl).call(this,{type:"failed",failureCount:Q,error:k})},onPause:()=>{Ct(this,Rn,Nl).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,ge).canRun(this)})),h=this.state.status==="pending",m=!o.canStart();try{if(h)c();else{Ct(this,Rn,Nl).call(this,{type:"pending",variables:i,isPaused:m}),C(this,ge).config.onMutate&&await C(this,ge).config.onMutate(i,this,r);const k=await((v=(d=this.options).onMutate)==null?void 0:v.call(d,i,r));k!==this.state.context&&Ct(this,Rn,Nl).call(this,{type:"pending",context:k,variables:i,isPaused:m})}const Q=await o.start();return await((b=(S=C(this,ge).config).onSuccess)==null?void 0:b.call(S,Q,i,this.state.context,this,r)),await((p=(y=this.options).onSuccess)==null?void 0:p.call(y,Q,i,this.state.context,r)),await((E=(_=C(this,ge).config).onSettled)==null?void 0:E.call(_,Q,null,this.state.variables,this.state.context,this,r)),await((M=(D=this.options).onSettled)==null?void 0:M.call(D,Q,null,i,this.state.context,r)),Ct(this,Rn,Nl).call(this,{type:"success",data:Q}),Q}catch(Q){try{await((w=(K=C(this,ge).config).onError)==null?void 0:w.call(K,Q,i,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((X=(L=this.options).onError)==null?void 0:X.call(L,Q,i,this.state.context,r))}catch(k){Promise.reject(k)}try{await((G=(Y=C(this,ge).config).onSettled)==null?void 0:G.call(Y,void 0,Q,this.state.variables,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((F=(V=this.options).onSettled)==null?void 0:F.call(V,void 0,Q,i,this.state.context,r))}catch(k){Promise.reject(k)}throw Ct(this,Rn,Nl).call(this,{type:"error",error:Q}),Q}finally{C(this,Ea)===o&&W(this,Ea,void 0),C(this,ge).runNext(this)}}},Wu=new WeakMap,Cn=new WeakMap,ge=new WeakMap,Ea=new WeakMap,Rn=new WeakSet,Nl=function(i){const c=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=c(this.state),ye.batch(()=>{C(this,Cn).forEach(r=>{r.onMutationUpdate(i)}),C(this,ge).notify({mutation:this,type:"updated",action:i})})},bg);function t_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var In,on,ts,_g,e_=(_g=class extends ns{constructor(i={}){super();ct(this,In);ct(this,on);ct(this,ts);this.config=i,W(this,In,new Set),W(this,on,new Map),W(this,ts,0)}build(i,c,r){const o=new Wb({client:i,mutationCache:this,mutationId:++Uc(this,ts)._,options:i.defaultMutationOptions(c),state:r});return this.add(o),o}add(i){C(this,In).add(i);const c=wc(i);if(typeof c=="string"){const r=C(this,on).get(c);r?r.push(i):C(this,on).set(c,[i])}this.notify({type:"added",mutation:i})}remove(i){if(C(this,In).delete(i)){const c=wc(i);if(typeof c=="string"){const r=C(this,on).get(c);if(r)if(r.length>1){const o=r.indexOf(i);o!==-1&&r.splice(o,1)}else r[0]===i&&C(this,on).delete(c)}}this.notify({type:"removed",mutation:i})}canRun(i){var r;const c=wc(i);if(typeof c=="string"){const o=(r=C(this,on).get(c))==null?void 0:r.find(h=>h.state.status==="pending");return!o||o===i}else return!0}runNext(i){var r,o;const c=wc(i);return typeof c=="string"?((o=(r=C(this,on).get(c))==null?void 0:r.find(h=>h!==i&&h.state.isPaused))==null?void 0:o.continue())??Promise.resolve():Promise.resolve()}clear(){ye.batch(()=>{C(this,In).forEach(i=>{this.notify({type:"removed",mutation:i})}),C(this,In).clear(),C(this,on).clear()})}getAll(){return Array.from(C(this,In))}find(i){const c={exact:!0,...i};return this.getAll().find(r=>Ev(c,r))}findAll(i={}){return this.getAll().filter(c=>Ev(i,c))}notify(i){ye.batch(()=>{this.listeners.forEach(c=>{c(i)})})}resumePausedMutations(){const i=this.getAll().filter(c=>c.state.isPaused);return ye.batch(()=>Promise.all(i.map(c=>c.continue().catch(Ue))))}},In=new WeakMap,on=new WeakMap,ts=new WeakMap,_g);function wc(a){var i;return(i=a.options.scope)==null?void 0:i.id}var An,Tg,n_=(Tg=class extends ns{constructor(i={}){super();ct(this,An);this.config=i,W(this,An,new Map)}build(i,c,r){const o=c.queryKey,h=c.queryHash??zh(o,c);let m=this.get(h);return m||(m=new Ib({client:i,queryKey:o,queryHash:h,options:i.defaultQueryOptions(c),state:r,defaultOptions:i.getQueryDefaults(o)}),this.add(m)),m}add(i){C(this,An).has(i.queryHash)||(C(this,An).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const c=C(this,An).get(i.queryHash);c&&(i.destroy(),c===i&&C(this,An).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){ye.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return C(this,An).get(i)}getAll(){return[...C(this,An).values()]}find(i){const c={exact:!0,...i};return this.getAll().find(r=>Tv(c,r))}findAll(i={}){const c=this.getAll();return Object.keys(i).length>0?c.filter(r=>Tv(i,r)):c}notify(i){ye.batch(()=>{this.listeners.forEach(c=>{c(i)})})}onFocus(){ye.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){ye.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},An=new WeakMap,Tg),Zt,jl,Hl,Hi,Li,Ll,Bi,qi,Eg,l_=(Eg=class{constructor(a={}){ct(this,Zt);ct(this,jl);ct(this,Hl);ct(this,Hi);ct(this,Li);ct(this,Ll);ct(this,Bi);ct(this,qi);W(this,Zt,a.queryCache||new n_),W(this,jl,a.mutationCache||new e_),W(this,Hl,a.defaultOptions||{}),W(this,Hi,new Map),W(this,Li,new Map),W(this,Ll,0)}mount(){Uc(this,Ll)._++,C(this,Ll)===1&&(W(this,Bi,Mh.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,Zt).onFocus())})),W(this,qi,Zc.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,Zt).onOnline())})))}unmount(){var a,i;Uc(this,Ll)._--,C(this,Ll)===0&&((a=C(this,Bi))==null||a.call(this),W(this,Bi,void 0),(i=C(this,qi))==null||i.call(this),W(this,qi,void 0))}isFetching(a){return C(this,Zt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return C(this,jl).findAll({...a,status:"pending"}).length}getQueryData(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=C(this,Zt).get(i.queryHash))==null?void 0:c.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),c=C(this,Zt).build(this,i),r=c.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&c.isStaleByTime(Xt(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(a){return C(this,Zt).findAll(a).map(({queryKey:i,state:c})=>[i,c.data])}setQueryData(a,i,c){var m;const r=this.defaultQueryOptions({queryKey:a}),o=(m=C(this,Zt).get(r.queryHash))==null?void 0:m.state.data,h=Hb(i,o);if(h!==void 0)return C(this,Zt).build(this,r).setData(h,{...c,manual:!0})}setQueriesData(a,i,c){return ye.batch(()=>C(this,Zt).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,i,c)]))}getQueryState(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=C(this,Zt).get(i.queryHash))==null?void 0:c.state}removeQueries(a){const i=C(this,Zt);ye.batch(()=>{i.findAll(a).forEach(c=>{i.remove(c)})})}resetQueries(a,i){const c=C(this,Zt);return ye.batch(()=>{const r=c.findAll(a),o=new Set(r);return r.forEach(h=>{h.reset()}),this.refetchQueries({type:"active",predicate:h=>o.has(h)},i)})}cancelQueries(a,i={}){const c={revert:!0,...i},r=ye.batch(()=>C(this,Zt).findAll(a).map(o=>o.cancel(c)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(a,i={}){return ye.batch(()=>(C(this,Zt).findAll(a).forEach(c=>{c.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},i)))}refetchQueries(a,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},r=ye.batch(()=>C(this,Zt).findAll(a).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let h=o.fetch(void 0,c);return c.throwOnError||(h=h.catch(Ue)),o.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(r).then(Ue)}async query(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const c=C(this,Zt).build(this,i),r=c.isStaleByTime(Xt(i.staleTime,c))?await c.fetch(i):c.state.data,o=i.select;return o?o(r):r}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const c=C(this,Zt).build(this,i);return c.isStaleByTime(Xt(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Ue).catch(Ue)}infiniteQuery(a){return a._type="infinite",this.query(a)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Ue).catch(Ue)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return Zc.isOnline()?C(this,jl).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Zt)}getMutationCache(){return C(this,jl)}getDefaultOptions(){return C(this,Hl)}setDefaultOptions(a){W(this,Hl,a)}setQueryDefaults(a,i){C(this,Hi).set(Xu(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...C(this,Hi).values()],c={};return i.forEach(r=>{Qi(a,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(a,i){C(this,Li).set(Xu(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...C(this,Li).values()],c={};return i.forEach(r=>{Qi(a,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(a){if(a._defaulted)return a;const i={...C(this,Hl).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=zh(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===Nh&&(i.enabled=!1),i}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...C(this,Hl).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){C(this,Zt).clear(),C(this,jl).clear()}},Zt=new WeakMap,jl=new WeakMap,Hl=new WeakMap,Hi=new WeakMap,Li=new WeakMap,Ll=new WeakMap,Bi=new WeakMap,qi=new WeakMap,Eg);const jg=tt.createContext(!1),a_=()=>tt.useContext(jg);jg.Provider;function i_(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}const u_=tt.createContext(i_()),s_=()=>tt.useContext(u_),c_=(a,i,c)=>{const r=c!=null&&c.state.error&&typeof a.throwOnError=="function"?Dg(a.throwOnError,[c.state.error,c]):a.throwOnError;(a.suspense||r)&&(i.isReset()||(a.retryOnMount=!1))},r_=a=>{tt.useEffect(()=>{a.clearReset()},[a])},o_=({result:a,errorResetBoundary:i,throwOnError:c,query:r,suspense:o})=>a.isError&&!i.isReset()&&!a.isFetching&&r&&(o&&a.data===void 0||Dg(c,[a.error,r])),f_=a=>{if(a.suspense){const c=o=>o==="static"?o:Math.max(o??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...o)=>c(r(...o)):c(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},h_=(a,i)=>(a==null?void 0:a.suspense)&&i.isPending,d_=(a,i,c)=>i.fetchOptimistic(a).catch(()=>{c.clearReset()});function m_(a,i,c){const r=a_(),o=s_(),h=Cg(),m=h.defaultQueryOptions(a),d=h.getQueryCache().get(m.queryHash),v=a.subscribed!==!1;m._optimisticResults=r?"isRestoring":v?"optimistic":void 0,f_(m),c_(m,o,d),r_(o);const[S]=tt.useState(()=>new i(h,m)),b=S.getOptimisticResult(m),y=!r&&v;if(tt.useSyncExternalStore(tt.useCallback(p=>{const _=y?S.subscribe(ye.batchCalls(p)):Ue;return S.updateResult(),_},[S,y]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),tt.useEffect(()=>{S.setOptions(m)},[m,S]),h_(m,b))throw d_(m,S,o);if(o_({result:b,errorResetBoundary:o,throwOnError:m.throwOnError,query:d,suspense:m.suspense}))throw b.error;return m.notifyOnChangeProps?b:S.trackResult(b)}function Uh(a,i){return m_(a,Pb)}const Mv=!1;var Hg=tt.useLayoutEffect;function Yl(a){return a[a.length-1]}function Lg(a,i){return typeof a=="function"?a(i):a}const wh=Object.prototype.hasOwnProperty;function Bg(a){for(const i in a)if(wh.call(a,i))return!0;return!1}const Yc=()=>Object.create(null),pi=(a,i)=>ql(a,i,!0);function ql(a,i,c,r=0){if(a===i)return a;if(r++>500)return i;const o=Array.isArray(a)&&Array.isArray(i);if(!o&&!(Jc(a)&&Jc(i)))return i;const h=Object.keys(a),m=h.length,d=Object.keys(i),v=d.length;if(o?m!==a.length||v!==i.length||m&&Yl(h)!==`${m-1}`||v&&Yl(d)!==`${v-1}`:m!==Object.getOwnPropertyNames(a).length||v!==Object.getOwnPropertyNames(i).length||Object.getOwnPropertySymbols(i).length)return i;let S=0,b,y,p;if(o){for(;S<v&&(p=S,y=a[p],b=i[p],b=y===b?y:typeof y=="object"?ql(y,b,c,r):b,b===y);S++);if(S===v&&m===v)return a}else{let E=m===v,D=!0;for(;S<v;S++){p=d[S],y=a[p];const M=i[p];b=y===M?y:typeof y=="object"?ql(y,M,c,r):M,E&&(E=b===y&&(h[S]===p||wh.call(a,p))),D&&(D=Object.is(b,M)),h[S]=b}if(E)return Object.getOwnPropertySymbols(a).length?i:a;if(D)return i}const _=o?d.fill(0):c?Yc():{};for(let E=0;E<v;E++)p=o?E:d[E],o?(y=a[p],E>S&&(b=i[p],b=y===b?y:typeof y=="object"?ql(y,b,c,r):b),_[p]=E<S?y:b):_[p]=h[E];return _}function Jc(a){var i;return!a||typeof a!="object"?!1:(((i=Object.getPrototypeOf(a))==null?void 0:i.constructor)??Object)===Object}function $n(a,i,c,r){if(a===i)return!0;if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return!1;for(let o=0,h=a.length;o<h;o++){const m=a[o],d=i[o];if(m!==d&&!$n(m,d,c,r))return!1}return!0}if(Jc(a)&&Jc(i)){if(c){for(const h in i)if((r||i[h]!==void 0)&&!$n(a[h],i[h],c,r))return!1;return!0}let o=0;if(r)o=Object.keys(a).length;else for(const h in a)a[h]!==void 0&&o++;for(const h in i)if((r||i[h]!==void 0)&&(o--===0||!$n(a[h],i[h],c,r)))return!1;return o===0}return!1}const y_=/[\x00-\x1f\x7f"<>`{}]/g;function v_(a){return a.replace(y_,i=>"%"+i.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function xv(a){let i;try{i=decodeURI(a)}catch{i=a.replaceAll(/%[0-9A-F]{2}/gi,c=>{try{return decodeURI(c)}catch{return c}})}return v_(i)}const g_=["http:","https:","mailto:","tel:"];function Ku(a){var i,c;if(a[0]!=="/"&&a.includes(":"))return(c=(i=/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(a))==null?void 0:i[1])==null?void 0:c.replace(/[\t\n\r]/g,"").toLowerCase()}const qg=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Qg(a,i){if(!a)return!1;if(qg.test(a))return!0;const c=Ku(a);return c?!i.has(c):!1}function Bu(a){if(!a)return a;let i=a;if(/[%\\\x00-\x1f\x7f]/.test(a)){const c=/%25|%5C/gi;let r=0,o;for(i="";(o=c.exec(a))!==null;)i+=xv(a.slice(r,o.index))+o[0],r=c.lastIndex;i+=xv(r?a.slice(r):a)}return i}function S_(a){return/[\s\u0080-\uFFFF]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function p_(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let c=0;c<a.length;c++)if(a[c]!==i[c])return!1;return!0}function jh(){throw new Error("Invariant failed")}function Ei(a){return a.replace(/\/{2,}/g,"/")}function Yg(a){return a==="/"?a:a.replace(/^\/+/,"")}function zn(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/+$/,""):a}function Gg(a){return zn(Yg(a))}function Uv(a,i){return a!=null&&a.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function wv(a,i,c="never",r){if(i.includes("//")&&(i=Ei(i)),i.startsWith("/"))return i.length===1||c==="preserve"?i:c==="always"?i.endsWith("/")?i:`${i}/`:i.endsWith("/")?i.slice(0,-1):i;const o=i===".";let h;if(r){h=o?a:a+"\0"+i;const S=r.get(h);if(S)return S}let m;if(o)m=a.split("/");else{for(a.includes("//")&&(a=Ei(a)),m=a.split("/");m.length>1&&Yl(m)==="";)m.pop();const S=i.split("/");for(let b=0,y=S.length;b<y;b++){const p=S[b];p===""?b?b===y-1&&m.push(p):m=[p]:p===".."?m.length>1?m.pop():m=[""]:p==="."||m.push(p)}}m.length>1&&(Yl(m)===""?c==="never"&&m.pop():c==="always"&&m.push(""));const d=m.join("/"),v=(o?Ei(d):d)||"/";return h&&r&&r.set(h,v),v}function b_(a){const i=new Map(a.map(r=>[encodeURIComponent(r),r])),c=new RegExp([...i.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return r=>r.replace(c,o=>i.get(o)??o)}function __(a){return a==null||a===""}function T_(a,i,c){if(typeof i!="string")return""+(i??void 0);const r=a==="_splat";if(r&&(!i||/^[a-zA-Z0-9\-._~!/]*$/.test(i)))return i;let o=encodeURIComponent(i);return r&&(o=o.replaceAll("%2F","/")),c?c(o):o}function jv(a,i,c,r,o){const h=a.endsWith("/")?"/":"";let m="";for(const d of i){if(typeof d=="string"){m+=d;continue}const[v,S,b,y]=d,p=v===2,_=p&&y!==void 0?y+h:y;let E=c[S];if(!(v===3&&E==null)){if(o&&(o[S]=E,p&&(o["*"]=E)),p&&__(E)){if(b==="/"&&!_)continue;E=""}m+=b+T_(S,E,r)+(_||"")}}return m+h||"/"}function Yi(a){return(a==null?void 0:a.isNotFound)===!0}function E_(){try{return sessionStorage}catch{return}}const O_="tsr-scroll-restoration-v1_3",Oi=E_();function C_(){try{return JSON.parse((Oi==null?void 0:Oi.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function R_(){try{Oi==null||Oi.setItem(O_,JSON.stringify(Dl))}catch{}}const Dl=C_(),Hv="data-scroll-restoration-id",A_=a=>a.state.__TSR_key||a.href;function z_(a){const i=a.getAttribute(Hv);if(i)return`[${Hv}="${i}"]`;let c="",r=a,o;for(;o=r.parentNode;){let h=1,m=r;for(;m=m.previousElementSibling;)h++;const d=`${r.localName}:nth-child(${h})`;c=c?`${d} > ${c}`:d,r=o}return c}let jc=!1;const Gc="window";function Sh(a){try{return typeof a=="function"?a():document.querySelector(a)}catch{}}function Lv(a){const i=new Set;for(const c of a){if(c===Gc)continue;const r=Sh(c);r&&i.add(r)}return i}function N_(a,i){const c=a.options.scrollRestoration,r=a._scroll;c&&(r.restoring=!0);const o=a.options.getScrollRestorationKey||A_,h=new Set,m=d=>{const v=Dl[d]||(Dl[d]={});for(const S of h)S===document?v[Gc]={scrollX,scrollY}:S.isConnected&&(v[z_(S)]={scrollX:S.scrollLeft,scrollY:S.scrollTop})};c&&!r.restoration&&(r.restoration=!0,jc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{jc||h.add(d.target)},!0),a.subscribe("onBeforeLoad",d=>{d.fromLocation&&m(o(d.fromLocation)),h.clear()}),addEventListener("pagehide",()=>{m(o(a.stores.resolvedLocation.get()??a.stores.location.get())),R_()})),!r.reset&&(r.reset=!0,a.subscribe("onRendered",d=>{var D;const v=a.options.scrollRestorationBehavior,S=a.options.scrollToTopSelectors,b=r.next,y=r.hash;let p;if(h.clear(),r.next=!0,r.hash=!1,typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return;const _=o(d.toLocation),E=d.fromLocation&&o(d.fromLocation);if(r.restoring&&E&&E!==_){const M=Dl[E];if(M){let K=Dl[_];for(const w in M){if(w===Gc){if(b)continue}else{const L=Sh(w);if(!L||b&&S&&(p??(p=Lv(S)),p.has(L)))continue}K||(K=Dl[_]={}),K[w]??(K[w]=M[w])}}}jc=!0;try{const M=d.toLocation.hash,K=d.toLocation.state.__hashScrollIntoViewOptions??!0;let w=!1;if(b){!M&&S&&(p??(p=Lv(S)));const L=M&&K&&y,X=r.restoring?Dl[_]:void 0;if(X)for(const Y in X){const{scrollX:G,scrollY:V}=X[Y];if(Y===Gc){if(L)continue;scrollTo({top:V,left:G,behavior:v}),w=!0}else{const F=Sh(Y);F&&(F.scrollLeft=G,F.scrollTop=V,p==null||p.delete(F))}}if(!M){const Y={top:0,left:0,behavior:v};if(w||scrollTo(Y),p)for(const G of p)G.scrollTo(Y)}}!w&&M&&K&&((D=document.getElementById(M))==null||D.scrollIntoView(K))}finally{jc=!1}}))}function D_(a,i=String){let c;for(const r in a){const o=a[r];o!==void 0&&(c||(c=new URLSearchParams)).set(r,i(o))}return c?c.toString():""}function Zf(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function M_(a){const i=new URLSearchParams(a),c=Object.create(null);for(const[r,o]of i.entries()){const h=c[r];h==null?c[r]=Zf(o):Array.isArray(h)?h.push(Zf(o)):c[r]=[h,Zf(o)]}return c}const Vg=/^(?:\s|["[{\d-]|fa|nu|tr)/,x_=w_(JSON.parse),U_=j_(JSON.stringify,JSON.parse);function w_(a){const i=a===JSON.parse;return c=>{c[0]==="?"&&(c=c.substring(1));const r=M_(c);for(const o in r){const h=r[o];if(typeof h=="string"){if(i&&!Vg.test(h))continue;try{r[o]=a(h)}catch{}}}return r}}function j_(a,i){const c=i===JSON.parse;function r(o){if(o&&typeof o=="object")try{return a(o)}catch{}else if(i&&typeof o=="string"){if(c&&!Vg.test(o))return o;try{return i(o),a(o)}catch{}}return o}return o=>{const h=D_(o,r);return h?`?${h}`:""}}const Ci="__root__";function H_(a){a.statusCode=a.statusCode||a.code||307;const i=new Headers(a.headers);a.href&&i.get("Location")===null&&i.set("Location",a.href);const c=new Response(null,{status:a.statusCode,headers:i});if(c.options=a,a.throw)throw c;return c}function Xg(a){return a instanceof Response&&!!a.options}function Fc(a){const i=new Map;let c,r;return{get(o){const h=i.get(o);if(h)return h.visited=!0,h.value},set(o,h){const m=i.get(o);if(m){m.value=h;return}if(i.size>=a){let v=c==null?void 0:c.next().value;for(;!v||v.visited;)v?v.visited=!1:c=i.values(),v=c.next().value;v===r&&(c=void 0),i.delete(v.key)}const d={key:o,value:h,visited:!1};r=d,i.set(o,d)},clear(){i.clear(),c=void 0,r=void 0}}}const Bl=4,Kg=5;function L_(a){const i=a.names;if(i)return i;const c=[];for(const r of a)typeof r!="string"&&c.push(r[1]);return a.names=c}function B_(a,i,c){const r=a.substring(i,c);if(r.charCodeAt(0)===36)return r.length===1?[2,"_splat","",void 0]:[1,r.substring(1),"",""];const o=r.indexOf("{");if(o>=0){const h=r.indexOf("}",o),m=r.charCodeAt(o+1)===45,d=o+(m?3:2);if(h>=0&&r.charCodeAt(d-1)===36&&(!m||d<h)){const v=r.substring(d,h);return[m?3:v?1:2,v||"_splat",r.substring(0,o),a.substring(i+h+1,v?c:a.length)]}}return r}function Zu(a,i,c,r,o,h){var K,w;let m=c;const d=i.fullPath??i.from,v=i.options,S=d.length,b=d.endsWith("/")?S-1:S,y=(v==null?void 0:v.caseSensitive)??a,p=((K=v==null?void 0:v.params)==null?void 0:K.parse)??(v==null?void 0:v.parseParams);let _,E=h?c-1:0;if(!r||d.includes("$")){_=(h==null?void 0:h.slice())??[];const L=Yl(_);L&&typeof L!="string"&&L[0]===2&&(_[_.length-1]=[L[0],L[1],L[2],L[3]===void 0?void 0:L[3]+d.substring(c-(d[c-2]==="/"?2:1),b)],E=S)}for(;m<S;){const L=m,X=d.indexOf("/",L);let Y=X===-1?S:X;const G=B_(d,L,Y);m=Y+1;let V;if(typeof G=="string"){if(!r)continue;let F=G,Q;y?Q=r.static??(r.static=new Map):(F=G.toLowerCase(),Q=r.staticInsensitive??(r.staticInsensitive=new Map));const k=Q.get(F);if(k)V=k;else{const rt=ma(r);V=rt,Q.set(F,rt)}}else{const F=G[0];let Q=G[2],k=G[3]??"";if(F===2&&(Y=S,m=Y+1),_&&E<Y&&(E<L-1&&_.push(d.substring(E,L-1)),G[2]="/"+Q,F===2&&G[3]!==void 0&&b<S&&(G[3]=k.slice(0,-1)),_.push(G),E=Y),!r)continue;const rt=y&&!!(Q||k);y||(Q=Q.toLowerCase(),k=k.toLowerCase());const ft=F===1?r.dynamic??(r.dynamic=[]):F===3?r.optional??(r.optional=[]):r.wildcard??(r.wildcard=[]),bt=F!==2&&!p&&ft.find(mt=>!mt.parse&&mt.caseSensitive===rt&&mt.prefix===Q&&mt.suffix===k);if(bt)V=bt;else{const mt=ma(r,F,rt,Q,k);V=mt,ft.push(mt),ft.length===2&&(o==null||o.push(ft))}}r=V}_&&E<b&&_.push(d.substring(E,b));const D=_==null?void 0:_.slice();if(!r)return D;if(p&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const L=ma(r,Kg);(r.pathless??(r.pathless=[])).push(L),r=L}const M=(i.path||!i.children)&&!i.isRoot;if(M&&b<S){const L=ma(r,Bl);r.index=L,r=L}return r.parse=p??null,r.priority=((w=v==null?void 0:v.params)==null?void 0:w.priority)??0,r.route||(r.data=D,M&&(r.route=i)),[r,m,D]}function Zg(a,i){if(a.parse&&!i.parse)return-1;if(!a.parse&&i.parse)return 1;if(a.parse&&i.parse&&(a.priority||i.priority))return i.priority-a.priority;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 ma(a,i=0,c,r,o){return{kind:i,depth:a?a.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:a,parse:null,priority:0,caseSensitive:c,prefix:r,suffix:o}}function q_(a,i){const c=ma(),r=[];function o(h,m,d,v){const[S,b,y]=Zu(!1,h,m,d,r,v);if(h.children)for(const p of h.children)o(p,b,S,y)}for(const h of a)o(h,1,c);for(const h of r)h.sort(Zg);i.masksTree=c,i.flatCache=Fc(1e3)}function Q_(a,i){a||(a="/");const c=i.flatCache.get(a);if(c!==void 0)return c;const r=Hh(a,i.masksTree);return i.flatCache.set(a,r),r}function Y_(a,i,c,r,o){a||(a="/"),r||(r="/");const h=i?`case\0${a}`:a;let m=o.singleCache.get(h);return m||(m=ma(),Zu(i,{from:a},1,m),o.singleCache.set(h,m)),Hh(r,m,c)}function G_(a,i,c=!1){const r=c?a:`nofuzz\0${a}`,o=i.matchCache.get(r);if(o!==void 0)return o;a||(a="/");let h;try{h=Hh(a,i.segmentTree,c)}catch(m){if(m instanceof URIError)h=null;else throw m}return h&&(h.branch=Fg(h.route)),i.matchCache.set(r,h),h}function V_(a,i=!1){const c=ma(),r=[],o={},h={};let m=0;function d(v,S,b,y){if(v.init(m),v.id in o&&jh(),o[v.id]=v,m!==0&&v.path){const D=zn(v.fullPath);(!h[D]||v.fullPath.endsWith("/"))&&(h[D]=v)}m++;const[p,_,E]=Zu(i,v,S,b,r,y);if(v._interpolation=E,v.children)for(const D of v.children)d(D,_,p,E)}d(a,1,c);for(const v of r)v.sort(Zg);return{processedTree:{segmentTree:c,singleCache:Fc(1e3),matchCache:Fc(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:h}}function Hh(a,i,c=!1){const r=a.split("/"),o=K_(a,r,i,c);if(!o)return null;const[h]=Jg(a,r,o);return{route:o.node.route,rawParams:h}}function Jg(a,i,c){var b,y,p,_;const r=X_(c.node),o=c.node.data&&L_(c.node.data),h=Object.create(null);let m=((b=c.extract)==null?void 0:b.part)??0,d=((y=c.extract)==null?void 0:y.node)??0,v=((p=c.extract)==null?void 0:p.path)??0,S=((_=c.extract)==null?void 0:_.param)??0;for(;d<r.length;m++,d++,v++){const E=r[d];if(E.kind===Bl)break;if(E.kind===Kg){m--,v--;continue}const D=i[m],M=v;if(D&&(v+=D.length),E.kind===1||E.kind===3){const K=o[S++];if(E.kind===3&&c.skipped&1<<d){m--,v=M-1;continue}const w=E.suffix||E.prefix?D.substring(E.prefix.length,D.length-E.suffix.length):D;(w||E.kind===1)&&(h[K]=decodeURIComponent(w))}else if(E.kind===2){const K=E,w=a.substring(M+K.prefix.length,a.length-K.suffix.length),L=decodeURIComponent(w);h["*"]=L,h._splat=L;break}}return c.rawParams&&Object.assign(h,c.rawParams),[h,{part:m,node:d,path:v,param:S}]}function Fg(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function X_(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function K_(a,i,c,r){if(a==="/"&&c.index)return{node:c.index,skipped:0};const o=!Yl(i),h=o&&a!=="/",m=i.length-(o?1:0),d=[{node:c,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let v=null,S=null;for(;d.length;){const b=d.pop(),{node:y,index:p,skipped:_,statics:E,dynamics:D,optionals:M}=b;let{extract:K,rawParams:w}=b;if(y.kind===2&&y.route&&!Lc(S,b))continue;if(y.parse){if(!Bv(a,i,b))continue;w=b.rawParams,K=b.extract}r&&y.route&&y.kind!==Bl&&Lc(v,b)&&(v=b);const L=p===m;if(L&&(y.route&&(!h||y.kind===Bl||y.kind===2)&&Lc(S,b)&&(S=b),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const X=L?void 0:i[p];let Y;if(L&&y.index){const G={node:y.index,index:p,skipped:_,statics:E,dynamics:D,optionals:M,extract:K,rawParams:w};let V=!0;if(y.index.parse&&(Bv(a,i,G)||(V=!1)),V){if(!D&&!M&&!_&&Z_(E,m))return G;Lc(S,G)&&(S=G)}}if(y.wildcard)for(let G=y.wildcard.length-1;G>=0;G--){const V=y.wildcard[G],{prefix:F,suffix:Q}=V;if(!(F&&(L||!(V.caseSensitive?X:Y??(Y=X.toLowerCase())).startsWith(F)))){if(Q){if(L)continue;const k=i.slice(p).join("/"),rt=k.slice(-Q.length);if((V.caseSensitive?rt:rt.toLowerCase())!==Q||k.length-Q.length<F.length)continue}d.push({node:V,index:m,skipped:_,statics:E,dynamics:D,optionals:M,extract:K,rawParams:w})}}if(y.optional){const G=_|1<<y.depth+1;for(let V=y.optional.length-1;V>=0;V--){const F=y.optional[V];d.push({node:F,index:p,skipped:G,statics:E,dynamics:D,optionals:M,extract:K,rawParams:w})}if(!L)for(let V=y.optional.length-1;V>=0;V--){const F=y.optional[V],{prefix:Q,suffix:k}=F;if(Q||k){const rt=F.caseSensitive?X:Y??(Y=X.toLowerCase());if(Q&&!rt.startsWith(Q)||k&&rt.indexOf(k,rt.length-k.length)<Q.length)continue}d.push({node:F,index:p+1,skipped:_,statics:E,dynamics:D,optionals:M+Hc(m,p),extract:K,rawParams:w})}}if(!L&&y.dynamic&&X)for(let G=y.dynamic.length-1;G>=0;G--){const V=y.dynamic[G],{prefix:F,suffix:Q}=V;if(F||Q){const k=V.caseSensitive?X:Y??(Y=X.toLowerCase());if(F&&!k.startsWith(F)||Q&&k.indexOf(Q,k.length-Q.length)<F.length)continue}d.push({node:V,index:p+1,skipped:_,statics:E,dynamics:D+Hc(m,p),optionals:M,extract:K,rawParams:w})}if(!L&&y.staticInsensitive){const G=y.staticInsensitive.get(Y??(Y=X.toLowerCase()));G&&d.push({node:G,index:p+1,skipped:_,statics:E+Hc(m,p),dynamics:D,optionals:M,extract:K,rawParams:w})}if(!L&&y.static){const G=y.static.get(X);G&&d.push({node:G,index:p+1,skipped:_,statics:E+Hc(m,p),dynamics:D,optionals:M,extract:K,rawParams:w})}if(y.pathless)for(let G=y.pathless.length-1;G>=0;G--){const V=y.pathless[G];d.push({node:V,index:p,skipped:_,statics:E,dynamics:D,optionals:M,extract:K,rawParams:w})}}if(S)return S;if(r&&v){let b=v.index;for(let p=0;p<v.index;p++)b+=i[p].length;const y=b===a.length?"/":a.slice(b);return v.rawParams??(v.rawParams=Object.create(null)),v.rawParams["**"]=decodeURIComponent(y),v}return null}function Hc(a,i){return 2**(a-i-1)}function Z_(a,i){return a===2**(i-1)-1}function Bv(a,i,c){let r,o;try{[r,o]=Jg(a,i,c)}catch{return null}if(c.rawParams=r,c.extract=o,!c.node.parse)return!0;try{if(c.node.parse(r)===!1)return null}catch{}return!0}function Lc(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===Bl)>(a.node.kind===Bl)||i.node.kind===Bl==(a.node.kind===Bl)&&i.node.depth>a.node.depth))):!0}function J_(a,i,c){const r=Gg(a),o=`/${r}`,h=i?o:o.toLowerCase(),m=`${h}/`,d={input:({url:v})=>{const S=i?v.pathname:v.pathname.toLowerCase();return S===h?v.pathname="/":S.startsWith(m)&&(v.pathname=v.pathname.slice(o.length)),v},output:({url:v})=>(v.pathname=Ei(`/${r}${v.pathname}`),v)};return c?{input:({url:v})=>ph(c,d.input({url:v})),output:({url:v})=>d.output({url:kg(c,v)})}:d}function ph(a,i){var r;const c=(r=a==null?void 0:a.input)==null?void 0:r.call(a,{url:i});if(c){if(typeof c=="string")return new URL(c);if(c instanceof URL)return c}return i}function kg(a,i){var r;const c=(r=a==null?void 0:a.output)==null?void 0:r.call(a,{url:i});if(c){if(typeof c=="string")return new URL(c);if(c instanceof URL)return c}return i}function F_(a,i){const{createMutableStore:c,createReadonlyStore:r,batch:o}=i,h=new Map,m=c("idle"),d=c(a),v=c(void 0),S=c([]),b=r(()=>S.get().map(D=>h.get(D).get())),y=r(()=>({status:m.get(),isLoading:m.get()==="pending",matches:b.get(),location:d.get(),resolvedLocation:v.get()}));function p(D){let M=h.get(D);return M||(M=c(void 0),h.set(D,M)),M}const _={status:m,location:d,resolvedLocation:v,ids:S,matches:b,byRoute:h,__store:y,getMatchStore:p,setMatches:E};function E(D){const M=S.get(),K=D.map(w=>w.routeId);o(()=>{p_(M,K)||S.set(K);for(const w of M)K.includes(w)||h.get(w).set(()=>{});for(const w of D){const L=p(w.routeId);L.get()!==w&&L.set(w)}})}return _}var Ql="__TSR_index",qv="popstate",Qv="beforeunload",k_=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Vc(a){const i=k_.exec(a);return i?"/"+a.slice(i[0].length):a}function Ig(a){return/[\x00-\x1f\x7f]/.test(a)&&(a=a.replace(/[\x00-\x1f\x7f]/g,i=>`
|
|
\r`.includes(i)?"":encodeURIComponent(i))),Vc(a)}function I_(a){let i=a.getLocation();const c=new Set,r=m=>{i=a.getLocation(),c.forEach(d=>d({location:i,action:m}))},o=m=>{a.notifyOnIndexChange??!0?r(m):i=a.getLocation()},h=async({task:m,navigateOpts:d,...v})=>{var y,p;if((d==null?void 0:d.ignoreBlocker)??!1){m();return}const S=((y=a.getBlockers)==null?void 0:y.call(a))??[],b=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&S.length&&b)for(const _ of S){const E=kc(v.path,v.state);if(await _.blockerFn({currentLocation:i,nextLocation:E,action:v.type})){(p=a.onBlocked)==null||p.call(a);return}}m()};return{get location(){return i},get length(){return a.getLength()},subscribers:c,subscribe:m=>(c.add(m),()=>{c.delete(m)}),push:(m,d,v)=>{const S=i.state[Ql];d=Yv(S+1,d),h({task:()=>{a.pushState(m,d),r({type:"PUSH"})},navigateOpts:v,type:"PUSH",path:m,state:d})},replace:(m,d,v)=>{const S=i.state[Ql];d=Yv(S,d),h({task:()=>{a.replaceState(m,d),r({type:"REPLACE"})},navigateOpts:v,type:"REPLACE",path:m,state:d})},go:(m,d)=>{h({task:()=>{a.go(m,(d==null?void 0:d.ignoreBlocker)??!1),o({type:"GO",index:m})},navigateOpts:d,type:"GO"})},back:m=>{h({task:()=>{a.back((m==null?void 0:m.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{h({task:()=>{a.forward((m==null?void 0:m.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>i.state[Ql]!==0,createHref:m=>a.createHref(m),block:m=>{var v;if(!a.setBlockers)return()=>{};const d=((v=a.getBlockers)==null?void 0:v.call(a))??[];return a.setBlockers([...d,m]),()=>{var b,y;const S=((b=a.getBlockers)==null?void 0:b.call(a))??[];(y=a.setBlockers)==null||y.call(a,S.filter(p=>p!==m))}},flush:()=>{var m;return(m=a.flush)==null?void 0:m.call(a)},destroy:()=>{var m;return(m=a.destroy)==null?void 0:m.call(a)},notify:r,_getBlockers:()=>{var m;return((m=a.getBlockers)==null?void 0:m.call(a))??[]}}}function Yv(a,i){const c=Lh();return{...i,key:c,__TSR_key:c,[Ql]:a}}function P_(a){var V,F;const i=typeof document<"u"?window:void 0,c=i.history.pushState,r=i.history.replaceState;let o=[];const h=()=>o,m=Q=>o=Q,d=Q=>Ig(Q),v=(()=>kc(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!((V=i.history.state)!=null&&V.__TSR_key)&&!((F=i.history.state)!=null&&F.key)){const Q=Lh();i.history.replaceState({[Ql]:0,key:Q,__TSR_key:Q},"")}let S=v(),b,y=!1,p=!1,_=!1,E=!1;const D=()=>S;let M;const K=()=>{M&&(G._ignoreSubscribers=!0,(M[2]?i.history.pushState:i.history.replaceState)(M[1],"",M[0]),G._ignoreSubscribers=!1,M=void 0,b=void 0)},w=(Q,k,rt)=>{const ft=!!M;ft||(b=S),S=kc(k,rt),M=[S.href,rt,(M==null?void 0:M[2])||Q],ft||queueMicrotask(()=>K())},L=Q=>{S=v(),G.notify({type:Q})},X=async()=>{if(E=!1,p){p=!1;return}const Q=v(),k=Q.state[Ql]-S.state[Ql],rt=k===1,ft=k===-1,bt=!rt&&!ft||y;y=!1;const mt=bt?"GO":ft?"BACK":"FORWARD",st=bt?{type:"GO",index:k}:{type:ft?"BACK":"FORWARD"};if(_)_=!1;else{const Z=h();if(typeof document<"u"&&Z.length){for(const $ of Z)if(await $.blockerFn({currentLocation:S,nextLocation:Q,action:mt})){p=!0,i.history.go(-k),G.notify(st);return}}}S=v(),G.notify(st)},Y=Q=>{if(E){E=!1;return}let k=!1;const rt=h();if(typeof document<"u"&&rt.length)for(const ft of rt){const bt=ft.enableBeforeUnload??!0;if(bt===!0){k=!0;break}if(typeof bt=="function"&&bt()===!0){k=!0;break}}if(k)return Q.preventDefault(),Q.returnValue=""},G=I_({getLocation:D,getLength:()=>i.history.length,pushState:(Q,k)=>w(!0,Q,k),replaceState:(Q,k)=>w(!1,Q,k),back:Q=>(Q&&(_=!0,E=!0),i.history.back()),forward:Q=>{Q&&(_=!0,E=!0),i.history.forward()},go:(Q,k)=>{y=!0,k&&(_=!0,E=!0),i.history.go(Q)},createHref:Q=>d(Q),flush:K,destroy:()=>{i.history.pushState=c,i.history.replaceState=r,i.removeEventListener(Qv,Y,{capture:!0}),i.removeEventListener(qv,X)},onBlocked:()=>{b&&S!==b&&(S=b)},getBlockers:h,setBlockers:m,notifyOnIndexChange:!1});return G._ignoreNextBeforeUnload=Q=>{E=!1;try{Q=new URL(Q,i.document.baseURI).href,E=/^https?:/.test(Q)&&(!Q.includes("#")||Q.split("#")[0]!==i.location.href.split("#")[0])}catch{}},i.addEventListener(Qv,Y,{capture:!0}),i.addEventListener(qv,X),i.history.pushState=function(...Q){const k=c.apply(i.history,Q);return G._ignoreSubscribers||L("PUSH"),k},i.history.replaceState=function(...Q){const k=r.apply(i.history,Q);return G._ignoreSubscribers||L("REPLACE"),k},G}function kc(a,i){const c=Ig(a),r=c.indexOf("#"),o=c.indexOf("?");if(!i){const h=Lh();i={[Ql]:0,key:h,__TSR_key:h}}return{href:c,pathname:c.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:c.length),hash:r>-1?c.substring(r):"",search:o>-1?c.slice(o,r===-1?void 0:r):"",state:i}}function Lh(){return(Math.random()+1).toString(36).substring(7)}function Jf(a,i){return a.protocol!=="http:"&&a.protocol!=="https:"||a.origin!==i||!!a.username||!!a.password}function Ff(a){return a.pathname+a.search+a.hash}function Gv(a){var i,c;return a.options.loader||a.options.beforeLoad||a.lazyFn||((i=a.options.component)==null?void 0:i.preload)||((c=a.options.pendingComponent)==null?void 0:c.preload)}function Wc(a,i){return{fromLocation:i,toLocation:a,pathChanged:(i==null?void 0:i.pathname)!==a.pathname,hrefChanged:(i==null?void 0:i.href)!==a.href,hashChanged:(i==null?void 0:i.hash)!==a.hash}}function Vv({key:a,__TSR_key:i,__TSR_index:c,__hashScrollIntoViewOptions:r,...o}){return o}function $_(a){return a.findIndex(i=>i.status==="error"||i.status==="notFound"||i._notFound)+1}function W_(a,i,c,r,o,h){var m,d,v,S;r&&(i=i.slice(0,r)),o&&(c=c.slice(0,o));for(const b of i){if(h&&a._tx!==h)return;c.some(y=>y.routeId===b.routeId)||(d=(m=a.routesById[b.routeId].options).onLeave)==null||d.call(m,b)}for(const b of c){if(h&&a._tx!==h)return;(S=(v=a.routesById[b.routeId].options)[i.some(y=>y.routeId===b.routeId)?"onStay":"onEnter"])==null||S.call(v,b)}}var tT=class{constructor(a,i){var c;this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async r=>(r(),!1),this.update=r=>{const o=this.options;this.options={...o,...r},this.isServer=this.options.isServer??Mv??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=P_()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const h=this.options.basepath??"/",m=this.options.rewrite,d=this.basepath!==h||(o==null?void 0:o.rewrite)!==m||(o==null?void 0:o.caseSensitive)!==this.options.caseSensitive;if(d&&(this.basepath=h,this.rewrite=h!=="/"&&Gg(h)?J_(h,this.options.caseSensitive,m):m),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||Mv){this.routeTree=this.options.routeTree;let v;v=this.buildRouteTree(),this.setRoutes(v)}if(this.stores)d&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=F_(this.latestLocation,v),N_(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const r=V_(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&q_(this.options.routeMasks,r.processedTree),{...r,resolvePathCache:Fc(1e3)}},this.subscribe=(r,o)=>{const h={eventType:r,fn:o};return this.subscribers.add(h),()=>{this.subscribers.delete(h)}},this.emit=r=>{for(const o of this.subscribers)if(o.eventType===r.type)try{o.fn(r)}catch(h){console.error(h)}},this.parseLocation=(r,o)=>{const h=({pathname:S,search:b,hash:y,href:p},_)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(S)){const K=this.options.parseSearch(b),w=this.options.stringifySearch(K);return{href:S+w+y,publicHref:S+w+y,pathname:Bu(S),external:!1,searchStr:w,search:pi(o==null?void 0:o.search,K),hash:Bu(y.slice(1)),state:ql(o==null?void 0:o.state,_)}}const E=ph(this.rewrite,new URL(p,this.origin)),D=this.options.parseSearch(E.search),M=this.options.stringifySearch(D);return E.search=M,{href:E.href.replace(E.origin,""),publicHref:p,pathname:Bu(Vc(E.pathname)),external:!!this.rewrite&&Jf(E,this.origin),searchStr:M,search:pi(o==null?void 0:o.search,D),hash:Bu(E.hash.slice(1)),state:ql(o==null?void 0:o.state,_)}},m=h(r,r.state),{__tempLocation:d,__tempKey:v}=m.state;if(d&&(!v||v===this.tempLocationKey)){const S=h(d,{...d.state,__tempLocation:void 0,key:m.state.key,__TSR_key:m.state.__TSR_key});return S.maskedLocation=m,S}return m},this.matchRoutes=(r,o,h)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:o},h):this.matchRoutesInternal(r,o),this.getMatchedRoutes=r=>{const o=Object.create(null),h=G_(zn(r),this.processedTree,!0);return h&&Object.assign(o,h.rawParams),[(h==null?void 0:h.branch)||[this.routesById.__root__],o,h==null?void 0:h.route]},this.buildLocation=r=>{{const d=this.staticLocations.get(r);if(d)return d}let o=!1;const h=(d={})=>{var st;if(d.href){const Z=kc(d.href,{});d={...d,to:ph(this.rewrite,new URL(Z.pathname,this.origin)).pathname,search:this.options.parseSearch(Z.search),hash:Z.hash.slice(1)}}const v=d._fromLocation||this._pendingLocation||this.latestLocation;let S;const b=()=>(o=!0,v),y=()=>(o=!0,S??(S=this.matchRoutesLightweight(v))),p=d.to?`${d.to}`:".",_=wv(p[0]==="/"?"":d.unsafeRelative==="path"?b().pathname:d.from??y()[1],p,this.options.trailingSlash,this.resolvePathCache),E=this.routesByPath[zn(_)],D=_.includes("$");let M;if(E)M=E._branch??(E._branch=Fg(E));else if(D)M=[];else{const[Z,$,et]=this.getMatchedRoutes(_);M=Z,this.options.notFoundRoute&&(!et||et.path!=="/"&&$["**"])&&(M=[...M,this.options.notFoundRoute])}const K=D?(E==null?void 0:E._interpolation)??Zu(!1,{fullPath:_},0):void 0;let w;for(const Z of M){const $=((st=Z.options.params)==null?void 0:st.stringify)??Z.options.stringifyParams;if($){const et=y()[3];if(w??(w=kf(d.params,et)),!Bg(w))break;w===et&&(w=Object.assign(Yc(),w));try{Object.assign(w,$(w))}catch{}}}w??(w=kf(d.params,nT(d.params,K)?y()[3]:If));const L=r.leaveParams?_:Vc(Bu(K?jv(_,K,w,this.pathParamsDecoder):_)),X=lT(M,r._includeValidateSearch),Y=()=>{var $;let Z=y()[2];if(r._includeValidateSearch&&(($=this.options.search)!=null&&$.strict)){const et={};M.forEach(Dt=>{if(Dt.options.validateSearch)try{Object.assign(et,Xc(Dt.options.validateSearch,{...et,...Z}))}catch{}}),Z=et}return Z},G=X.length?aT(X,Y(),d):d.search===!0?Y():typeof d.search=="function"?d.search(Y()):d.search||If,V=this.options.stringifySearch(G),F=d.hash===!0?b().hash:typeof d.hash=="function"?d.hash(b().hash):d.hash||void 0,Q=F?`#${F}`:"",k=d.state?d.state===!0?b().state:typeof d.state=="function"?d.state(b().state):d.state:If,rt=`${L}${V}${Q}`;let ft,bt,mt=!1;if(this.rewrite){const Z=new URL(rt,this.origin),$=Z.origin,et=kg(this.rewrite,Z);ft=Ff(Z),Jf(et,$)?(bt=et.href,mt=!0):bt=Vc(Ff(et))}else ft=S_(rt),bt=ft;return{publicHref:bt,href:ft,pathname:L,search:G,searchStr:V,state:k,hash:F??"",external:mt,unmaskOnReload:d.unmaskOnReload}},m=h(r);if(r.mask)m.maskedLocation=h({from:r.from,...r.mask});else if(this.options.routeMasks){const d=Q_(m.pathname,this.processedTree);if(d){const v=Object.assign(Yc(),d.rawParams),{from:S,params:b,...y}=d.route,p=kf(b,v);m.maskedLocation=h({from:r.from,...y,params:p})}}return!o&&r._fromLocation&&!m.maskedLocation&&this.staticLocations.set(r,m),m},this.commitLocation=async({viewTransition:r,ignoreBlocker:o,...h})=>{const m=h.maskedLocation??h;if(m.external)return Xv(this,m.publicHref,{replace:h.replace,ignoreBlocker:o});let d;const v=zn(this.latestLocation.href)===zn(h.href)&&$n(Vv(h.state),Vv(this.latestLocation.state)),S=this._commitPromise;let b;const y=new Promise(p=>{b=p});if(y.resolve=()=>{b(),S==null||S.resolve()},this._commitPromise=y,v)this.load();else{let{maskedLocation:p,hashScrollIntoView:_,...E}=h;p&&(E={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...E,search:E.searchStr,state:{...E.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(E.unmaskOnReload??this.options.unmaskOnReload??!1)&&(E.state.__tempKey=this.tempLocationKey)),E.state={...E.state,__hashScrollIntoViewOptions:_??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=r,d=h.replace?"REPLACE":"PUSH",this.history[d==="REPLACE"?"replace":"push"](E.publicHref,E.state,{ignoreBlocker:o}),this.history.subscribers.size||this.load({action:{type:d}})}return this._scroll.next=h.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:r,resetScroll:o,hashScrollIntoView:h,viewTransition:m,ignoreBlocker:d,...v}={})=>{const S=this.buildLocation({...v,_includeValidateSearch:!0});this._pendingLocation=S;const b=this.commitLocation({...S,viewTransition:m,replace:r,resetScroll:o,hashScrollIntoView:h,ignoreBlocker:d});return queueMicrotask(()=>{this._pendingLocation===S&&(this._pendingLocation=void 0)}),b},this.navigate=async({to:r,reloadDocument:o,href:h,publicHref:m,...d})=>{const v=h?Ku(h):void 0;if(v||o){if(r!==void 0||!h){const b=this.buildLocation({to:r,...d}),y=b.maskedLocation??b;h??(h=y.publicHref),m??(m=y.publicHref)}return Xv(this,!v&&m?m:h,d)}return this.buildAndCommitLocation({...d,href:h,to:r,_isNavigate:!0})},this.load=async r=>{this.updateLatestLocation(),r!=null&&r.action&&(this._scroll.hash=r.action.type==="PUSH"||r.action.type==="REPLACE"),await dT(this,r)},this.startViewTransition=r=>{var h,m;const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document.startViewTransition=="function"){let d;if(typeof o=="object"&&((m=(h=window.CSS)==null?void 0:h.supports)!=null&&m.call(h,"selector(:active-view-transition-type(a))"))){const v=this.latestLocation,S=this.stores.resolvedLocation.get(),b=typeof o.types=="function"?o.types(Wc(v,S)):o.types;if(b===!1)return r();d={update:r,types:b}}else d=r;return document.startViewTransition(d).updateCallbackDone}return r()},this.invalidate=r=>{var y,p;const o=this._committed,h=r==null?void 0:r.filter,m=this._preloads,d=new Set,v=_=>{(!h||h(_))&&d.add(_.id)};o.forEach(v),this._cache.forEach(v),m==null||m.forEach(_=>_.forEach(v)),(y=this._tx)==null||y[3].forEach(v);const S=[];for(const[_,E]of m??[])E.some(D=>d.has(D.id))&&(m.delete(_),S.push(_));const b=_=>{if(d.has(_.id)){const E=this.routesById[_.routeId],D={..._,invalid:!0,...(r!=null&&r.forcePending||_.status==="error"||_.status==="notFound")&&Gv(E)?{status:"pending",error:void 0}:void 0};return _._flight=void 0,D}return _};this._committed=o.map(b);for(const[_,E]of this._cache)d.has(_)&&(E.invalid=!0,r!=null&&r.forcePending&&(E.status="pending"));for(const _ of d)(p=this._flights)==null||p.delete(_);for(const _ of S)_.abort();return this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.resolveRedirect=r=>{const o=r.options;let h=r.headers.get("Location")||o.href;if(!h){const d=this.buildLocation(o);h=(d.maskedLocation??d).publicHref||"/"}let m;if(qg.test(h)||(m=Ku(h))&&!this.protocolAllowlist.has(m))throw new Error("Redirect blocked: unsafe protocol");if(m==="http:"||m==="https:"){const d=new URL(h);d.pathname.startsWith("//")?h=d.href:Jf(d,this.origin)||(h=Ff(d),m=void 0)}return m&&(o.reloadDocument=!0),o.href=h,r.headers.set("Location",h),r},this.clearCache=r=>{var b;const o=this._cache,h=this._preloads,m=r==null?void 0:r.filter,d=[],v=[];for(const[y,p]of o)(!m||m(p))&&(v.push(y),d.push(p));const S=[];for(const[y,p]of h??[])(!m||p.some(m))&&(S.push(y),d.push(...p));for(const y of v)o.delete(y);for(const y of S)h.delete(y);for(const y of d){const p=y._flight;y._flight=void 0,p&&!--p[2]&&(((b=this._flights)==null?void 0:b.get(y.id))===p&&this._flights.delete(y.id),S.push(p[1]))}for(const y of S)y.abort()},this.loadRouteChunk=Ri,this.preloadRoute=r=>mT(this,r),this.matchRoute=(r,o)=>{const h={...r,to:r.to?wv(r.from||"",r.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:r.params||{},leaveParams:!0},m=this.buildLocation(h),d=this.stores.status.get()==="pending";if(o!=null&&o.pending&&!d)return!1;const v=(o==null?void 0:o.pending)??!d?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),S=Y_(m.pathname,(o==null?void 0:o.caseSensitive)??!1,(o==null?void 0:o.fuzzy)??!1,v.pathname,this.processedTree);return!S||r.params&&!$n(S.rawParams,r.params,!0)?!1:(o==null?void 0:o.includeSearch)??!0?$n(v.search,m.search,!0)?S.rawParams:!1:S.rawParams},this.getStoreConfig=i,(c=a.pathParamsAllowedCharacters)!=null&&c.length&&(this.pathParamsDecoder=b_(a.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??U_,parseSearch:a.parseSearch??x_,protocolAllowlist:a.protocolAllowlist??g_}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(a){Object.assign(this,a),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const i=this.options.notFoundRoute;i&&(i.init(99999999999),this.routesById[i.id]!==i&&(i._interpolation=Zu(!1,i,0)),this.routesById[i.id]=i)}matchRoutesInternal(a,i){var p,_;const[c,r,o]=this.getMatchedRoutes(a.pathname);let h=c,m=!1;(o?o.path!=="/"&&r["**"]:zn(a.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:m=!0);const d=m?iT(this.options.notFoundMode,h):void 0,v=new Array(h.length),S=this._committed,b=(E,D)=>{const M=S[D];return(M==null?void 0:M.routeId)===E.id?M:E===this.options.notFoundRoute?S.find(K=>K.routeId===E.id):void 0};let y;for(let E=0;E<h.length;E++){const D=h[E],M=v[E-1];let K,w,L;{const st=(M==null?void 0:M.search)??a.search,Z=(M==null?void 0:M._strictSearch)??void 0;try{const $=Xc(D.options.validateSearch,{...st})??void 0;K={...st,...$},w={...Z,...$}}catch($){let et=$;if($ instanceof Ic||(et=new Ic($.message,{cause:$})),i!=null&&i.throwOnError)throw et;K=st,w={},L=et}}let X="",Y="";try{X=((_=(p=D.options).loaderDeps)==null?void 0:_.call(p,{search:K}))??"",Y=X&&JSON.stringify(X)||""}catch(st){if(i!=null&&i.throwOnError)throw st;L??(L=st)}const G=Yc(),V=D._interpolation?jv(D.fullPath,D._interpolation,r,this.pathParamsDecoder,G):D.fullPath,F=D.id+V+Y,Q=b(D,E),k=this._cache.get(F)??((Q==null?void 0:Q.id)===F?Q:void 0);y=(k==null?void 0:k._strictParams)??Object.assign(G,y);let rt;if(!k)try{Kv(D,y)}catch(st){if(Yi(st)||Xg(st)?rt=st:rt=new eT(st.message,{cause:st}),i!=null&&i.throwOnError)throw rt}const ft=Q?"stay":"enter";let bt;if(k)bt={...k,cause:ft,search:pi(Q?Q.search:k.search,K),_strictSearch:w,searchError:L};else{const st=Gv(D)?"pending":"success";bt={id:F,ssr:D.options.ssr,index:E,routeId:D.id,params:(Q==null?void 0:Q.params)??y,_strictParams:y,pathname:V,updatedAt:Date.now(),search:Q?pi(Q.search,K):K,_strictSearch:w,searchError:L,status:st,isFetching:!1,error:void 0,paramsError:rt,context:{},abortController:(i==null?void 0:i._controller)??new AbortController,cause:ft,loaderDeps:Q?ql(Q.loaderDeps,X):X,invalid:!1,preload:!1,staticData:D.options.staticData||{},fullPath:D.fullPath}}const mt=d===D.id;bt._notFound&&!mt&&(bt.error=void 0),bt._notFound=mt,v[E]=bt}for(let E=0;E<v.length;E++){const D=v[E];D.params=D.cause==="stay"?pi(D.params,y):y,i!=null&&i._controller&&(D.context={})}return v}matchRoutesLightweight(a){const i=Yl(this.stores.ids.get()),c=i?this.stores.byRoute.get(i).get():void 0,r=c==null?void 0:c.id,o=this.lightweightCache.get(a);if(o&&o[0]===r)return o[1];const[h,m]=this.getMatchedRoutes(a.pathname),d=Yl(h),v={...a.search};for(const p of h)try{Object.assign(v,Xc(p.options.validateSearch,v))}catch{}const S=c&&c.routeId===d.id&&c.pathname===a.pathname;let b;if(S)b=c.params;else{const p=m;for(const _ of h)try{Kv(_,p)}catch{}b=p}const y=[h,d.fullPath,v,b];return this.lightweightCache.set(a,[r,y]),y}};async function Xv(a,i,{replace:c,ignoreBlocker:r}){var o,h;if(!Qg(i,a.protocolAllowlist)){if(!r){const m=a.history._getBlockers();for(const d of m)if(d!=null&&d.blockerFn&&await d.blockerFn({currentLocation:a.history.location,nextLocation:a.history.location,action:c?"REPLACE":"PUSH"}))return}(h=(o=a.history)._ignoreNextBeforeUnload)==null||h.call(o,i),c?window.location.replace(i):window.location.href=i}}var Ic=class extends Error{},eT=class extends Error{};function Xc(a,i){if(a==null)return{};if("~standard"in a){const c=a["~standard"].validate(i);if(c instanceof Promise)throw new Ic("Async validation not supported");if(c.issues)throw new Ic(JSON.stringify(c.issues,void 0,2),{cause:c});return c.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function kf(a,i){if(a===void 0||a===!0)return i;const c=Object.create(null);return a===!1||a===null?c:typeof a=="function"?(Object.assign(c,i),Object.assign(c,a(c))):Object.assign(c,i,a)}function nT(a,i){return typeof a=="function"?!0:!i||a===!1||a===null?!1:a===void 0||a===!0||i.some(c=>typeof c!="string"&&!wh.call(a,c[1]))}const If=Object.freeze({});function lT(a,i){var r;const c=[];for(let o=0;o<a.length;o++){const h=a[o].options;if("search"in h)(r=h.search)!=null&&r.middlewares&&c.push(...h.search.middlewares);else if(h.preSearchFilters||h.postSearchFilters){const d=({search:v,next:S})=>{const b=S(h.preSearchFilters?h.preSearchFilters.reduce((y,p)=>p(y),v):v);return h.postSearchFilters?h.postSearchFilters.reduce((y,p)=>p(y),b):b};c.push(d)}const m=h.validateSearch;if(i&&m){const d=({search:v,next:S,meta:b})=>{const y=S(v);try{const p=Xc(m,y);if(b&&p)for(const _ in p)_ in y||(b.defaulted||(b.defaulted=new Map)).set(_,p[_]);return{...y,...p}}catch{}return y};c.push(d)}}return c}function aT(a,i,c){const r=(o,h,m)=>{if(o>=a.length){if(!c.search)return{};if(c.search===!0)return h;const v=Lg(c.search,h);return m&&(m.explicit=v),v}const d=(v,S)=>{if(S){const b=m||{};return{search:r(o+1,v,b),meta:b}}return r(o+1,v,m)};return a[o]({search:h,next:d,meta:m})};return r(0,i)}function iT(a,i){if(a!=="root"){let c;for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.options.notFoundComponent)return o.id;c||(c=o.children&&o.id)}if(c)return c}return Ci}function Kv(a,i){var r;const c=((r=a.options.params)==null?void 0:r.parse)??a.options.parseParams;c&&Object.assign(i,c(i))}function bh(a,i){var c,r;return(r=(c=a.options[i])==null?void 0:c.preload)==null?void 0:r.call(c)}function uT(a,i){const c=bh(a,"component");let r=bh(a,"pendingComponent");return i&&(r?r=r.then(i):i()),c&&r?Promise.all([c,r]).then(()=>{}):c??r}function Ri(a,i,c){const r=()=>i===!1?void 0:i?bh(a,i):uT(a,c),o=a._lazy;if(o)return o===!0?r():o.then(r);if(!a.lazyFn)return r();const h=a.lazyFn().then(m=>{{const{id:d,...v}=m.options;Object.assign(a.options,v),a._lazy=!0}},m=>{throw a._lazy=void 0,m});return a._lazy=h,h.then(r)}function Bh(a){const i=a.findIndex(c=>c.status!=="success"||c._notFound)+1;return i&&i<a.length?a.slice(0,i):a}const Nn=0,Wn=1,tr=2,Ce=3,Gl=[4];function Ju(a){return typeof a[0]=="number"}function Ca(a,i){return i.aborted?Promise.race([Promise.reject(i),a]):new Promise((c,r)=>{const o=()=>r(i);i.addEventListener("abort",o,{once:!0}),Promise.resolve(a).then(c,r).then(()=>i.removeEventListener("abort",o))})}function Ra(a,i){return a.routesById[i.routeId]}function Fu(a,i,c){return Xg(a)?[Ce,a]:Yi(a)?(a.routeId||(a.routeId=c),[tr,a]):i?(typeof(a==null?void 0:a.then)=="function"&&(a=new Error("A Promise was thrown",{cause:a})),[Wn,a]):[Nn,a]}function qh(a,i){var r,o;let c=Fu(i,!0,a.id);if(c[0]!==Wn)return c;try{(o=(r=a.options).onError)==null||o.call(r,c[1])}catch(h){c=Fu(h,!0,a.id)}return c}function Gu(a,i,c,r,o){return o[0].signal.aborted?Gl:Gh(a,i,c,qh(c,r),o)}async function sT(a,i,c,r,o,h){var b,y;const[m,d]=i,v=c[0].signal,S=!!c[3];for(let p=c[6]??0;p<r;p++){const _=d[p],E=Ra(a,_);_.abortController=c[0];const D=((b=d[p-1])==null?void 0:b.context)??a.options.context??{},M={params:_.params,location:m,navigate:X=>a.navigate({...X,_fromLocation:m}),buildLocation:a.buildLocation,cause:S?"preload":_.cause,abortController:c[0],preload:S,matches:d,routeId:E.id};try{const X=_._ctx||(_._ctx=E.options.context?E.options.context({...M,deps:_.loaderDeps,context:D})||{}:void 0);_.context={...D,...X}}catch(X){return Pn(a,_),[p,Gu(a,i,E,X,c)]}if(v.aborted)return[p,Gl];const K=_.paramsError??_.searchError;if(K!==void 0)return Pn(a,_),[p,Gu(a,i,E,K,c)];const w=E.options.beforeLoad;if(!w)continue;const L=_.status;p>=h&&(_.status="pending",(y=c[7])==null||y.call(c));try{ku(a,_,"beforeLoad",c[0]);const X=w({...M,search:_.search,context:_.context,...a.options.additionalContext}),Y=await(typeof(X==null?void 0:X.then)=="function"?Ca(X,v):X);if(v.aborted)return[p,Gl];const G=Gh(a,i,E,Fu(Y,!1,E.id),c);if(G[0]!==Nn)return Pn(a,_),[p,G];_.context={..._.context,...Y}}catch(X){return Pn(a,_),[p,Gu(a,i,E,X,c)]}finally{_.status=L,ku(a,_,!1,c[0])}}o()}function Qh(a,i,c){var r;if(!(!c||--c[2])){if(((r=a._flights)==null?void 0:r.get(i.id))===c){const o=a._tx;if(o&&!o[0].signal.aborted&&!o[3].includes(i)&&o[3].some(h=>h.id===i.id)&&o[3].some(h=>h.isFetching==="beforeLoad"))return;a._flights.delete(i.id)}return c[1]}}function Pn(a,i){var r;const c=i._flight;i._flight=void 0,(r=Qh(a,i,c))==null||r.abort()}function we(a,i,c,r){var h;const o=[];for(const m of i)if(!(c!=null&&c.includes(m))){const d=m._flight;if(m._flight=void 0,r&&(d==null?void 0:d[2])===1&&((h=a._flights)==null?void 0:h.get(m.id))===d&&(c!=null&&c.some(v=>v.id===m.id)))d[2]=0;else{const v=Qh(a,m,d);v&&o.push(v)}}for(const m of o)m.abort()}function Yh(a){for(const i of a){const c=i._flight;c&&c[2]++}}function ku(a,i,c,r){var m;if(i.isFetching=c,r&&((m=a._tx)==null?void 0:m[0])!==r)return;const o=a.stores.byRoute.get(i.routeId),h=o==null?void 0:o.get();(h==null?void 0:h.id)===i.id&&o.set({...h,isFetching:c})}function Pg(a,i,c,r,o,h,m){const d=i[0];return{params:c.params,location:d,navigate:v=>a.navigate({...v,_fromLocation:d}),cause:m?"preload":c.cause,abortController:o,preload:m,deps:c.loaderDeps,parentMatchPromise:h,context:c.context,route:r,...a.options.additionalContext}}async function Zv(a,i,c,r,o,h,m){const d=m[0],v=d.signal;if(v.aborted)return Gl;if(!o)return[Nn,void 0];let S=c._flight;ku(a,c,"loader",d);try{if(!S){const b=new AbortController;S=[Promise.resolve().then(()=>o(Pg(a,i,c,r,b,h,!!m[3]))).then(y=>Fu(y,!1,r.id),y=>Fu(y,!0,r.id)).then(y=>{var p;return y[0]!==Nn&&((p=a._flights)==null?void 0:p.get(c.id))===S&&(a._flights.delete(c.id),S[2]||b.abort()),y[0]===Wn&&S[2]?qh(r,y[1]):y}),b,1],(a._flights??(a._flights=new Map)).set(c.id,S)}return c._flight=S,c.abortController=S[1],Gh(a,i,r,await Ca(S[0],v),m)}catch(b){if(b!==v||!v.aborted)throw b;return Pn(a,c),Gl}finally{ku(a,c,!1,d)}}function Jv(a,i,c){i[0]!==Ce&&(a.status="success",a.error=void 0,i[0]===Nn?(a.loaderData=i[1],a.invalid=!1,a.updatedAt=Date.now(),a.preload=c):a.invalid=!0)}function cT(a,i,c){const r=a._cache.get(i.id);if(r!==c||a._committed.some(h=>h.id===i.id&&h._flight===i._flight))return;const o={...i,_notFound:void 0,context:{}};o._flight&&o._flight[2]++,a._cache.set(i.id,o),r&&Pn(a,r)}function Fv(a,i){return i[0]===Wn||i[0]===tr?{...a,status:i[0]===Wn?"error":"notFound",error:i[1],_flight:void 0}:a}function rT(a,i,c,r,o,h,m){var ft,bt;const d=i[1][c],v=Ra(a,d),S=!!h[3],b=a._cache.get(d.id);let y,p=!1,_;try{if(d.status==="success"&&(y=v.options.shouldReload,typeof y=="function"&&(y=y(Pg(a,i,d,v,h[0],o,S))),h[0].signal.aborted&&(_=Gl)),!_)if(d.status!=="success")p=!0;else{const mt=S||d.preload?v.options.preloadStaleTime??a.options.defaultPreloadStaleTime??3e4:v.options.staleTime??a.options.defaultStaleTime??0;p=!!(d.invalid||y||y===void 0&&Date.now()-d.updatedAt>=mt&&(h[5]||d.cause==="enter"||h[2].some(st=>st.routeId===d.routeId&&st.id!==d.id)))}}catch(mt){d.invalid=!0,Pn(a,d),_=Gu(a,i,v,mt,h)}const E=v.options.loader,D=typeof E=="function",M=D?E:E==null?void 0:E.handler,K=!S||v.options.preload!==!1;let w=K&&E?(ft=a._flights)==null?void 0:ft.get(d.id):void 0;w===d._flight||_?w=void 0:w&&!p&&!S&&y===void 0?p=!0:p||(w=void 0);const L=!!(E&&p&&d.status==="success"&&!S&&!h[4]&&((D?void 0:E.staleReloadMode)??a.options.defaultStaleReloadMode)!=="blocking"),X=p&&K,Y=X&&!L&&(d.status!=="success"||!!E),G=c>=m?h[7]:void 0,V=v.lazyFn&&v._lazy!==!0?G:void 0;if(X&&!E&&(d.invalid=!1,d.updatedAt=Date.now()),w&&w[2]++,Y){const mt=d._flight;d._flight=w,(bt=Qh(a,d,mt))==null||bt.abort(),c>=m&&(d.status="pending"),G==null||G()}X||(d.isFetching=!1);const F=!_&&Y?Zv(a,i,d,v,M,o,h).then(mt=>(Jv(d,mt,S),mt[0]===Nn&&(E&&!h[0].signal.aborted&&cT(a,d,b),c>=m&&(d.status="pending")),mt)):Promise.resolve(_??[Nn,d.loaderData]),Q=(async()=>{try{const st=Ri(v,void 0,V);st&&await Ca(st,h[0].signal)}catch(st){if(!i[1].some((Z,$)=>$<=c&&(Z.status==="error"||Z.status==="notFound"||Z._notFound)))return[c,Gu(a,i,v,st,h)]}const mt=await F;Y&&mt[0]===Nn&&d.status==="pending"&&!h[0].signal.aborted&&(d.status="success",G==null||G())})();if(r.push([c,F,Q]),!L)return F.then(mt=>Fv(d,mt));const k={...d,status:"pending",preload:!1,_flight:w};d.invalid=!1,d.isFetching="loader";const rt=Zv(a,i,k,v,M,o,h).then(mt=>(d.isFetching=!1,Jv(k,mt,!1),mt));return(i[2]??(i[2]=[])).push([c,rt,Q,k]),rt.then(mt=>Fv(k,mt))}async function _h(a,i,c,r,o=0){const h=c==null?void 0:c[1][1];let m=h!=null&&h.routeId?i.findIndex(d=>d.routeId===h.routeId):(c==null?void 0:c[0])??i.length-1;m<0&&(m=0);for(let d=m;d>=0;d--){const v=Ra(a,i[d]);try{const S=Ri(v,!1);S&&await Ca(S,r)}catch(S){if(S===r&&r.aborted)throw S}if(v.options.notFoundComponent)return d}return h!=null&&h.routeId?m:o}function Oa(a,i){i[2]&&(we(a,i[2].map(c=>c[3])),i[2]=void 0)}async function kv(a,i,c,r){let o;try{await Promise.all(a.map(h=>h[1].then(async m=>{const d=h[0];if(!(r&&d>=await r)){if(m[0]>=Ce)throw[d,m];!o&&m[0]!==Nn&&(o=[d,m],await Promise.all((c??[]).map(v=>{if(!(v[0]<=d))return v[1].then(S=>{if(S[0]===Ce)throw[v[0],S]})})))}})))}catch(h){return h}return i??o}function Gh(a,i,c,r,o,h){for(;r[0]===Ce;){const m=r[1],d=m.options;try{if((d.href||m.headers.has("Location"))&&(a.resolveRedirect(m),d.reloadDocument)||(d.reloadDocument?o[3]:o[1]>=20))return r;const v=a.buildLocation({...d,_fromLocation:i[0],_includeValidateSearch:!0}),S=v.maskedLocation??v;if(S.external){const b=m.clone();return b.options={...d},b.headers.set("Location",S.publicHref),a.resolveRedirect(b),o[3]?[Ce,b]:[Ce,b,S]}return[Ce,m,v]}catch(v){r=h?[Wn,v]:qh(c,v),h=!0}}return r}async function $g(a,i,c,r,o,h){const m=i[1];let d=await o,v=!1;const S=m.findIndex(_=>_._notFound),b=_=>_[1][0]===tr?_h(a,m,_,r.signal):_[0];let y=S<0?m.length:S;if(((d==null?void 0:d[1][0])??0)>=Ce)y=0;else if(d){y=d[2]??(d[2]=await b(d));for(const _ of c){if(_[0]>=y)break;const E=await _[1];if(E[0]!==Nn&&E[0]<Ce&&!("loaderData"in m[_[0]])){d=[_[0],E],y=d[2]=await b(d);break}}}for(const _ of c){if(_[0]>=y)break;const E=await _[2];if(E){d=E;break}}if(((d==null?void 0:d[1][0])??0)>=Ce){const _=d[1];if(_[0]!==Ce||_[1].options.reloadDocument||_[2])return Oa(a,i),_;v=!0,d=[0,[Wn,new Error("Too many redirects")]]}const p=d?d[2]??await b(d):S;if(p>=0){const _=d==null?void 0:d[1],E=_==null?void 0:_[0],D=m[p],M=_==null?void 0:_[1],K=()=>{_&&(D._notFound=void 0,E===Wn?D.status="error":(M.routeId=D.routeId,D.routeId===a.routeTree.id?(D.status="success",D._notFound=!0):D.status="notFound"),D.error=M,D.isFetching=!1)};K(),_||h==null||h();const w=Ra(a,D);try{await Ca(_?Promise.resolve().then(()=>Ri(w,E===Wn?"errorComponent":"notFoundComponent")):Promise.all([Ri(w),Ri(w,"notFoundComponent")]),r.signal)}catch(L){if(L===r.signal&&r.signal.aborted)return Oa(a,i),Gl}_?v&&(r.abort(),await Promise.all([...c.map(L=>L[1]),...c.map(L=>L[2]),...(i[2]??[]).map(L=>L[1])]),Oa(a,i),we(a,m),K()):D.status="success"}return i}async function Wg(a,i,c,r=0,o=i[1].length){var m,d;const h=i[1];for(let v=r;v<o;v++){const S=h[v],b=Ra(a,S).options;if(b.head||b.scripts)try{const y={ssr:a.options.ssr,matches:h,match:S,params:S.params,loaderData:S.loaderData},[p,_]=await Ca(Promise.all([(m=b.head)==null?void 0:m.call(b,y),(d=b.scripts)==null?void 0:d.call(b,y)]),c);S.meta=p==null?void 0:p.meta,S.links=p==null?void 0:p.links,S.headScripts=p==null?void 0:p.scripts,S.styles=p==null?void 0:p.styles,S.scripts=_}catch(y){if(y===c&&c.aborted)break;console.error(y)}if(S.status!=="success"||S._notFound)break}return i}async function tS(a,i,c,r){var d;const o=[i,c],h=r[0].signal;let m;try{const v=a.stores.matches.get();let S=c.findIndex(w=>w._notFound);if(a.options.notFoundMode!=="root"&&S>=0){const w=await _h(a,c,void 0,h,S);c[S]._notFound=void 0,c[w]._notFound=!0,S=w}let b=S<0?c.length:S+1,y=0;for(;y<b&&y!==S;){const w=c[y],L=r[2][y],X=v[y];if((L==null?void 0:L.id)!==w.id||L.status!=="success"||w.preload||(X==null?void 0:X.id)!==w.id||X.status!=="success"||(y++,L._notFound||X._notFound))break}const p=[],_=r[6]??0;let E=_?Promise.resolve(c[_-1]):void 0;const D=()=>{for(let w=_;w<b&&!h.aborted;w++)E=rT(a,o,w,p,E,r,y)},M=await sT(a,o,r,b,D,y);if(M){if(r[4]=!0,b=M[0],M[1][0]===tr){const w=await _h(a,c,M,h);M[2]=w,b=Math.min(b,w+1)}else M[1][0]>=Ce&&(b=0);D()}if(!h.aborted&&!r[3]){const w=[];for(const[L,X]of a._flights??[])X[2]||(a._flights.delete(L),w.push(X[1]));for(const L of w)L.abort()}const K=$g(a,o,p,r[0],kv(p,M,o[2]),r[7]);(d=o[2])!=null&&d.length&&(o[3]=kv(o[2],void 0,void 0,K.then(w=>Ju(w)?0:Bh(c).length,()=>0))),m=await K}catch(v){if(Oa(a,o),v===h&&h.aborted)return Gl;throw v}return Ju(m)?m:Wg(a,m,h,r[6]===c.length?r[6]:0)}function Th(a,i){var h,m;if(a._tx!==i)return;const c=i[3],r=a.stores.matches.get();let o=a._pending;for(let d=0;d<c.length;d++){const v=c[d],S=v.status==="success"&&!v._notFound,b=((h=r[d])==null?void 0:h.id)===v.id&&((m=r[d])==null?void 0:m.status)==="pending";if(S&&!b)continue;const y=Ra(a,v),p=S||v.invalid?0:y.options.pendingMs??a.options.defaultPendingMs,_=y.options.pendingComponent??a.options.defaultPendingComponent;if(!_||typeof p!="number"||p===1/0){o&&(o[0]=i,o[2]=0,o[4]=!0);return}const E=y.options.pendingMinMs??a.options.defaultPendingMinMs??0;let D=!1;if((o==null?void 0:o[1])===v.id?(D=o[0]!==i,o[0]=i):(clearTimeout(o==null?void 0:o[3]),a._pending=o=void 0),o||(a._pending=o=[i,v.id,b?Date.now()+E:i[4]+p,void 0,b||void 0,_]),o[4]&&!D&&o[5]===_)return;if(o[5]=_,!o[4]){clearTimeout(o[3]);const w=o[2]-Date.now();if(w>0){o[3]=setTimeout(()=>Th(a,i),w);return}o[2]=0}const M=c.map(w=>({...w,_flight:void 0}));M[d].status="pending";const K=o[4]=a.startTransition(()=>a.stores.setMatches(M),M).then(w=>(w&&a._pending===o&&o[4]===K&&!o[2]&&(o[2]=Date.now()+E),w));return}}function qu(a,i){var r;const c=a._pending;(a._tx===i||!((r=a._tx)!=null&&r[3].some(o=>o.id===(c==null?void 0:c[1]))))&&(clearTimeout(c==null?void 0:c[3]),a._pending=void 0)}async function Iv(a,i){const c=a._pending;if(!c)return;clearTimeout(c[3]);const r=c[2]-Date.now();if(!c[4]||r<=0||!Bh(i[3]).some(h=>h.id===c[1]))return;let o;try{await Ca(new Promise(h=>{o=setTimeout(h,r)}),i[0].signal)}catch{}clearTimeout(o)}function eS(a,i){a._committed=i,a.stores.setMatches(i)}function oT(a,i,c,r){const o=a._committed,h=a._lifecycleEnd,m=a._cache;for(const b of c)b.preload=!1,r&&(b._assetEnd=void 0);const d=Bh(c).length,v=new Map;{const b=Date.now(),y=new Set;for(let p=0;p<c.length;p++){const _=c[p];(p<d||_.status==="success")&&y.add(_.id)}for(const p of[...o,...m.values()]){if(p.status!=="success"||y.has(p.id))continue;const _=Ra(a,p);!_.options.loader||b-p.updatedAt>=(p.preload?_.options.preloadGcTime??a.options.defaultPreloadGcTime??3e5:_.options.gcTime??a.options.defaultGcTime??3e5)||v.set(p.id,m.get(p.id)===p?p:{...p,_flight:void 0,isFetching:!1,context:{}})}}i[3]=[],a._cache=v;const S=a._lifecycleEnd=$_(c);eS(a,c),we(a,[...m.values(),...o].filter(b=>b._flight&&v.get(b.id)!==b),c),W_(a,o,c,h,S,i)}async function Bc(a,i){let c=a._tx;for(;c&&c!==i;)i=c,await c[5],c=a._tx}function nS(a,i,c){const r=c[1].options,o=c[2];if(!o)return a.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return a.navigate({href:(o.maskedLocation??o).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});o._redirects=i[1]+1,a._pendingLocation=o;const h=a.commitLocation({...o,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{a._pendingLocation===o&&(a._pendingLocation=void 0)}),h}async function fT(a,i,c,r,o){const h=c.map(v=>({...v}));Yh(h);for(const v of r)Pn(a,h[v[0]]),h[v[0]]=v[3];const m=[i[2],h];let d;try{d=await $g(a,m,r,i[0],o)}catch(v){throw we(a,h),v}if(Ju(d)){we(a,h),d[0]===Ce&&a._tx===i&&a._committed===c&&await nS(a,i,d);return}if(await Wg(a,d,i[0].signal),a._tx!==i||a._committed!==c){we(a,h);return}for(const v of h){const S=a._cache.get(v.id);S!=null&&S._flight&&S._flight===v._flight&&(a._cache.delete(v.id),Pn(a,S))}eS(a,h),we(a,c,h)}async function hT(a,i,c,r,o,h){const m=await tS(a,i[2],i[3],[i[0],i[1],a._committed,void 0,o,c,h,r]);if(Ju(m)){const y=m[0]===Ce&&a._tx===i;if((!y||m[1].options.reloadDocument)&&qu(a,i),we(a,i[3]),i[3]=[],!y)return;if(a._tx!==i){qu(a,i);return}await nS(a,i,m);return}const d=m[1];if(a._tx===i&&await Iv(a,i),a._tx!==i){qu(a,i),we(a,d),Oa(a,m);return}const v=i[2],S=Wc(v,a.stores.resolvedLocation.get()),b=m[2];await a.startViewTransition(async()=>{var _;if(a._tx===i&&await Iv(a,i),a._tx!==i){qu(a,i),we(a,d),Oa(a,m);return}const y=()=>{qu(a,i),oT(a,i,d,h),a._tx===i&&(a.emit({type:"onLoad",...S}),a._tx===i&&a.emit({type:"onBeforeRouteMount",...S}))},p=await a.startTransition(y,d);if(a._tx!==i){Oa(a,m);return}b!=null&&b.length&&fT(a,i,d,b,m[3]).catch(console.error),a.batch(()=>{a.stores.resolvedLocation.set(v),a.stores.status.set("idle"),a._tx===i&&a.emit({type:"onResolved",...S}),p&&a._tx===i&&a.emit({type:"onRendered",...S})}),a._tx===i&&((_=a._commitPromise)==null||_.resolve(),a._commitPromise=void 0)})}async function dT(a,i){var X;const c=a._tx,r=a.stores.resolvedLocation.get(),o=r??a.stores.location.get(),h=a.latestLocation,m=a._pendingLocation,d=(m==null?void 0:m.href)===h.href?m._redirects??0:0,v=a._handoff,S=v==null?void 0:v[0](),b=new AbortController,y=a._preflight;if(a._preflight=b,S||v==null||v[1](),y==null||y.abort(),!b.signal.aborted){const Y=Wc(h,r);a.emit({type:"onBeforeNavigate",...Y}),b.signal.aborted||a.emit({type:"onBeforeLoad",...Y})}if(b.signal.aborted){await Bc(a,c);return}const p=o.href===h.href;let _=b;const E=a.matchRoutes(h,{_controller:b});Yh(E);const D=S?v[1](E):void 0;if(D?_=S:S==null||S.abort(),b.signal.aborted){we(a,E),await Bc(a,c);return}a._preflight=void 0;let M;const K=()=>hT(a,L,p,()=>Th(a,L),i==null?void 0:i.sync,D),w=i!=null&&i.sync?new Promise(Y=>M=Y):Promise.resolve().then(K),L=[_,d,h,E,Date.now(),w.then(()=>Bc(a,L))];if(a._tx=L,c){for(const Y of a.stores.matches.get()){if(a._tx!==L)break;Y.isFetching&&ku(a,Y,!1)}c[0].abort(),we(a,c[3],L[3],!0)}if(a._tx!==L){we(a,L[3]),L[3]=[],M==null||M(),await Bc(a,L);return}a.batch(()=>{a.stores.status.set("pending"),a.stores.location.set(h)}),(D||!a._committed.length&&((X=E[0])==null?void 0:X.status)!=="success"&&!E.some(Y=>Y._notFound))&&Th(a,L),M==null||M(K()),await L[5]}async function mT(a,i){let c=a.buildLocation(i);for(let r=0;;r++){const o=a._committed,h=new AbortController;let m,d,v;try{try{m=a.matchRoutes(c,{_controller:h}),Yh(m),d=(a._preloads??(a._preloads=new Map)).set(h,m),v=await tS(a,c,m,[h,r,o,!0])}finally{d&&(d=d.delete(h),we(a,m)),h.abort()}if(!Ju(v))return v[1];if(!d||v.length<3)return;c=v[2]}catch(S){Yi(S)||console.error(S);return}}}const yT="Error preloading route! ☝️";var lS=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(a){if(this.init=i=>{var v,S;this.originalIndex=i,this._branch=void 0;const c=this.options,r=!(c!=null&&c.path)&&!(c!=null&&c.id);this.parentRoute=(S=(v=this.options).getParentRoute)==null?void 0:S.call(v),r?this._path=Ci:this.parentRoute||jh();let o=r?Ci:c==null?void 0:c.path;o&&o!=="/"&&(o=Yg(o));const h=(c==null?void 0:c.id)||o,m=r?Ci:Ei((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(h??""));o==="__root__"&&(o="/");const d=m==="__root__"?"/":o===void 0?this.parentRoute.fullPath:Ei(this.parentRoute.fullPath+"/"+o);this._path=o,this._id=m,this._fullPath=d,this._to=zn(d)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>H_({from:this.fullPath,...i}),this.options=a||{},this.isRoot=!(a!=null&&a.getParentRoute),a!=null&&a.id&&(a!=null&&a.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},vT=class extends lS{constructor(a){super(a)}},Vh=class extends tt.Component{constructor(...a){super(...a),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(a,i){const c=a.getResetKey();return i.error&&i.resetKey!==c?{resetKey:c,error:0}:{resetKey:c}}static getDerivedStateFromError(a){return{error:[a]}}componentDidCatch(a,i){var c,r;(r=(c=this.props).onCatch)==null||r.call(c,a,i)}render(){const a=this.state.error;return a?tt.createElement(this.props.errorComponent??gT,{error:a[0],reset:this.reset}):this.props.children}};function gT({error:a}){const[i,c]=tt.useState(!1);return H.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[H.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[H.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),H.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>c(r=>!r),children:i?"Hide Error":"Show Error"})]}),H.jsx("div",{style:{height:".25rem"}}),i?H.jsx("div",{children:H.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a!=null&&a.message?H.jsx("code",{children:a.message}):null})}):null]})}var ST=()=>!0,pT=()=>!1;function bT({children:a,fallback:i=null}){return H.jsx($c.Fragment,{children:aS()?a:i})}function aS(){return $c.useSyncExternalStore(_T,ST,pT)}function _T(){return()=>{}}var iS=tt.createContext(null);function Dn(a){return tt.useContext(iS)}var er=tt.createContext(void 0),TT=tt.createContext(void 0);function ET({update:a,notify:i,unwatched:c}){return{link:r,unlink:o,propagate:h,checkDirty:m,shallowPropagate:d};function r(S,b,y){const p=b.depsTail;if(p!==void 0&&p.dep===S)return;const _=p!==void 0?p.nextDep:b.deps;if(_!==void 0&&_.dep===S){_.version=y,b.depsTail=_;return}const E=S.subsTail;if(E!==void 0&&E.version===y&&E.sub===b)return;const D=b.depsTail=S.subsTail={version:y,dep:S,sub:b,prevDep:p,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=D),p!==void 0?p.nextDep=D:b.deps=D,E!==void 0?E.nextSub=D:S.subs=D}function o(S,b=S.sub){const y=S.dep,p=S.prevDep,_=S.nextDep,E=S.nextSub,D=S.prevSub;return _!==void 0?_.prevDep=p:b.depsTail=p,p!==void 0?p.nextDep=_:b.deps=_,E!==void 0?E.prevSub=D:y.subsTail=D,D!==void 0?D.nextSub=E:(y.subs=E)===void 0&&c(y),_}function h(S){let b=S.nextSub,y;t:do{const p=S.sub;let _=p.flags;if(_&60?_&12?_&4?!(_&48)&&v(S,p)?(p.flags=_|40,_&=1):_=0:p.flags=_&-9|32:_=0:p.flags=_|32,_&2&&i(p),_&1){const E=p.subs;if(E!==void 0){const D=(S=E).nextSub;D!==void 0&&(y={value:b,prev:y},b=D);continue}}if((S=b)!==void 0){b=S.nextSub;continue}for(;y!==void 0;)if(S=y.value,y=y.prev,S!==void 0){b=S.nextSub;continue t}break}while(!0)}function m(S,b){let y,p=0,_=!1;t:do{const E=S.dep,D=E.flags;if(b.flags&16)_=!0;else if((D&17)===17){if(a(E)){const M=E.subs;M.nextSub!==void 0&&d(M),_=!0}}else if((D&33)===33){(S.nextSub!==void 0||S.prevSub!==void 0)&&(y={value:S,prev:y}),S=E.deps,b=E,++p;continue}if(!_){const M=S.nextDep;if(M!==void 0){S=M;continue}}for(;p--;){const M=b.subs,K=M.nextSub!==void 0;if(K?(S=y.value,y=y.prev):S=M,_){if(a(b)){K&&d(M),b=S.sub;continue}_=!1}else b.flags&=-33;b=S.sub;const w=S.nextDep;if(w!==void 0){S=w;continue t}}return _}while(!0)}function d(S){do{const b=S.sub,y=b.flags;(y&48)===32&&(b.flags=y|16,(y&6)===2&&i(b))}while((S=S.nextSub)!==void 0)}function v(S,b){let y=b.depsTail;for(;y!==void 0;){if(y===S)return!0;y=y.prevDep}return!1}}function OT(a,i,c){var h,m,d;const r=typeof a=="object",o=r?a:void 0;return{next:(h=r?a.next:a)==null?void 0:h.bind(o),error:(m=r?a.error:i)==null?void 0:m.bind(o),complete:(d=r?a.complete:c)==null?void 0:d.bind(o)}}const Eh=[];let Kc=0;const{link:Pv,unlink:CT,propagate:RT,checkDirty:uS,shallowPropagate:$v}=ET({update(a){return a._update()},notify(a){Eh[Oh++]=a,a.flags&=-3},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=17,Pc(a))}});let qc=0,Oh=0,On,Ch=0;function AT(a){try{++Ch,a()}finally{--Ch||sS()}}function Pc(a){const i=a.depsTail;let c=i!==void 0?i.nextDep:a.deps;for(;c!==void 0;)c=CT(c,a)}function sS(){if(!(Ch>0)){for(;qc<Oh;){const a=Eh[qc];Eh[qc++]=void 0,a.notify()}qc=0,Oh=0}}function Wv(a,i){const c=typeof a=="function",r=a,o={_snapshot:c?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:c?0:1,get(){return On!==void 0&&Pv(o,On,Kc),o._snapshot},subscribe(h){const m=OT(h),d={current:!1},v=zT(()=>{var S;o.get(),d.current?(S=m.next)==null||S.call(m,o._snapshot):d.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(h){const m=On,d=(i==null?void 0:i.compare)??Object.is;if(c)On=o,++Kc,o.depsTail=void 0;else if(h===void 0)return!1;c&&(o.flags=5);try{const v=o._snapshot,S=typeof h=="function"?h(v):h===void 0&&c?r(v):h;return v===void 0||!d(v,S)?(o._snapshot=S,!0):!1}finally{On=m,c&&(o.flags&=-5),Pc(o)}}};return c?(o.flags=17,o.get=function(){const h=o.flags;if(h&16||h&32&&uS(o.deps,o)){if(o._update()){const m=o.subs;m!==void 0&&$v(m)}}else h&32&&(o.flags=h&-33);return On!==void 0&&Pv(o,On,Kc),o._snapshot}):o.set=function(h){if(o._update(h)){const m=o.subs;m!==void 0&&(RT(m),$v(m),sS())}},o}function zT(a){const i=()=>{const r=On;On=c,++Kc,c.depsTail=void 0,c.flags=6;try{return a()}finally{On=r,c.flags&=-5,Pc(c)}},c={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const r=this.flags;r&16||r&32&&uS(this.deps,this)?i():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Pc(this)}};return i(),c}var Pf={exports:{}},$f={},Wf={exports:{}},th={};/**
|
|
* @license React
|
|
* use-sync-external-store-shim.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var tg;function NT(){if(tg)return th;tg=1;var a=es();function i(y,p){return y===p&&(y!==0||1/y===1/p)||y!==y&&p!==p}var c=typeof Object.is=="function"?Object.is:i,r=a.useState,o=a.useEffect,h=a.useLayoutEffect,m=a.useDebugValue;function d(y,p){var _=p(),E=r({inst:{value:_,getSnapshot:p}}),D=E[0].inst,M=E[1];return h(function(){D.value=_,D.getSnapshot=p,v(D)&&M({inst:D})},[y,_,p]),o(function(){return v(D)&&M({inst:D}),y(function(){v(D)&&M({inst:D})})},[y]),m(_),_}function v(y){var p=y.getSnapshot;y=y.value;try{var _=p();return!c(y,_)}catch{return!0}}function S(y,p){return p()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:d;return th.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,th}var eg;function DT(){return eg||(eg=1,Wf.exports=NT()),Wf.exports}/**
|
|
* @license React
|
|
* use-sync-external-store-shim/with-selector.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var ng;function MT(){if(ng)return $f;ng=1;var a=es(),i=DT();function c(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var r=typeof Object.is=="function"?Object.is:c,o=i.useSyncExternalStore,h=a.useRef,m=a.useEffect,d=a.useMemo,v=a.useDebugValue;return $f.useSyncExternalStoreWithSelector=function(S,b,y,p,_){var E=h(null);if(E.current===null){var D={hasValue:!1,value:null};E.current=D}else D=E.current;E=d(function(){function K(G){if(!w){if(w=!0,L=G,G=p(G),_!==void 0&&D.hasValue){var V=D.value;if(_(V,G))return X=V}return X=G}if(V=X,r(L,G))return V;var F=p(G);return _!==void 0&&_(V,F)?(L=G,V):(L=G,X=F)}var w=!1,L,X,Y=y===void 0?null:y;return[function(){return K(b())},Y===null?void 0:function(){return K(Y())}]},[b,y,p,_]);var M=o(S,E[0],E[1]);return m(function(){D.hasValue=!0,D.value=M},[M]),v(M),M},$f}var lg;function xT(){return lg||(lg=1,Pf.exports=MT()),Pf.exports}var UT=xT();function wT(a,i){return a===i}function Vl(a,i=r=>r,c){const r=(c==null?void 0:c.compare)??wT,o=tt.useCallback(m=>{const{unsubscribe:d}=a.subscribe(m);return d},[a]),h=tt.useCallback(()=>a.get(),[a]);return UT.useSyncExternalStoreWithSelector(o,h,h,i,r)}var ag={};function jT(a,i){const c=tt.useRef();return r=>{const o=a!=null&&a.select?a.select(r):r;return(a==null?void 0:a.structuralSharing)??i.options.defaultStructuralSharing?c.current=ql(c.current,o):o}}function Aa(a){const i=Dn(),c=tt.useContext(a.from?TT:er),r=a.from??c,o=i.stores.getMatchStore(r),h=jT(a,i),m=Vl(o,d=>d?h(d):ag);if(m!==ag)return m;(a.shouldThrow??!0)&&jh()}function cS(a){return Aa({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function rS(a){const{select:i,...c}=a;return Aa({...c,select:r=>i?i(r.loaderDeps):r.loaderDeps})}function oS(a){return Aa({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const c=a.strict===!1?i.params:i._strictParams;return a.select?a.select(c):c}})}function fS(a){return Aa({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.search):i.search})}function hS(a){const i=Dn();return tt.useCallback(c=>i.navigate({...c,from:c.from??(a==null?void 0:a.from)}),[a==null?void 0:a.from,i])}function dS(a){return Aa({...a,select:i=>a.select?a.select(i.context):i.context})}function HT(...a){const i=tt.useRef(a),c=i.current;return a.forEach((r,o)=>{$n(c[o],r,!1,!0)||(c[o]=r)}),i.current}function Qc(a,i){a.preloadRoute(i).catch(c=>{console.warn(c),console.warn(yT)})}var LT={compare:(a,i)=>a[0]===i[0]&&a[1]===i[1]};function BT(a,i){const c=typeof a=="string"&&Ku(a);if(c)return i.has(c)?a:null}function qT(a,i,c,r,o){const h=Uv(a.pathname,r),m=Uv(i.pathname,r);return(c!=null&&c.exact?h!==m:!(h.startsWith(m)&&(h.length===m.length||h[m.length]==="/")))||((c==null?void 0:c.includeSearch)??!0)&&!$n(a.search,i.search,!(c!=null&&c.exact),c==null?void 0:c.explicitUndefined)?!1:c!=null&&c.includeHash?o&&a.hash===i.hash:!0}function QT(a,i,c){const r=Dn(),o=tt.useRef(null),h=tt.useCallback(I=>{if(o.current=I,typeof i=="function")return i(I);i&&(i.current=I)},[i]),{activeOptions:m,to:d,preload:v,preloadDelay:S,hashScrollIntoView:b,replace:y,startTransition:p,resetScroll:_,viewTransition:E,ignoreBlocker:D,disabled:M,target:K,onClick:w,onBlur:L,onFocus:X,onMouseEnter:Y,onMouseLeave:G,onTouchStart:V}=a,F=aS(),[Q,k,rt]=HT(a.search,a.params,m),[ft,bt]=tt.useMemo(()=>[a,{...a}],[r,a.from,a._fromLocation,a.hash,a.to,Q,k,a.state,a.mask,a.unsafeRelative]),mt=tt.useCallback(I=>{const yt=BT(d,r.protocolAllowlist);if(yt!==void 0)return[yt??void 0];ft._fromLocation||(bt._fromLocation=I);const Rt=r.buildLocation(bt),At=KT(Rt,r,M);return[At,!M&&(!At||Ku(At))?void 0:qT(I,Rt,rt,r.basepath,F)]},[rt,M,F,ft,bt,r,d]),[st,Z]=Vl(r.stores.location,mt,LT),$=Z===void 0?st:void 0,et=M||st===void 0,Dt=tt.useRef(!1),pt=a.reloadDocument||$||et?!1:v??r.options.defaultPreload,Se=S??r.options.defaultPreloadDelay??0,Re=tt.useCallback(I=>{const yt=I==null?void 0:I.isIntersecting;if(!(yt??pt==="intent")){yt===!1&&eh(o);return}if(!Se){Qc(r,ft);return}Vu.has(o)||Vu.set(o,setTimeout(()=>{Vu.delete(o),Qc(r,ft)},Se))},[r,ft,o,pt,Se]);tt.useEffect(()=>{pt==="render"&&!Dt.current&&(Dt.current=!0,Qc(r,ft));let I;return pt==="viewport"&&o.current&&typeof IntersectionObserver=="function"&&(I=new IntersectionObserver(yt=>Re(yt.pop()),{rootMargin:"100px"}),I.observe(o.current)),()=>{I==null||I.disconnect(),eh(o)}},[r,ft,pt,Re,o]);const ne=VT(a,c);if(ne.ref=i?h:o,$)return ne.href=$,ne;const R=I=>{const yt=K??I.currentTarget.getAttribute("target");!et&&!(I.metaKey||I.altKey||I.ctrlKey||I.shiftKey)&&!I.defaultPrevented&&(!yt||yt==="_self")&&I.button===0&&(I.preventDefault(),r.navigate({...ft,replace:y,resetScroll:_,hashScrollIntoView:b,startTransition:p,viewTransition:E,ignoreBlocker:D}))},J=()=>{pt==="intent"&&Qc(r,ft)},it=()=>{pt==="intent"&&eh(o)};return ne.onClick=bi(w,R),ne.onBlur=bi(L,it),ne.onFocus=bi(X,Re),ne.onMouseEnter=bi(Y,Re),ne.onMouseLeave=bi(G,it),ne.onTouchStart=bi(V,J),XT(ne,a,Z,st,et,c)}var YT={},GT={className:"active"},mS=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","_fromLocation","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function VT(a,i){const c={};for(const r in a)mS.has(r)||r==="type"&&i!==void 0||r==="disabled"&&i==="a"||(c[r]=a[r]);return c}function XT(a,i,c,r,o,h){const{activeProps:m,inactiveProps:d,className:v,style:S,target:b}=i,y=Lg(c?m:d,{})??(c?GT:YT);Object.assign(a,y),a.href=r,h!=="a"&&(a.disabled=o),a.target=b;const p=y.style;(S||p)&&(a.style=S&&p?{...S,...p}:S||p);const _=y.className;return(v||_)&&(a.className=v?_?`${v} ${_}`:v:_),o&&(a.role="link",a["aria-disabled"]=!0),c&&(a["data-status"]="active",a["aria-current"]="page"),a}var Vu=new WeakMap,eh=a=>{clearTimeout(Vu.get(a)),Vu.delete(a)},bi=(a,i)=>a?c=>c.defaultPrevented||(a(c),c.defaultPrevented||i(c)):i;function KT(a,i,c){if(c)return;const r=a.maskedLocation??a,o=r.external?r.publicHref:i.history.createHref(r.publicHref)||"/";if(!((r.external||o!==r.publicHref)&&Qg(o,i.protocolAllowlist)))return o}var Ti=tt.memo(tt.forwardRef((a,i)=>{const c=a._asChild||"a",r=QT(a,i,c),o=typeof a.children=="function"?a.children({isActive:r["data-status"]==="active"}):a.children;return tt.createElement(c,r,o)}),ZT);function ZT(a,i){let c=0;for(const r in i)if(c++,a[r]!==i[r]&&(!mS.has(r)||!$n(a[r],i[r],!1,!0)))return!1;for(const r in a)c--;return c===0}var JT=class extends lS{constructor(a){super(a),this.useMatch=i=>Aa({...i,from:this.id}),this.useRouteContext=i=>dS({...i,from:this.id}),this.useSearch=i=>fS({...i,from:this.id}),this.useParams=i=>oS({...i,from:this.id}),this.useLoaderDeps=i=>rS({...i,from:this.id}),this.useLoaderData=i=>cS({...i,from:this.id}),this.useNavigate=()=>hS({from:this.fullPath}),this.Link=$c.forwardRef((i,c)=>H.jsx(Ti,{ref:c,from:this.fullPath,...i}))}};function Xh(a){return new JT(a)}var FT=class extends vT{constructor(a){super(a),this.useMatch=i=>Aa({...i,from:this.id}),this.useRouteContext=i=>dS({...i,from:this.id}),this.useSearch=i=>fS({...i,from:this.id}),this.useParams=i=>oS({...i,from:this.id}),this.useLoaderDeps=i=>rS({...i,from:this.id}),this.useLoaderData=i=>cS({...i,from:this.id}),this.useNavigate=()=>hS({from:this.fullPath}),this.Link=$c.forwardRef((i,c)=>H.jsx(Ti,{ref:c,from:this.fullPath,...i}))}};function kT(a){return new FT(a)}function IT(a){const i=Dn(),c=`not-found-${Vl(i.stores.location,r=>r.pathname)}-${Vl(i.stores.status)}`;return H.jsx(Vh,{getResetKey:()=>c,onCatch:(r,o)=>{var h;if(Yi(r))(h=a.onCatch)==null||h.call(a,r,o);else throw r},errorComponent:({error:r})=>{var o;if(Yi(r))return(o=a.fallback)==null?void 0:o.call(a,r);throw r},children:a.children})}function PT(){return H.jsx("p",{children:"Not Found"})}function _i(a){return H.jsx(H.Fragment,{children:a.children})}function yS(a,i,c){return i.options.notFoundComponent?H.jsx(i.options.notFoundComponent,{...c}):a.options.defaultNotFoundComponent?H.jsx(a.options.defaultNotFoundComponent,{...c}):H.jsx(PT,{})}function nr(a,i){const c=(i==null?void 0:i.options.pendingComponent)??a.options.defaultPendingComponent;return c?H.jsx(c,{}):null}var $T=(a,i)=>a[0]===i[0]&&a[1]===i[1],vS=(a,i,c)=>!i.isRoot||i.options.shellComponent||i.options.wrapInSuspense||c===!1||c==="data-only"||!a.ssr,gS=tt.memo(function({routeId:i}){const c=Dn();return H.jsx(WT,{router:c,match:Vl(c.stores.getMatchStore(i))})});function WT({router:a,match:i}){var y,p;const c=a.routesById[i.routeId],r=nr(a,c),o=c.options.errorComponent??a.options.defaultErrorComponent,h=c.options.onCatch??a.options.defaultOnCatch,m=c.isRoot?c.options.notFoundComponent??((y=a.options.notFoundRoute)==null?void 0:y.options.component):c.options.notFoundComponent,d=i.ssr===!1||i.ssr==="data-only",v=vS(a,c,i.ssr)&&(c.options.wrapInSuspense??r??(((p=c.options.errorComponent)==null?void 0:p.preload)||d))?tt.Suspense:_i,S=o?Vh:_i,b=m?IT:_i;return H.jsxs(c.isRoot?c.options.shellComponent??_i:_i,{children:[H.jsx(er.Provider,{value:i.routeId,children:H.jsx(v,{fallback:r,children:H.jsx(S,{getResetKey:()=>i,errorComponent:o,onCatch:(_,E)=>{if(Yi(_))throw _.routeId??(_.routeId=i.routeId),_;h==null||h(_,E)},children:H.jsx(b,{fallback:_=>{if(_.routeId??(_.routeId=i.routeId),_.routeId!==i.routeId)throw _;return tt.createElement(m,_)},children:d?H.jsx(bT,{fallback:r,children:H.jsx(ig,{match:i})}):H.jsx(ig,{match:i})})})})}),null]})}var ig=tt.memo(function({match:i}){const c=Dn(),r=i.routeId,o=c.routesById[r],h=tt.useMemo(()=>{var v;const d=(v=o.options.remountDeps??c.options.defaultRemountDeps)==null?void 0:v({routeId:r,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return d?JSON.stringify(d):void 0},[r,i.loaderDeps,i._strictParams,i._strictSearch,o.options.remountDeps,c.options.defaultRemountDeps]),m=tt.useMemo(()=>{const d=o.options.component??c.options.defaultComponent;return d?H.jsx(d,{},h):H.jsx(SS,{})},[h,o.options.component,c.options.defaultComponent]);if(i.status==="pending"){if(c.ssr&&!vS(c,o,i.ssr))return m;if(c._tx)throw c._tx[5];return nr(c,o)}if(i.status==="notFound")return yS(c,o,i.error);if(i.status==="error")throw i.error;return m}),SS=tt.memo(function(){const i=Dn(),c=tt.useContext(er);let r,o,h;{const d=i.stores.getMatchStore(c);[r,o]=Vl(d,v=>[!!v._notFound,v.error],{compare:$T}),h=Vl(i.stores.ids,v=>v[v.indexOf(c)+1])}if(r)return yS(i,i.routesById[c],o);if(!h)return null;const m=H.jsx(gS,{routeId:h});return c===Ci?H.jsx(tt.Suspense,{fallback:nr(i),children:m}):m});function pS(a,i){const c=a[1];a.length=0,c==null||c(i)}function tE({t:a}){const i=Dn(),c=i._rendered??(i._rendered=[]);return i.startTransition=(r,o)=>new Promise(h=>{pS(c,!1),c.push(o,h),a(i),tt.startTransition(r)}),Hg(()=>{const r=i.history.subscribe(i.load);i.updateLatestLocation();const o=i.latestLocation,h=i.buildLocation({to:o.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(zn(o.publicHref)!==zn(h.publicHref))return i.commitLocation({...h,replace:!0,ignoreBlocker:!0}),r;const m=i.stores.resolvedLocation.get();return(m==null?void 0:m.href)===o.href&&m.state.__TSR_key===o.state.__TSR_key?c.push(i.stores.matches.get(),d=>{d&&i.emit({type:"onRendered",...Wc(m,m)})}):i._tx||i.load({sync:!0}).catch(console.error),r},[i,i.history]),null}function eE(){const a=Dn(),i=a.routesById[Ci],c=nr(a,i),r=a.ssr?_i:tt.Suspense,o=H.jsxs(H.Fragment,{children:[H.jsx(tE,{t:tt.useState()[1]}),H.jsx(r,{fallback:c,children:H.jsx(nE,{})})]});return a.options.InnerWrap?H.jsx(a.options.InnerWrap,{children:o}):o}function nE(){const a=Dn(),i=a._rendered,c=Vl(a.stores.matches,m=>i[0]??m),r=c[0],o=r==null?void 0:r.routeId;Hg(()=>{i[0]===c&&pS(i,!0)},[i,c]);const h=o?H.jsx(gS,{routeId:o}):null;return H.jsx(er.Provider,{value:o,children:a.options.disableGlobalCatchBoundary?h:H.jsx(Vh,{getResetKey:()=>r,onCatch:void 0,children:h})})}var lE=a=>({createMutableStore:Wv,createReadonlyStore:Wv,batch:AT}),aE=a=>new iE(a),iE=class extends tT{constructor(a){super(a,lE)}};function uE({router:a,children:i,...c}){Bg(c)&&a.update({...a.options,...c,context:{...a.options.context,...c.context}});const r=H.jsx(iS.Provider,{value:a,children:i});return a.options.Wrap?H.jsx(a.options.Wrap,{children:r}):r}function sE({router:a,...i}){return H.jsx(uE,{router:a,...i,children:H.jsx(eE,{})})}var nh={exports:{}},Qu={},lh={exports:{}},ah={};/**
|
|
* @license React
|
|
* scheduler.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var ug;function cE(){return ug||(ug=1,(function(a){function i(Z,$){var et=Z.length;Z.push($);t:for(;0<et;){var Dt=et-1>>>1,pt=Z[Dt];if(0<o(pt,$))Z[Dt]=$,Z[et]=pt,et=Dt;else break t}}function c(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var $=Z[0],et=Z.pop();if(et!==$){Z[0]=et;t:for(var Dt=0,pt=Z.length,Se=pt>>>1;Dt<Se;){var Re=2*(Dt+1)-1,ne=Z[Re],R=Re+1,J=Z[R];if(0>o(ne,et))R<pt&&0>o(J,ne)?(Z[Dt]=J,Z[R]=et,Dt=R):(Z[Dt]=ne,Z[Re]=et,Dt=Re);else if(R<pt&&0>o(J,et))Z[Dt]=J,Z[R]=et,Dt=R;else break t}}return $}function o(Z,$){var et=Z.sortIndex-$.sortIndex;return et!==0?et:Z.id-$.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var m=Date,d=m.now();a.unstable_now=function(){return m.now()-d}}var v=[],S=[],b=1,y=null,p=3,_=!1,E=!1,D=!1,M=!1,K=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function X(Z){for(var $=c(S);$!==null;){if($.callback===null)r(S);else if($.startTime<=Z)r(S),$.sortIndex=$.expirationTime,i(v,$);else break;$=c(S)}}function Y(Z){if(D=!1,X(Z),!E)if(c(v)!==null)E=!0,G||(G=!0,ft());else{var $=c(S);$!==null&&st(Y,$.startTime-Z)}}var G=!1,V=-1,F=5,Q=-1;function k(){return M?!0:!(a.unstable_now()-Q<F)}function rt(){if(M=!1,G){var Z=a.unstable_now();Q=Z;var $=!0;try{t:{E=!1,D&&(D=!1,w(V),V=-1),_=!0;var et=p;try{e:{for(X(Z),y=c(v);y!==null&&!(y.expirationTime>Z&&k());){var Dt=y.callback;if(typeof Dt=="function"){y.callback=null,p=y.priorityLevel;var pt=Dt(y.expirationTime<=Z);if(Z=a.unstable_now(),typeof pt=="function"){y.callback=pt,X(Z),$=!0;break e}y===c(v)&&r(v),X(Z)}else r(v);y=c(v)}if(y!==null)$=!0;else{var Se=c(S);Se!==null&&st(Y,Se.startTime-Z),$=!1}}break t}finally{y=null,p=et,_=!1}$=void 0}}finally{$?ft():G=!1}}}var ft;if(typeof L=="function")ft=function(){L(rt)};else if(typeof MessageChannel<"u"){var bt=new MessageChannel,mt=bt.port2;bt.port1.onmessage=rt,ft=function(){mt.postMessage(null)}}else ft=function(){K(rt,0)};function st(Z,$){V=K(function(){Z(a.unstable_now())},$)}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(Z){Z.callback=null},a.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<Z?Math.floor(1e3/Z):5},a.unstable_getCurrentPriorityLevel=function(){return p},a.unstable_next=function(Z){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var et=p;p=$;try{return Z()}finally{p=et}},a.unstable_requestPaint=function(){M=!0},a.unstable_runWithPriority=function(Z,$){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var et=p;p=Z;try{return $()}finally{p=et}},a.unstable_scheduleCallback=function(Z,$,et){var Dt=a.unstable_now();switch(typeof et=="object"&&et!==null?(et=et.delay,et=typeof et=="number"&&0<et?Dt+et:Dt):et=Dt,Z){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5e3}return pt=et+pt,Z={id:b++,callback:$,priorityLevel:Z,startTime:et,expirationTime:pt,sortIndex:-1},et>Dt?(Z.sortIndex=et,i(S,Z),c(v)===null&&Z===c(S)&&(D?(w(V),V=-1):D=!0,st(Y,et-Dt))):(Z.sortIndex=pt,i(v,Z),E||_||(E=!0,G||(G=!0,ft()))),Z},a.unstable_shouldYield=k,a.unstable_wrapCallback=function(Z){var $=p;return function(){var et=p;p=$;try{return Z.apply(this,arguments)}finally{p=et}}}})(ah)),ah}var sg;function rE(){return sg||(sg=1,lh.exports=cE()),lh.exports}var ih={exports:{}},me={};/**
|
|
* @license React
|
|
* react-dom.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var cg;function oE(){if(cg)return me;cg=1;var a=es();function i(b){var y="https://react.dev/errors/"+b;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)y+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+b+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal"),h=Symbol.for("react.recoverable"),m=Symbol.for("react.optimistic_key");function d(b,y,p){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:_==null?null:_===m?m:""+_,children:b,containerInfo:y,implementation:p}}var v=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function S(b,y){if(b==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.browser=function(b){return{$$typeof:h,_reason:b}},me.createPortal=function(b,y){var p=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 d(b,y,null,p)},me.flushSync=function(b){var y=v.T,p=r.p;try{if(v.T=null,r.p=2,b)return b()}finally{v.T=y,r.p=p,r.d.f()}},me.preconnect=function(b,y){typeof b=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(b,y))},me.prefetchDNS=function(b){typeof b=="string"&&r.d.D(b)},me.preinit=function(b,y){if(typeof b=="string"&&y&&typeof y.as=="string"){var p=y.as,_=S(p,y.crossOrigin),E=typeof y.integrity=="string"?y.integrity:void 0,D=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;p==="style"?r.d.S(b,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:_,integrity:E,fetchPriority:D}):p==="script"&&r.d.X(b,{crossOrigin:_,integrity:E,fetchPriority:D,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},me.preinitModule=function(b,y){if(typeof b=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var p=S(y.as,y.crossOrigin);r.d.M(b,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}}else y==null&&r.d.M(b)},me.preload=function(b,y){if(typeof b=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var p=y.as,_=S(p,y.crossOrigin);r.d.L(b,p,{crossOrigin:_,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})}},me.preloadModule=function(b,y){if(typeof b=="string")if(y){var p=S(y.as,y.crossOrigin);r.d.m(b,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}else r.d.m(b)},me.requestFormReset=function(b){r.d.r(b)},me.unstable_batchedUpdates=function(b,y){return b(y)},me.useFormState=function(b,y,p){return v.H.useFormState(b,y,p)},me.useFormStatus=function(){return v.H.useHostTransitionStatus()},me.version="19.3.0",me}var rg;function fE(){if(rg)return ih.exports;rg=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(),ih.exports=oE(),ih.exports}/**
|
|
* @license React
|
|
* react-dom-client.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var og;function hE(){if(og)return Qu;og=1;var a=rE(),i=es(),c=fE();function r(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 o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){for(var e=t,n=e;n&&!n.alternate;)e=n,(e.flags&4098)!==0&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function m(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 v(t){if(h(t)!==t)throw Error(r(188))}function S(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var u=n.return;if(u===null)break;var s=u.alternate;if(s===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===n)return v(u),t;if(s===l)return v(u),e;s=s.sibling}throw Error(r(188))}if(n.return!==l.return)n=u,l=s;else{for(var f=!1,g=u.child;g;){if(g===n){f=!0,n=u,l=s;break}if(g===l){f=!0,l=u,n=s;break}g=g.sibling}if(!f){for(g=s.child;g;){if(g===n){f=!0,n=s,l=u;break}if(g===l){f=!0,l=s,n=u;break}g=g.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(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}function y(t,e,n,l,u,s){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,l,u,s)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&y(t.child,e,n,l,u,s))return!0;t=t.sibling}return!1}function p(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function _(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function E(t){var e=[null,null],n=p(t);return n===null||D(e,t,n.child,{foundSelf:!1}),e}function D(t,e,n,l){for(;n!==null;){if(n===e)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&D(t,e,n.child,l))return!0;n=n.sibling}return!1}function M(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(r(559))}}var K=null,w=null;function L(t,e,n){return t===n?!0:t===e?(K=t,!0):!1}function X(t,e,n){return t===n?(w=t,!1):t===e?(w!==null&&(K=t),!0):!1}function Y(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function G(t,e,n){for(var l=0,u=t;u;u=n(u))l++;u=0;for(var s=e;s;s=n(s))u++;for(;0<l-u;)t=n(t),l--;for(;0<u-l;)e=n(e),u--;for(;l--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var V=Object.assign,F=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),rt=Symbol.for("react.fragment"),ft=Symbol.for("react.strict_mode"),bt=Symbol.for("react.profiler"),mt=Symbol.for("react.consumer"),st=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),Dt=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),Se=Symbol.for("react.activity"),Re=Symbol.for("react.legacy_hidden"),ne=Symbol.for("react.memo_cache_sentinel"),R=Symbol.for("react.view_transition"),J=Symbol.for("react.recoverable"),it=Symbol.iterator;function I(t){return t===null||typeof t!="object"?null:(t=it&&t[it]||t["@@iterator"],typeof t=="function"?t:null)}var yt=Symbol.for("react.client.reference");function Rt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===yt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case rt:return"Fragment";case bt:return"Profiler";case ft:return"StrictMode";case $:return"Suspense";case et:return"SuspenseList";case Se:return"Activity";case R:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case st:return t.displayName||"Context";case mt:return(t._context.displayName||"Context")+".Consumer";case Z:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Dt:return e=t.displayName||null,e!==null?e:Rt(t.type)||"Memo";case pt:e=t._payload,t=t._init;try{return Rt(t(e))}catch{}}return null}var At=Array.isArray,at=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ht=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mn={pending:!1,data:null,method:null,action:null},ar=[],za=-1;function fn(t){return{current:t}}function se(t){0>za||(t.current=ar[za],ar[za]=null,za--)}function Qt(t,e){za++,ar[za]=t.current,t.current=e}var hn=fn(null),Vi=fn(null),tl=fn(null),ls=fn(null);function as(t,e){switch(Qt(tl,e),Qt(Vi,t),Qt(hn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?R0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=R0(e),t=A0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}se(hn),Qt(hn,t)}function Na(){se(hn),se(Vi),se(tl)}function ir(t){var e=t.memoizedState;e!==null&&(vi._currentValue=e.memoizedState,Qt(ls,t)),e=hn.current;var n=A0(e,t.type);e!==n&&(Qt(Vi,t),Qt(hn,n))}function is(t){Vi.current===t&&(se(hn),se(Vi)),ls.current===t&&(se(ls),vi._currentValue=Mn)}var ur,Jh;function el(t){if(ur===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ur=e&&e[1]||"",Jh=-1<n.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+ur+t+Jh}var sr=!1;function cr(t,e){if(!t||sr)return"";sr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(P){var A=P}Reflect.construct(t,[],q)}else{try{q.call()}catch(P){A=P}q=!1;try{var U=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),q=!0,new t}finally{q&&(U!==void 0?Object.defineProperty(t.prototype,"props",U):delete t.prototype.props)}}}else{try{throw Error()}catch(P){A=P}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(P){if(P&&A&&typeof P.stack=="string")return[P.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),f=s[0],g=s[1];if(f&&g){var T=f.split(`
|
|
`),N=g.split(`
|
|
`);for(u=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;if(l===T.length||u===N.length)for(l=T.length-1,u=N.length-1;1<=l&&0<=u&&T[l]!==N[u];)u--;for(;1<=l&&0<=u;l--,u--)if(T[l]!==N[u]){if(l!==1||u!==1)do if(l--,u--,0>u||T[l]!==N[u]){var j=`
|
|
`+T[l].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=l&&0<=u);break}}}finally{sr=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?el(n):""}function NS(t,e){switch(t.tag){case 26:case 27:case 5:return el(t.type);case 16:return el("Lazy");case 13:return t.child!==e&&e!==null?el("Suspense Fallback"):el("Suspense");case 19:return el("SuspenseList");case 0:case 15:return cr(t.type,!1);case 11:return cr(t.type.render,!1);case 1:return cr(t.type,!0);case 31:return el("Activity");case 30:return el("ViewTransition");default:return""}}function Fh(t){try{var e="",n=null;do e+=NS(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
Error generating stack: `+l.message+`
|
|
`+l.stack}}var rr=Object.prototype.hasOwnProperty,or=a.unstable_scheduleCallback,fr=a.unstable_cancelCallback,DS=a.unstable_shouldYield,MS=a.unstable_requestPaint,je=a.unstable_now,xS=a.unstable_getCurrentPriorityLevel,kh=a.unstable_ImmediatePriority,Ih=a.unstable_UserBlockingPriority,us=a.unstable_NormalPriority,US=a.unstable_LowPriority,Ph=a.unstable_IdlePriority,wS=a.log,jS=a.unstable_setDisableYieldValue,Xi=null,He=null;function nl(t){if(typeof wS=="function"&&jS(t),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(Xi,t)}catch{}}var Le=Math.clz32?Math.clz32:BS,HS=Math.log,LS=Math.LN2;function BS(t){return t>>>=0,t===0?32:31-(HS(t)/LS|0)|0}var ss=256,cs=262144,rs=4194304;function Xl(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&-t;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 os(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,s=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~s,l!==0?u=Xl(l):(f&=g,f!==0?u=Xl(f):n||(n=g&~t,n!==0&&(u=Xl(n))))):(g=l&~s,g!==0?u=Xl(g):f!==0?u=Xl(f):n||(n=l&~t,n!==0&&(u=Xl(n)))),u===0?0:e!==0&&e!==u&&(e&s)===0&&(s=u&-u,n=e&-e,s>=n||s===32&&(n&4194048)!==0)?e:u}function Ki(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function $h(t,e){(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var l=31-Le(n),u=1<<l;e|=t[l],n&=~u}return e}function qS(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 Wh(){var t=rs;return rs<<=1,(rs&62914560)===0&&(rs=4194304),t}function hr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Zi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function QS(t,e,n,l,u,s){var f=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 g=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=f&~n;0<n;){var j=31-Le(n),q=1<<j;g[j]=0,T[j]=-1;var A=N[j];if(A!==null)for(N[j]=null,j=0;j<A.length;j++){var U=A[j];U!==null&&(U.lane&=-536870913)}n&=~q}l!==0&&td(t,l,0),s!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=s&~(f&~e))}function td(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Le(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function ed(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Le(n),u=1<<l;u&e|t[l]&e&&(t[l]|=e),n&=~u}}function nd(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 mr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ld(){var t=ht.p;return t!==0?t:(t=window.event,t===void 0?32:ov(t.type))}function ad(t,e){var n=ht.p;try{return ht.p=t,e()}finally{ht.p=n}}var xn=Math.random().toString(36).slice(2),ce="__reactFiber$"+xn,Ae="__reactProps$"+xn,Da="__reactContainer$"+xn,id="__reactEvents$"+xn,YS="__reactListeners$"+xn,GS="__reactHandles$"+xn,ud="__reactResources$"+xn,Ji="__reactMarker$"+xn,fs="__reactLoad$"+xn;function hs(t){delete t[ce],delete t[Ae],delete t[YS],delete t[GS]}function Kl(t){var e;if(e=t[ce])return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[ce]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=X0(t);t!==null;){if(n=t[ce])return n;t=X0(t)}return e}t=n,n=t.parentNode}return null}function Ma(t){if(t=t[ce]||t[Da]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Fi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function xa(t){var e=t[ud];return e||(e=t[ud]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function le(t){t[Ji]=!0}function sd(t){t[fs]=void 0}var cd=new Set,rd={};function Zl(t,e){Ua(t,e),Ua(t+"Capture",e)}function Ua(t,e){for(rd[t]=e,t=0;t<e.length;t++)cd.add(e[t])}var VS=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]*$"),od={},fd={};function XS(t){return rr.call(fd,t)?!0:rr.call(od,t)?!1:VS.test(t)?fd[t]=!0:(od[t]=!0,!1)}var Mt=!1;function hd(){var t=Mt;return Mt=!1,t}function ds(t,e,n){if(XS(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 ms(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 Un(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 Be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function dd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function KS(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 u=l.get,s=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){n=""+f,s.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function yr(t){if(!t._valueTracker){var e=dd(t)?"checked":"value";t._valueTracker=KS(t,e,""+t[e])}}function md(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=dd(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}var ZS=/[\n"\\]/g;function Ze(t){return t.replace(ZS,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vr(t,e,n,l,u,s,f,g){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Be(e)):t.value!==""+Be(e)&&(t.value=""+Be(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?f==="number"&&t.value==e?gr(t,Be(t.value)):gr(t,Be(e)):n!=null?gr(t,Be(n)):l!=null&&t.removeAttribute("value"),u==null&&s!=null&&(t.defaultChecked=!!s),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Be(g):t.removeAttribute("name")}function yd(t,e,n,l,u,s,f,g){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){yr(t);return}n=n!=null?""+Be(n):"",e=e!=null?""+Be(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=g?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),yr(t)}function gr(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function wa(t,e,n,l){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Be(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function vd(t,e,n){if(e!=null&&(e=""+Be(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Be(n):""}function gd(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(r(92));if(At(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Be(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),yr(t)}function ja(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var JS=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 Sd(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||JS.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function pd(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(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]="",Mt=!0);for(var u in e)l=e[u],e.hasOwnProperty(u)&&n[u]!==l&&(Sd(t,u,l),Mt=!0)}else for(var s in e)e.hasOwnProperty(s)&&Sd(t,s,e[s])}function Sr(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 FS=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"],["maskType","mask-type"],["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"]]),kS=/^[\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 ys(t){return kS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function dn(){}var pr=null;function br(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,La=null;function bd(t){var e=Ma(t);if(e&&(t=e.stateNode)){var n=t[Ae]||null;t:switch(t=e.stateNode,e.type){case"input":if(vr(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="'+Ze(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var u=l[Ae]||null;if(!u)throw Error(r(90));vr(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&md(l)}break t;case"textarea":vd(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&wa(t,!!n.multiple,e,!1)}}}var _r=!1;function _d(t,e,n){if(_r)return t(e,n);_r=!0;try{var l=t(e);return l}finally{if(_r=!1,(Ha!==null||La!==null)&&(yc(),Ha&&(e=Ha,t=La,La=Ha=null,bd(e),t)))for(e=0;e<t.length;e++)bd(t[e])}}function ki(t,e){var n=t.stateNode;if(n===null)return null;var l=n[Ae]||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(r(231,e,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tr=!1;if(wn)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){Tr=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{Tr=!1}var ll=null,Er=null,vs=null;function Td(){if(vs)return vs;var t,e=Er,n=e.length,l,u="value"in ll?ll.value:ll.textContent,s=u.length;for(t=0;t<n&&e[t]===u[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===u[s-l];l++);return vs=u.slice(t,1<l?1-l:void 0)}function gs(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 Ss(){return!0}function Ed(){return!1}function pe(t){function e(n,l,u,s,f){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(s):s[g]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ss:Ed,this.isPropagationStopped=Ed,this}return V(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=Ss)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ss)},persist:function(){},isPersistent:Ss}),e}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ps=pe(al),Pi=V({},al,{view:0,detail:0}),IS=pe(Pi),Or,Cr,$i,bs=V({},Pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ar,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!==$i&&($i&&t.type==="mousemove"?(Or=t.screenX-$i.screenX,Cr=t.screenY-$i.screenY):Cr=Or=0,$i=t),Or)},movementY:function(t){return"movementY"in t?t.movementY:Cr}}),Od=pe(bs),PS=V({},bs,{dataTransfer:0}),$S=pe(PS),WS=V({},Pi,{relatedTarget:0}),Rr=pe(WS),t1=V({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),e1=pe(t1),n1=V({},al,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),l1=pe(n1),a1=V({},al,{data:0}),Cd=pe(a1),i1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},s1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=s1[t])?!!e[t]:!1}function Ar(){return c1}var r1=V({},Pi,{key:function(t){if(t.key){var e=i1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=gs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?u1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ar,charCode:function(t){return t.type==="keypress"?gs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?gs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),o1=pe(r1),f1=V({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rd=pe(f1),h1=V({},al,{submitter:0}),d1=pe(h1),m1=V({},Pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ar}),y1=pe(m1),v1=V({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),g1=pe(v1),S1=V({},bs,{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}),p1=pe(S1),b1=V({},al,{newState:0,oldState:0,source:0}),_1=pe(b1),T1=[9,13,27,32],zr=wn&&"CompositionEvent"in window,Wi=null;wn&&"documentMode"in document&&(Wi=document.documentMode);var E1=wn&&"TextEvent"in window&&!Wi,Ad=wn&&(!zr||Wi&&8<Wi&&11>=Wi),zd=" ",Nd=!1;function Dd(t,e){switch(t){case"keyup":return T1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Md(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ba=!1;function O1(t,e){switch(t){case"compositionend":return Md(e);case"keypress":return e.which!==32?null:(Nd=!0,zd);case"textInput":return t=e.data,t===zd&&Nd?null:t;default:return null}}function C1(t,e){if(Ba)return t==="compositionend"||!zr&&Dd(t,e)?(t=Td(),vs=Er=ll=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 Ad&&e.locale!=="ko"?null:e.data;default:return null}}var R1={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 xd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!R1[t.type]:e==="textarea"}function Ud(t,e,n,l){Ha?La?La.push(l):La=[l]:Ha=l,e=_c(e,"onChange"),0<e.length&&(n=new ps("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var tu=null,eu=null;function A1(t){b0(t,0)}function _s(t){var e=Fi(t);if(md(e))return t}function wd(t,e){if(t==="change")return e}var jd=!1;if(wn){var Nr;if(wn){var Dr="oninput"in document;if(!Dr){var Hd=document.createElement("div");Hd.setAttribute("oninput","return;"),Dr=typeof Hd.oninput=="function"}Nr=Dr}else Nr=!1;jd=Nr&&(!document.documentMode||9<document.documentMode)}function Ld(){tu&&(tu.detachEvent("onpropertychange",Bd),eu=tu=null)}function Bd(t){if(t.propertyName==="value"&&_s(eu)){var e=[];Ud(e,eu,t,br(t)),_d(A1,e)}}function z1(t,e,n){t==="focusin"?(Ld(),tu=e,eu=n,tu.attachEvent("onpropertychange",Bd)):t==="focusout"&&Ld()}function N1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return _s(eu)}function D1(t,e){if(t==="click")return _s(e)}function M1(t,e){if(t==="input"||t==="change")return _s(e)}function x1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var qe=typeof Object.is=="function"?Object.is:x1;function nu(t,e){if(qe(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 u=n[l];if(!rr.call(e,u)||!qe(t[u],e[u]))return!1}return!0}function Mr(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}}function qd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qd(t,e){var n=qd(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=qd(n)}}function Yd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Yd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Gd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Mr(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=Mr(t.document)}return e}function xr(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 U1=wn&&"documentMode"in document&&11>=document.documentMode,qa=null,Ur=null,lu=null,wr=!1;function Vd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wr||qa==null||qa!==Mr(l)||(l=qa,"selectionStart"in l&&xr(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}),lu&&nu(lu,l)||(lu=l,l=_c(Ur,"onSelect"),0<l.length&&(e=new ps("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=qa)))}function Jl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Qa={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionrun:Jl("Transition","TransitionRun"),transitionstart:Jl("Transition","TransitionStart"),transitioncancel:Jl("Transition","TransitionCancel"),transitionend:Jl("Transition","TransitionEnd")},jr={},Xd={};wn&&(Xd=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 Fl(t){if(jr[t])return jr[t];if(!Qa[t])return t;var e=Qa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Xd)return jr[t]=e[n];return t}var Kd=Fl("animationend"),Zd=Fl("animationiteration"),Jd=Fl("animationstart"),w1=Fl("transitionrun"),j1=Fl("transitionstart"),H1=Fl("transitioncancel"),Fd=Fl("transitionend"),kd=new Map,Hr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Hr.push("scrollEnd");function nn(t,e){kd.set(t,e),Zl(e,[t])}var L1=0;function jn(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=sn.identifierPrefix;var n=L1++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function Id(t){if(t==null||typeof t=="string")return t;var e=null,n=ui;if(n!==null)for(var l=0;l<n.length;l++){var u=t[n[l]];if(u!=null){if(u==="none")return"none";e=e==null?u:e+(" "+u)}}return e??t.default}function Hn(t,e){return t=Id(t),e=Id(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Ts=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)},Je=[],Ya=0,Lr=0;function Es(){for(var t=Ya,e=Lr=Ya=0;e<t;){var n=Je[e];Je[e++]=null;var l=Je[e];Je[e++]=null;var u=Je[e];Je[e++]=null;var s=Je[e];if(Je[e++]=null,l!==null&&u!==null){var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}s!==0&&Pd(n,u,s)}}function Os(t,e,n,l){Je[Ya++]=t,Je[Ya++]=e,Je[Ya++]=n,Je[Ya++]=l,Lr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Br(t,e,n,l){return Os(t,e,n,l),Cs(t)}function kl(t,e){return Os(t,null,null,e),Cs(t)}function Pd(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var u=!1,s=t.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(u=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,u&&e!==null&&(u=31-Le(n),t=s.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=n|536870912),s):null}function Cs(t){if(50<Cu)throw Cu=0,mc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ga={};function B1(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 ze(t,e,n,l){return new B1(t,e,n,l)}function qr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ln(t,e){var n=t.alternate;return n===null?(n=ze(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&1206910976,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 $d(t,e){t.flags&=1206910978;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 Rs(t,e,n,l,u,s){var f=0;if(l=t,typeof l=="function")qr(l)&&(f=1);else if(typeof l=="string")f=hb(t,n,hn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(l){case Se:return t=ze(31,n,e,u),t.elementType=Se,t.lanes=s,t;case rt:return Il(n.children,u,s,e);case ft:f=8,u|=24;break;case bt:return t=ze(12,n,e,u|2),t.elementType=bt,t.lanes=s,t;case $:return t=ze(13,n,e,u),t.elementType=$,t.lanes=s,t;case et:return t=ze(19,n,e,u),t.elementType=et,t.lanes=s,t;case Re:case R:return t=u|32,t=ze(30,n,e,t),t.elementType=R,t.lanes=s,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case st:f=10;break t;case mt:f=9;break t;case Z:f=11;break t;case Dt:f=14;break t;case pt:f=16,l=null;break t}f=29,n=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=ze(f,n,e,u),e.elementType=t,e.type=l,e.lanes=s,e}function Il(t,e,n,l){return t=ze(7,t,l,e),t.lanes=n,t}function Qr(t,e,n){return t=ze(6,t,null,e),t.lanes=n,t}function Wd(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function Yr(t,e,n){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var tm=new WeakMap;function Fe(t,e){if(typeof t=="object"&&t!==null){var n=tm.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Fh(e)},tm.set(t,e),e)}return{value:t,source:e,stack:Fh(e)}}var Va=[],Xa=0,As=null,au=0,ke=[],Ie=0,il=null,mn=1,yn="";function Bn(t,e){Va[Xa++]=au,Va[Xa++]=As,As=t,au=e}function em(t,e,n){ke[Ie++]=mn,ke[Ie++]=yn,ke[Ie++]=il,il=t;var l=mn;t=yn;var u=32-Le(l)-1;l&=~(1<<u),n+=1;var s=32-Le(e)+u;if(30<s){var f=u-u%5;s=(l&(1<<f)-1).toString(32),l>>=f,u-=f,mn=1<<32-Le(e)+u|n<<u|l,yn=s+t}else mn=1<<s|n<<u|l,yn=t}function zs(t){t.return!==null&&(Bn(t,1),em(t,1,0))}function Gr(t){for(;t===As;)As=Va[--Xa],Va[Xa]=null,au=Va[--Xa],Va[Xa]=null;for(;t===il;)il=ke[--Ie],ke[Ie]=null,yn=ke[--Ie],ke[Ie]=null,mn=ke[--Ie],ke[Ie]=null}function nm(t,e){ke[Ie++]=mn,ke[Ie++]=yn,ke[Ie++]=il,mn=e.id,yn=e.overflow,il=t}var ae=null,Yt=null,St=!1,ul=null,Pe=!1,Vr=Error(r(519));function sl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw iu(Fe(e,t)),Vr}function lm(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ce]=t,e[Ae]=l,n){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(n=0;n<Au.length;n++)Tt(Au[n],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),yd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),gd(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||O0(e.textContent,n)?(l.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),l.onScroll!=null&&Tt("scroll",e),l.onScrollEnd!=null&&Tt("scrollend",e),l.onClick!=null&&(e.onclick=dn),e=!0):e=!1,e||sl(t,!0)}function Ns(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Pe=!1;return;case 27:case 3:Pe=!0;return;default:ae=ae.return}}function Ka(t){if(t!==ae)return!1;if(!St)return Ns(t),St=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||_f(t.type,t.memoizedProps)),n=!n),n&&Yt&&sl(t),Ns(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=V0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=V0(t)}else e===27?(e=Yt,El(t.type)?(t=Df,Df=null,Yt=t):Yt=e):Yt=ae?We(t.stateNode.nextSibling):null;return!0}function Pl(){Yt=ae=null,St=!1}function Xr(){var t=ul;return t!==null&&(Me===null?Me=t:Me.push.apply(Me,t),ul=null),t}function iu(t){ul===null?ul=[t]:ul.push(t)}var Kr=fn(null),$l=null,qn=null;function cl(t,e,n){Qt(Kr,e._currentValue),e._currentValue=n}function Qn(t){t._currentValue=Kr.current,se(Kr)}function Ds(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 Zr(t,e,n,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var s=u.dependencies;if(s!==null){var f=u.child;s=s.firstContext;t:for(;s!==null;){var g=s;s=u;for(var T=0;T<e.length;T++)if(g.context===e[T]){s.lanes|=n,g=s.alternate,g!==null&&(g.lanes|=n),Ds(s.return,n,t),l||(f=null);break t}s=g.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(r(341));f.lanes|=n,s=f.alternate,s!==null&&(s.lanes|=n),Ds(f,n,t),f=null}else u.tag===13&&u.memoizedState!==null&&u.memoizedState.dehydrated===null?(u.lanes|=n,f=u.alternate,f!==null&&(f.lanes|=n),Ds(u.return,n,t),f=u.child,f=f!==null?f.sibling:null):f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Wl(t,e,n,l){t=null;for(var u=e,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var g=u.type;qe(u.pendingProps.value,f.value)||(t!==null?t.push(g):t=[g])}}else if(u===ls.current){if(f=u.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(vi):t=[vi])}u=u.return}return t!==null&&Zr(e,t,n,l),e.flags|=262144,t!==null}function Ms(t){for(t=t.firstContext;t!==null;){if(!qe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ta(t){$l=t,qn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function re(t){return am($l,t)}function xs(t,e){return $l===null&&ta(t),am(t,e)}function am(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},qn===null){if(t===null)throw Error(r(308));qn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else qn=qn.next=e;return n}var q1=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()})}},Q1=a.unstable_scheduleCallback,Y1=a.unstable_NormalPriority,It={$$typeof:st,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jr(){return{controller:new q1,data:new Map,refCount:0}}function uu(t){t.refCount--,t.refCount===0&&Q1(Y1,function(){t.controller.abort()})}function im(t,e){if((t.pendingLanes&4194048)!==0){var n=t.transitionTypes;for(n===null&&(n=t.transitionTypes=[]),t=0;t<e.length;t++){var l=e[t];n.indexOf(l)===-1&&n.push(l)}}}var su=null;function G1(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var cu=null,Fr=0,ea=0,Za=null;function V1(t,e){if(cu===null){var n=cu=[];Fr=0,ea=hf(),Za={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Fr++,e.then(um,um),e}function um(){if(--Fr===0&&(su=null,cu!==null)){Za!==null&&(Za.status="fulfilled");var t=cu;cu=null,ea=0,Za=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function X1(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),l}var sm=at.S;at.S=function(t,e){if(Wy=je(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&V1(t,e),su!==null)for(var n=oi;n!==null;)im(n,su),n=n.next;if(n=t.types,n!==null){for(var l=oi;l!==null;)im(l,n),l=l.next;if(ea!==0){l=su,l===null&&(l=su=[]);for(var u=0;u<n.length;u++){var s=n[u];l.indexOf(s)===-1&&l.push(s)}}}sm!==null&&sm(t,e)};var na=fn(null);function kr(){var t=na.current;return t!==null?t:qt.pooledCache}function Us(t,e){e===null?Qt(na,na.current):Qt(na,e.pool)}function cm(){var t=kr();return t===null?null:{parent:It._currentValue,pool:t}}var Ja=Error(r(460)),Ir=Error(r(474)),ws=Error(r(542)),js={then:function(){}};function rm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function om(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(dn,dn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,hm(t),t===void 0&&!("reason"in e)?Error(r(600)):t;default:if(typeof e.status=="string")e.then(dn,dn);else{if(t=qt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,hm(t),t}throw aa=e,Ja}}function la(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(aa=n,Ja):n}}var aa=null;function fm(){if(aa===null)throw Error(r(459));var t=aa;return aa=null,t}function hm(t){if(t===Ja||t===ws)throw Error(r(483))}var Fa=null,ru=0;function Hs(t){var e=ru;return ru+=1,Fa===null&&(Fa=[]),om(Fa,t,e)}function rl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ls(t,e){throw e.$$typeof===F?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function dm(t){function e(z,O){if(t){var x=z.deletions;x===null?(z.deletions=[O],z.flags|=16):x.push(O)}}function n(z,O){if(!t)return null;for(;O!==null;)e(z,O),O=O.sibling;return null}function l(z){for(var O=new Map;z!==null;)z.key===null?O.set(z.index,z):O.set(z.key,z),z=z.sibling;return O}function u(z,O){return z=Ln(z,O),z.index=0,z.sibling=null,z}function s(z,O,x){return z.index=x,t?(x=z.alternate,x!==null?(x=x.index,x<O?(z.flags|=2,O):x):(z.flags|=134217730,O)):(z.flags|=1048576,O)}function f(z){return t&&z.alternate===null&&(z.flags|=134217730),z}function g(z,O,x,B){return O===null||O.tag!==6?(O=Qr(x,z.mode,B),O.return=z,O):(O=u(O,x),O.return=z,O)}function T(z,O,x,B){var nt=x.type;return nt===rt?(z=j(z,O,x.props.children,B,x.key),rl(z,x),z):O!==null&&(O.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===pt&&la(nt)===O.type)?(O=u(O,x.props),rl(O,x),O.return=z,O):(O=Rs(x.type,x.key,x.props,null,z.mode,B),rl(O,x),O.return=z,O)}function N(z,O,x,B){return O===null||O.tag!==4||O.stateNode.containerInfo!==x.containerInfo||O.stateNode.implementation!==x.implementation?(O=Yr(x,z.mode,B),O.return=z,O):(O=u(O,x.children||[]),O.return=z,O)}function j(z,O,x,B,nt){return O===null||O.tag!==7?(O=Il(x,z.mode,B,nt),O.return=z,O):(O=u(O,x),O.return=z,O)}function q(z,O,x){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Qr(""+O,z.mode,x),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Q:return x=Rs(O.type,O.key,O.props,null,z.mode,x),rl(x,O),x.return=z,x;case k:return O=Yr(O,z.mode,x),O.return=z,O;case pt:return O=la(O),q(z,O,x)}if(At(O)||I(O))return O=Il(O,z.mode,x,null),O.return=z,O;if(typeof O.then=="function")return q(z,Hs(O),x);if(O.$$typeof===st)return q(z,xs(z,O),x);Ls(z,O)}return null}function A(z,O,x,B){var nt=O!==null?O.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return nt!==null?null:g(z,O,""+x,B);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Q:return x.key===nt?T(z,O,x,B):null;case k:return x.key===nt?N(z,O,x,B):null;case pt:return x=la(x),A(z,O,x,B)}if(At(x)||I(x))return nt!==null?null:j(z,O,x,B,null);if(typeof x.then=="function")return A(z,O,Hs(x),B);if(x.$$typeof===st)return A(z,O,xs(z,x),B);Ls(z,x)}return null}function U(z,O,x,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return z=z.get(x)||null,g(O,z,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return z=z.get(B.key===null?x:B.key)||null,T(O,z,B,nt);case k:return z=z.get(B.key===null?x:B.key)||null,N(O,z,B,nt);case pt:return B=la(B),U(z,O,x,B,nt)}if(At(B)||I(B))return z=z.get(x)||null,j(O,z,B,nt,null);if(typeof B.then=="function")return U(z,O,x,Hs(B),nt);if(B.$$typeof===st)return U(z,O,x,xs(O,B),nt);Ls(O,B)}return null}function P(z,O,x,B){for(var nt=null,Ot=null,ut=O,ot=O=0,Wt=null;ut!==null&&ot<x.length;ot++){ut.index>ot?(Wt=ut,ut=null):Wt=ut.sibling;var Nt=A(z,ut,x[ot],B);if(Nt===null){ut===null&&(ut=Wt);break}t&&ut&&Nt.alternate===null&&e(z,ut),O=s(Nt,O,ot),Ot===null?nt=Nt:Ot.sibling=Nt,Ot=Nt,ut=Wt}if(ot===x.length)return n(z,ut),St&&Bn(z,ot),nt;if(ut===null){for(;ot<x.length;ot++)ut=q(z,x[ot],B),ut!==null&&(O=s(ut,O,ot),Ot===null?nt=ut:Ot.sibling=ut,Ot=ut);return St&&Bn(z,ot),nt}for(ut=l(ut);ot<x.length;ot++)Wt=U(ut,z,ot,x[ot],B),Wt!==null&&(t&&(Nt=Wt.alternate,Nt!==null&&ut.delete(Nt.key===null?ot:Nt.key)),O=s(Wt,O,ot),Ot===null?nt=Wt:Ot.sibling=Wt,Ot=Wt);return t&&ut.forEach(function(zl){return e(z,zl)}),St&&Bn(z,ot),nt}function lt(z,O,x,B){if(x==null)throw Error(r(151));for(var nt=null,Ot=null,ut=O,ot=O=0,Wt=null,Nt=x.next();ut!==null&&!Nt.done;ot++,Nt=x.next()){ut.index>ot?(Wt=ut,ut=null):Wt=ut.sibling;var zl=A(z,ut,Nt.value,B);if(zl===null){ut===null&&(ut=Wt);break}t&&ut&&zl.alternate===null&&e(z,ut),O=s(zl,O,ot),Ot===null?nt=zl:Ot.sibling=zl,Ot=zl,ut=Wt}if(Nt.done)return n(z,ut),St&&Bn(z,ot),nt;if(ut===null){for(;!Nt.done;ot++,Nt=x.next())Nt=q(z,Nt.value,B),Nt!==null&&(O=s(Nt,O,ot),Ot===null?nt=Nt:Ot.sibling=Nt,Ot=Nt);return St&&Bn(z,ot),nt}for(ut=l(ut);!Nt.done;ot++,Nt=x.next())Nt=U(ut,z,ot,Nt.value,B),Nt!==null&&(t&&(Wt=Nt.alternate,Wt!==null&&ut.delete(Wt.key===null?ot:Wt.key)),O=s(Nt,O,ot),Ot===null?nt=Nt:Ot.sibling=Nt,Ot=Nt);return t&&ut.forEach(function(Ob){return e(z,Ob)}),St&&Bn(z,ot),nt}function gt(z,O,x,B){if(typeof x=="object"&&x!==null&&x.type===rt&&x.key===null&&x.props.ref===void 0&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Q:t:{for(var nt=x.key;O!==null;){if(O.key===nt){if(nt=x.type,nt===rt){if(O.tag===7){n(z,O.sibling),B=u(O,x.props.children),rl(B,x),B.return=z,z=B;break t}}else if(O.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===pt&&la(nt)===O.type){n(z,O.sibling),B=u(O,x.props),rl(B,x),B.return=z,z=B;break t}n(z,O);break}else e(z,O);O=O.sibling}x.type===rt?(B=Il(x.props.children,z.mode,B,x.key),rl(B,x),B.return=z,z=B):(B=Rs(x.type,x.key,x.props,null,z.mode,B),rl(B,x),B.return=z,z=B)}return f(z);case k:t:{for(nt=x.key;O!==null;){if(O.key===nt)if(O.tag===4&&O.stateNode.containerInfo===x.containerInfo&&O.stateNode.implementation===x.implementation){n(z,O.sibling),B=u(O,x.children||[]),B.return=z,z=B;break t}else{n(z,O);break}else e(z,O);O=O.sibling}B=Yr(x,z.mode,B),B.return=z,z=B}return f(z);case pt:return x=la(x),gt(z,O,x,B)}if(At(x))return P(z,O,x,B);if(I(x)){if(nt=I(x),typeof nt!="function")throw Error(r(150));return x=nt.call(x),lt(z,O,x,B)}if(typeof x.then=="function")return gt(z,O,Hs(x),B);if(x.$$typeof===st)return gt(z,O,xs(z,x),B);Ls(z,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,O!==null&&O.tag===6?(n(z,O.sibling),B=u(O,x),B.return=z,z=B):(n(z,O),B=Qr(x,z.mode,B),B.return=z,z=B),f(z)):n(z,O)}return function(z,O,x,B){try{ru=0;var nt=gt(z,O,x,B);return Fa=null,nt}catch(ut){if(ut===Ja||ut===ws)throw ut;var Ot=ze(29,ut,null,z.mode);return Ot.lanes=B,Ot.return=z,Ot}finally{}}}var ia=dm(!0),mm=dm(!1),ol=!1;function Pr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $r(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 fl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function hl(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(xt&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=Cs(t),Pd(t,null,n),e}return Os(t,l,e,n),Cs(t)}function ou(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,ed(t,n)}}function Wr(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?u=s=f:s=s.next=f,n=n.next}while(n!==null);s===null?u=s=e:s=s.next=e}else u=s=e;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:s,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 to=!1;function fu(){if(to){var t=Za;if(t!==null)throw t}}function hu(t,e,n,l){to=!1;var u=t.updateQueue;ol=!1;var s=u.firstBaseUpdate,f=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var T=g,N=T.next;T.next=null,f===null?s=N:f.next=N,f=T;var j=t.alternate;j!==null&&(j=j.updateQueue,g=j.lastBaseUpdate,g!==f&&(g===null?j.firstBaseUpdate=N:g.next=N,j.lastBaseUpdate=T))}if(s!==null){var q=u.baseState;f=0,j=N=T=null,g=s;do{var A=g.lane&-536870913,U=A!==g.lane;if(U?(Et&A)===A:(l&A)===A){A!==0&&A===ea&&(to=!0),j!==null&&(j=j.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var P=t,lt=g;A=e;var gt=n;switch(lt.tag){case 1:if(P=lt.payload,typeof P=="function"){q=P.call(gt,q,A);break t}q=P;break t;case 3:P.flags=P.flags&-65537|128;case 0:if(P=lt.payload,A=typeof P=="function"?P.call(gt,q,A):P,A==null)break t;q=V({},q,A);break t;case 2:ol=!0}}A=g.callback,A!==null&&(t.flags|=64,U&&(t.flags|=8192),U=u.callbacks,U===null?u.callbacks=[A]:U.push(A))}else U={lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},j===null?(N=j=U,T=q):j=j.next=U,f|=A;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;U=g,g=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);j===null&&(T=q),u.baseState=T,u.firstBaseUpdate=N,u.lastBaseUpdate=j,s===null&&(u.shared.lanes=0),pl|=f,t.lanes=f,t.memoizedState=q}}function ym(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function vm(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)ym(n[t],e)}var dl=fn(null),Bs=fn(0);function gm(t,e){t=Kn,Qt(Bs,t),Qt(dl,e),Kn=t|e.baseLanes}function eo(){Qt(Bs,Kn),Qt(dl,dl.current)}function no(){Kn=Bs.current,se(dl),se(Bs)}var oe=fn(null),ve=null;function ml(t){var e=t.alternate;Qt(fe,fe.current&1),Qt(oe,t),ve===null&&(e===null||dl.current!==null||e.memoizedState!==null)&&(ve=t)}function lo(t){Qt(fe,fe.current),Qt(oe,t),ve===null&&(ve=t)}function Sm(t){t.tag===22?(Qt(fe,fe.current),Qt(oe,t),ve===null&&(ve=t)):yl()}function yl(){Qt(fe,fe.current),Qt(oe,oe.current)}function Qe(t){se(oe),ve===t&&(ve=null),se(fe)}var fe=fn(0);function du(t,e){Qt(oe,oe.current),Qt(fe,e)}function ao(t){se(fe),se(oe),ve===t&&(ve=null)}function qs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||zf(n)||Nf(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){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 Yn=0,vt=null,Bt=null,Pt=null,Qs=!1,ka=!1,ua=!1,Ys=0,mu=0,Ia=null,K1=0;function Jt(){throw Error(r(321))}function io(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!qe(t[n],e[n]))return!1;return!0}function uo(t,e,n,l,u,s){return Yn=s,vt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,at.H=t===null||t.memoizedState===null?ey:ny,ua=!1,s=n(l,u),ua=!1,ka&&(s=bm(e,n,l,u)),pm(t),s}function pm(t){at.H=Fs;var e=Bt!==null&&Bt.next!==null;if(Yn=0,Pt=Bt=vt=null,Qs=!1,mu=0,Ia=null,e)throw Error(r(300));t===null||$t||(t=t.dependencies,t!==null&&Ms(t)&&($t=!0))}function bm(t,e,n,l){vt=t;var u=0;do{if(ka&&(Ia=null),mu=0,ka=!1,25<=u)throw Error(r(301));if(u+=1,Pt=Bt=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}at.H=W1,s=e(n,l)}while(ka);return s}function Z1(){var t=at.H,e=t.useState()[0];return e=typeof e.then=="function"?yu(e):e,t=t.useState()[0],(Bt!==null?Bt.memoizedState:null)!==t&&(vt.flags|=1024),e}function so(){var t=Ys!==0;return Ys=0,t}function co(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function ro(t){if(Qs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Qs=!1}Yn=0,Pt=Bt=vt=null,ka=!1,mu=Ys=0,Ia=null}function be(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?vt.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function kt(){if(Bt===null){var t=vt.alternate;t=t!==null?t.memoizedState:null}else t=Bt.next;var e=Pt===null?vt.memoizedState:Pt.next;if(e!==null)Pt=e,Bt=t;else{if(t===null)throw vt.alternate===null?Error(r(467)):Error(r(310));Bt=t,t={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},Pt===null?vt.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Gs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yu(t){var e=mu;return mu+=1,Ia===null&&(Ia=[]),t=om(Ia,t,e),e=vt,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,at.H=e===null||e.memoizedState===null?ey:ny),t}function Vs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return yu(t);if(t.$$typeof===J)return;if(t.$$typeof===st)return re(t)}throw Error(r(438,String(t)))}function oo(t){var e=null,n=vt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=vt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Gs(),vt.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]=ne;return e.index++,n}function Gn(t,e){return typeof e=="function"?e(t):e}function Xs(t){var e=kt();return fo(e,Bt,t)}function fo(t,e,n){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var u=t.baseQueue,s=l.pending;if(s!==null){if(u!==null){var f=u.next;u.next=s.next,s.next=f}e.baseQueue=u=s,l.pending=null}if(s=t.baseState,u===null)t.memoizedState=s;else{e=u.next;var g=f=null,T=null,N=e,j=!1;do{var q=N.lane&-536870913;if(q!==N.lane?(Et&q)===q:(Yn&q)===q){var A=N.revertLane;if(A===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),q===ea&&(j=!0);else if((Yn&A)===A){N=N.next,A===ea&&(j=!0);continue}else q={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(g=T=q,f=s):T=T.next=q,vt.lanes|=A,pl|=A;q=N.action,ua&&n(s,q),s=N.hasEagerState?N.eagerState:n(s,q)}else A={lane:q,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(g=T=A,f=s):T=T.next=A,vt.lanes|=q,pl|=q;N=N.next}while(N!==null&&N!==e);if(T===null?f=s:T.next=g,!qe(s,t.memoizedState)&&($t=!0,j&&(n=Za,n!==null)))throw n;t.memoizedState=s,t.baseState=f,t.baseQueue=T,l.lastRenderedState=s}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function ho(t){var e=kt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var l=n.dispatch,u=n.pending,s=e.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do s=t(s,f.action),f=f.next;while(f!==u);qe(s,e.memoizedState)||($t=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,l]}function _m(t,e,n){var l=vt,u=kt(),s=St;if(s){if(n===void 0)throw Error(r(407));n=n()}else n=e();var f=!qe((Bt||u).memoizedState,n);if(f&&(u.memoizedState=n,$t=!0),u=u.queue,vo(Om.bind(null,l,u,t),[t]),t=u.getSnapshot!==e||f||Pt!==null&&(Pt.memoizedState.tag&1)!==0,Pa(t?9:8,{destroy:void 0},Em.bind(null,l,u,n,e),null),t){if(l.flags|=2048,qt===null)throw Error(r(349));s||(Yn&127)!==0||Tm(l,e,n)}return n}function Tm(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=vt.updateQueue,e===null?(e=Gs(),vt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Em(t,e,n,l){e.value=n,e.getSnapshot=l,Cm(e)&&Rm(t)}function Om(t,e,n){return n(function(){Cm(e)&&Rm(t)})}function Cm(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!qe(t,n)}catch{return!0}}function Rm(t){var e=kl(t,2);e!==null&&xe(e,t,2)}function mo(t){var e=be();if(typeof t=="function"){var n=t;if(t=n(),ua){nl(!0);try{n()}finally{nl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:t},e}function Am(t,e,n,l){return t.baseState=n,fo(t,Bt,typeof l=="function"?l:Gn)}function J1(t,e,n,l,u){if(Js(t))throw Error(r(485));if(t=e.action,t!==null){var s={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};at.T!==null?n(!0):s.isTransition=!1,l(s),n=e.pending,n===null?(s.next=e.pending=s,zm(e,s)):(s.next=n.next,e.pending=n.next=s)}}function zm(t,e){var n=e.action,l=e.payload,u=t.state;if(e.isTransition){var s=at.T,f={};f.types=s!==null?s.types:null,at.T=f;try{var g=n(u,l),T=at.S;T!==null&&T(f,g),Nm(t,e,g)}catch(N){yo(t,e,N)}finally{s!==null&&f.types!==null&&(s.types=f.types),at.T=s}}else try{s=n(u,l),Nm(t,e,s)}catch(N){yo(t,e,N)}}function Nm(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Dm(t,e,l)},function(l){return yo(t,e,l)}):Dm(t,e,n)}function Dm(t,e,n){e.status="fulfilled",e.value=n,Mm(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,zm(t,n)))}function yo(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Mm(e),e=e.next;while(e!==l)}t.action=null}function Mm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function xm(t,e){return e}function Um(t,e){if(St){var n=qt.formState;if(n!==null){t:{var l=vt;if(St){if(Yt){e:{for(var u=Yt,s=Pe;u.nodeType!==8;){if(!s){u=null;break e}if(u=We(u.nextSibling),u===null){u=null;break e}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){Yt=We(u.nextSibling),l=u.data==="F!";break t}}sl(l)}l=!1}l&&(e=n[0])}}return n=be(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xm,lastRenderedState:e},n.queue=l,n=$m.bind(null,vt,l),l.dispatch=n,l=mo(!1),s=_o.bind(null,vt,!1,l.queue),l=be(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,n=J1.bind(null,vt,u,s,n),u.dispatch=n,l.memoizedState=t,[e,n,!1]}function wm(t){var e=kt();return jm(e,Bt,t)}function jm(t,e,n){if(e=fo(t,e,xm)[0],t=Xs(Gn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=yu(e)}catch(f){throw f===Ja?ws:f}else l=e;e=kt();var u=e.queue,s=u.dispatch;return n!==e.memoizedState&&(vt.flags|=2048,Pa(9,{destroy:void 0},F1.bind(null,u,n),null)),[l,s,t]}function F1(t,e){t.action=e}function Hm(t){var e=kt(),n=Bt;if(n!==null)return jm(e,n,t);kt(),e=e.memoizedState,n=kt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Pa(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=vt.updateQueue,e===null&&(e=Gs(),vt.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 Lm(){return kt().memoizedState}function Ks(t,e,n,l){var u=be();vt.flags|=t,u.memoizedState=Pa(1|e,{destroy:void 0},n,l===void 0?null:l)}function Zs(t,e,n,l){var u=kt();l=l===void 0?null:l;var s=u.memoizedState.inst;Bt!==null&&l!==null&&io(l,Bt.memoizedState.deps)?u.memoizedState=Pa(e,s,n,l):(vt.flags|=t,u.memoizedState=Pa(1|e,s,n,l))}function Bm(t,e){Ks(8390656,8,t,e)}function vo(t,e){Zs(2048,8,t,e)}function k1(t){vt.flags|=4;var e=vt.updateQueue;if(e===null)e=Gs(),vt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function qm(t){var e=kt().memoizedState;return k1({ref:e,nextImpl:t}),function(){if((xt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Qm(t,e){return Zs(4,2,t,e)}function Ym(t,e){return Zs(4,4,t,e)}function Gm(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 Vm(t,e,n){n=n!=null?n.concat([t]):null,Zs(4,4,Gm.bind(null,e,t),n)}function go(){}function Xm(t,e){var n=kt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&io(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Km(t,e){var n=kt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&io(e,l[1]))return l[0];if(l=t(),ua){nl(!0);try{t()}finally{nl(!1)}}return n.memoizedState=[l,e],l}function So(t,e,n){return n===void 0||(Yn&1073741824)!==0&&(Et&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=e0(),vt.lanes|=t,pl|=t,n)}function Zm(t,e,n,l){return qe(n,e)?n:dl.current!==null?(t=So(t,n,l),qe(t,e)||($t=!0),t):(Yn&106)===0||(Yn&1073741824)!==0&&(Et&261930)===0?($t=!0,t.memoizedState=n):(t=e0(),vt.lanes|=t,pl|=t,e)}function Jm(t,e,n,l,u){var s=ht.p;ht.p=s!==0&&8>s?s:8;var f=at.T,g={};g.types=f!==null?f.types:null,at.T=g,_o(t,!1,e,n);try{var T=u(),N=at.S;if(N!==null&&N(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var j=X1(T,l);vu(t,e,j,Xe(t))}else vu(t,e,l,Xe(t))}catch(q){vu(t,e,{then:function(){},status:"rejected",reason:q},Xe())}finally{ht.p=s,f!==null&&g.types!==null&&(f.types=g.types),at.T=f}}function I1(){}function po(t,e,n,l){if(t.tag!==5)throw Error(r(476));var u=Fm(t).queue;Jm(t,u,e,Mn,n===null?I1:function(){return km(t),n(l)})}function Fm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Mn,baseState:Mn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:Mn},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function km(t){var e=Fm(t);e.next===null&&(e=t.alternate.memoizedState),vu(t,e.next.queue,{},Xe())}function bo(){return re(vi)}function Im(){return kt().memoizedState}function Pm(){return kt().memoizedState}function P1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Xe();t=fl(n);var l=hl(e,t,n);l!==null&&(xe(l,e,n),ou(l,e,n)),e={cache:Jr()},t.payload=e;return}e=e.return}}function $1(t,e,n){var l=Xe();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Js(t)?Wm(e,n):(n=Br(t,e,n,l),n!==null&&(xe(n,t,l),ty(n,e,l)))}function $m(t,e,n){var l=Xe();vu(t,e,n,l)}function vu(t,e,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(t))Wm(e,u);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var f=e.lastRenderedState,g=s(f,n);if(u.hasEagerState=!0,u.eagerState=g,qe(g,f))return Os(t,e,u,0),qt===null&&Es(),!1}catch{}finally{}if(n=Br(t,e,u,l),n!==null)return xe(n,t,l),ty(n,e,l),!0}return!1}function _o(t,e,n,l){if(l={lane:2,revertLane:hf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Js(t)){if(e)throw Error(r(479))}else e=Br(t,n,l,2),e!==null&&xe(e,t,2)}function Js(t){var e=t.alternate;return t===vt||e!==null&&e===vt}function Wm(t,e){ka=Qs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ty(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,ed(t,n)}}var Fs={readContext:re,use:Vs,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt,useEffectEvent:Jt},ey={readContext:re,use:Vs,useCallback:function(t,e){return be().memoizedState=[t,e===void 0?null:e],t},useContext:re,useEffect:Bm,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ks(4194308,4,Gm.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ks(4194308,4,t,e)},useInsertionEffect:function(t,e){Ks(4,2,t,e)},useMemo:function(t,e){var n=be();e=e===void 0?null:e;var l=t();if(ua){nl(!0);try{t()}finally{nl(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=be();if(n!==void 0){var u=n(e);if(ua){nl(!0);try{n(e)}finally{nl(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=$1.bind(null,vt,t),[l.memoizedState,t]},useRef:function(t){var e=be();return t={current:t},e.memoizedState=t},useState:function(t){t=mo(t);var e=t.queue,n=$m.bind(null,vt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:go,useDeferredValue:function(t,e){var n=be();return So(n,t,e)},useTransition:function(){var t=mo(!1);return t=Jm.bind(null,vt,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=vt,u=be();if(St){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),qt===null)throw Error(r(349));(Et&127)!==0||Tm(l,e,n)}u.memoizedState=n;var s={value:n,getSnapshot:e};return u.queue=s,Bm(Om.bind(null,l,s,t),[t]),l.flags|=2048,Pa(9,{destroy:void 0},Em.bind(null,l,s,n,e),null),n},useId:function(){var t=be(),e=qt.identifierPrefix;if(St){var n=yn,l=mn;n=(l&~(1<<32-Le(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ys++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=K1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:bo,useFormState:Um,useActionState:Um,useOptimistic:function(t){var e=be();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=_o.bind(null,vt,!0,n),n.dispatch=e,[t,e]},useMemoCache:oo,useCacheRefresh:function(){return be().memoizedState=P1.bind(null,vt)},useEffectEvent:function(t){var e=be(),n={impl:t};return e.memoizedState=n,function(){if((xt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},ny={readContext:re,use:Vs,useCallback:Xm,useContext:re,useEffect:vo,useImperativeHandle:Vm,useInsertionEffect:Qm,useLayoutEffect:Ym,useMemo:Km,useReducer:Xs,useRef:Lm,useState:function(){return Xs(Gn)},useDebugValue:go,useDeferredValue:function(t,e){var n=kt();return Zm(n,Bt.memoizedState,t,e)},useTransition:function(){var t=Xs(Gn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:yu(t),e]},useSyncExternalStore:_m,useId:Im,useHostTransitionStatus:bo,useFormState:wm,useActionState:wm,useOptimistic:function(t,e){var n=kt();return Am(n,Bt,t,e)},useMemoCache:oo,useCacheRefresh:Pm,useEffectEvent:qm},W1={readContext:re,use:Vs,useCallback:Xm,useContext:re,useEffect:vo,useImperativeHandle:Vm,useInsertionEffect:Qm,useLayoutEffect:Ym,useMemo:Km,useReducer:ho,useRef:Lm,useState:function(){return ho(Gn)},useDebugValue:go,useDeferredValue:function(t,e){var n=kt();return Bt===null?So(n,t,e):Zm(n,Bt.memoizedState,t,e)},useTransition:function(){var t=ho(Gn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:yu(t),e]},useSyncExternalStore:_m,useId:Im,useHostTransitionStatus:bo,useFormState:Hm,useActionState:Hm,useOptimistic:function(t,e){var n=kt();return Bt!==null?Am(n,Bt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:oo,useCacheRefresh:Pm,useEffectEvent:qm};function To(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:V({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Eo={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Xe(),u=fl(l);u.payload=e,n!=null&&(u.callback=n),e=hl(t,u,l),e!==null&&(xe(e,t,l),ou(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Xe(),u=fl(l);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=hl(t,u,l),e!==null&&(xe(e,t,l),ou(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Xe(),l=fl(n);l.tag=2,e!=null&&(l.callback=e),e=hl(t,l,n),e!==null&&(xe(e,t,n),ou(e,t,n))}};function ly(t,e,n,l,u,s,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,s,f):e.prototype&&e.prototype.isPureReactComponent?!nu(n,l)||!nu(u,s):!0}function ay(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&&Eo.enqueueReplaceState(e,e.state,null)}function sa(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=V({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function iy(t){Ts(t)}function uy(t){console.error(t)}function sy(t){Ts(t)}function ks(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function cy(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Oo(t,e,n){return n=fl(n),n.tag=3,n.payload={element:null},n.callback=function(){ks(t,e)},n}function ry(t){return t=fl(t),t.tag=3,t}function oy(t,e,n,l){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var s=l.value;t.payload=function(){return u(s)},t.callback=function(){cy(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){cy(e,n,l),typeof u!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function tp(t,e,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Wl(e,n,u,!0),n=oe.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ve===null?vc():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=u,l===js?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),rf(t,l,u)),!1;case 22:return n.flags|=65536,l===js?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)),rf(t,l,u)),!1}throw Error(r(435,n.tag))}return rf(t,l,u),vc(),!1}if(St)return e=oe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==Vr&&(t=Error(r(422),{cause:l}),iu(Fe(t,n)))):(l!==Vr&&(e=Error(r(423),{cause:l}),iu(Fe(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Fe(l,n),u=Oo(t.stateNode,l,u),Wr(t,u),Ft!==4&&(Ft=2)),!1;var s=Error(r(520),{cause:l});if(s=Fe(s,n),Ou===null?Ou=[s]:Ou.push(s),Ft!==4&&(Ft=2),e===null)return!0;l=Fe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Oo(n.stateNode,l,t),Wr(n,t),!1;case 1:if(e=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(bl===null||!bl.has(s))))return n.flags|=65536,u&=-u,n.lanes|=u,u=ry(u),oy(u,t,n,l),Wr(n,u),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Co=Error(r(461)),$t=!1;function te(t,e,n,l){e.child=t===null?mm(e,null,n,l):ia(e,t.child,n,l)}function fy(t,e,n,l,u){n=n.render;var s=e.ref;if("ref"in l){var f={};for(var g in l)g!=="ref"&&(f[g]=l[g])}else f=l;return ta(e),l=uo(t,e,n,f,s,u),g=so(),t!==null&&!$t?(co(t,e,u),Vn(t,e,u)):(St&&g&&zs(e),e.flags|=1,te(t,e,l,u),e.child)}function hy(t,e,n,l,u){if(t===null){var s=n.type;return typeof s=="function"&&!qr(s)&&s.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=s,dy(t,e,s,l,u)):(t=Rs(n.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Uo(t,u)){var f=s.memoizedProps;if(n=n.compare,n=n!==null?n:nu,n(f,l)&&t.ref===e.ref)return Vn(t,e,u)}return e.flags|=1,t=Ln(s,l),t.ref=e.ref,t.return=e,e.child=t}function dy(t,e,n,l,u){if(t!==null){var s=t.memoizedProps;if(nu(s,l)&&t.ref===e.ref)if($t=!1,e.pendingProps=l=s,Uo(t,u))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,Vn(t,e,u)}return Ro(t,e,n,l,u)}function my(t,e,n,l){var u=l.children,s=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(s=s!==null?s.baseLanes|n:n,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~s}else l=0,e.child=null;return yy(t,e,s,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Us(e,s!==null?s.cachePool:null),s!==null?gm(e,s):eo(),Sm(e);else return l=e.lanes=536870912,yy(t,e,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(Us(e,s.cachePool),gm(e,s),yl(),e.memoizedState=null):(t!==null&&Us(e,null),eo(),yl());return te(t,e,u,n),e.child}function gu(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function yy(t,e,n,l,u){var s=kr();return s=s===null?null:{parent:It._currentValue,pool:s},e.memoizedState={baseLanes:n,cachePool:s},t!==null&&Us(e,null),eo(),Sm(e),t!==null&&Wl(t,e,l,!0),e.childLanes=u,null}function Is(t,e){return e=Ps({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function vy(t,e,n){return ia(e,t.child,null,n),t=Is(e,e.pendingProps),t.flags|=2,Qe(e),e.memoizedState=null,t}function ep(t,e,n){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(St){if(l.mode==="hidden")return t=Is(e,l),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},gu(null,t);if(lo(e),(t=Yt)?(t=G0(t,Pe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:il!==null?{id:mn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=Wd(t),n.return=e,e.child=n,ae=e,Yt=null)):t=null,t===null)throw sl(e);return e.lanes=536870912,null}return Is(e,l)}var s=t.memoizedState;if(s!==null){var f=s.dehydrated;if(lo(e),u)if(e.flags&256)e.flags&=-257,e=vy(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if($t||Wl(t,e,n,!1),u=(n&t.childLanes)!==0,$t||u){if(dl.current===null){if(l=qt,l!==null&&(f=nd(l,n),f!==0&&f!==s.retryLane))throw s.retryLane=f,kl(t,f),xe(l,t,f),Co;vc()}e=vy(t,e,n)}else t=s.treeContext,Yt=We(f.nextSibling),ae=e,St=!0,ul=null,Pe=!1,t!==null&&nm(e,t),e=Is(e,l),e.flags|=134221824;return e}return t=Ln(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function $a(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(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Ro(t,e,n,l,u){return ta(e),n=uo(t,e,n,l,void 0,u),l=so(),t!==null&&!$t?(co(t,e,u),Vn(t,e,u)):(St&&l&&zs(e),e.flags|=1,te(t,e,n,u),e.child)}function gy(t,e,n,l,u,s){return ta(e),e.updateQueue=null,n=bm(e,l,n,u),pm(t),l=so(),t!==null&&!$t?(co(t,e,s),Vn(t,e,s)):(St&&l&&zs(e),e.flags|=1,te(t,e,n,s),e.child)}function Sy(t,e,n,l,u){if(ta(e),e.stateNode===null){var s=Ga,f=n.contextType;typeof f=="object"&&f!==null&&(s=re(f)),s=new n(l,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Eo,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=l,s.state=e.memoizedState,s.refs={},Pr(e),f=n.contextType,s.context=typeof f=="object"&&f!==null?re(f):Ga,s.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(To(e,n,f,l),s.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&Eo.enqueueReplaceState(s,s.state,null),hu(e,l,s,u),fu(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){s=e.stateNode;var g=e.memoizedProps,T=sa(n,g);s.props=T;var N=s.context,j=n.contextType;f=Ga,typeof j=="object"&&j!==null&&(f=re(j));var q=n.getDerivedStateFromProps;j=typeof q=="function"||typeof s.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,j||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(g||N!==f)&&ay(e,s,l,f),ol=!1;var A=e.memoizedState;s.state=A,hu(e,l,s,u),fu(),N=e.memoizedState,g||A!==N||ol?(typeof q=="function"&&(To(e,n,q,l),N=e.memoizedState),(T=ol||ly(e,n,T,l,A,N,f))?(j||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=N),s.props=l,s.state=N,s.context=f,l=T):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{s=e.stateNode,$r(t,e),f=e.memoizedProps,j=sa(n,f),s.props=j,q=e.pendingProps,A=s.context,N=n.contextType,T=Ga,typeof N=="object"&&N!==null&&(T=re(N)),g=n.getDerivedStateFromProps,(N=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==q||A!==T)&&ay(e,s,l,T),ol=!1,A=e.memoizedState,s.state=A,hu(e,l,s,u),fu();var U=e.memoizedState;f!==q||A!==U||ol||t!==null&&t.dependencies!==null&&Ms(t.dependencies)?(typeof g=="function"&&(To(e,n,g,l),U=e.memoizedState),(j=ol||ly(e,n,j,l,A,U,T)||t!==null&&t.dependencies!==null&&Ms(t.dependencies))?(N||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,U,T),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,U,T)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=U),s.props=l,s.state=U,s.context=T,l=j):(typeof s.componentDidUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),l=!1)}return s=l,$a(t,e),l=(e.flags&128)!==0,s||l?(s=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&l?(e.child=ia(e,t.child,null,u),e.child=ia(e,null,n,u)):te(t,e,n,u),e.memoizedState=s.state,t=e.child):t=Vn(t,e,u),t}function py(t,e,n,l){return Pl(),e.flags|=256,te(t,e,n,l),e.child}var Ao={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zo(t){return{baseLanes:t,cachePool:cm()}}function No(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function by(t,e,n){var l=e.pendingProps,u=!1,s=(e.flags&128)!==0,f;if((f=s)||(f=t!==null&&t.memoizedState===null?!1:(fe.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(u?ml(e):yl(),(t=Yt)?(t=G0(t,Pe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:il!==null?{id:mn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=Wd(t),n.return=e,e.child=n,ae=e,Yt=null)):t=null,t===null)throw sl(e);return Nf(t)?e.lanes=32:e.lanes=536870912,null}return s=l.children,l=l.fallback,u?(yl(),u=e.mode,s=Ps({mode:"hidden",children:s},u),l=Il(l,u,n,null),s.return=e,l.return=e,s.sibling=l,e.child=s,l=e.child,l.memoizedState=zo(n),l.childLanes=No(t,f,n),e.memoizedState=Ao,gu(null,l)):(ml(e),Do(e,s))}var g=t.memoizedState;if(g!==null){var T=g.dehydrated;if(T!==null)return np(t,e,s,f,l,T,g,n)}return u?(yl(),u=l.fallback,s=e.mode,g=t.child,T=g.sibling,l=Ln(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&1206910976,T!==null?u=Ln(T,u):(u=Il(u,s,n,null),u.flags|=2),u.return=e,l.return=e,l.sibling=u,e.child=l,gu(null,l),l=e.child,u=t.child.memoizedState,u===null?u=zo(n):(s=u.cachePool,s!==null?(g=It._currentValue,s=s.parent!==g?{parent:g,pool:g}:s):s=cm(),u={baseLanes:u.baseLanes|n,cachePool:s}),l.memoizedState=u,l.childLanes=No(t,f,n),e.memoizedState=Ao,gu(t.child,l)):(ml(e),n=t.child,t=n.sibling,n=Ln(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Do(t,e){return e=Ps({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ps(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function $s(t,e,n){return ia(e,t.child,null,n),t=Do(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function np(t,e,n,l,u,s,f,g){if(n)return e.flags&256?(ml(e),e.flags&=-257,$s(t,e,g)):e.memoizedState!==null?(yl(),e.child=t.child,e.flags|=128,null):(yl(),s=u.fallback,f=e.mode,u=Ps({mode:"visible",children:u.children},f),s=Il(s,f,g,null),s.flags|=2,u.return=e,s.return=e,u.sibling=s,e.child=u,ia(e,t.child,null,g),u=e.child,u.memoizedState=zo(g),u.childLanes=No(t,l,g),e.memoizedState=Ao,gu(null,u));if(ml(e),Nf(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var T=l.dgst;return l=T,l!==""&&(u=Error(r(419)),u.stack="",u.digest=l,iu({value:u,source:null,stack:null})),$s(t,e,g)}if($t||Wl(t,e,g,!1),l=(g&t.childLanes)!==0,$t||l){if(dl.current!==null)return $s(t,e,g);if(l=qt,l!==null&&(u=nd(l,g),u!==0&&u!==f.retryLane))throw f.retryLane=u,kl(t,u),xe(l,t,u),Co;return zf(s)||vc(),$s(t,e,g)}return zf(s)?(e.flags|=192,e.child=t.child,null):(t=f.treeContext,Yt=We(s.nextSibling),ae=e,St=!0,ul=null,Pe=!1,t!==null&&nm(e,t),e=Do(e,u.children),e.flags|=134221824,e)}function _y(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Ds(t.return,e,n)}function Ty(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&qs(n)===null&&(e=t),t=t.sibling}return e}function Ws(t,e,n,l,u,s){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:s}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=u,f.treeForkCount=s)}function Mo(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function xo(t,e,n){var l=e.pendingProps,u=l.revealOrder,s=l.tail;l=l.children;var f=fe.current;if(e.flags&128)return du(e,f),null;var g=(f&2)!==0;if(g?(f=f&1|2,e.flags|=128):f&=1,du(e,f),u==="backwards"&&t!==null?(Mo(t),te(t,e,l,n),Mo(t)):te(t,e,l,n),l=St?au:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&_y(t,n,e);else if(t.tag===19)_y(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(u){case"backwards":n=Ty(e.child),n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null,Mo(e)),Ws(e,!0,u,null,s,l);break;case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&qs(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}Ws(e,!0,n,null,s,l);break;case"together":Ws(e,!1,null,null,void 0,l);break;case"independent":e.memoizedState=null;break;default:n=Ty(e.child),n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),Ws(e,!1,u,n,s,l)}return e.child}function Ey(t,e,n){var l=e.pendingProps;return cl(e,e.type,l.value),te(t,e,l.children,n),e.child}function Vn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),pl|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Wl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=Ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Uo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ms(t)))}function lp(t,e,n){switch(e.tag){case 3:as(e,e.stateNode.containerInfo),cl(e,It,t.memoizedState.cache),Pl();break;case 27:case 5:ir(e);break;case 4:as(e,e.stateNode.containerInfo);break;case 10:cl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,lo(e),null;break;case 13:var l=e.memoizedState;if(l!==null){if(l.dehydrated!==null)return ml(e),e.flags|=128,null;l=Wl(t,e,n,!1);var u=e.child.childLanes;return l||(n&u)!==0?by(t,e,n):(ml(e),t=Vn(t,e,n),t!==null?t.sibling:null)}ml(e);break;case 19:if(e.flags&128)return xo(t,e,n);if(u=(t.flags&128)!==0,l=(n&e.childLanes)!==0,l||(Wl(t,e,n,!1),l=(n&e.childLanes)!==0),u){if(l)return xo(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),du(e,fe.current),l)break;return null;case 22:return e.lanes=0,my(t,e,n,e.pendingProps);case 24:cl(e,It,t.memoizedState.cache)}return Vn(t,e,n)}function Oy(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!Uo(t,n)&&(e.flags&128)===0)return $t=!1,lp(t,e,n);$t=(t.flags&131072)!==0}else $t=!1,St&&(e.flags&1048576)!==0&&em(e,au,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=la(e.elementType),e.type=t,typeof t=="function")qr(t)?(l=sa(t,l),e.tag=1,e=Sy(null,e,t,l,n)):(e.tag=0,e=Ro(null,e,t,l,n));else{if(t!=null){var u=t.$$typeof;if(u===Z){e.tag=11,e=fy(null,e,t,l,n);break t}else if(u===Dt){e.tag=14,e=hy(null,e,t,l,n);break t}else if(u===st){e.tag=10,e.type=t,e=Ey(null,e,n);break t}}throw e=Rt(t)||t,Error(r(306,e,""))}}return e;case 0:return Ro(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,u=sa(l,e.pendingProps),Sy(t,e,l,u,n);case 3:t:{if(as(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var s=e.memoizedState;u=s.element,$r(t,e),hu(e,l,null,n);var f=e.memoizedState;if(l=f.cache,cl(e,It,l),l!==s.cache&&Zr(e,[It],n,!0),fu(),l=f.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=py(t,e,l,n);break t}else if(l!==u){u=Fe(Error(r(424)),e),iu(u),e=py(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Yt=We(t.firstChild),ae=e,St=!0,ul=null,Pe=!0,n=mm(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Pl(),l===u){e=Vn(t,e,n);break t}te(t,e,l,n)}e=e.child}return e;case 26:return $a(t,e),t===null?(n=k0(e.type,null,e.pendingProps,null))?e.memoizedState=n:St||(e.stateNode=z0(e.type,e.pendingProps,tl.current,e)):e.memoizedState=k0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ir(e),t===null&&St&&(l=e.stateNode=K0(e.type,e.pendingProps,tl.current),ae=e,Pe=!0,u=Yt,El(e.type)?(Df=u,Yt=We(l.firstChild)):Yt=u),te(t,e,e.pendingProps.children,n),$a(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((u=l=Yt)&&(l=Pp(l,e.type,e.pendingProps,Pe),l!==null?(e.stateNode=l,ae=e,Yt=We(l.firstChild),Pe=!1,u=!0):u=!1),u||sl(e)),ir(e),u=e.type,s=e.pendingProps,f=t!==null?t.memoizedProps:null,l=s.children,_f(u,s)?l=null:f!==null&&_f(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=uo(t,e,Z1,null,null,n),vi._currentValue=u),$a(t,e),te(t,e,l,n),e.child;case 6:return t===null&&St&&((t=n=Yt)&&(n=$p(n,e.pendingProps,Pe),n!==null?(e.stateNode=n,ae=e,Yt=null,t=!0):t=!1),t||sl(e)),null;case 13:return by(t,e,n);case 4:return as(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ia(e,null,l,n):te(t,e,l,n),e.child;case 11:return fy(t,e,e.type,e.pendingProps,n);case 7:return l=e.pendingProps,$a(t,e),te(t,e,l,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return Ey(t,e,n);case 9:return u=e.type._context,l=e.pendingProps.children,ta(e),u=re(u),l=l(u),e.flags|=1,te(t,e,l,n),e.child;case 14:return hy(t,e,e.type,e.pendingProps,n);case 15:return dy(t,e,e.type,e.pendingProps,n);case 19:return xo(t,e,n);case 31:return ep(t,e,n);case 22:return my(t,e,n,e.pendingProps);case 24:return ta(e),l=re(It),t===null?(u=kr(),u===null&&(u=qt,s=Jr(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=n),u=s),e.memoizedState={parent:l,cache:u},Pr(e),cl(e,It,u)):((t.lanes&n)!==0&&($r(t,e),hu(e,null,null,n),fu()),u=t.memoizedState,s=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),cl(e,It,l)):(l=s.cache,cl(e,It,l),l!==u.cache&&Zr(e,[It],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=e.pendingProps,l.name!=null&&l.name!=="auto"?e.flags|=t===null?18882560:18874368:St&&zs(e),t!==null&&t.memoizedProps.name!==l.name?e.flags|=4194816:$a(t,e),te(t,e,l.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Xn(t){t.flags|=4}function wo(t,e,n,l,u){var s;if((s=(t.mode&32)!==0)&&(s=n===null?W0(e,l):W0(e,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),s){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(i0())t.flags|=8192;else throw aa=js,Ir}else t.flags&=-16777217}function Cy(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!tv(e))if(i0())t.flags|=8192;else throw aa=js,Ir}function tc(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Wh():536870912,t.lanes|=e,li|=e)}function Su(t,e){if(!St)switch(t.tailMode){case"visible":break;case"collapsed":for(var n=t.tail,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;break;default:for(e=t.tail,n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function Gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags&1206910976,l|=u.flags&1206910976,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function ap(t,e,n){var l=e.pendingProps;switch(Gr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(e),null;case 1:return Gt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Qn(It),Na(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ka(e)?Xn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Xr())),Gt(e),null;case 26:var u=e.type,s=e.memoizedState;return t===null?(Xn(e),s!==null?(Gt(e),Cy(e,s)):(Gt(e),wo(e,u,null,l,n))):s?s!==t.memoizedState?(Xn(e),Gt(e),Cy(e,s)):(Gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Xn(e),Gt(e),wo(e,u,t,l,n)),null;case 27:if(is(e),n=tl.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Xn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Gt(e),e.subtreeFlags&=-33554433,null}t=hn.current,Ka(e)?lm(e):(t=K0(u,l,n),e.stateNode=t,Xn(e))}return Gt(e),e.subtreeFlags&=-33554433,null;case 5:if(is(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Xn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Gt(e),e.subtreeFlags&=-33554433,null}if(s=hn.current,Ka(e))lm(e);else{var f=Nu(tl.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}s[ce]=e,s[Ae]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=s;t:switch(de(s,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Xn(e)}}return Gt(e),e.subtreeFlags&=-33554433,wo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Xn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=tl.current,Ka(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,u=ae,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[ce]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||O0(t.nodeValue,n)),t||sl(e,!0)}else t=Nu(t).createTextNode(l),t[ce]=e,e.stateNode=t}return Gt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ka(e),n!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ce]=e}else Pl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),t=!1}else n=Xr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Qe(e),e):(Qe(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Gt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ka(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ce]=e}else Pl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),u=!1}else u=Xr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Qe(e),e):(Qe(e),null)}return Qe(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==u&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),tc(e,e.updateQueue),Gt(e),null);case 4:return Na(),t===null&&vf(e.stateNode.containerInfo),e.flags|=67108864,Gt(e),null;case 10:return Qn(e.type),Gt(e),null;case 19:if(ao(e),l=e.memoizedState,l===null)return Gt(e),null;if(u=(e.flags&128)!==0,s=l.rendering,s===null)if(u)Su(l,!1);else{if(Ft!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=qs(t),s!==null){for(e.flags|=128,Su(l,!1),t=s.updateQueue,e.updateQueue=t,tc(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)$d(n,t),n=n.sibling;return du(e,fe.current&1|2),St&&Bn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&je()>hc&&(e.flags|=128,u=!0,Su(l,!1),e.lanes=4194304)}else{if(!u)if(t=qs(s),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,tc(e,t),Su(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!s.alternate&&!St)return Gt(e),null}else 2*je()-l.renderingStartTime>hc&&n!==536870912&&(e.flags|=128,u=!0,Su(l,!1),e.lanes=4194304);l.isBackwards?(s.sibling=e.child,e.child=s):(t=l.last,t!==null?t.sibling=s:e.child=s,l.last=s)}if(l.tail!==null){t=l.tail;t:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break t}n=n.sibling}n=!0}return l.rendering=t,l.tail=t.sibling,l.renderingStartTime=je(),t.sibling=null,s=fe.current,s=u?s&1|2:s&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||St?du(e,s):(n=s,Qt(oe,e),Qt(fe,n),ve===null&&(ve=e)),St&&Bn(e,l.treeForkCount),t}return Gt(e),null;case 22:case 23:return Qe(e),no(),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&&(Gt(e),e.subtreeFlags&6&&(e.flags|=8192)):Gt(e),n=e.updateQueue,n!==null&&tc(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&&se(na),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Qn(It),Gt(e),null;case 25:return null;case 30:return e.flags|=33554432,Gt(e),null}throw Error(r(156,e.tag))}function ip(t,e){switch(Gr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qn(It),Na(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return is(e),null;case 31:if(e.memoizedState!==null){if(Qe(e),e.alternate===null)throw Error(r(340));Pl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Qe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Pl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ao(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Na(),null;case 10:return Qn(e.type),null;case 22:case 23:return Qe(e),no(),t!==null&&se(na),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qn(It),null;case 25:return null;default:return null}}function Ry(t,e){switch(Gr(e),e.tag){case 3:Qn(It),Na();break;case 26:case 27:case 5:is(e);break;case 4:Na();break;case 31:e.memoizedState!==null&&Qe(e);break;case 13:Qe(e);break;case 19:ao(e);break;case 10:Qn(e.type);break;case 22:case 23:Qe(e),no(),t!==null&&se(na);break;case 24:Qn(It)}}function pu(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){l=void 0;var s=n.create,f=n.inst;l=s(),f.destroy=l}n=n.next}while(n!==u)}}catch(g){Ht(e,e.return,g)}}function vl(t,e,n){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var s=u.next;l=s;do{if((l.tag&t)===t){var f=l.inst,g=f.destroy;if(g!==void 0){f.destroy=void 0,u=e;var T=n,N=g;try{N()}catch(j){Ht(u,T,j)}}}l=l.next}while(l!==s)}}catch(j){Ht(e,e.return,j)}}function Ay(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{vm(e,n)}catch(l){Ht(t,t.return,l)}}}function zy(t,e,n){n.props=sa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ht(t,e,l)}}function vn(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:var u=t.stateNode,s=jn(t.memoizedProps,u);(u.ref===null||u.ref.name!==s)&&(u.ref=j0(s)),l=u.ref;break;case 7:if(t.stateNode===null){var f=new Ke(t);y(t.child,!1,kp,f,void 0,void 0),t.stateNode=f}l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(g){Ht(t,e,g)}}function he(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){Ht(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Ht(t,e,u)}else n.current=null}function ec(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)Y0(t.stateNode,e[n])}function Ny(t){for(var e=t.return;e!==null&&(Ho(e)&&Y0(t.stateNode,e.stateNode),!jo(e));)e=e.return}function bu(t){for(var e=t.return;e!==null&&(Ho(e)&&Ip(t.stateNode,e.stateNode),!jo(e));)e=e.return}function jo(t){return t.tag===5||t.tag===3||t.tag===27}function Ho(t){return t&&t.tag===7&&t.stateNode!==null}function Lo(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(u){Ht(t,t.return,u)}}function Bo(t,e,n){try{var l=t.stateNode;Mp(l,t.type,n,e),l[Ae]=e}catch(u){Ht(t,t.return,u)}}function Dy(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&El(t.type)||t.tag===4}function qo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Dy(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&&El(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 Qo(t,e,n,l){var u=t.tag;if(u===5||u===6)u=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(u,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(u),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=dn)),ec(t,l),Mt=!0;else if(u!==4&&(u===27&&(ec(t,l),l=null,El(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(Qo(t,e,n,l),t=t.sibling;t!==null;)Qo(t,e,n,l),t=t.sibling}function nc(t,e,n,l){var u=t.tag;if(u===5||u===6)u=t.stateNode,e?n.insertBefore(u,e):n.appendChild(u),ec(t,l),Mt=!0;else if(u!==4&&(u===27&&(ec(t,l),l=null,El(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(nc(t,e,n,l),t=t.sibling;t!==null;)nc(t,e,n,l),t=t.sibling}function My(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);de(e,l,n),e[ce]=t,e[Ae]=n}catch(s){Ht(t,t.return,s)}}var lc=!1,Ye=null;function xy(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(lc=!0)}var gn=null;function Uy(){var t=gn;return gn=null,t}var Ne=0;function Wa(t,e,n,l,u){return Ne=0,wy(t.child,e,n,l,u)}function wy(t,e,n,l,u){for(var s=!1;t!==null;){if(t.tag===5){var f=t.stateNode;if(l!==null){var g=Of(f);l.push(g),g.view&&(s=!0)}else s||Of(f).view&&(s=!0);lc=!0,U0(f,Ne===0?e:e+"_"+Ne,n),Ne++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&u||wy(t.child,e,n,l,u)&&(s=!0));t=t.sibling}return s}function Sn(t,e){for(;t!==null;)t.tag===5?w0(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||Sn(t.child,e)),t=t.sibling}function ac(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(ac(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(r(544));var n=e.name;e=Hn(e.default,e.share),e!=="none"&&(Wa(t,n,e,null,!1)||Sn(t.child,!1))}t=t.sibling}}function Yo(t,e){if(t.tag===30){var n=t.stateNode,l=t.memoizedProps,u=jn(l,n),s=Hn(l.default,n.paired?l.share:l.enter);s!=="none"?Wa(t,u,s,null,!1)?(ac(t),n.paired||e||si(t,l.onEnter)):Sn(t.child,!1):ac(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Yo(t,e),t=t.sibling;else ac(t)}function Go(t){if(Ye!==null&&Ye.size!==0){var e=Ye;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var n=t.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var u=e.get(l);if(u!==void 0){var s=Hn(n.default,n.share);if(s!=="none"&&(Wa(t,l,s,null,!1)?(s=t.stateNode,u.paired=s,s.paired=u,si(t,n.onShare)):Sn(t.child,!1)),e.delete(l),e.size===0)break}}}Go(t)}t=t.sibling}}}function Vo(t){if(t.tag===30){var e=t.memoizedProps,n=jn(e,t.stateNode),l=Ye!==null?Ye.get(n):void 0,u=Hn(e.default,l!==void 0?e.share:e.exit);u!=="none"&&(Wa(t,n,u,null,!1)?l!==void 0?(u=t.stateNode,l.paired=u,u.paired=l,Ye.delete(n),si(t,e.onShare)):si(t,e.onExit):Sn(t.child,!1)),Ye!==null&&Go(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Vo(t),t=t.sibling;else Ye!==null&&Go(t)}function jy(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=jn(e,t.stateNode);e=Hn(e.default,e.update),t.flags&=-5,e!=="none"&&Wa(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&jy(t);t=t.sibling}}function Xo(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,Sn(t.child,!1))}Xo(t)}t=t.sibling}}function ic(t){if(t.tag===30)t.stateNode.paired=null,Sn(t.child,!1),Xo(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)ic(t),t=t.sibling;else Xo(t)}function Hy(t){for(t=t.child;t!==null;)t.tag===30?Sn(t.child,!1):(t.subtreeFlags&33554432)!==0&&Hy(t),t=t.sibling}function Ko(t,e,n,l,u,s,f){for(var g=!1;e!==null;){if(e.tag===5){var T=e.stateNode;if(s!==null&&Ne<s.length){var N=s[Ne],j=Of(T);(N.view||j.view)&&(g=!0);var q;if(q=(t.flags&4)===0)if(j.clip)q=!0;else{q=N.rect;var A=j.rect;q=q.y!==A.y||q.x!==A.x||q.height!==A.height||q.width!==A.width}q&&(t.flags|=4),j.abs?j=!N.abs:(N=N.rect,j=j.rect,j=N.height!==j.height||N.width!==j.width),j&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&U0(T,Ne===0?n:n+"_"+Ne,u),g&&(t.flags&4)!==0||(gn===null&&(gn=[]),gn.push(T,Ne===0?l:l+"_"+Ne,e.memoizedProps)),Ne++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&f?t.flags|=e.flags&32:Ko(t,e.child,n,l,u,s,f)&&(g=!0));e=e.sibling}return g}function Ly(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,l=t.stateNode,u=jn(n,l),s=Hn(n.default,n.update),f;f=t.memoizedState,t.memoizedState=null,l=t;var g=t.child;Ne=0,u=Ko(l,g,u,u,s,f,!1),(t.flags&4)!==0&&u&&si(t,n.onUpdate)}else(t.subtreeFlags&33554432)!==0&&Ly(t);t=t.sibling}}var ie=!1,wt=!1,pn=!1,Zo=!1,By=typeof WeakSet=="function"?WeakSet:Set,ue=null,bn=!1,_u=!1,uc=!1,Jo=!1;function up(t,e,n){if(t=t.containerInfo,pf=gi,t=Gd(t),xr(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var s=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break t}var g=0,T=-1,N=-1,j=0,q=0,A=t,U=null;e:for(;;){for(var P;A!==l||s!==0&&A.nodeType!==3||(T=g+s),A!==f||u!==0&&A.nodeType!==3||(N=g+u),A.nodeType===3&&(g+=A.nodeValue.length),(P=A.firstChild)!==null;)U=A,A=P;for(;;){if(A===t)break e;if(U===l&&++j===s&&(T=g),U===f&&++q===u&&(N=g),(P=A.nextSibling)!==null)break;A=U,U=A.parentNode}A=P}l=T===-1||N===-1?null:{start:T,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(bf={focusedElem:t,selectionRange:l},gi=!1,n=(n&335544064)===n,ue=e,e=n?9270:1024;ue!==null;){if(t=ue,n&&(l=t.deletions,l!==null))for(s=0;s<l.length;s++)n&&Vo(l[s]);if(t.alternate===null&&(t.flags&2)!==0)n&&xy(t),sc(n);else{if(t.tag===22){if(l=t.alternate,t.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&Vo(l),sc(n);continue}else if(l!==null&&l.memoizedState!==null){n&&xy(t),sc(n);continue}}l=t.child,(t.subtreeFlags&e)!==0&&l!==null?(l.return=t,ue=l):(n&&jy(t),sc(n))}}Ye=null}function sc(t){for(;ue!==null;){var e=ue,n=t,l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((u&1024)!==0&&l!==null){n=void 0,u=l.memoizedProps,l=l.memoizedState;var s=e.stateNode;try{var f=sa(e.type,u);n=s.getSnapshotBeforeUpdate(f,l),s.__reactInternalSnapshotBeforeUpdate=n}catch(g){Ht(e,e.return,g)}}break;case 3:if((u&1024)!==0){if(l=e.stateNode.containerInfo,n=l.nodeType,n===9)Af(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Af(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=jn(l.memoizedProps,l.stateNode),u=e.memoizedProps,u=Hn(u.default,u.update),u!=="none"&&Wa(l,n,u,l.memoizedState=[],!0));break;default:if((u&1024)!==0)throw Error(r(163))}if(l=e.sibling,l!==null){l.return=e.return,ue=l;break}ue=e.return}}function qy(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:_n(t,n),l&4&&pu(5,n);break;case 1:if(_n(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ht(n,n.return,f)}else{var u=sa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ht(n,n.return,f)}}l&64&&Ay(n),l&512&&vn(n,n.return);break;case 3:if(_n(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{vm(t,e)}catch(f){Ht(n,n.return,f)}}break;case 27:e===null&&l&4&&My(n);case 26:case 5:_n(t,n),e===null&&l&4&&Lo(n),l&512&&vn(n,n.return);break;case 12:_n(t,n);break;case 31:_n(t,n),l&4&&Vy(t,n);break;case 13:_n(t,n),l&4&&Xy(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Sp.bind(null,n),Wp(t,n))));break;case 22:if(l=n.memoizedState!==null||ie,!l){var s=e!==null&&e.memoizedState!==null||wt;e=ie,u=wt,ie=l,(wt=s)&&!u?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),un(t,n,l)):_n(t,n),ie=e,wt=u}break;case 30:_n(t,n),l&512&&vn(n,n.return);break;case 7:l&512&&vn(n,n.return);default:_n(t,n)}}function Fo(t,e){for(t=t.child;t!==null;)Qy(t,e),t=t.sibling}function Qy(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var u=t.stateNode,s=t.memoizedProps.style,f=s!=null&&s.hasOwnProperty("display")?s.display:null;u.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(T){Ht(t,t.return,T)}ko(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,Mt=!0}catch(T){Ht(t,t.return,T)}break;case 18:try{var g=t.stateNode;e?x0(g,!0):x0(t.stateNode,!1)}catch(T){Ht(t,t.return,T)}break;case 22:case 23:t.memoizedState===null&&Fo(t,e);break;default:Fo(t,e)}}function ko(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,l=e;switch(n.tag){case 4:Qy(n,l);break t;case 22:n.memoizedState===null&&ko(n,l);break t;default:ko(n,l)}}t=t.sibling}}function Yy(t){var e=t.alternate;e!==null&&(t.alternate=null,Yy(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&hs(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 Vt=null,De=!1;function ln(t,e,n){for(n=n.child;n!==null;)Gy(t,e,n),n=n.sibling}function Gy(t,e,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Xi,n)}catch{}switch(n.tag){case 26:wt||he(n,e),ln(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!wt&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:wt||he(n,e),bu(n);var l=Vt,u=De;El(n.type)&&(Vt=n.stateNode,De=!1),ln(t,e,n),Z0(n.stateNode,n.type,n.memoizedProps),Vt=l,De=u;break;case 5:wt||he(n,e),bu(n);case 6:if(n.tag===6&&bu(n),l=Vt,u=De,Vt=null,ln(t,e,n),Vt=l,De=u,Vt!==null)if(De)try{(Vt.nodeType===9?Vt.body:Vt.nodeName==="HTML"?Vt.ownerDocument.body:Vt).removeChild(n.stateNode),Mt=!0}catch(s){Ht(n,e,s)}else try{Vt.removeChild(n.stateNode),Mt=!0}catch(s){Ht(n,e,s)}break;case 18:Vt!==null&&(De?(t=Vt,M0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Si(t)):M0(Vt,n.stateNode));break;case 4:l=Vt,u=De,Vt=n.stateNode.containerInfo,De=!0,ln(t,e,n),Vt=l,De=u;break;case 0:case 11:case 14:case 15:vl(2,n,e),wt||vl(4,n,e),ln(t,e,n);break;case 1:wt||(he(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&zy(n,e,l)),ln(t,e,n);break;case 21:ln(t,e,n);break;case 22:wt=(l=wt)||n.memoizedState!==null,ln(t,e,n),wt=l;break;case 30:he(n,e),ln(t,e,n);break;case 7:wt||he(n,e),ln(t,e,n);break;default:ln(t,e,n)}}function Vy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Si(t)}catch(n){Ht(e,e.return,n)}}}function Xy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Si(t)}catch(n){Ht(e,e.return,n)}}function sp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new By),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new By),e;default:throw Error(r(435,t.tag))}}function cc(t,e){var n=sp(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var u=pp.bind(null,t,l);l.then(u,u)}})}function _e(t,e,n){var l=e.deletions;if(l!==null)for(var u=0;u<l.length;u++){var s=l[u],f=t,g=e,T=g;t:for(;T!==null;){switch(T.tag){case 27:if(El(T.type)){Vt=T.stateNode,De=!1;break t}break;case 5:Vt=T.stateNode,De=!1;break t;case 3:case 4:Vt=T.stateNode.containerInfo,De=!0;break t}T=T.return}if(Vt===null)throw Error(r(160));Gy(f,g,s),Vt=null,De=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ky(e,t,n),e=e.sibling}var an=null;function Ky(t,e,n){var l=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(u&4&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(var s=0;s<l.length;s++){var f=l[s];f.ref.impl=f.nextImpl}_e(e,t,n),Te(t),u&4&&(vl(3,t,t.return),pu(3,t),vl(5,t,t.return));break;case 1:_e(e,t,n),Te(t),u&512&&(wt||l===null||he(l,l.return)),u&64&&ie&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(s=an,_e(e,t,n),Te(t),u&512&&(wt||l===null||he(l,l.return)),u&4)if(u=l!==null?l.memoizedState:null,n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null)if(ie)t.stateNode=z0(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,u=s.ownerDocument||s;e:switch(e){case"title":l=u.getElementsByTagName("title")[0],(!l||l[Ji]||l[ce]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=u.createElement(e),u.head.insertBefore(l,u.querySelector("head > title"))),de(l,e,n),l[ce]=t,le(l),e=l;break t;case"link":if(s=$0("link","href",u).get(e+(n.href||""))){for(f=0;f<s.length;f++)if(l=s[f],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(f,1);break e}}l=u.createElement(e),de(l,e,n),u.head.appendChild(l);break;case"meta":if(s=$0("meta","content",u).get(e+(n.content||""))){for(f=0;f<s.length;f++)if(l=s[f],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(f,1);break e}}l=u.createElement(e),de(l,e,n),u.head.appendChild(l);break;default:throw Error(r(468,e))}l[ce]=t,le(l),e=l}t.stateNode=e}else ie||wf(s,t.type,t.stateNode);else t.stateNode=P0(s,n,t.memoizedProps);else u!==n?(u===null?(e=l.stateNode,e===null||wt||e.parentNode.removeChild(e)):u.count--,n===null?ie||wf(s,t.type,t.stateNode):P0(s,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Bo(t,t.memoizedProps,l.memoizedProps);break;case 27:_e(e,t,n),Te(t),u&512&&(wt||l===null||he(l,l.return)),l!==null&&u&4&&Bo(t,t.memoizedProps,l.memoizedProps);break;case 5:if(s=pn,pn=!1,_e(e,t,n),pn=s,Te(t),u&512&&(wt||l===null||he(l,l.return)),t.flags&32){e=t.stateNode;try{ja(e,""),Mt=!0}catch(j){Ht(t,t.return,j)}}u&4&&t.stateNode!=null&&(e=t.memoizedProps,Bo(t,e,l!==null?l.memoizedProps:e)),u&1024&&(Zo=!0);break;case 6:if(_e(e,t,n),Te(t),u&4){if(t.stateNode===null)throw Error(r(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,Mt=!0}catch(j){Ht(t,t.return,j)}}break;case 3:if(Mt=!1,Ec=null,s=an,an=Du(e.containerInfo),_e(e,t,n),an=s,Te(t),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Si(e.containerInfo)}catch(j){Ht(t,t.return,j)}Zo&&(Zo=!1,Zy(t)),Mt=!1;break;case 4:u=pn,pn=ie,l=hd(),s=an,an=Du(t.stateNode.containerInfo),_e(e,t,n),Te(t),an=s,Mt&&_u&&(uc=!0),Mt=l,pn=u;break;case 12:_e(e,t,n),Te(t);break;case 31:_e(e,t,n),Te(t),u&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,cc(t,e)));break;case 13:_e(e,t,n),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fc=je()),u&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,cc(t,e)));break;case 22:s=t.memoizedState!==null,f=l!==null&&l.memoizedState!==null;var g=ie,T=wt,N=pn;ie=g||s,pn=N||s,wt=T||f,_e(e,t,n),wt=T,pn=N,ie=g,Te(t),u&8192&&(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,!s||l===null||f||ie||wt||(e=f||wt,n=ie,l=wt,ie=s||ie,wt=e,gl(t,2),ie=n,wt=l),!s&&pn||Fo(t,s)),u&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,cc(t,n))));break;case 19:_e(e,t,n),Te(t),u&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,cc(t,e)));break;case 30:u&512&&(wt||l===null||he(l,l.return)),u=hd(),s=_u,f=(n&335544064)===n,g=t.memoizedProps,_u=f&&Hn(g.default,g.update)!=="none",_e(e,t,n),Te(t),f&&l!==null&&Mt&&(t.flags|=4),_u=s,Mt=u;break;case 21:break;case 7:u&512&&(wt||l===null||he(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=t);default:_e(e,t,n),Te(t)}}function Te(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Dy(l)){n=l;break}l=l.return}l=null;for(var u=t.return;u!==null;){if(Ho(u)){var s=u.stateNode;l===null?l=[s]:l.push(s)}if(jo(u))break;u=u.return}var f=l;if(n==null)throw Error(r(160));switch(n.tag){case 27:var g=n.stateNode,T=qo(t);nc(t,T,g,f);break;case 5:var N=n.stateNode;n.flags&32&&(ja(N,""),n.flags&=-33);var j=qo(t);nc(t,j,N,f);break;case 3:case 4:var q=n.stateNode.containerInfo,A=qo(t);Qo(t,A,q,f);break;default:throw Error(r(161))}}catch(U){Ht(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Zy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Zy(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,gi=!0,e.reset(),gi=!1),t=t.sibling}}function ti(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)Jy(e,t),e=e.sibling;else Ly(e)}function Jy(t,e){var n=t.alternate;if(n===null)Yo(t,!1);else switch(t.tag){case 3:if(Jo=bn=!1,Uy(),ti(e,t),!bn&&!uc){if(t=gn,t!==null)for(var l=0;l<t.length;l+=3){n=t[l];var u=t[l+1];w0(n,t[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+u+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Jo=!0}gn=null;break;case 5:ti(e,t);break;case 4:l=bn,bn=!1,ti(e,t),bn&&(uc=!0),bn=l;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?Yo(t,!1):ti(e,t));break;case 30:l=bn,u=Uy(),bn=!1,ti(e,t),bn&&(t.flags|=4);var s=t.memoizedProps,f=t.stateNode;e=jn(s,f),f=jn(n.memoizedProps,f);var g=Hn(s.default,s.update);g==="none"?e=!1:(s=n.memoizedState,n.memoizedState=null,n=t.child,Ne=0,e=Ko(t,n,e,f,g,s,!0),Ne!==(s===null?0:s.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(si(t,t.memoizedProps.onUpdate),gn=u):u!==null&&(u.push.apply(u,gn),gn=u),bn=(t.flags&32)!==0?!0:l;break;default:ti(e,t)}}function _n(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)qy(t,e.alternate,e),e=e.sibling}function gl(t,e){for(t=t.child;t!==null;){var n=t,l=e;switch(n.tag){case 0:case 11:case 14:case 15:vl(4,n,n.return),gl(n,l);break;case 1:he(n,n.return);var u=n.stateNode;typeof u.componentWillUnmount=="function"&&zy(n,n.return,u),gl(n,l);break;case 27:(l&2)!==0&&Z0(n.stateNode,n.type,n.memoizedProps);case 5:he(n,n.return),n.tag!==5&&n.tag!==27||bu(n),gl(n,l);break;case 6:bu(n);break;case 26:he(n,n.return),u=n.stateNode,n.memoizedState!==null||u===null||wt||u.parentNode.removeChild(u),gl(n,l);break;case 22:n.memoizedState===null&&gl(n,l);break;case 30:he(n,n.return),gl(n,l);break;case 7:he(n,n.return);default:gl(n,l)}t=t.sibling}}function un(t,e,n){for(n=(e.subtreeFlags&8772)!==0?n:n&-2,e=e.child;e!==null;){var l=e.alternate,u=t,s=e,f=s.flags,g=(n&1)!==0;switch(s.tag){case 0:case 11:case 15:un(u,s,n),pu(4,s);break;case 1:if(un(u,s,n),l=s,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(j){Ht(l,l.return,j)}if(l=s,u=l.updateQueue,u!==null){var T=l.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)ym(N[u],T)}catch(j){Ht(l,l.return,j)}}g&&f&64&&Ay(s),vn(s,s.return);break;case 27:(n&2)!==0&&My(s);case 5:s.tag!==5&&s.tag!==27||Ny(s),un(u,s,n),g&&l===null&&f&4&&Lo(s),vn(s,s.return);break;case 6:Ny(s);break;case 26:T=s.stateNode,s.memoizedState!==null||T===null||ie||wf(Du(T.ownerDocument),s.type,T),un(u,s,n),g&&l===null&&f&4&&Lo(s),vn(s,s.return);break;case 12:un(u,s,n);break;case 31:un(u,s,n),g&&f&4&&Vy(u,s);break;case 13:un(u,s,n),g&&f&4&&Xy(u,s);break;case 22:s.memoizedState===null&&un(u,s,n),vn(s,s.return);break;case 30:un(u,s,n),vn(s,s.return);break;case 7:vn(s,s.return);default:un(u,s,n)}e=e.sibling}}function Io(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&&uu(n))}function Po(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&uu(t))}function $e(t,e,n,l){var u=(n&335544064)===n;if(e.subtreeFlags&(u?10262:10256))for(e=e.child;e!==null;)Fy(t,e,n,l),e=e.sibling;else u&&Hy(e)}function Fy(t,e,n,l){var u=(n&335544064)===n;u&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&ic(e);var s=e.flags;switch(e.tag){case 0:case 11:case 15:$e(t,e,n,l),s&2048&&pu(9,e);break;case 1:$e(t,e,n,l);break;case 3:$e(t,e,n,l),u&&Jo&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),s&2048&&(s=null,e.alternate!==null&&(s=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==s&&(e.refCount++,s!=null&&uu(s)));break;case 12:if(s&2048){$e(t,e,n,l),s=e.stateNode;try{var f=e.memoizedProps,g=f.id,T=f.onPostCommit;typeof T=="function"&&T(g,e.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(N){Ht(e,e.return,N)}}else $e(t,e,n,l);break;case 31:$e(t,e,n,l);break;case 13:$e(t,e,n,l);break;case 23:break;case 22:f=e.stateNode,g=e.alternate,e.memoizedState!==null?(u&&g!==null&&g.memoizedState===null&&ic(g),f._visibility&2?$e(t,e,n,l):Tu(t,e)):(u&&g!==null&&g.memoizedState!==null&&ic(e),f._visibility&2?$e(t,e,n,l):(f._visibility|=2,ei(t,e,n,l,(e.subtreeFlags&10256)!==0||!1))),s&2048&&Io(g,e);break;case 24:$e(t,e,n,l),s&2048&&Po(e.alternate,e);break;case 30:u&&(s=e.alternate,s!==null&&(Sn(s.child,!0),Sn(e.child,!0))),$e(t,e,n,l);break;default:$e(t,e,n,l)}}function ei(t,e,n,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,f=e,g=n,T=l,N=f.flags;switch(f.tag){case 0:case 11:case 15:ei(s,f,g,T,u),pu(8,f);break;case 23:break;case 22:var j=f.stateNode;f.memoizedState!==null?j._visibility&2?ei(s,f,g,T,u):Tu(s,f):(j._visibility|=2,ei(s,f,g,T,u)),u&&N&2048&&Io(f.alternate,f);break;case 24:ei(s,f,g,T,u),u&&N&2048&&Po(f.alternate,f);break;default:ei(s,f,g,T,u)}e=e.sibling}}function Tu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,u=l.flags;switch(l.tag){case 22:Tu(n,l),u&2048&&Io(l.alternate,l);break;case 24:Tu(n,l),u&2048&&Po(l.alternate,l);break;default:Tu(n,l)}e=e.sibling}}var ca=8192;function ra(t,e,n){if(t.subtreeFlags&ca)for(t=t.child;t!==null;)ky(t,e,n),t=t.sibling}function ky(t,e,n){switch(t.tag){case 26:ra(t,e,n),t.flags&ca&&(t.memoizedState!==null?db(n,an,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&nv(n,t)));break;case 5:ra(t,e,n),t.flags&ca&&(t=t.stateNode,(e&335544128)===e&&nv(n,t));break;case 3:case 4:var l=an;an=Du(t.stateNode.containerInfo),ra(t,e,n),an=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ca,ca=16777216,ra(t,e,n),ca=l):ra(t,e,n));break;case 30:if((t.flags&ca)!==0&&(l=t.memoizedProps.name,l!=null&&l!=="auto")){var u=t.stateNode;u.paired=null,Ye===null&&(Ye=new Map),Ye.set(l,u)}ra(t,e,n);break;default:ra(t,e,n)}}function Iy(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 Eu(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];ue=l,$y(l,t)}Iy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Py(t),t=t.sibling}function Py(t){switch(t.tag){case 0:case 11:case 15:Eu(t),t.flags&2048&&vl(9,t,t.return);break;case 3:Eu(t);break;case 12:Eu(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,rc(t)):Eu(t);break;default:Eu(t)}}function rc(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];ue=l,$y(l,t)}Iy(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:vl(8,e,e.return),rc(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,rc(e));break;default:rc(e)}t=t.sibling}}function $y(t,e){for(;ue!==null;){var n=ue;switch(n.tag){case 0:case 11:case 15:vl(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:uu(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ue=l;else t:for(n=t;ue!==null;){l=ue;var u=l.sibling,s=l.return;if(Yy(l),l===n){ue=null;break t}if(u!==null){u.return=s,ue=u;break t}ue=s}}}var cp={getCacheForType:function(t){var e=re(It),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return re(It).controller.signal}},rp=typeof WeakMap=="function"?WeakMap:Map,xt=0,qt=null,_t=null,Et=0,jt=0,Ge=null,Sl=!1,ni=!1,$o=!1,Kn=0,Ft=0,pl=0,oa=0,oc=0,Ve=0,li=0,Ou=null,Me=null,Wo=!1,fc=0,Wy=0,hc=1/0,dc=null,bl=null,Kt=0,sn=null,fa=null,Tn=0,tf=0,ef=null,t0=null,ai=null,ii=null,ui=null,Cu=0,mc=null;function Xe(){return(xt&2)!==0&&Et!==0?Et&-Et:at.T!==null?hf():ld()}function e0(){if(Ve===0)if((Et&536870912)===0||St){var t=cs;cs<<=1,(cs&3932160)===0&&(cs=262144),Ve=t}else Ve=536870912;return t=oe.current,t!==null&&(t.flags|=32),Ve}function si(t,e){if(e!=null){var n=t.stateNode,l=n.ref;l===null&&(l=n.ref=j0(jn(t.memoizedProps,n))),ii===null&&(ii=[]),ii.push(e.bind(null,l))}}function xe(t,e,n){(t===qt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(ci(t,0),_l(t,Et,Ve,!1)),Zi(t,n),((xt&2)===0||t!==qt)&&(t===qt&&((xt&2)===0&&(oa|=n),Ft===4&&_l(t,Et,Ve,!1)),En(t))}function n0(t,e,n){if((xt&6)!==0)throw Error(r(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ki(t,e),u=l?hp(t,e):lf(t,e,!0),s=l;do{if(u===0){ni&&!l&&_l(t,e,0,!1);break}else{if(n=t.current.alternate,s&&!op(n)){u=lf(t,e,!1),s=!1;continue}if(u===2){if(s=e,t.errorRecoveryDisabledLanes&s)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var g=t;u=Ou;var T=g.current.memoizedState.isDehydrated;if(T&&(ci(g,f).flags|=256),f=lf(g,f,!1),f!==2&&f!==6){if($o&&!T){g.errorRecoveryDisabledLanes|=s,oa|=s,u=4;break t}s=Me,Me=u,s!==null&&(Me===null?Me=s:Me.push.apply(Me,s))}u=f}if(s=!1,u!==2)continue}}if(u===1){ci(t,0),_l(t,e,0,!0);break}t:{switch(l=t,s=u,s){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:_l(l,e,Ve,!Sl);break t;case 2:Me=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=fc+300-je(),10<u)){if(_l(l,e,Ve,!Sl),os(l,0,!0)!==0)break t;Tn=e,l.timeoutHandle=Ef(l0.bind(null,l,n,Me,dc,Wo,e,Ve,oa,li,Sl,s,"Throttled",-0,0),u);break t}l0(l,n,Me,dc,Wo,e,Ve,oa,li,Sl,s,null,-0,0)}}break}while(!0);En(t)}function l0(t,e,n,l,u,s,f,g,T,N,j,q,A,U){t.timeoutHandle=-1;var P=e.subtreeFlags,lt=(s&335544064)===s;if(q=null,(lt||P&8192||(P&16785408)===16785408)&&(q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},Ye=null,ky(e,s,q),lt&&(P=q,lt=t.containerInfo,lt=(lt.nodeType===9?lt:lt.ownerDocument).__reactViewTransition,lt!=null&&(P.count++,P.waitingForViewTransition=!0,P=Uu.bind(P),lt.finished.then(P,P))),P=(s&62914560)===s?fc-je():(s&4194048)===s?Wy-je():0,P=mb(q,P),P!==null)){Tn=s,t.cancelPendingCommit=P(f0.bind(null,t,e,s,n,l,u,f,g,T,N,j,q,null,A,U)),_l(t,s,f,!N);return}f0(t,e,s,n,l,u,f,g,T,N,j,q)}function op(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 u=n[l],s=u.getSnapshot;u=u.value;try{if(!qe(s(),u))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 _l(t,e,n,l){e=$h(t,e),e&=~oc,e&=~oa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var s=31-Le(u),f=1<<s;l[s]=-1,u&=~f}n!==0&&td(t,n,e)}function yc(){return(xt&6)===0?(Ru(0),!1):!0}function nf(){if(_t!==null){if(jt===0)var t=_t.return;else t=_t,qn=$l=null,ro(t),Fa=null,ru=0,t=_t;for(;t!==null;)Ry(t.alternate,t),t=t.return;_t=null}}function ci(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,wp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Tn=0,nf(),qt=t,_t=n=Ln(t.current,null),Et=e,jt=0,Ge=null,Sl=!1,ni=Ki(t,e),$o=!1,li=Ve=oc=oa=pl=Ft=0,Me=Ou=null,Wo=!1,Kn=$h(t,e),Es(),n}function a0(t,e){vt=null,at.H=Fs,e===Ja||e===ws?(e=fm(),jt=3):e===Ir?(e=fm(),jt=4):jt=e===Co?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ge=e,_t===null&&(Ft=1,ks(t,Fe(e,t.current)))}function i0(){var t=oe.current;return t===null?!0:(Et&4194048)===Et?ve===null:(Et&62914560)===Et||(Et&536870912)!==0?t===ve:!1}function u0(){var t=at.H;return at.H=Fs,t===null?Fs:t}function s0(){var t=at.A;return at.A=cp,t}function vc(){Ft=4,Sl||(Et&4194048)!==Et&&oe.current!==null||(ni=!0),(pl&134217727)===0&&(oa&134217727)===0||qt===null||_l(qt,Et,Ve,!1)}function lf(t,e,n){var l=xt;xt|=2;var u=u0(),s=s0();(qt!==t||Et!==e)&&(dc=null,ci(t,e)),e=!1;var f=Ft;t:do try{if(jt!==0&&_t!==null){var g=_t,T=Ge;switch(jt){case 8:nf(),f=6;break t;case 3:case 2:case 9:case 6:oe.current===null&&(e=!0);var N=jt;if(jt=0,Ge=null,ri(t,g,T,N),n&&ni){f=0;break t}break;default:N=jt,jt=0,Ge=null,ri(t,g,T,N)}}fp(),f=Ft;break}catch(j){a0(t,j)}while(!0);return e&&t.shellSuspendCounter++,qn=$l=null,xt=l,at.H=u,at.A=s,_t===null&&(qt=null,Et=0,Es()),f}function fp(){for(;_t!==null;)c0(_t)}function hp(t,e){var n=xt;xt|=2;var l=u0(),u=s0();qt!==t||Et!==e?(dc=null,hc=je()+500,ci(t,e)):ni=Ki(t,e);t:do try{if(jt!==0&&_t!==null){e=_t;var s=Ge;e:switch(jt){case 1:jt=0,Ge=null,ri(t,e,s,1);break;case 2:case 9:if(rm(s)){jt=0,Ge=null,r0(e);break}e=function(){jt!==2&&jt!==9||qt!==t||(jt=7),En(t)},s.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:rm(s)?(jt=0,Ge=null,r0(e)):(jt=0,Ge=null,ri(t,e,s,7));break;case 5:var f=null;switch(_t.tag){case 26:f=_t.memoizedState;case 5:case 27:var g=_t;if(f?tv(f):g.stateNode.complete){jt=0,Ge=null;var T=g.sibling;if(T!==null)_t=T;else{var N=g.return;N!==null?(_t=N,gc(N)):_t=null}break e}}jt=0,Ge=null,ri(t,e,s,5);break;case 6:jt=0,Ge=null,ri(t,e,s,6);break;case 8:nf(),Ft=6;break t;default:throw Error(r(462))}}dp();break}catch(j){a0(t,j)}while(!0);return qn=$l=null,at.H=l,at.A=u,xt=n,_t!==null?0:(qt=null,Et=0,Es(),Ft)}function dp(){for(;_t!==null&&!DS();)c0(_t)}function c0(t){var e=Oy(t.alternate,t,Kn);t.memoizedProps=t.pendingProps,e===null?gc(t):_t=e}function r0(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=gy(n,e,e.pendingProps,e.type,void 0,Et);break;case 11:e=gy(n,e,e.pendingProps,e.type.render,e.ref,Et);break;case 5:ro(e);var l=e;l===ae&&(St?(Ns(l),l.tag===5&&l.stateNode!=null&&(Yt=l.stateNode)):(Ns(l),St=!0));default:Ry(n,e),e=_t=$d(e,Kn),e=Oy(n,e,Kn)}t.memoizedProps=t.pendingProps,e===null?gc(t):_t=e}function ri(t,e,n,l){qn=$l=null,ro(e),Fa=null,ru=0;var u=e.return;try{if(tp(t,u,e,n,Et)){Ft=1,ks(t,Fe(n,t.current)),_t=null;return}}catch(s){if(u!==null)throw _t=u,s;Ft=1,ks(t,Fe(n,t.current)),_t=null;return}e.flags&32768?(St||l===1?t=!0:ni||(Et&536870912)!==0?t=!1:(Sl=t=!0,(l===2||l===9||l===3||l===6)&&(l=oe.current,l!==null&&l.tag===13&&(l.flags|=16384))),o0(e,t)):gc(e)}function gc(t){var e=t;do{if((e.flags&32768)!==0){o0(e,Sl);return}t=e.return;var n=ap(e.alternate,e,Kn);if(n!==null){_t=n;return}if(e=e.sibling,e!==null){_t=e;return}_t=e=t}while(e!==null);Ft===0&&(Ft=5)}function o0(t,e){do{var n=ip(t.alternate,t);if(n!==null){n.flags&=32767,_t=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){_t=t;return}_t=t=n}while(t!==null);Ft=6,_t=null}function f0(t,e,n,l,u,s,f,g,T,N,j,q){t.cancelPendingCommit=null;do Sc();while(Kt!==0);if((xt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));t===qt&&(_t=qt=null,Et=0),fa=e,sn=t,Tn=n,ef=u,t0=l,mp(t,e,n,f,g,T,q)}}function mp(t,e,n,l,u,s,f){var g=e.lanes|e.childLanes;if(tf=g,g|=Lr,QS(t,n,g,l,u,s),ii=null,(n&335544064)===n?(ui=G1(t),l=10262):(ui=null,l=10256),(e.subtreeFlags&l)!==0||(e.flags&l)!==0?(t.callbackNode=null,t.callbackPriority=0,bp(us,function(){return cf(),null})):(t.callbackNode=null,t.callbackPriority=0),lc=!1,l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=at.T,at.T=null,u=ht.p,ht.p=2,s=xt,xt|=4;try{up(t,e,n)}finally{xt=s,ht.p=u,at.T=l}}Kt=1,lc?ai=Qp(f,t.containerInfo,ui,af,uf,vp,sf,cf,yp):(af(),uf(),sf())}function yp(t){if(Kt!==0){var e=sn.onRecoverableError;e(t,{componentStack:null})}}function vp(){Kt===3&&(Kt=0,Jy(fa,sn),Kt=4)}function af(){if(Kt===1){Kt=0;var t=sn,e=fa,n=Tn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=at.T,at.T=null;var u=ht.p;ht.p=2;var s=xt;xt|=4;try{_u=uc=!1,Ky(e,t,n),n=bf;var f=Gd(t.containerInfo),g=n.focusedElem,T=n.selectionRange;if(f!==g&&g&&g.ownerDocument&&Yd(g.ownerDocument.documentElement,g)){if(T!==null&&xr(g)){var N=T.start,j=T.end;if(j===void 0&&(j=N),"selectionStart"in g)g.selectionStart=N,g.selectionEnd=Math.min(j,g.value.length);else{var q=g.ownerDocument||document,A=q&&q.defaultView||window;if(A.getSelection){var U=A.getSelection(),P=g.textContent.length,lt=Math.min(T.start,P),gt=T.end===void 0?lt:Math.min(T.end,P);!U.extend&<>gt&&(f=gt,gt=lt,lt=f);var z=Qd(g,lt),O=Qd(g,gt);if(z&&O&&(U.rangeCount!==1||U.anchorNode!==z.node||U.anchorOffset!==z.offset||U.focusNode!==O.node||U.focusOffset!==O.offset)){var x=q.createRange();x.setStart(z.node,z.offset),U.removeAllRanges(),lt>gt?(U.addRange(x),U.extend(O.node,O.offset)):(x.setEnd(O.node,O.offset),U.addRange(x))}}}}for(q=[],U=g;U=U.parentNode;)U.nodeType===1&&q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<q.length;g++){var B=q[g];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}gi=!!pf,bf=pf=null}finally{xt=s,ht.p=u,at.T=l}}t.current=e,Kt=2}}function uf(){if(Kt===2){Kt=0;var t=sn,e=fa,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=at.T,at.T=null;var l=ht.p;ht.p=2;var u=xt;xt|=4;try{qy(t,e.alternate,e)}finally{xt=u,ht.p=l,at.T=n}}Kt=3}}function sf(){if(Kt===4||Kt===3){Kt=0;var t=ai;ai=null,MS();var e=sn,n=fa,l=Tn,u=t0,s=(l&335544064)===l?10262:10256;if((n.subtreeFlags&s)!==0||(n.flags&s)!==0?Kt=5:(Kt=0,fa=sn=null,h0(e,e.pendingLanes)),s=e.pendingLanes,s===0&&(bl=null),mr(l),n=n.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(Xi,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=at.T,s=ht.p,ht.p=2,at.T=null;try{for(var f=e.onRecoverableError,g=0;g<u.length;g++){var T=u[g];f(T.value,{componentStack:T.stack})}}finally{at.T=n,ht.p=s}}if(u=ii,f=ui,ui=null,u!==null&&(ii=null,f===null&&(f=[]),t!==null))for(T=0;T<u.length;T++)n=(0,u[T])(f),n!==void 0&&t.finished.finally(n);(Tn&3)!==0&&Sc(),En(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===mc?Cu++:(Cu=0,mc=e):(Cu=0,mc=null),Ru(0)}}function h0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,uu(e)))}function Sc(){return ai!==null&&(ai.skipTransition(),ai=null),af(),uf(),sf(),cf()}function cf(){if(Kt!==5)return!1;var t=sn,e=tf;tf=0;var n=mr(Tn),l=at.T,u=ht.p;try{ht.p=32>n?32:n,at.T=null,n=ef,ef=null;var s=sn,f=Tn;if(Kt=0,fa=sn=null,Tn=0,(xt&6)!==0)throw Error(r(331));var g=xt;if(xt|=4,Py(s.current),Fy(s,s.current,f,n),xt=g,Ru(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(Xi,s)}catch{}return!0}finally{ht.p=u,at.T=l,h0(t,e)}}function d0(t,e,n){e=Fe(n,e),e=Oo(t.stateNode,e,2),t=hl(t,e,2),t!==null&&(Zi(t,2),En(t))}function Ht(t,e,n){if(t.tag===3)d0(t,t,n);else for(;e!==null;){if(e.tag===3){d0(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(bl===null||!bl.has(l))){t=Fe(n,t),n=ry(2),l=hl(e,n,2),l!==null&&(oy(n,l,e,t),Zi(l,2),En(l));break}}e=e.return}}function rf(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new rp;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(n)||($o=!0,u.add(n),t=gp.bind(null,t,e,n),e.then(t,t))}function gp(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,qt===t&&(Et&n)===n&&((Ft===4||Ft===3&&(Et&62914560)===Et&&300>je()-fc)&&(xt&2)===0?ci(t,0):oc|=n,li===Et&&(li=0)),En(t)}function m0(t,e){e===0&&(e=Wh()),t=kl(t,e),t!==null&&(Zi(t,e),En(t))}function Sp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),m0(t,n)}function pp(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),m0(t,n)}function bp(t,e){return or(t,e)}var oi=null,fi=null,of=!1,pc=!1,ff=!1,Tl=0;function En(t){t!==fi&&t.next===null&&(fi===null?oi=fi=t:fi=fi.next=t),pc=!0,of||(of=!0,Tp())}function Ru(t,e){if(!ff&&pc){ff=!0;do for(var n=!1,l=oi;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var s=0;else{var f=l.suspendedLanes,g=l.pingedLanes;s=(1<<31-Le(42|t)+1)-1,s&=u&~(f&~g),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,S0(l,s))}else s=Et,s=os(l,l===qt?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Ki(l,s)||(n=!0,S0(l,s));l=l.next}while(n);ff=!1}}function _p(){y0()}function y0(){pc=of=!1;var t=0;Tl!==0&&Up()&&(t=Tl);for(var e=je(),n=null,l=oi;l!==null;){var u=l.next,s=v0(l,e);s===0?(l.next=null,n===null?oi=u:n.next=u,u===null&&(fi=n)):(n=l,(t!==0||(s&3)!==0)&&(pc=!0)),l=u}Kt!==0&&Kt!==5||Ru(t),Tl!==0&&(Tl=0)}function v0(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var f=31-Le(s),g=1<<f,T=u[f];T===-1?((g&n)===0||(g&l)!==0)&&(u[f]=qS(g,e)):T<=e&&(t.expiredLanes|=g),s&=~g}if(e=qt,n=Et,n=os(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&fr(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ki(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&fr(l),mr(n)){case 2:case 8:n=Ih;break;case 32:n=us;break;case 268435456:n=Ph;break;default:n=us}return l=g0.bind(null,t),n=or(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&fr(l),t.callbackPriority=2,t.callbackNode=null,2}function g0(t,e){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Sc()&&t.callbackNode!==n)return null;var l=Et;return l=os(t,t===qt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(n0(t,l,e),v0(t,je()),t.callbackNode!=null&&t.callbackNode===n?g0.bind(null,t):null)}function S0(t,e){if(Sc())return null;n0(t,e,!0)}function Tp(){jp(function(){(xt&6)!==0?or(kh,_p):y0()})}function hf(){if(Tl===0){var t=ea;t===0&&(t=ss,ss<<=1,(ss&261888)===0&&(ss=256)),Tl=t}return Tl}function p0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ys(t)}function Ep(t,e,n,l,u){if(e==="submit"&&n&&n.stateNode===u){var s=p0((u[Ae]||null).action),f=l.submitter;f&&(e=(e=f[Ae]||null)?p0(e.formAction):f.getAttribute("formAction"),e!==null&&(s=e,f=null));var g=new ps("action","action",null,l,u);t.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Tl!==0){var T=new FormData(u,f);po(n,{pending:!0,data:T,method:u.method,action:s},null,T)}}else typeof s=="function"&&(g.preventDefault(),T=new FormData(u,f),po(n,{pending:!0,data:T,method:u.method,action:s},s,T))},currentTarget:u}]})}}for(var df=0;df<Hr.length;df++){var mf=Hr[df],Op=mf.toLowerCase(),Cp=mf[0].toUpperCase()+mf.slice(1);nn(Op,"on"+Cp)}nn(Kd,"onAnimationEnd"),nn(Zd,"onAnimationIteration"),nn(Jd,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(w1,"onTransitionRun"),nn(j1,"onTransitionStart"),nn(H1,"onTransitionCancel"),nn(Fd,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),Zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="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(" "),Rp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Au));function b0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],u=l.event;l=l.listeners;t:{var s=void 0;if(e)for(var f=l.length-1;0<=f;f--){var g=l[f],T=g.instance,N=g.currentTarget;if(g=g.listener,T!==s&&u.isPropagationStopped())break t;s=g,u.currentTarget=N;try{s(u)}catch(j){Ts(j)}u.currentTarget=null,s=T}else for(f=0;f<l.length;f++){if(g=l[f],T=g.instance,N=g.currentTarget,g=g.listener,T!==s&&u.isPropagationStopped())break t;s=g,u.currentTarget=N;try{s(u)}catch(j){Ts(j)}u.currentTarget=null,s=T}}}}function Tt(t,e){var n=e[id];n===void 0&&(n=e[id]=new Set);var l=t+"__bubble";n.has(l)||(_0(e,t,2,!1),n.add(l))}function yf(t,e,n){var l=0;e&&(l|=4),_0(n,t,l,e)}var bc="_reactListening"+Math.random().toString(36).slice(2);function vf(t){if(!t[bc]){t[bc]=!0,cd.forEach(function(n){n!=="selectionchange"&&(Rp.has(n)||yf(n,!1,t),yf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[bc]||(e[bc]=!0,yf("selectionchange",!1,e))}}function _0(t,e,n,l){switch(ov(e)){case 2:var u=Sb;break;case 8:u=pb;break;default:u=Hf}n=u.bind(null,e,n,t),u=void 0,!Tr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function gf(t,e,n,l,u){var s=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var g=l.stateNode.containerInfo;if(g===u)break;if(f===4)for(f=l.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;g!==null;){if(f=Kl(g),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){l=s=f;continue t}g=g.parentNode}}l=l.return}_d(function(){var N=s,j=br(n),q=[];t:{var A=kd.get(t);if(A!==void 0){var U=ps,P=t;switch(t){case"keypress":if(gs(n)===0)break t;case"keydown":case"keyup":U=o1;break;case"focusin":P="focus",U=Rr;break;case"focusout":P="blur",U=Rr;break;case"beforeblur":case"afterblur":U=Rr;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":U=Od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=$S;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=y1;break;case Kd:case Zd:case Jd:U=e1;break;case Fd:U=g1;break;case"scroll":case"scrollend":U=IS;break;case"wheel":U=p1;break;case"copy":case"cut":case"paste":U=l1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Rd;break;case"submit":U=d1;break;case"toggle":case"beforetoggle":U=_1}var lt=(e&4)!==0,gt=!lt&&(t==="scroll"||t==="scrollend"),z=lt?A!==null?A+"Capture":null:A;lt=[];for(var O=N,x;O!==null;){var B=O;if(x=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||x===null||z===null||(B=ki(O,z),B!=null&<.push(zu(O,B,x))),gt)break;O=O.return}0<lt.length&&(A=new U(A,P,null,n,j),q.push({event:A,listeners:lt}))}}if((e&7)===0){t:{if(U=t==="mouseover"||t==="pointerover",A=t==="mouseout"||t==="pointerout",U&&n!==pr&&(P=n.relatedTarget||n.fromElement)&&(Kl(P)||P[Da]))break t;(A||U)&&(P=j.window===j?j:(U=j.ownerDocument)?U.defaultView||U.parentWindow:window,A?(U=n.relatedTarget||n.toElement,A=N,U=U?Kl(U):null,U!==null&&(gt=h(U),lt=U.tag,U!==gt||lt!==5&<!==27&<!==6)&&(U=null)):(A=null,U=N),A!==U&&(lt=Od,B="onMouseLeave",z="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(lt=Rd,B="onPointerLeave",z="onPointerEnter",O="pointer"),gt=A==null?P:Fi(A),x=U==null?P:Fi(U),P=new lt(B,O+"leave",A,n,j),P.target=gt,P.relatedTarget=x,B=null,Kl(j)===N&&(lt=new lt(z,O+"enter",U,n,j),lt.target=x,lt.relatedTarget=gt,B=lt),gt=B,lt=A&&U?G(A,U,Ap):null,A!==null&&T0(q,P,A,lt,!1),U!==null&>!==null&&T0(q,gt,U,lt,!0)))}t:{if(A=N?Fi(N):window,U=A.nodeName&&A.nodeName.toLowerCase(),U==="select"||U==="input"&&A.type==="file")var nt=wd;else if(xd(A))if(jd)nt=M1;else{nt=N1;var Ot=z1}else U=A.nodeName,!U||U.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?N&&Sr(N.elementType)&&(nt=wd):nt=D1;if(nt&&(nt=nt(t,N))){Ud(q,nt,n,j);break t}Ot&&Ot(t,A,N)}switch(Ot=N?Fi(N):window,t){case"focusin":(xd(Ot)||Ot.contentEditable==="true")&&(qa=Ot,Ur=N,lu=null);break;case"focusout":lu=Ur=qa=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,Vd(q,n,j);break;case"selectionchange":if(U1)break;case"keydown":case"keyup":Vd(q,n,j)}var ut;if(zr)t:{switch(t){case"compositionstart":var ot="onCompositionStart";break t;case"compositionend":ot="onCompositionEnd";break t;case"compositionupdate":ot="onCompositionUpdate";break t}ot=void 0}else Ba?Dd(t,n)&&(ot="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(ot="onCompositionStart");ot&&(Ad&&n.locale!=="ko"&&(Ba||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&Ba&&(ut=Td()):(ll=j,Er="value"in ll?ll.value:ll.textContent,Ba=!0)),Ot=_c(N,ot),0<Ot.length&&(ot=new Cd(ot,t,null,n,j),q.push({event:ot,listeners:Ot}),ut?ot.data=ut:(ut=Md(n),ut!==null&&(ot.data=ut)))),(ut=E1?O1(t,n):C1(t,n))&&(ot=_c(N,"onBeforeInput"),0<ot.length&&(Ot=new Cd("onBeforeInput","beforeinput",null,n,j),q.push({event:Ot,listeners:ot}),Ot.data=ut)),Ep(q,t,N,n,j)}b0(q,e)})}function zu(t,e,n){return{instance:t,listener:e,currentTarget:n}}function _c(t,e){for(var n=e+"Capture",l=[];t!==null;){var u=t,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=ki(t,n),u!=null&&l.unshift(zu(t,u,s)),u=ki(t,e),u!=null&&l.push(zu(t,u,s))),t.tag===3)return l;t=t.return}return[]}function Ap(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function T0(t,e,n,l,u){for(var s=e._reactName,f=[];n!==null&&n!==l;){var g=n,T=g.alternate,N=g.stateNode;if(g=g.tag,T!==null&&T===l)break;g!==5&&g!==26&&g!==27||N===null||(T=N,u?(N=ki(n,s),N!=null&&f.unshift(zu(n,N,T))):u||(N=ki(n,s),N!=null&&f.push(zu(n,N,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var zp=/\r\n?/g,Np=/\u0000|\uFFFD/g;function E0(t){return(typeof t=="string"?t:""+t).replace(zp,`
|
|
`).replace(Np,"")}function O0(t,e){return e=E0(e),E0(t)===e}function Lt(t,e,n,l,u,s){switch(n){case"children":if(typeof l=="string")e==="body"||e==="textarea"&&l===""||ja(t,l);else if(typeof l=="number"||typeof l=="bigint")e!=="body"&&ja(t,""+l);else return;break;case"className":ms(t,"class",l);break;case"tabIndex":ms(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ms(t,n,l);break;case"style":pd(t,l,s);return;case"data":if(e!=="object"){ms(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=ys(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 s=="function"&&(n==="formAction"?(e!=="input"&&Lt(t,e,"name",u.name,u,null),Lt(t,e,"formEncType",u.formEncType,u,null),Lt(t,e,"formMethod",u.formMethod,u,null),Lt(t,e,"formTarget",u.formTarget,u,null)):(Lt(t,e,"encType",u.encType,u,null),Lt(t,e,"method",u.method,u,null),Lt(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ys(l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=dn);return;case"onScroll":l!=null&&Tt("scroll",t);return;case"onScrollEnd":l!=null&&Tt("scrollend",t);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(r(60));(s!=null?s.__html:void 0)!==n&&(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=ys(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"credentialless":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":Tt("beforetoggle",t),Tt("toggle",t),ds(t,"popover",l);break;case"xlinkActuate":Un(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Un(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Un(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Un(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Un(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Un(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Un(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ds(t,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=FS.get(n)||n,ds(t,n,l);else return}Mt=!0}function Sf(t,e,n,l,u,s){switch(n){case"style":pd(t,l,s);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(r(60));(s!=null?s.__html:void 0)!==n&&(t.innerHTML=n)}}break;case"children":if(typeof l=="string")ja(t,l);else if(typeof l=="number"||typeof l=="bigint")ja(t,""+l);else return;break;case"onScroll":l!=null&&Tt("scroll",t);return;case"onScrollEnd":l!=null&&Tt("scrollend",t);return;case"onClick":l!=null&&(t.onclick=dn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!rd.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),s=n.slice(2,u?n.length-7:void 0),e=t[Ae]||null,e=e!=null?e[n]:null,typeof e=="function"&&t.removeEventListener(s,e,u),typeof l=="function")){typeof e!="function"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(s,l,u);break t}Mt=!0,n in t?t[n]=l:l===!0?t.setAttribute(n,""):ds(t,n,l)}return}Mt=!0}function de(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",t),Tt("load",t);var l=!1,u=!1,s;for(s in n)if(n.hasOwnProperty(s)){var f=n[s];if(f!=null)switch(s){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Lt(t,e,s,f,n,null)}}u&&Lt(t,e,"srcSet",n.srcSet,n,null),l&&Lt(t,e,"src",n.src,n,null);return;case"input":Tt("invalid",t);var g=s=f=u=null,T=null,N=null;for(l in n)if(n.hasOwnProperty(l)){var j=n[l];if(j!=null)switch(l){case"name":u=j;break;case"type":f=j;break;case"checked":T=j;break;case"defaultChecked":N=j;break;case"value":s=j;break;case"defaultValue":g=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:Lt(t,e,l,j,n,null)}}yd(t,s,g,T,N,f,u,!1);return;case"select":Tt("invalid",t),l=f=s=null;for(u in n)if(n.hasOwnProperty(u)&&(g=n[u],g!=null))switch(u){case"value":s=g;break;case"defaultValue":f=g;break;case"multiple":l=g;default:Lt(t,e,u,g,n,null)}e=s,n=f,t.multiple=!!l,e!=null?wa(t,!!l,e,!1):n!=null&&wa(t,!!l,n,!0);return;case"textarea":Tt("invalid",t),s=u=l=null;for(f in n)if(n.hasOwnProperty(f)&&(g=n[f],g!=null))switch(f){case"value":l=g;break;case"defaultValue":u=g;break;case"children":s=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:Lt(t,e,f,g,n,null)}gd(t,l,u,s);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Lt(t,e,T,l,n,null)}return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(l=0;l<Au.length;l++)Tt(Au[l],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("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(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Lt(t,e,N,l,n,null)}return;default:if(Sr(e)){for(j in n)n.hasOwnProperty(j)&&(l=n[j],l!==void 0&&Sf(t,e,j,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&Lt(t,e,g,l,n,null))}var Dp={};function Mp(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 u=null,s=null,f=null,g=null,T=null,N=null,j=null;for(U in n){var q=n[U];if(n.hasOwnProperty(U)&&q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":T=q;default:l.hasOwnProperty(U)||Lt(t,e,U,null,l,q)}}for(var A in l){var U=l[A];if(q=n[A],l.hasOwnProperty(A)&&(U!=null||q!=null))switch(A){case"type":U!==q&&(Mt=!0),s=U;break;case"name":U!==q&&(Mt=!0),u=U;break;case"checked":U!==q&&(Mt=!0),N=U;break;case"defaultChecked":U!==q&&(Mt=!0),j=U;break;case"value":U!==q&&(Mt=!0),f=U;break;case"defaultValue":U!==q&&(Mt=!0),g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,e));break;default:U!==q&&Lt(t,e,A,U,l,q)}}vr(t,f,g,T,N,j,s,u);return;case"select":U=f=g=A=null;for(s in n)if(T=n[s],n.hasOwnProperty(s)&&T!=null)switch(s){case"value":break;case"multiple":U=T;default:l.hasOwnProperty(s)||Lt(t,e,s,null,l,T)}for(u in l)if(s=l[u],T=n[u],l.hasOwnProperty(u)&&(s!=null||T!=null))switch(u){case"value":s!==T&&(Mt=!0),A=s;break;case"defaultValue":s!==T&&(Mt=!0),g=s;break;case"multiple":s!==T&&(Mt=!0),f=s;default:s!==T&&Lt(t,e,u,s,l,T)}e=g,n=f,l=U,A!=null?wa(t,!!n,A,!1):!!l!=!!n&&(e!=null?wa(t,!!n,e,!0):wa(t,!!n,n?[]:"",!1));return;case"textarea":U=A=null;for(g in n)if(u=n[g],n.hasOwnProperty(g)&&u!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Lt(t,e,g,null,l,u)}for(f in l)if(u=l[f],s=n[f],l.hasOwnProperty(f)&&(u!=null||s!=null))switch(f){case"value":u!==s&&(Mt=!0),A=u;break;case"defaultValue":u!==s&&(Mt=!0),U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==s&&Lt(t,e,f,u,l,s)}vd(t,A,U);return;case"option":for(var P in n)if(A=n[P],n.hasOwnProperty(P)&&A!=null&&!l.hasOwnProperty(P))switch(P){case"selected":t.selected=!1;break;default:Lt(t,e,P,null,l,A)}for(T in l)if(A=l[T],U=n[T],l.hasOwnProperty(T)&&A!==U&&(A!=null||U!=null))switch(T){case"selected":A!==U&&(Mt=!0),t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Lt(t,e,T,A,l,U)}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 lt in n)A=n[lt],n.hasOwnProperty(lt)&&A!=null&&!l.hasOwnProperty(lt)&&Lt(t,e,lt,null,l,A);for(N in l)if(A=l[N],U=n[N],l.hasOwnProperty(N)&&A!==U&&(A!=null||U!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,e));break;default:Lt(t,e,N,A,l,U)}return;default:if(Sr(e)){for(var gt in n)A=n[gt],n.hasOwnProperty(gt)&&A!==void 0&&!l.hasOwnProperty(gt)&&Sf(t,e,gt,void 0,l,A);for(j in l)A=l[j],U=n[j],!l.hasOwnProperty(j)||A===U||A===void 0&&U===void 0||Sf(t,e,j,A,l,U);return}}for(var z in n)A=n[z],n.hasOwnProperty(z)&&A!=null&&!l.hasOwnProperty(z)&&Lt(t,e,z,null,l,A);for(q in l)A=l[q],U=n[q],!l.hasOwnProperty(q)||A===U||A==null&&U==null||Lt(t,e,q,A,l,U)}function C0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var u=n[l],s=u.transferSize,f=u.initiatorType,g=u.duration;if(s&&g&&C0(f)){for(f=0,g=u.responseEnd,l+=1;l<n.length;l++){var T=n[l],N=T.startTime;if(N>g)break;var j=T.transferSize,q=T.initiatorType;j&&C0(q)&&(T=T.responseEnd,f+=j*(T<g?1:(g-N)/(T-N)))}if(--l,e+=8*(s+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var pf=null,bf=null;function Nu(t){return t.nodeType===9?t:t.ownerDocument}function R0(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 A0(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 z0(t,e,n,l){return n=Nu(n).createElement(t),n[ce]=l,n[Ae]=e,de(n,t,e),le(n),n}function _f(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 Tf=null;function Up(){var t=window.event;return t&&t.type==="popstate"?t===Tf?!1:(Tf=t,!0):(Tf=null,!1)}var Ef=typeof setTimeout=="function"?setTimeout:void 0,wp=typeof clearTimeout=="function"?clearTimeout:void 0,N0=typeof Promise=="function"?Promise:void 0,D0=typeof requestAnimationFrame=="function"?requestAnimationFrame:Ef,jp=typeof queueMicrotask=="function"?queueMicrotask:typeof N0<"u"?function(t){return N0.resolve(null).then(t).catch(Hp)}:Ef;function Hp(t){setTimeout(function(){throw t})}function El(t){return t==="head"}function M0(t,e){var n=e,l=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(u),Si(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Mf(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Mf(n);for(var s=n.firstChild;s;){var f=s.nextSibling,g=s.nodeName;s[Ji]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=f}}else n==="body"&&Mf(t.ownerDocument.body);n=u}while(n);Si(e)}function x0(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 U0(t,e,n){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display==="inline"){if(e=t.getClientRects(),e.length===1)var l=1;else for(var u=l=0;u<e.length;u++){var s=e[u];0<s.width&&0<s.height&&l++}l===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+n.paddingTop,t.marginBottom="-"+n.paddingBottom)}}function w0(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(n=e.display,t.display=n==null||typeof n=="boolean"?"":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=n==null||typeof n=="boolean"?"":n,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function Lp(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function Of(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return Lp(e,n,t)}function Bp(t){return t.documentElement.clientHeight}function qp(t){this.addEventListener("load",t),this.addEventListener("error",t)}function Qp(t,e,n,l,u,s,f,g,T){var N=e.nodeType===9?e:e.ownerDocument;try{var j=N.startViewTransition({update:function(){var A=N.defaultView,U=A.navigation&&A.navigation.transition,P=N.fonts.status;l();var lt=[];if(P==="loaded"&&(Bp(N),N.fonts.status==="loading"&<.push(N.fonts.ready)),P=lt.length,t!==null)for(var gt=t.suspenseyImages,z=0,O=0;O<gt.length;O++){var x=gt[O];if(!x.complete){var B=x.getBoundingClientRect();if(0<B.bottom&&0<B.right&&B.top<A.innerHeight&&B.left<A.innerWidth){if(z+=ev(x),z>Oc){lt.length=P;break}x=new Promise(qp.bind(x)),lt.push(x)}}}if(0<lt.length)return A=Promise.race([Promise.all(lt),new Promise(function(nt){return setTimeout(nt,500)})]).then(u,u),(U?Promise.allSettled([U.finished,A]):A).then(s,s);if(u(),U)return U.finished.then(s,s);s()},types:n});N.__reactViewTransition=j;var q=[];return j.ready.then(function(){for(var A=N.documentElement.getAnimations({subtree:!0}),U=0;U<A.length;U++){var P=A[U],lt=P.effect,gt=lt.pseudoElement;if(gt!=null&>.startsWith("::view-transition")){q.push(P),P=lt.getKeyframes();for(var z=gt=void 0,O=!0,x=0;x<P.length;x++){var B=P[x],nt=B.width;if(gt===void 0)gt=nt;else if(gt!==nt){O=!1;break}if(nt=B.height,z===void 0)z=nt;else if(z!==nt){O=!1;break}delete B.width,delete B.height,B.transform==="none"&&delete B.transform}O&>!==void 0&&z!==void 0&&(lt.setKeyframes(P),O=getComputedStyle(lt.target,lt.pseudoElement),O.width!==gt||O.height!==z)&&(O=P[0],O.width=gt,O.height=z,O=P[P.length-1],O.width=gt,O.height=z,lt.setKeyframes(P))}}f()},function(A){N.__reactViewTransition===j&&(N.__reactViewTransition=null);try{if(typeof A=="object"&&A!==null)switch(A.name){case"InvalidStateError":(A.message==="View transition was skipped because document visibility state is hidden."||A.message==="Skipping view transition because document visibility state has become hidden."||A.message==="Skipping view transition because viewport size changed."||A.message==="Transition was aborted because of invalid state")&&(A=null)}A!==null&&T(A)}finally{l(),u(),f()}}),j.finished.finally(function(){for(var A=0;A<q.length;A++)q[A].cancel();N.__reactViewTransition===j&&(N.__reactViewTransition=null),g()}),j}catch{return l(),u(),f(),null}}function ha(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}ha.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:V({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)},ha.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),l=[],u=0;u<n.length;u++){var s=n[u].effect;s!==null&&s.target===t&&s.pseudoElement===e&&l.push(n[u])}return l},ha.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function j0(t){return{name:t,group:new ha("group",t),imagePair:new ha("image-pair",t),old:new ha("old",t),new:new ha("new",t)}}function Ke(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}Ke.prototype.addEventListener=function(t,e,n){var l=null,u=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var s=this._eventListeners;if(L0(s,t,e,n)===-1){var f=this,g=e;n!=null&&typeof n!="boolean"&&n.once===!0&&(g=function(T){f.removeEventListener(t,e,n),typeof e=="function"?e.call(this,T):e.handleEvent(T)}),l!==null&&(u=f.removeEventListener.bind(f,t,e,n),l.addEventListener("abort",u,{once:!0}),u=l.removeEventListener.bind(l,"abort",u)),l=hi(n),s.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:g,cleanup:u}),y(this._fragmentFiber.child,!1,Yp,t,g,l)}this._eventListeners=s}};function Yp(t,e,n,l){return M(t).addEventListener(e,n,l),!1}Ke.prototype.removeEventListener=function(t,e,n){var l=this._eventListeners;if(l!==null&&(e=L0(l,t,e,n),e!==-1)){var u=l[e];n=u.attachedListener;var s=u.cleanup;u=hi(u.optionsOrUseCapture),y(this._fragmentFiber.child,!1,Gp,t,n,u),l.splice(e,1),s!==null&&s()}};function Gp(t,e,n,l){return M(t).removeEventListener(e,n,l),!1}function hi(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function H0(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function L0(t,e,n,l){if(t.length===0)return-1;l=H0(l);for(var u=0;u<t.length;u++){var s=t[u];if(s.type===e&&s.listener===n&&H0(s.optionsOrUseCapture)===l)return u}return-1}Ke.prototype.dispatchEvent=function(t){var e=p(this._fragmentFiber);if(e===null)return!0;e=M(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var l=e.nodeType===9?e.createComment(""):document.createTextNode("");if(n)for(var u=0;u<n.length;u++){var s=n[u];l.addEventListener(s.type,s.attachedListener,hi(s.optionsOrUseCapture))}if(e.appendChild(l),t=l.dispatchEvent(t),n)for(u=0;u<n.length;u++)s=n[u],l.removeEventListener(s.type,s.attachedListener,hi(s.optionsOrUseCapture));return e.removeChild(l),t}return e.dispatchEvent(t)},Ke.prototype.focus=function(t){y(this._fragmentFiber.child,!0,B0,t,void 0,void 0)};function B0(t,e){return t.tag===6?!1:(t=M(t),tb(t,e))}Ke.prototype.focusLast=function(t){var e=[];y(this._fragmentFiber.child,!0,Cf,e,void 0,void 0);for(var n=e.length-1;0<=n&&!B0(e[n],t);n--);};function Cf(t,e){return e.push(t),!1}Ke.prototype.blur=function(){var t=p(this._fragmentFiber);t!==null&&(t=M(t),t=Nu(t).activeElement,t!==null&&y(this._fragmentFiber.child,!1,Vp,t,void 0,void 0))};function Vp(t,e){return t.tag===6?!1:(t=M(t),t===e||t.contains(e)?(e.blur(),!0):!1)}Ke.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),y(this._fragmentFiber.child,!1,Xp,t,void 0,void 0)};function Xp(t,e){return t.tag===6||(t=M(t),e.observe(t)),!1}Ke.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),y(this._fragmentFiber.child,!1,Kp,t,void 0,void 0);for(var n=e=0;n<cn.length;n++){var l=cn[n];l.fragmentInstance===this&&l.observer===t?t.unobserve(l.instance):cn[e++]=l}cn.length=e}};function Kp(t,e){return t.tag===6||(t=M(t),e.unobserve(t)),!1}var cn=[],Rf=!1;function Zp(t,e,n){cn.push({fragmentInstance:t,observer:e,instance:n}),Rf||(Rf=!0,eb(function(){Rf=!1;var l=cn;cn=[];for(var u=0;u<l.length;u++){var s=l[u];s.observer.unobserve(s.instance)}}))}Ke.prototype.getClientRects=function(){var t=[];return y(this._fragmentFiber.child,!1,Jp,t,void 0,void 0),t};function Jp(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=M(t),e.push.apply(e,t.getClientRects());return!1}Ke.prototype.getRootNode=function(t){var e=p(this._fragmentFiber);return e===null?this:M(e).getRootNode(t)},Ke.prototype.compareDocumentPosition=function(t){var e=p(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];y(this._fragmentFiber.child,!1,Cf,n,void 0,void 0);var l=M(e);if(n.length===0){if(n=l,_(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var u=l=n.compareDocumentPosition(t);return n===t?u=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=E(e)[1],n===null?u=Node.DOCUMENT_POSITION_PRECEDING:(t=M(n).compareDocumentPosition(t),u=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),u|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=M(n[0]),u=M(n[n.length-1]);var s=_(this._fragmentFiber)?e.parentElement:l;if(s==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=s.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,s=s.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY;var f=e.compareDocumentPosition(t),g=u.compareDocumentPosition(t),T=f&Node.DOCUMENT_POSITION_CONTAINED_BY||g&Node.DOCUMENT_POSITION_CONTAINED_BY;return g=l&&s&&f&Node.DOCUMENT_POSITION_FOLLOWING&&g&Node.DOCUMENT_POSITION_PRECEDING,e=l&&e===t||s&&u===t||T||g?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&e===t||!s&&u===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:f,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Fp(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Fp(t,e,n,l,u){var s=Kl(u);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!s)t:{for(;s!==null;){if(s.tag===7&&(s===e||s.alternate===e)){n=!0;break t}s=s.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(s===null)return s=u.ownerDocument,u===s||u===s.documentElement||u===s.body;t:{for(s=e,e=p(e);s!==null;){if(!(s.tag!==5&&s.tag!==3&&s.tag!==27||s!==e&&s.alternate!==e)){s=!0;break t}s=s.return}s=!1}return s}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!s)&&!(e=s===n)&&(e=G(n,s,Y),e===null?e=!1:(y(e,!0,L,s,n),s=K,K=null,e=s!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!s)&&!(e=s===l)&&(e=G(l,s,Y),e===null?e=!1:(y(e,!0,X,s,l),s=K,w=K=null,e=s!==null)),e):!1}function q0(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}Ke.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(r(566));var e=[];y(this._fragmentFiber.child,!1,Cf,e,void 0,void 0);var n=t!==!1;if(e.length===0){var l=E(this._fragmentFiber);if(l=n?l[1]||l[0]||p(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){t=M(l),q0(t,n);return}if(l=M(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(t);return}l.scrollIntoView(t)}}for(l=n?e.length-1:0;l!==(n?-1:e.length);){var u=e[l];u.tag===6?(u=M(u),q0(u,n)):M(u).scrollIntoView(t),l+=n?-1:1}};function kp(t,e){return t=M(t),Q0(t,e),!1}function Q0(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function Y0(t,e){var n=e._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l];t.addEventListener(u.type,u.attachedListener,hi(u.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(s){for(var f=0,g=0;g<cn.length;g++){var T=cn[g];(T.fragmentInstance!==e||T.observer!==s||T.instance!==t)&&(cn[f++]=T)}cn.length=f,s.observe(t)}),Q0(t,e))}function Ip(t,e){var n=e._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l];t.removeEventListener(u.type,u.attachedListener,hi(u.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(s){typeof s.rootMargin=="string"?Zp(e,s,t):s.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function Af(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":Af(n),hs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Pp(t,e,n,l){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ji])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=We(t.nextSibling),t===null)break}return null}function $p(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=We(t.nextSibling),t===null))return null;return t}function G0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=We(t.nextSibling),t===null))return null;return t}function zf(t){return t.data==="$?"||t.data==="$~"}function Nf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Wp(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 We(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 Df=null;function V0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return We(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function X0(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 tb(t,e){function n(){l=!0}if(t.ownerDocument.activeElement===t)return!0;var l=!1;try{t.ownerDocument.addEventListener("focus",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",n,!0)}return l}function eb(t){D0(function(){D0(function(e){return t(e)})})}function K0(t,e,n){switch(e=Nu(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Z0(t,e,n){for(var l in n){var u=n[l];n.hasOwnProperty(l)&&u!=null&&Lt(t,e,l,null,Dp,u)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===dn&&(t.onclick=null),hs(t)}function Mf(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);hs(t)}var tn=new Map,J0=new Set;function Du(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var Zn=ht.d;ht.d={f:nb,r:lb,D:ab,C:ib,L:ub,m:sb,X:rb,S:cb,M:ob};function nb(){var t=Zn.f(),e=yc();return t||e}function lb(t){var e=Ma(t);e!==null&&e.tag===5&&e.type==="form"?km(e):Zn.r(t)}var di=typeof document>"u"?null:document;function F0(t,e,n){var l=di;if(l&&typeof e=="string"&&e){var u=Ze(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),J0.has(u)||(J0.add(u),t={rel:t,crossOrigin:n,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),de(e,"link",t),le(e),l.head.appendChild(e)))}}function ab(t){Zn.D(t),F0("dns-prefetch",t,null)}function ib(t,e){Zn.C(t,e),F0("preconnect",t,e)}function ub(t,e,n){Zn.L(t,e,n);var l=di;if(l&&t&&e){var u='link[rel="preload"][as="'+Ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ze(n.imageSizes)+'"]')):u+='[href="'+Ze(t)+'"]';var s=u;switch(e){case"style":s=mi(t);break;case"script":s=yi(t)}if(!(tn.has(s)||(t=V({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),tn.set(s,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(Mu(s))||e==="script"&&l.querySelector(xu(s))))){var f=l.createElement("link");de(f,"link",t),e==="style"&&(f[fs]=!0,f.onload=f.onerror=function(){sd(f)}),le(f),l.head.appendChild(f)}}}function sb(t,e){Zn.m(t,e);var n=di;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ze(l)+'"][href="'+Ze(t)+'"]',s=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=yi(t)}if(!tn.has(s)&&(t=V({rel:"modulepreload",href:t},e),tn.set(s,t),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xu(s)))return}l=n.createElement("link"),de(l,"link",t),le(l),n.head.appendChild(l)}}}function cb(t,e,n){Zn.S(t,e,n);var l=di;if(l&&t){var u=xa(l).hoistableStyles,s=mi(t);e=e||"default";var f=u.get(s);if(!f){var g={loading:0,preload:null};if(f=l.querySelector(Mu(s)))g.loading=5;else{t=V({rel:"stylesheet",href:t,"data-precedence":e},n),(n=tn.get(s))&&xf(t,n);var T=f=l.createElement("link");le(T),de(T,"link",t),T._p=new Promise(function(N,j){T.onload=N,T.onerror=j}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Tc(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:g},u.set(s,f)}}}function rb(t,e){Zn.X(t,e);var n=di;if(n&&t){var l=xa(n).hoistableScripts,u=yi(t),s=l.get(u);s||(s=n.querySelector(xu(u)),s||(t=V({src:t,async:!0},e),(e=tn.get(u))&&Uf(t,e),s=n.createElement("script"),le(s),de(s,"link",t),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function ob(t,e){Zn.M(t,e);var n=di;if(n&&t){var l=xa(n).hoistableScripts,u=yi(t),s=l.get(u);s||(s=n.querySelector(xu(u)),s||(t=V({src:t,async:!0,type:"module"},e),(e=tn.get(u))&&Uf(t,e),s=n.createElement("script"),le(s),de(s,"link",t),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function k0(t,e,n,l){var u=(u=tl.current)?Du(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=mi(n.href),e=xa(u).hoistableStyles,l=e.get(n),l||(l={type:"style",instance:null,count:0,state:null},e.set(n,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=mi(n.href);var s=xa(u).hoistableStyles,f=s.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,f),(s=u.querySelector(Mu(t)))?s._p||(f.instance=s,f.state.loading=5):(s=tn.get(t),s||(s={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},tn.set(t,s)),fb(u,t,s,f.state))),e&&l===null)throw Error(r(528,""));return f}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(n=yi(n),e=xa(u).hoistableScripts,l=e.get(n),l||(l={type:"script",instance:null,count:0,state:null},e.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function mi(t){return'href="'+Ze(t)+'"'}function Mu(t){return'link[rel="stylesheet"]['+t+"]"}function I0(t){return V({},t,{"data-precedence":t.precedence,precedence:null})}function fb(t,e,n,l){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[fs]!==!0){l.loading=1;return}}else e=t.createElement("link"),e[fs]=!0,e.onload=e.onerror=sd.bind(null,e),de(e,"link",n),le(e),t.head.appendChild(e);l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2})}function yi(t){return'[src="'+Ze(t)+'"]'}function xu(t){return"script[async]"+t}function P0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ze(n.href)+'"]');if(l)return e.instance=l,le(l),l;var u=V({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),le(l),de(l,"style",u),Tc(l,n.precedence,t),e.instance=l;case"stylesheet":u=mi(n.href);var s=t.querySelector(Mu(u));if(s)return e.state.loading|=4,e.instance=s,le(s),s;l=I0(n),(u=tn.get(u))&&xf(l,u),s=(t.ownerDocument||t).createElement("link"),le(s);var f=s;return f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),de(s,"link",l),e.state.loading|=4,Tc(s,n.precedence,t),e.instance=s;case"script":return s=yi(n.src),(u=t.querySelector(xu(s)))?(e.instance=u,le(u),u):(l=n,(u=tn.get(s))&&(l=V({},n),Uf(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),le(u),de(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Tc(l,n.precedence,t));return e.instance}function Tc(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,s=u,f=0;f<l.length;f++){var g=l[f];if(g.dataset.precedence===e)s=g;else if(s!==u)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Uf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ec=null;function $0(t,e,n){if(Ec===null){var l=new Map,u=Ec=new Map;u.set(n,l)}else u=Ec,l=u.get(n),l||(l=new Map,u.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var s=n[u];if(!(s[Ji]||s[ce]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(e)||"";f=t+f;var g=l.get(f);g?g.push(s):l.set(f,[s])}}return l}function wf(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function hb(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;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!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 W0(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function tv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ev(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function nv(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=ev(e),t.suspenseyImages.push(e)),t=yb.bind(t),e.decode().then(t,t))}function db(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 u=mi(l.href),s=e.querySelector(Mu(u));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Uu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=s,le(s);return}s=e.ownerDocument||e,l=I0(l),(u=tn.get(u))&&xf(l,u),s=s.createElement("link"),le(s);var f=s;f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),de(s,"link",l),n.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Uu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Oc=0;function mb(t,e){return t.stylesheets&&t.count===0&&Rc(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Rc(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&Oc===0&&(Oc=62500*xp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Rc(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>Oc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function lv(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Rc(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function Uu(){this.count--,lv(this)}function yb(){this.imgCount--,lv(this)}var Cc=null;function Rc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Cc=new Map,e.forEach(vb,t),Cc=null,Uu.call(t))}function vb(t,e){if(!(e.state.loading&4)){var n=Cc.get(t);if(n)var l=n.get(null);else{n=new Map,Cc.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var f=u[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}u=e.instance,f=u.getAttribute("data-precedence"),s=n.get(f)||l,s===l&&n.set(null,u),n.set(f,u),this.count++,l=Uu.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),s?s.parentNode.insertBefore(u,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var vi={$$typeof:st,Provider:null,Consumer:null,_currentValue:Mn,_currentValue2:Mn,_threadCount:0};function gb(t,e,n,l,u,s,f,g,T){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=hr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hr(0),this.hiddenUpdates=hr(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.transitionTypes=null,this.incompleteTransitions=new Map}function av(t,e,n,l,u,s,f,g,T,N,j,q){return t=new gb(t,e,n,f,T,N,j,q,g),e=1,s===!0&&(e|=24),s=ze(3,null,null,e),t.current=s,s.stateNode=t,e=Jr(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:e},Pr(s),t}function iv(t){return t?(t=Ga,t):Ga}function uv(t,e,n,l,u,s){u=iv(u),l.context===null?l.context=u:l.pendingContext=u,l=fl(e),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=hl(t,l,e),n!==null&&(xe(n,t,e),ou(n,t,e))}function sv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function jf(t,e){sv(t,e),(t=t.alternate)&&sv(t,e)}function cv(t){if(t.tag===13||t.tag===31){var e=kl(t,67108864);e!==null&&xe(e,t,67108864),jf(t,67108864)}}function rv(t){if(t.tag===13||t.tag===31){var e=Xe();e=dr(e);var n=kl(t,e);n!==null&&xe(n,t,e),jf(t,e)}}var gi=!0;function Sb(t,e,n,l){var u=at.T;at.T=null;var s=ht.p;try{ht.p=2,Hf(t,e,n,l)}finally{ht.p=s,at.T=u}}function pb(t,e,n,l){var u=at.T;at.T=null;var s=ht.p;try{ht.p=8,Hf(t,e,n,l)}finally{ht.p=s,at.T=u}}function Hf(t,e,n,l){if(gi){var u=Lf(l);if(u===null)gf(t,e,l,Ac,n),fv(t,l);else if(_b(u,t,e,n,l))l.stopPropagation();else if(fv(t,l),e&4&&-1<bb.indexOf(t)){for(;u!==null;){var s=Ma(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=Xl(s.pendingLanes);if(f!==0){var g=s;for(g.pendingLanes|=2,g.entangledLanes|=2;f;){var T=1<<31-Le(f);g.entanglements[1]|=T,f&=~T}En(s),(xt&6)===0&&(hc=je()+500,Ru(0))}}break;case 31:case 13:g=kl(s,2),g!==null&&xe(g,s,2),yc(),jf(s,2)}if(s=Lf(l),s===null&&gf(t,e,l,Ac,n),s===u)break;u=s}u!==null&&l.stopPropagation()}else gf(t,e,l,null,n)}}function Lf(t){return t=br(t),Bf(t)}var Ac=null;function Bf(t){if(Ac=null,t=Kl(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(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 Ac=t,null}function ov(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xS()){case kh:return 2;case Ih:return 8;case us:case US:return 32;case Ph:return 268435456;default:return 32}default:return 32}}var qf=!1,Ol=null,Cl=null,Rl=null,wu=new Map,ju=new Map,Al=[],bb="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 fv(t,e){switch(t){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Cl=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":wu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ju.delete(e.pointerId)}}function Hu(t,e,n,l,u,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[u]},e!==null&&(e=Ma(e),e!==null&&cv(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function _b(t,e,n,l,u){switch(e){case"focusin":return Ol=Hu(Ol,t,e,n,l,u),!0;case"dragenter":return Cl=Hu(Cl,t,e,n,l,u),!0;case"mouseover":return Rl=Hu(Rl,t,e,n,l,u),!0;case"pointerover":var s=u.pointerId;return wu.set(s,Hu(wu.get(s)||null,t,e,n,l,u)),!0;case"gotpointercapture":return s=u.pointerId,ju.set(s,Hu(ju.get(s)||null,t,e,n,l,u)),!0}return!1}function hv(t){var e=Kl(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,ad(t.priority,function(){rv(n)});return}}else if(e===31){if(e=d(n),e!==null){t.blockedOn=e,ad(t.priority,function(){rv(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 zc(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Lf(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);pr=l,n.target.dispatchEvent(l),pr=null}else return e=Ma(n),e!==null&&cv(e),t.blockedOn=n,!1;e.shift()}return!0}function dv(t,e,n){zc(t)&&n.delete(e)}function Tb(){qf=!1,Ol!==null&&zc(Ol)&&(Ol=null),Cl!==null&&zc(Cl)&&(Cl=null),Rl!==null&&zc(Rl)&&(Rl=null),wu.forEach(dv),ju.forEach(dv)}function Nc(t,e){t.blockedOn===e&&(t.blockedOn=null,qf||(qf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Tb)))}var Dc=null;function mv(t){Dc!==t&&(Dc=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Dc===t&&(Dc=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(Bf(l||n)===null)continue;break}var s=Ma(n);s!==null&&(t.splice(e,3),e-=3,po(s,{pending:!0,data:u,method:n.method,action:l},l,u))}}))}function Si(t){function e(T){return Nc(T,t)}Ol!==null&&Nc(Ol,t),Cl!==null&&Nc(Cl,t),Rl!==null&&Nc(Rl,t),wu.forEach(e),ju.forEach(e);for(var n=0;n<Al.length;n++){var l=Al[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Al.length&&(n=Al[0],n.blockedOn===null);)hv(n),n.blockedOn===null&&Al.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var u=n[l],s=n[l+1],f=u[Ae]||null;if(typeof s=="function")f||mv(n);else if(f){var g=null;if(s&&s.hasAttribute("formAction")){if(u=s,f=s[Ae]||null)g=f.formAction;else if(Bf(u)!==null)continue}else g=f.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),mv(n)}}}function yv(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=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),u!==null&&(u(),u=null)}}}function Qf(t){this._internalRoot=t}Mc.prototype.render=Qf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,l=Xe();uv(n,l,t,e,null,null)},Mc.prototype.unmount=Qf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;uv(t.current,2,null,t,null,null),yc(),e[Da]=null}};function Mc(t){this._internalRoot=t}Mc.prototype.unstable_scheduleHydration=function(t){if(t){var e=ld();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Al.length&&e!==0&&e<Al[n].priority;n++);Al.splice(n,0,t),n===0&&hv(t)}};var vv=i.version;if(vv!=="19.3.0")throw Error(r(527,vv,"19.3.0"));ht.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=S(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Eb={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:at,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xc.isDisabled&&xc.supportsFiber)try{Xi=xc.inject(Eb),He=xc}catch{}}return Qu.createRoot=function(t,e){if(!o(t))throw Error(r(299));var n=!1,l="",u=iy,s=uy,f=sy;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=av(t,1,!1,null,null,n,l,null,u,s,f,yv),t[Da]=e.current,vf(t),new Qf(e)},Qu.hydrateRoot=function(t,e,n){if(!o(t))throw Error(r(299));var l=!1,u="",s=iy,f=uy,g=sy,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=av(t,1,!0,e,n??null,l,u,T,s,f,g,yv),e.context=iv(null),n=e.current,l=Xe(),l=dr(l),u=fl(l),u.callback=null,hl(n,u,l),n=l,e.current.lanes=n,Zi(e,n),En(e),t[Da]=e.current,vf(t),new Mc(e)},Qu.version="19.3.0",Qu}var fg;function dE(){if(fg)return nh.exports;fg=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(),nh.exports=hE(),nh.exports}var mE=dE();class Rh extends Error{constructor(c,r,o){super(r);Yf(this,"status");Yf(this,"body");this.name="ApiError",this.status=c,this.body=o}get isMissingEndpoint(){return this.status===404}}async function bS(a,i){let c;try{c=await fetch(`/api/v1${a}`,{credentials:"same-origin",headers:{Accept:"application/json",...i==null?void 0:i.headers},...i})}catch(h){throw new Rh(0,`Cannot reach the server: ${String(h)}`,null)}const r=await c.text();let o=null;if(r.length>0)try{o=JSON.parse(r)}catch{o=r}if(!c.ok)throw new Rh(c.status,`${c.status} ${c.statusText}`,o);return o}function Kh(a){return bS(a)}function hg(a,i){return bS(a,{method:"POST",headers:i===void 0?{}:{"Content-Type":"application/json"},body:i===void 0?void 0:JSON.stringify(i)})}function yE(){return Kh("/health")}function vE(a=60,i=0){return Kh(`/captures?limit=${a}&offset=${i}`)}const _S=tt.createContext(null);function gE(){return Uh({queryKey:["auth","session"],queryFn:async()=>{try{return await Kh("/auth/session")}catch(a){if(a instanceof Rh&&a.status===401)return null;throw a}},retry:!1,staleTime:6e4})}function SE({children:a}){const i=Cg(),c=gE(),r=tt.useMemo(()=>{var v;return c.isPending?{status:"loading"}:(v=c.error)!=null&&v.isMissingEndpoint?{status:"unavailable"}:c.data?{status:"authenticated",user:c.data}:{status:"anonymous"}},[c.isPending,c.error,c.data]),o=tt.useCallback(async v=>{const S=await hg("/auth/login",v);i.setQueryData(["auth","session"],S)},[i]),h=tt.useCallback(async()=>{await hg("/auth/logout"),i.setQueryData(["auth","session"],null),await i.invalidateQueries()},[i]),m=tt.useCallback((...v)=>r.status==="authenticated"&&v.includes(r.user.role),[r]),d=tt.useMemo(()=>({state:r,signIn:o,signOut:h,can:m}),[r,o,h,m]);return H.jsx(_S,{value:d,children:a})}function pE(){const a=tt.useContext(_S);if(a===null)throw new Error("useAuth must be used inside <AuthProvider>");return a}const bE={"app.name":"poorBird","app.tagline":"Gartenvogel-Kamera","nav.gallery":"Galerie","nav.devices":"Geräte","nav.system":"System","common.loading":"Wird geladen…","common.retry":"Erneut versuchen","common.error":"Etwas ist schiefgelaufen","common.notMeasured":"—","common.yes":"Ja","common.no":"Nein","theme.label":"Design","theme.light":"Hell","theme.dark":"Dunkel","theme.blue":"Blau","lang.label":"Sprache","lang.en":"Englisch","lang.de":"Deutsch","auth.notEnforced":"Die Anmeldung ist noch nicht aktiv — die Auth-Endpunkte kommen in Phase 3.","auth.signIn":"Anmelden","auth.username":"Benutzername","auth.password":"Passwort","auth.totp":"Bestätigungscode","auth.totpHint":"Sechs Ziffern aus deiner Authenticator-App","auth.signingIn":"Anmeldung läuft…","auth.failed":"Anmeldung fehlgeschlagen. Benutzername und Passwort prüfen.","auth.unavailable":"Den Anmelde-Endpunkt gibt es noch nicht. Diese Seite ist die Hülle dafür.","gallery.title":"Galerie","gallery.count":"{n} Aufnahmen","gallery.preTrigger":"vor","gallery.preTrigger.hint":"Vor dem Auslöser aufgenommen, aus dem Ringpuffer der Kamera — meist die besseren Bilder, weil der Vogel noch im Anflug ist.","gallery.empty.title":"Noch keine Aufnahmen","gallery.empty.body":"Die Kamera hat noch nichts hochgeladen. Sobald sie sich registriert und ein Bild sendet, erscheint es hier.","devices.title":"Geräte","devices.empty.title":"Keine Geräte registriert","devices.empty.body":"Eine Kamera erscheint hier, sobald sie sich registriert hat. Das kommt in Phase 2.","system.title":"System","system.status":"Status","system.status.ok":"In Ordnung","system.status.degraded":"Eingeschränkt","system.version":"Version","system.uptime":"Laufzeit","system.database":"Datenbank","system.database.ok":"Verbunden","system.database.down":"Nicht erreichbar","system.devices":"Geräte","system.captures":"Aufnahmen","system.lastBackup":"Letzte Sicherung","system.lastBackup.never":"Nie","system.disk":"Bildspeicher","system.disk.free":"{free} frei von {total}","system.disk.unavailable":"Pfad nicht verfügbar","system.enrollSecret":"Registrierungs-Secret","system.enrollSecret.set":"Konfiguriert","system.enrollSecret.unset":"Nicht gesetzt","system.unreachable.title":"Server nicht erreichbar","system.unreachable.body":"Die API hat nicht geantwortet. Läuft sie auf Port 8090?"},_E={"app.name":"poorBird","app.tagline":"Garden bird camera","nav.gallery":"Gallery","nav.devices":"Devices","nav.system":"System","common.loading":"Loading…","common.retry":"Try again","common.error":"Something went wrong","common.notMeasured":"—","common.yes":"Yes","common.no":"No","theme.label":"Theme","theme.light":"Light","theme.dark":"Dark","theme.blue":"Blue","lang.label":"Language","lang.en":"English","lang.de":"German","auth.notEnforced":"Sign-in is not enforced yet — the auth endpoints arrive in Phase 3.","auth.signIn":"Sign in","auth.username":"Username","auth.password":"Password","auth.totp":"Authentication code","auth.totpHint":"Six digits from your authenticator app","auth.signingIn":"Signing in…","auth.failed":"Sign-in failed. Check your username and password.","auth.unavailable":"The sign-in endpoint does not exist yet. This screen is the shell it will use.","gallery.title":"Gallery","gallery.count":"{n} captures","gallery.preTrigger":"pre","gallery.preTrigger.hint":"Captured before the trigger fired, from the camera's ring buffer — usually the better frames, because the bird is still arriving.","gallery.empty.title":"No captures yet","gallery.empty.body":"The camera has not uploaded anything. Once it enrolls and posts a frame, it appears here.","devices.title":"Devices","devices.empty.title":"No devices enrolled","devices.empty.body":"A camera appears here after it enrolls. Enrollment arrives in Phase 2.","system.title":"System","system.status":"Status","system.status.ok":"Healthy","system.status.degraded":"Degraded","system.version":"Version","system.uptime":"Uptime","system.database":"Database","system.database.ok":"Connected","system.database.down":"Unreachable","system.devices":"Devices","system.captures":"Captures","system.lastBackup":"Last backup","system.lastBackup.never":"Never","system.disk":"Image storage","system.disk.free":"{free} free of {total}","system.disk.unavailable":"Path not available","system.enrollSecret":"Enrollment secret","system.enrollSecret.set":"Configured","system.enrollSecret.unset":"Not set","system.unreachable.title":"Cannot reach the server","system.unreachable.body":"The API did not respond. Is it running on port 8090?"},TS=["de","en"],TE={de:bE,en:_E},ES="poorbird.locale",OS=tt.createContext(null);function EE(a){return typeof a=="string"&&TS.includes(a)}function OE(){try{const a=localStorage.getItem(ES);if(EE(a))return a}catch{}return navigator.language.toLowerCase().startsWith("de")?"de":"en"}function CE(a,i){return i?a.replace(/\{(\w+)\}/g,(c,r)=>{const o=i[r];return o===void 0?c:String(o)}):a}function RE({children:a}){const[i,c]=tt.useState(OE);tt.useEffect(()=>{document.documentElement.lang=i;try{localStorage.setItem(ES,i)}catch{}},[i]);const r=tt.useCallback(m=>c(m),[]),o=tt.useCallback((m,d)=>CE(TE[i][m],d),[i]),h=tt.useMemo(()=>({locale:i,setLocale:r,t:o}),[i,r,o]);return H.jsx(OS,{value:h,children:a})}function Zh(){const a=tt.useContext(OS);if(a===null)throw new Error("useI18n must be used inside <I18nProvider>");return a}function Gi(){return Zh().t}const AE={de:"lang.de",en:"lang.en"};function zE(){const{locale:a,setLocale:i,t:c}=Zh();return H.jsxs("label",{className:"picker",children:[H.jsx("span",{className:"visually-hidden",children:c("lang.label")}),H.jsx("select",{className:"select",value:a,onChange:r=>i(r.target.value),children:TS.map(r=>H.jsx("option",{value:r,children:c(AE[r])},r))})]})}const CS=["light","dark","blue"],NE="poorbird.theme",RS=tt.createContext(null);function DE(a){return typeof a=="string"&&CS.includes(a)}function ME(){const a=document.documentElement.getAttribute("data-theme");return DE(a)?a:"blue"}function xE({children:a}){const[i,c]=tt.useState(ME);tt.useEffect(()=>{document.documentElement.setAttribute("data-theme",i);try{localStorage.setItem(NE,i)}catch{}},[i]);const r=tt.useCallback(h=>c(h),[]),o=tt.useMemo(()=>({theme:i,setTheme:r}),[i,r]);return H.jsx(RS,{value:o,children:a})}function UE(){const a=tt.useContext(RS);if(a===null)throw new Error("useTheme must be used inside <ThemeProvider>");return a}const wE={light:"theme.light",dark:"theme.dark",blue:"theme.blue"};function jE(){const a=Gi(),{theme:i,setTheme:c}=UE();return H.jsxs("label",{className:"picker",children:[H.jsx("span",{className:"visually-hidden",children:a("theme.label")}),H.jsx("select",{className:"select",value:i,onChange:r=>c(r.target.value),children:CS.map(r=>H.jsx("option",{value:r,children:a(wE[r])},r))})]})}function HE(){const a=Gi(),{state:i}=pE();return H.jsxs("div",{className:"app",children:[H.jsxs("header",{className:"header",children:[H.jsxs(Ti,{to:"/",className:"brand",children:[H.jsx("span",{className:"brand-mark","aria-hidden":"true"}),H.jsx("span",{className:"brand-name",children:a("app.name")})]}),H.jsxs("nav",{className:"nav",children:[H.jsx(Ti,{to:"/",className:"nav-link",activeProps:{className:"nav-link is-active"},children:a("nav.gallery")}),H.jsx(Ti,{to:"/devices",className:"nav-link",activeProps:{className:"nav-link is-active"},children:a("nav.devices")}),H.jsx(Ti,{to:"/system",className:"nav-link",activeProps:{className:"nav-link is-active"},children:a("nav.system")})]}),H.jsxs("div",{className:"header-tools",children:[H.jsx(zE,{}),H.jsx(jE,{})]})]}),i.status!=="authenticated"&&H.jsx("p",{className:"banner",role:"status",children:a("auth.notEnforced")}),H.jsx("main",{className:"main",children:H.jsx(SS,{})})]})}function AS({title:a,body:i,action:c}){return H.jsxs("div",{className:"empty-state",children:[H.jsx("h2",{className:"empty-title",children:a}),H.jsx("p",{className:"empty-body",children:i}),c]})}function LE(){const a=Gi();return H.jsxs("section",{children:[H.jsx("h1",{className:"page-title",children:a("devices.title")}),H.jsx(AS,{title:a("devices.empty.title"),body:a("devices.empty.body")})]})}function BE({capture:a,locale:i}){const c=Gi(),r=new Date(a.captured_at_device??a.received_at);return H.jsxs("a",{className:"tile",href:a.image_url,target:"_blank",rel:"noreferrer",children:[H.jsxs("div",{className:"tile-frame",children:[a.thumb_url===null?H.jsx("img",{className:"tile-img",src:a.image_url,alt:"",loading:"lazy"}):H.jsx("img",{className:"tile-img",src:a.thumb_url,alt:"",loading:"lazy"}),a.pre_trigger&&H.jsx("span",{className:"tile-badge",title:c("gallery.preTrigger.hint"),children:c("gallery.preTrigger")})]}),H.jsxs("div",{className:"tile-meta",children:[H.jsx("span",{children:r.toLocaleString(i)}),H.jsx("span",{className:"muted",children:a.trigger})]})]})}function qE(){const a=Gi(),{locale:i}=Zh(),{data:c,isPending:r,error:o}=Uh({queryKey:["captures"],queryFn:()=>vE(60),refetchInterval:3e4});return H.jsxs("section",{children:[H.jsx("h1",{className:"page-title",children:a("gallery.title")}),r&&H.jsx("p",{className:"muted",children:a("common.loading")}),o!==null&&!r&&H.jsx("p",{className:"alert alert-danger",children:a("common.error")}),c!==void 0&&(c.items.length===0?H.jsx(AS,{title:a("gallery.empty.title"),body:a("gallery.empty.body")}):H.jsxs(H.Fragment,{children:[H.jsx("p",{className:"muted gallery-count",children:a("gallery.count",{n:c.total})}),H.jsx("div",{className:"grid",children:c.items.map(h=>H.jsx(BE,{capture:h,locale:i},h.id))})]}))]})}function dg(a){if(a===void 0)return"—";const i=["B","KB","MB","GB","TB"];let c=a,r=0;for(;c>=1024&&r<i.length-1;)c/=1024,r+=1;return`${c.toFixed(c<10&&r>0?1:0)} ${i[r]}`}function QE(a){const i=Math.floor(a);if(i<60)return`${i}s`;const c=Math.floor(i/60);if(c<60)return`${c}m ${i%60}s`;const r=Math.floor(c/60);return r<24?`${r}h ${c%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function Jn({label:a,children:i}){return H.jsxs("div",{className:"row",children:[H.jsx("dt",{className:"row-label",children:a}),H.jsx("dd",{className:"row-value",children:i})]})}function YE({health:a,t:i}){const c=a.database.ok;return H.jsxs(H.Fragment,{children:[H.jsx("div",{className:"card",children:H.jsxs("dl",{className:"rows",children:[H.jsx(Jn,{label:i("system.status"),children:H.jsx("span",{className:c?"pill pill-ok":"pill pill-warn",children:a.status==="ok"?i("system.status.ok"):i("system.status.degraded")})}),H.jsx(Jn,{label:i("system.version"),children:H.jsx("code",{children:a.version})}),H.jsx(Jn,{label:i("system.uptime"),children:QE(a.uptime_s)}),H.jsx(Jn,{label:i("system.enrollSecret"),children:a.enroll_secret_configured?i("system.enrollSecret.set"):H.jsx("span",{className:"warn",children:i("system.enrollSecret.unset")})})]})}),H.jsx("div",{className:"card",children:H.jsxs("dl",{className:"rows",children:[H.jsxs(Jn,{label:i("system.database"),children:[H.jsx("span",{className:c?"pill pill-ok":"pill pill-danger",children:i(c?"system.database.ok":"system.database.down")}),a.database.error!==null&&H.jsx("div",{className:"mono-small",children:a.database.error})]}),H.jsx(Jn,{label:i("system.devices"),children:a.database.devices??"—"}),H.jsx(Jn,{label:i("system.captures"),children:a.database.captures??"—"}),H.jsx(Jn,{label:i("system.lastBackup"),children:a.database.last_backup_at?new Date(a.database.last_backup_at).toLocaleString():H.jsx("span",{className:"muted",children:i("system.lastBackup.never")})})]})}),H.jsx("div",{className:"card",children:H.jsx("dl",{className:"rows",children:H.jsx(Jn,{label:i("system.disk"),children:a.disk.available?H.jsxs(H.Fragment,{children:[i("system.disk.free",{free:dg(a.disk.free_bytes),total:dg(a.disk.total_bytes)}),H.jsx("div",{className:"mono-small",children:a.disk.path})]}):H.jsx("span",{className:"warn",children:i("system.disk.unavailable")})})})})]})}function GE(){const a=Gi(),{data:i,error:c,isPending:r,refetch:o}=Uh({queryKey:["health"],queryFn:yE,refetchInterval:15e3,retry:!1});return H.jsxs("section",{children:[H.jsx("h1",{className:"page-title",children:a("system.title")}),r&&H.jsx("p",{className:"muted",children:a("common.loading")}),c!==null&&!r&&H.jsxs("div",{className:"card",children:[H.jsx("h2",{className:"empty-title",children:a("system.unreachable.title")}),H.jsx("p",{className:"empty-body",children:a("system.unreachable.body")}),H.jsx("button",{className:"button",onClick:()=>void o(),children:a("common.retry")})]}),i!==void 0&&H.jsx(YE,{health:i,t:a})]})}const lr=kT({component:HE}),VE=Xh({getParentRoute:()=>lr,path:"/",component:qE}),XE=Xh({getParentRoute:()=>lr,path:"/devices",component:LE}),KE=Xh({getParentRoute:()=>lr,path:"/system",component:GE}),ZE=lr.addChildren([VE,XE,KE]),JE=aE({routeTree:ZE}),FE=new l_({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:3e4,retry:1}}}),zS=document.getElementById("root");if(zS===null)throw new Error("#root is missing from index.html");mE.createRoot(zS).render(H.jsx(tt.StrictMode,{children:H.jsx(Mb,{client:FE,children:H.jsx(RE,{children:H.jsx(xE,{children:H.jsx(SE,{children:H.jsx(sE,{router:JE})})})})})}));
|
|
//# sourceMappingURL=index-BVNc27iK.js.map
|