@cardor/agent-harness-kit 1.8.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const f of r)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function o(r){const f={};return r.integrity&&(f.integrity=r.integrity),r.referrerPolicy&&(f.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?f.credentials="include":r.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(r){if(r.ep)return;r.ep=!0;const f=o(r);fetch(r.href,f)}})();function Ng(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var qc={exports:{}},bi={};var Em;function zg(){if(Em)return bi;Em=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(c,r,f){var m=null;if(f!==void 0&&(m=""+f),r.key!==void 0&&(m=""+r.key),"key"in r){f={};for(var x in r)x!=="key"&&(f[x]=r[x])}else f=r;return r=f.ref,{$$typeof:a,type:c,key:m,ref:r!==void 0?r:null,props:f}}return bi.Fragment=i,bi.jsx=o,bi.jsxs=o,bi}var Mm;function Dg(){return Mm||(Mm=1,qc.exports=zg()),qc.exports}var h=Dg(),Li=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(){}},wg=class extends Li{#t;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},yr=new wg,Lg={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},Ug=class{#t=Lg;#e=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,i){return this.#t.setTimeout(a,i)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,i){return this.#t.setInterval(a,i)}clearInterval(a){this.#t.clearInterval(a)}},_a=new Ug;function Bg(a){setTimeout(a,0)}var Hg=typeof window>"u"||"Deno"in globalThis;function he(){}function qg(a,i){return typeof a=="function"?a(i):a}function lr(a){return typeof a=="number"&&a>=0&&a!==1/0}function bp(a,i){return Math.max(a+(i||0)-Date.now(),0)}function In(a,i){return typeof a=="function"?a(i):a}function Ee(a,i){return typeof a=="function"?a(i):a}function jm(a,i){const{type:o="all",exact:c,fetchStatus:r,predicate:f,queryKey:m,stale:x}=a;if(m){if(c){if(i.queryHash!==gr(m,i.options))return!1}else if(!Ci(i.queryKey,m))return!1}if(o!=="all"){const v=i.isActive();if(o==="active"&&!v||o==="inactive"&&v)return!1}return!(typeof x=="boolean"&&i.isStale()!==x||r&&r!==i.state.fetchStatus||f&&!f(i))}function Cm(a,i){const{exact:o,status:c,predicate:r,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(o){if(ji(i.options.mutationKey)!==ji(f))return!1}else if(!Ci(i.options.mutationKey,f))return!1}return!(c&&i.state.status!==c||r&&!r(i))}function gr(a,i){return(i?.queryKeyHashFn||ji)(a)}function ji(a){return JSON.stringify(a,(i,o)=>sr(o)?Object.keys(o).sort().reduce((c,r)=>(c[r]=o[r],c),{}):o)}function Ci(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(o=>Ci(a[o],i[o])):!1}var Qg=Object.prototype.hasOwnProperty;function Sp(a,i,o=0){if(a===i)return a;if(o>500)return i;const c=Am(a)&&Am(i);if(!c&&!(sr(a)&&sr(i)))return i;const f=(c?a:Object.keys(a)).length,m=c?i:Object.keys(i),x=m.length,v=c?new Array(x):{};let y=0;for(let b=0;b<x;b++){const p=c?b:m[b],S=a[p],_=i[p];if(S===_){v[p]=S,(c?b<f:Qg.call(a,p))&&y++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){v[p]=_;continue}const M=Sp(S,_,o+1);v[p]=M,M===S&&y++}return f===x&&y===f?a:v}function ir(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const o in a)if(a[o]!==i[o])return!1;return!0}function Am(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function sr(a){if(!Om(a))return!1;const i=a.constructor;if(i===void 0)return!0;const o=i.prototype;return!(!Om(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Om(a){return Object.prototype.toString.call(a)==="[object Object]"}function Yg(a){return new Promise(i=>{_a.setTimeout(i,a)})}function or(a,i,o){return typeof o.structuralSharing=="function"?o.structuralSharing(a,i):o.structuralSharing!==!1?Sp(a,i):i}function Gg(a,i,o=0){const c=[...a,i];return o&&c.length>o?c.slice(1):c}function Xg(a,i,o=0){const c=[i,...a];return o&&c.length>o?c.slice(0,-1):c}var xr=Symbol();function _p(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===xr?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function Tp(a,i){return typeof a=="function"?a(...i):!!a}function Vg(a,i,o){let c=!1,r;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(r??=i(),c||(c=!0,r.aborted?o():r.addEventListener("abort",o,{once:!0})),r)}),a}var Ai=(()=>{let a=()=>Hg;return{isServer(){return a()},setIsServer(i){a=i}}})();function ur(){let a,i;const o=new Promise((r,f)=>{a=r,i=f});o.status="pending",o.catch(()=>{});function c(r){Object.assign(o,r),delete o.resolve,delete o.reject}return o.resolve=r=>{c({status:"fulfilled",value:r}),a(r)},o.reject=r=>{c({status:"rejected",reason:r}),i(r)},o}var Kg=Bg;function Zg(){let a=[],i=0,o=x=>{x()},c=x=>{x()},r=Kg;const f=x=>{i?a.push(x):r(()=>{o(x)})},m=()=>{const x=a;a=[],x.length&&r(()=>{c(()=>{x.forEach(v=>{o(v)})})})};return{batch:x=>{let v;i++;try{v=x()}finally{i--,i||m()}return v},batchCalls:x=>(...v)=>{f(()=>{x(...v)})},schedule:f,setNotifyFunction:x=>{o=x},setBatchNotifyFunction:x=>{c=x},setScheduler:x=>{r=x}}}var ee=Zg(),kg=class extends Li{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a(!0),o=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(this.setOnline.bind(this))}setOnline(a){this.#t!==a&&(this.#t=a,this.listeners.forEach(o=>{o(a)}))}isOnline(){return this.#t}},ho=new kg;function Jg(a){return Math.min(1e3*2**a,3e4)}function Rp(a){return(a??"online")==="online"?ho.isOnline():!0}var cr=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function Ep(a){let i=!1,o=0,c;const r=ur(),f=()=>r.status!=="pending",m=C=>{if(!f()){const D=new cr(C);S(D),a.onCancel?.(D)}},x=()=>{i=!0},v=()=>{i=!1},y=()=>yr.isFocused()&&(a.networkMode==="always"||ho.isOnline())&&a.canRun(),b=()=>Rp(a.networkMode)&&a.canRun(),p=C=>{f()||(c?.(),r.resolve(C))},S=C=>{f()||(c?.(),r.reject(C))},_=()=>new Promise(C=>{c=D=>{(f()||y())&&C(D)},a.onPause?.()}).then(()=>{c=void 0,f()||a.onContinue?.()}),M=()=>{if(f())return;let C;const D=o===0?a.initialPromise:void 0;try{C=D??a.fn()}catch(w){C=Promise.reject(w)}Promise.resolve(C).then(p).catch(w=>{if(f())return;const N=a.retry??(Ai.isServer()?0:3),G=a.retryDelay??Jg,X=typeof G=="function"?G(o,w):G,K=N===!0||typeof N=="number"&&o<N||typeof N=="function"&&N(o,w);if(i||!K){S(w);return}o++,a.onFail?.(o,w),Yg(X).then(()=>y()?void 0:_()).then(()=>{i?S(w):M()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(c?.(),r),cancelRetry:x,continueRetry:v,canStart:b,start:()=>(b()?M():_().then(M),r)}}var Mp=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lr(this.gcTime)&&(this.#t=_a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Ai.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(_a.clearTimeout(this.#t),this.#t=void 0)}};function Fg(a){return{onFetch:(i,o)=>{const c=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let x={pages:[],pageParams:[]},v=0;const y=async()=>{let b=!1;const p=M=>{Vg(M,()=>i.signal,()=>b=!0)},S=_p(i.options,i.fetchOptions),_=async(M,C,D)=>{if(b)return Promise.reject(i.signal.reason);if(C==null&&M.pages.length)return Promise.resolve(M);const N=(()=>{const P={client:i.client,queryKey:i.queryKey,pageParam:C,direction:D?"backward":"forward",meta:i.options.meta};return p(P),P})(),G=await S(N),{maxPages:X}=i.options,K=D?Xg:Gg;return{pages:K(M.pages,G,X),pageParams:K(M.pageParams,C,X)}};if(r&&f.length){const M=r==="backward",C=M?Pg:Nm,D={pages:f,pageParams:m},w=C(c,D);x=await _(D,w,M)}else{const M=a??f.length;do{const C=v===0?m[0]??c.initialPageParam:Nm(c,x);if(v>0&&C==null)break;x=await _(x,C),v++}while(v<M)}return x};i.options.persister?i.fetchFn=()=>i.options.persister?.(y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},o):i.fetchFn=y}}}function Nm(a,{pages:i,pageParams:o}){const c=i.length-1;return i.length>0?a.getNextPageParam(i[c],i,o[c],o):void 0}function Pg(a,{pages:i,pageParams:o}){return i.length>0?a.getPreviousPageParam?.(i[0],i,o[0],o):void 0}var $g=class extends Mp{#t;#e;#n;#a;#i;#l;#o;#s;constructor(a){super(),this.#s=!1,this.#o=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#i=a.client,this.#a=this.#i.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=Dm(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#l?.promise}setOptions(a){if(this.options={...this.#o,...a},a?._type&&(this.#t=a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Dm(this.options);i.data!==void 0&&(this.setState(zm(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(a,i){const o=or(this.state.data,a,this.options);return this.#u({data:o,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),o}setState(a){this.#u({type:"setState",state:a})}cancel(a){const i=this.#l?.promise;return this.#l?.cancel(a),i?i.then(he).catch(he):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>Ee(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>In(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!bp(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#l&&(this.#s||this.#r()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(a&&this.setOptions(a),!this.options.queryFn){const v=this.observers.find(y=>y.options.queryFn);v&&this.setOptions(v.options)}const o=new AbortController,c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(this.#s=!0,o.signal)})},r=()=>{const v=_p(this.options,i),b=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return c(p),p})();return this.#s=!1,this.options.persister?this.options.persister(v,b,this):v(b)},m=(()=>{const v={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return c(v),v})();(this.#t==="infinite"?Fg(this.options.pages):this.options.behavior)?.onFetch(m,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#u({type:"fetch",meta:m.fetchOptions?.meta}),this.#l=Ep({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:v=>{v instanceof cr&&v.revert&&this.setState({...this.#n,fetchStatus:"idle"}),o.abort()},onFail:(v,y)=>{this.#u({type:"failed",failureCount:v,error:y})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const v=await this.#l.start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),this.#a.config.onSuccess?.(v,this),this.#a.config.onSettled?.(v,this.state.error,this),v}catch(v){if(v instanceof cr){if(v.silent)return this.#l.promise;if(v.revert){if(this.state.data===void 0)throw v;return this.state.data}}throw this.#u({type:"error",error:v}),this.#a.config.onError?.(v,this),this.#a.config.onSettled?.(this.state.data,v,this),v}finally{this.scheduleGc()}}#u(a){const i=o=>{switch(a.type){case"failed":return{...o,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...jp(o.data,this.options),fetchMeta:a.meta??null};case"success":const c={...o,...zm(a.data,a.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?c:void 0,c;case"error":const r=a.error;return{...o,error:r,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...a.state}}};this.state=i(this.state),ee.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:a})})}};function jp(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Rp(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function zm(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Dm(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,o=i!==void 0,c=o?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:o?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var Wg=class extends Li{constructor(a,i){super(),this.options=i,this.#t=a,this.#s=null,this.#o=ur(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#o;#s;#r;#u;#m;#f;#d;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),wm(this.#e,this.options)?this.#h():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rr(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rr(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#e.removeObserver(this)}setOptions(a){const i=this.options,o=this.#e;if(this.options=this.#t.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ee(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),i._defaulted&&!ir(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const c=this.hasListeners();c&&Lm(this.#e,o,this.options,i)&&this.#h(),this.updateResult(),c&&(this.#e!==o||Ee(this.options.enabled,this.#e)!==Ee(i.enabled,this.#e)||In(this.options.staleTime,this.#e)!==In(i.staleTime,this.#e))&&this.#v();const r=this.#y();c&&(this.#e!==o||Ee(this.options.enabled,this.#e)!==Ee(i.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(a){const i=this.#t.getQueryCache().build(this.#t,a),o=this.createResult(i,a);return t0(this,o)&&(this.#a=o,this.#l=this.options,this.#i=this.#e.state),o}getCurrentResult(){return this.#a}trackResult(a,i){return new Proxy(a,{get:(o,c)=>(this.trackProp(c),i?.(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,c))})}trackProp(a){this.#p.add(a)}getCurrentQuery(){return this.#e}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#t.defaultQueryOptions(a),o=this.#t.getQueryCache().build(this.#t,i);return o.fetch().then(()=>this.createResult(o,i))}fetch(a){return this.#h({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(a){this.#_();let i=this.#e.fetch(this.options,a);return a?.throwOnError||(i=i.catch(he)),i}#v(){this.#b();const a=In(this.options.staleTime,this.#e);if(Ai.isServer()||this.#a.isStale||!lr(a))return;const o=bp(this.#a.dataUpdatedAt,a)+1;this.#f=_a.setTimeout(()=>{this.#a.isStale||this.updateResult()},o)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(a){this.#S(),this.#c=a,!(Ai.isServer()||Ee(this.options.enabled,this.#e)===!1||!lr(this.#c)||this.#c===0)&&(this.#d=_a.setInterval(()=>{(this.options.refetchIntervalInBackground||yr.isFocused())&&this.#h()},this.#c))}#x(){this.#v(),this.#g(this.#y())}#b(){this.#f!==void 0&&(_a.clearTimeout(this.#f),this.#f=void 0)}#S(){this.#d!==void 0&&(_a.clearInterval(this.#d),this.#d=void 0)}createResult(a,i){const o=this.#e,c=this.options,r=this.#a,f=this.#i,m=this.#l,v=a!==o?a.state:this.#n,{state:y}=a;let b={...y},p=!1,S;if(i._optimisticResults){const V=this.hasListeners(),F=!V&&wm(a,i),it=V&&Lm(a,o,i,c);(F||it)&&(b={...b,...jp(y.data,a.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:M,status:C}=b;S=b.data;let D=!1;if(i.placeholderData!==void 0&&S===void 0&&C==="pending"){let V;r?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(V=r.data,D=!0):V=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,V!==void 0&&(C="success",S=or(r?.data,V,i),p=!0)}if(i.select&&S!==void 0&&!D)if(r&&S===f?.data&&i.select===this.#r)S=this.#u;else try{this.#r=i.select,S=i.select(S),S=or(r?.data,S,i),this.#u=S,this.#s=null}catch(V){this.#s=V}this.#s&&(_=this.#s,S=this.#u,M=Date.now(),C="error");const w=b.fetchStatus==="fetching",N=C==="pending",G=C==="error",X=N&&w,K=S!==void 0,H={status:C,fetchStatus:b.fetchStatus,isPending:N,isSuccess:C==="success",isError:G,isInitialLoading:X,isLoading:X,data:S,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:M,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:w,isRefetching:w&&!N,isLoadingError:G&&!K,isPaused:b.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:G&&K,isStale:br(a,i),refetch:this.refetch,promise:this.#o,isEnabled:Ee(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const V=H.data!==void 0,F=H.status==="error"&&!V,it=Lt=>{F?Lt.reject(H.error):V&&Lt.resolve(H.data)},at=()=>{const Lt=this.#o=H.promise=ur();it(Lt)},et=this.#o;switch(et.status){case"pending":a.queryHash===o.queryHash&&it(et);break;case"fulfilled":(F||H.data!==et.value)&&at();break;case"rejected":(!F||H.error!==et.reason)&&at();break}}return H}updateResult(){const a=this.#a,i=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#l=this.options,this.#i.data!==void 0&&(this.#m=this.#e),ir(i,a))return;this.#a=i;const o=()=>{if(!a)return!0;const{notifyOnChangeProps:c}=this.options,r=typeof c=="function"?c():c;if(r==="all"||!r&&!this.#p.size)return!0;const f=new Set(r??this.#p);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(m=>{const x=m;return this.#a[x]!==a[x]&&f.has(x)})};this.#T({listeners:o()})}#_(){const a=this.#t.getQueryCache().build(this.#t,this.options);if(a===this.#e)return;const i=this.#e;this.#e=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#T(a){ee.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Ig(a,i){return Ee(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Ee(i.retryOnMount,a)===!1)}function wm(a,i){return Ig(a,i)||a.state.data!==void 0&&rr(a,i,i.refetchOnMount)}function rr(a,i,o){if(Ee(i.enabled,a)!==!1&&In(i.staleTime,a)!=="static"){const c=typeof o=="function"?o(a):o;return c==="always"||c!==!1&&br(a,i)}return!1}function Lm(a,i,o,c){return(a!==i||Ee(c.enabled,a)===!1)&&(!o.suspense||a.state.status!=="error")&&br(a,o)}function br(a,i){return Ee(i.enabled,a)!==!1&&a.isStaleByTime(In(i.staleTime,a))}function t0(a,i){return!ir(a.getCurrentResult(),i)}var e0=class extends Mp{#t;#e;#n;#a;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#n=a.mutationCache,this.#e=[],this.state=a.state||n0(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#i({type:"continue"})},o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=Ep({fn:()=>this.options.mutationFn?this.options.mutationFn(a,o):Promise.reject(new Error("No mutationFn found")),onFail:(f,m)=>{this.#i({type:"failed",failureCount:f,error:m})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const c=this.state.status==="pending",r=!this.#a.canStart();try{if(c)i();else{this.#i({type:"pending",variables:a,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(a,this,o);const m=await this.options.onMutate?.(a,o);m!==this.state.context&&this.#i({type:"pending",context:m,variables:a,isPaused:r})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,a,this.state.context,this,o),await this.options.onSuccess?.(f,a,this.state.context,o),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(f,null,a,this.state.context,o),this.#i({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,a,this.state.context,this,o)}catch(m){Promise.reject(m)}try{await this.options.onError?.(f,a,this.state.context,o)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,o)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,f,a,this.state.context,o)}catch(m){Promise.reject(m)}throw this.#i({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#i(a){const i=o=>{switch(a.type){case"failed":return{...o,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...o,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:a.error,failureCount:o.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ee.batch(()=>{this.#e.forEach(o=>{o.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function n0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var a0=class extends Li{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(a,i,o){const c=new e0({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:o});return this.add(c),c}add(a){this.#t.add(a);const i=eo(a);if(typeof i=="string"){const o=this.#e.get(i);o?o.push(a):this.#e.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=eo(a);if(typeof i=="string"){const o=this.#e.get(i);if(o)if(o.length>1){const c=o.indexOf(a);c!==-1&&o.splice(c,1)}else o[0]===a&&this.#e.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=eo(a);if(typeof i=="string"){const c=this.#e.get(i)?.find(r=>r.state.status==="pending");return!c||c===a}else return!0}runNext(a){const i=eo(a);return typeof i=="string"?this.#e.get(i)?.find(c=>c!==a&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ee.batch(()=>{this.#t.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(a){const i={exact:!0,...a};return this.getAll().find(o=>Cm(i,o))}findAll(a={}){return this.getAll().filter(i=>Cm(a,i))}notify(a){ee.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return ee.batch(()=>Promise.all(a.map(i=>i.continue().catch(he))))}};function eo(a){return a.options.scope?.id}var l0=class extends Li{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,o){const c=i.queryKey,r=i.queryHash??gr(c,i);let f=this.get(r);return f||(f=new $g({client:a,queryKey:c,queryHash:r,options:a.defaultQueryOptions(i),state:o,defaultOptions:a.getQueryDefaults(c)}),this.add(f)),f}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#t.get(a.queryHash);i&&(a.destroy(),i===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){ee.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(o=>jm(i,o))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(o=>jm(a,o)):i}notify(a){ee.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){ee.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){ee.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},i0=class{#t;#e;#n;#a;#i;#l;#o;#s;constructor(a={}){this.#t=a.queryCache||new l0,this.#e=a.mutationCache||new a0,this.#n=a.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#o=yr.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=ho.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#e.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),o=this.#t.build(this,i),c=o.state.data;return c===void 0?this.fetchQuery(a):(a.revalidateIfStale&&o.isStaleByTime(In(i.staleTime,o))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:o})=>{const c=o.data;return[i,c]})}setQueryData(a,i,o){const c=this.defaultQueryOptions({queryKey:a}),f=this.#t.get(c.queryHash)?.state.data,m=qg(i,f);if(m!==void 0)return this.#t.build(this,c).setData(m,{...o,manual:!0})}setQueriesData(a,i,o){return ee.batch(()=>this.#t.findAll(a).map(({queryKey:c})=>[c,this.setQueryData(c,i,o)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state}removeQueries(a){const i=this.#t;ee.batch(()=>{i.findAll(a).forEach(o=>{i.remove(o)})})}resetQueries(a,i){const o=this.#t;return ee.batch(()=>(o.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const o={revert:!0,...i},c=ee.batch(()=>this.#t.findAll(a).map(r=>r.cancel(o)));return Promise.all(c).then(he).catch(he)}invalidateQueries(a,i={}){return ee.batch(()=>(this.#t.findAll(a).forEach(o=>{o.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const o={...i,cancelRefetch:i.cancelRefetch??!0},c=ee.batch(()=>this.#t.findAll(a).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let f=r.fetch(void 0,o);return o.throwOnError||(f=f.catch(he)),r.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(c).then(he)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const o=this.#t.build(this,i);return o.isStaleByTime(In(i.staleTime,o))?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(he).catch(he)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(he).catch(he)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return ho.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#a.set(ji(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#a.values()],o={};return i.forEach(c=>{Ci(a,c.queryKey)&&Object.assign(o,c.defaultOptions)}),o}setMutationDefaults(a,i){this.#i.set(ji(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#i.values()],o={};return i.forEach(c=>{Ci(a,c.mutationKey)&&Object.assign(o,c.defaultOptions)}),o}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=gr(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===xr&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Qc={exports:{}},ot={};var Um;function s0(){if(Um)return ot;Um=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),S=Symbol.iterator;function _(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function w(E,Q,k){this.props=E,this.context=Q,this.refs=D,this.updater=k||M}w.prototype.isReactComponent={},w.prototype.setState=function(E,Q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Q,"setState")},w.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function N(){}N.prototype=w.prototype;function G(E,Q,k){this.props=E,this.context=Q,this.refs=D,this.updater=k||M}var X=G.prototype=new N;X.constructor=G,C(X,w.prototype),X.isPureReactComponent=!0;var K=Array.isArray;function P(){}var H={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function F(E,Q,k){var $=k.ref;return{$$typeof:a,type:E,key:Q,ref:$!==void 0?$:null,props:k}}function it(E,Q){return F(E.type,Q,E.props)}function at(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function et(E){var Q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(k){return Q[k]})}var Lt=/\/+/g;function zt(E,Q){return typeof E=="object"&&E!==null&&E.key!=null?et(""+E.key):Q.toString(36)}function Ht(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(P,P):(E.status="pending",E.then(function(Q){E.status==="pending"&&(E.status="fulfilled",E.value=Q)},function(Q){E.status==="pending"&&(E.status="rejected",E.reason=Q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,Q,k,$,tt){var rt=typeof E;(rt==="undefined"||rt==="boolean")&&(E=null);var vt=!1;if(E===null)vt=!0;else switch(rt){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(E.$$typeof){case a:case i:vt=!0;break;case b:return vt=E._init,U(vt(E._payload),Q,k,$,tt)}}if(vt)return tt=tt(E),vt=$===""?"."+zt(E,0):$,K(tt)?(k="",vt!=null&&(k=vt.replace(Lt,"$&/")+"/"),U(tt,Q,k,"",function(tn){return tn})):tt!=null&&(at(tt)&&(tt=it(tt,k+(tt.key==null||E&&E.key===tt.key?"":(""+tt.key).replace(Lt,"$&/")+"/")+vt)),Q.push(tt)),1;vt=0;var qt=$===""?".":$+":";if(K(E))for(var jt=0;jt<E.length;jt++)$=E[jt],rt=qt+zt($,jt),vt+=U($,Q,k,rt,tt);else if(jt=_(E),typeof jt=="function")for(E=jt.call(E),jt=0;!($=E.next()).done;)$=$.value,rt=qt+zt($,jt++),vt+=U($,Q,k,rt,tt);else if(rt==="object"){if(typeof E.then=="function")return U(Ht(E),Q,k,$,tt);throw Q=String(E),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return vt}function Z(E,Q,k){if(E==null)return E;var $=[],tt=0;return U(E,$,"","",function(rt){return Q.call(k,rt,tt++)}),$}function lt(E){if(E._status===-1){var Q=E._result;Q=Q(),Q.then(function(k){(E._status===0||E._status===-1)&&(E._status=1,E._result=k)},function(k){(E._status===0||E._status===-1)&&(E._status=2,E._result=k)}),E._status===-1&&(E._status=0,E._result=Q)}if(E._status===1)return E._result.default;throw E._result}var xt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},St={map:Z,forEach:function(E,Q,k){Z(E,function(){Q.apply(this,arguments)},k)},count:function(E){var Q=0;return Z(E,function(){Q++}),Q},toArray:function(E){return Z(E,function(Q){return Q})||[]},only:function(E){if(!at(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ot.Activity=p,ot.Children=St,ot.Component=w,ot.Fragment=o,ot.Profiler=r,ot.PureComponent=G,ot.StrictMode=c,ot.Suspense=v,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ot.__COMPILER_RUNTIME={__proto__:null,c:function(E){return H.H.useMemoCache(E)}},ot.cache=function(E){return function(){return E.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(E,Q,k){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var $=C({},E.props),tt=E.key;if(Q!=null)for(rt in Q.key!==void 0&&(tt=""+Q.key),Q)!V.call(Q,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&Q.ref===void 0||($[rt]=Q[rt]);var rt=arguments.length-2;if(rt===1)$.children=k;else if(1<rt){for(var vt=Array(rt),qt=0;qt<rt;qt++)vt[qt]=arguments[qt+2];$.children=vt}return F(E.type,tt,$)},ot.createContext=function(E){return E={$$typeof:m,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},ot.createElement=function(E,Q,k){var $,tt={},rt=null;if(Q!=null)for($ in Q.key!==void 0&&(rt=""+Q.key),Q)V.call(Q,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(tt[$]=Q[$]);var vt=arguments.length-2;if(vt===1)tt.children=k;else if(1<vt){for(var qt=Array(vt),jt=0;jt<vt;jt++)qt[jt]=arguments[jt+2];tt.children=qt}if(E&&E.defaultProps)for($ in vt=E.defaultProps,vt)tt[$]===void 0&&(tt[$]=vt[$]);return F(E,rt,tt)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(E){return{$$typeof:x,render:E}},ot.isValidElement=at,ot.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:lt}},ot.memo=function(E,Q){return{$$typeof:y,type:E,compare:Q===void 0?null:Q}},ot.startTransition=function(E){var Q=H.T,k={};H.T=k;try{var $=E(),tt=H.S;tt!==null&&tt(k,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(P,xt)}catch(rt){xt(rt)}finally{Q!==null&&k.types!==null&&(Q.types=k.types),H.T=Q}},ot.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ot.use=function(E){return H.H.use(E)},ot.useActionState=function(E,Q,k){return H.H.useActionState(E,Q,k)},ot.useCallback=function(E,Q){return H.H.useCallback(E,Q)},ot.useContext=function(E){return H.H.useContext(E)},ot.useDebugValue=function(){},ot.useDeferredValue=function(E,Q){return H.H.useDeferredValue(E,Q)},ot.useEffect=function(E,Q){return H.H.useEffect(E,Q)},ot.useEffectEvent=function(E){return H.H.useEffectEvent(E)},ot.useId=function(){return H.H.useId()},ot.useImperativeHandle=function(E,Q,k){return H.H.useImperativeHandle(E,Q,k)},ot.useInsertionEffect=function(E,Q){return H.H.useInsertionEffect(E,Q)},ot.useLayoutEffect=function(E,Q){return H.H.useLayoutEffect(E,Q)},ot.useMemo=function(E,Q){return H.H.useMemo(E,Q)},ot.useOptimistic=function(E,Q){return H.H.useOptimistic(E,Q)},ot.useReducer=function(E,Q,k){return H.H.useReducer(E,Q,k)},ot.useRef=function(E){return H.H.useRef(E)},ot.useState=function(E){return H.H.useState(E)},ot.useSyncExternalStore=function(E,Q,k){return H.H.useSyncExternalStore(E,Q,k)},ot.useTransition=function(){return H.H.useTransition()},ot.version="19.2.7",ot}var Bm;function Ui(){return Bm||(Bm=1,Qc.exports=s0()),Qc.exports}var J=Ui();const Oi=Ng(J);var Cp=J.createContext(void 0),o0=a=>{const i=J.useContext(Cp);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},u0=({client:a,children:i})=>(J.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),h.jsx(Cp.Provider,{value:a,children:i})),Ap=J.createContext(!1),c0=()=>J.useContext(Ap);Ap.Provider;function r0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var f0=J.createContext(r0()),d0=()=>J.useContext(f0),h0=(a,i,o)=>{const c=o?.state.error&&typeof a.throwOnError=="function"?Tp(a.throwOnError,[o.state.error,o]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||c)&&(i.isReset()||(a.retryOnMount=!1))},m0=a=>{J.useEffect(()=>{a.clearReset()},[a])},p0=({result:a,errorResetBoundary:i,throwOnError:o,query:c,suspense:r})=>a.isError&&!i.isReset()&&!a.isFetching&&c&&(r&&a.data===void 0||Tp(o,[a.error,c])),v0=a=>{if(a.suspense){const o=r=>r==="static"?r:Math.max(r??1e3,1e3),c=a.staleTime;a.staleTime=typeof c=="function"?(...r)=>o(c(...r)):o(c),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},y0=(a,i)=>a.isLoading&&a.isFetching&&!i,g0=(a,i)=>a?.suspense&&i.isPending,Hm=(a,i,o)=>i.fetchOptimistic(a).catch(()=>{o.clearReset()});function x0(a,i,o){const c=c0(),r=d0(),f=o0(),m=f.defaultQueryOptions(a);f.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const x=f.getQueryCache().get(m.queryHash),v=a.subscribed!==!1;m._optimisticResults=c?"isRestoring":v?"optimistic":void 0,v0(m),h0(m,r,x),m0(r);const y=!f.getQueryCache().get(m.queryHash),[b]=J.useState(()=>new i(f,m)),p=b.getOptimisticResult(m),S=!c&&v;if(J.useSyncExternalStore(J.useCallback(_=>{const M=S?b.subscribe(ee.batchCalls(_)):he;return b.updateResult(),M},[b,S]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),J.useEffect(()=>{b.setOptions(m)},[m,b]),g0(m,p))throw Hm(m,b,r);if(p0({result:p,errorResetBoundary:r,throwOnError:m.throwOnError,query:x,suspense:m.suspense}))throw p.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(m,p),m.experimental_prefetchInRender&&!Ai.isServer()&&y0(p,c)&&(y?Hm(m,b,r):x?.promise)?.catch(he).finally(()=>{b.updateResult()}),m.notifyOnChangeProps?p:b.trackResult(p)}function We(a,i){return x0(a,Wg)}var Mi=typeof window<"u"?J.useLayoutEffect:J.useEffect;function Yc(a){const i=J.useRef({value:a,prev:null}),o=i.current.value;return a!==o&&(i.current={value:a,prev:o}),i.current.prev}function b0(a,i,o={},c={}){J.useEffect(()=>{if(!a.current||c.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([f])=>{i(f)},o);return r.observe(a.current),()=>{r.disconnect()}},[i,o,c.disabled,a])}function S0(a){const i=J.useRef(null);return J.useImperativeHandle(a,()=>i.current,[]),i}const Op=!1;function Ni(a){return a[a.length-1]}function _0(a){return typeof a=="function"}function Ta(a,i){return _0(a)?a(i):a}const Np=Object.prototype.hasOwnProperty,qm=Object.prototype.propertyIsEnumerable;function zp(a){for(const i in a)if(Np.call(a,i))return!0;return!1}const T0=()=>Object.create(null),Sa=(a,i)=>Ra(a,i,T0);function Ra(a,i,o=()=>({}),c=0){if(a===i)return a;if(c>500)return i;const r=i,f=Gm(a)&&Gm(r);if(!f&&!(mo(a)&&mo(r)))return r;const m=f?a:Qm(a);if(!m)return r;const x=f?r:Qm(r);if(!x)return r;const v=m.length,y=x.length,b=f?new Array(y):o();let p=0;for(let S=0;S<y;S++){const _=f?S:x[S],M=a[_],C=r[_];if(M===C){b[_]=M,(f?S<v:Np.call(a,_))&&p++;continue}if(M===null||C===null||typeof M!="object"||typeof C!="object"){b[_]=C;continue}const D=Ra(M,C,o,c+1);b[_]=D,D===M&&p++}return v===y&&p===v?a:b}function Qm(a){const i=Object.getOwnPropertyNames(a);for(const r of i)if(!qm.call(a,r))return!1;const o=Object.getOwnPropertySymbols(a);if(o.length===0)return i;const c=i;for(const r of o){if(!qm.call(a,r))return!1;c.push(r)}return c}function mo(a){if(!Ym(a))return!1;const i=a.constructor;if(typeof i>"u")return!0;const o=i.prototype;return!(!Ym(o)||!o.hasOwnProperty("isPrototypeOf"))}function Ym(a){return Object.prototype.toString.call(a)==="[object Object]"}function Gm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Ma(a,i,o){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return!1;for(let c=0,r=a.length;c<r;c++)if(!Ma(a[c],i[c],o))return!1;return!0}if(mo(a)&&mo(i)){const c=o?.ignoreUndefined??!0;if(o?.partial){for(const m in i)if((!c||i[m]!==void 0)&&!Ma(a[m],i[m],o))return!1;return!0}let r=0;if(!c)r=Object.keys(a).length;else for(const m in a)a[m]!==void 0&&r++;let f=0;for(const m in i)if((!c||i[m]!==void 0)&&(f++,f>r||!Ma(a[m],i[m],o)))return!1;return r===f}return!1}function _l(a){let i,o;const c=new Promise((r,f)=>{i=r,o=f});return c.status="pending",c.resolve=r=>{c.status="resolved",c.value=r,i(r),a?.(r)},c.reject=r=>{c.status="rejected",o(r)},c}function zi(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}const R0=/[\x00-\x1f\x7f"<>`{}]/g;function E0(a){return a.replace(R0,i=>"%"+i.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function Xm(a){let i;try{i=decodeURI(a)}catch{i=a.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return E0(i)}const M0=["http:","https:","mailto:","tel:"];function po(a,i){if(!a)return!1;try{const o=new URL(a);return!i.has(o.protocol)}catch{return!1}}function Si(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let o=0,c="",r;for(;(r=i.exec(a))!==null;)c+=Xm(a.slice(o,r.index))+r[0],o=i.lastIndex;c=c+Xm(o?a.slice(o):a);let f=!1;return c.startsWith("//")&&(f=!0,c="/"+c.replace(/^\/+/,"")),{path:c,handledProtocolRelativeURL:f}}function j0(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function C0(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let o=0;o<a.length;o++)if(a[o]!==i[o])return!1;return!0}function Tn(){throw new Error("Invariant failed")}function Di(a){const i=new Map;let o,c;const r=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,c&&(c.next=f,f.prev=c)):(f.next.prev=void 0,o=f.next,f.next=void 0,c&&(f.prev=c,c.next=f)),c=f)};return{get(f){const m=i.get(f);if(m)return r(m),m.value},set(f,m){if(i.size>=a&&o){const v=o;i.delete(v.key),v.next&&(o=v.next,v.next.prev=void 0),v===c&&(c=void 0)}const x=i.get(f);if(x)x.value=m,r(x);else{const v={key:f,value:m,prev:c};c&&(c.next=v),c=v,o||(o=v),i.set(f,v)}},clear(){i.clear(),o=void 0,c=void 0}}}const $n=4,Dp=5;function A0(a){const i=a.indexOf("{");if(i===-1)return null;const o=a.indexOf("}",i);return o===-1||i+1>=a.length?null:[i,o]}function wp(a,i,o=new Uint16Array(6)){const c=a.indexOf("/",i),r=c===-1?a.length:c,f=a.substring(i,r);if(!f||!f.includes("$"))return o[0]=0,o[1]=i,o[2]=i,o[3]=r,o[4]=r,o[5]=r,o;if(f==="$"){const x=a.length;return o[0]=2,o[1]=i,o[2]=i,o[3]=x,o[4]=x,o[5]=x,o}if(f.charCodeAt(0)===36)return o[0]=1,o[1]=i,o[2]=i+1,o[3]=r,o[4]=r,o[5]=r,o;const m=A0(f);if(m){const[x,v]=m,y=f.charCodeAt(x+1);if(y===45){if(x+2<f.length&&f.charCodeAt(x+2)===36){const b=x+3,p=v;if(b<p)return o[0]=3,o[1]=i+x,o[2]=i+b,o[3]=i+p,o[4]=i+v+1,o[5]=r,o}}else if(y===36){const b=x+1,p=x+2;return p===v?(o[0]=2,o[1]=i+x,o[2]=i+b,o[3]=i+p,o[4]=i+v+1,o[5]=a.length,o):(o[0]=1,o[1]=i+x,o[2]=i+p,o[3]=i+v,o[4]=i+v+1,o[5]=r,o)}}return o[0]=0,o[1]=i,o[2]=i,o[3]=r,o[4]=r,o[5]=r,o}function _o(a,i,o,c,r,f,m){m?.(o);let x=c;{const v=o.fullPath??o.from,y=v.length,b=o.options?.caseSensitive??a,p=o.options?.params?.parse??o.options?.parseParams;for(;x<y;){const _=wp(v,x,i);let M;const C=x,D=_[5];switch(x=D+1,f++,_[0]){case 0:{const w=v.substring(_[2],_[3]);if(b){const N=r.static?.get(w);if(N)M=N;else{r.static??=new Map;const G=Ea(o.fullPath??o.from);G.parent=r,G.depth=f,M=G,r.static.set(w,G)}}else{const N=w.toLowerCase(),G=r.staticInsensitive?.get(N);if(G)M=G;else{r.staticInsensitive??=new Map;const X=Ea(o.fullPath??o.from);X.parent=r,X.depth=f,M=X,r.staticInsensitive.set(N,X)}}break}case 1:{const w=v.substring(C,_[1]),N=v.substring(_[4],D),G=b&&!!(w||N),X=w?G?w:w.toLowerCase():void 0,K=N?G?N:N.toLowerCase():void 0,P=!p&&r.dynamic?.find(H=>!H.parse&&H.caseSensitive===G&&H.prefix===X&&H.suffix===K);if(P)M=P;else{const H=Xc(1,o.fullPath??o.from,G,X,K);M=H,H.depth=f,H.parent=r,r.dynamic??=[],r.dynamic.push(H)}break}case 3:{const w=v.substring(C,_[1]),N=v.substring(_[4],D),G=b&&!!(w||N),X=w?G?w:w.toLowerCase():void 0,K=N?G?N:N.toLowerCase():void 0,P=!p&&r.optional?.find(H=>!H.parse&&H.caseSensitive===G&&H.prefix===X&&H.suffix===K);if(P)M=P;else{const H=Xc(3,o.fullPath??o.from,G,X,K);M=H,H.parent=r,H.depth=f,r.optional??=[],r.optional.push(H)}break}case 2:{const w=v.substring(C,_[1]),N=v.substring(_[4],D),G=b&&!!(w||N),X=w?G?w:w.toLowerCase():void 0,K=N?G?N:N.toLowerCase():void 0,P=Xc(2,o.fullPath??o.from,G,X,K);M=P,P.parent=r,P.depth=f,r.wildcard??=[],r.wildcard.push(P)}}r=M}if(p&&o.children&&!o.isRoot&&o.id&&o.id.charCodeAt(o.id.lastIndexOf("/")+1)===95){const _=Ea(o.fullPath??o.from);_.kind=Dp,_.parent=r,f++,_.depth=f,r.pathless??=[],r.pathless.push(_),r=_}const S=(o.path||!o.children)&&!o.isRoot;if(S&&v.endsWith("/")){const _=Ea(o.fullPath??o.from);_.kind=$n,_.parent=r,f++,_.depth=f,r.index=_,r=_}r.parse=p??null,r.priority=o.options?.params?.priority??0,S&&!r.route&&(r.route=o,r.fullPath=o.fullPath??o.from)}if(o.children)for(const v of o.children)_o(a,i,v,x,r,f,m)}function Gc(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 Pn(a){if(a.pathless)for(const i of a.pathless)Pn(i);if(a.static)for(const i of a.static.values())Pn(i);if(a.staticInsensitive)for(const i of a.staticInsensitive.values())Pn(i);if(a.dynamic?.length){a.dynamic.sort(Gc);for(const i of a.dynamic)Pn(i)}if(a.optional?.length){a.optional.sort(Gc);for(const i of a.optional)Pn(i)}if(a.wildcard?.length){a.wildcard.sort(Gc);for(const i of a.wildcard)Pn(i)}}function Ea(a){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0}}function Xc(a,i,o,c,r){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,priority:0,caseSensitive:o,prefix:c,suffix:r}}function O0(a,i){const o=Ea("/"),c=new Uint16Array(6);for(const r of a)_o(!1,c,r,1,o,0);Pn(o),i.masksTree=o,i.flatCache=Di(1e3)}function N0(a,i){a||="/";const o=i.flatCache.get(a);if(o)return o;const c=Sr(a,i.masksTree);return i.flatCache.set(a,c),c}function z0(a,i,o,c,r){a||="/",c||="/";const f=i?`case\0${a}`:a;let m=r.singleCache.get(f);return m||(m=Ea("/"),_o(i,new Uint16Array(6),{from:a},1,m,0),r.singleCache.set(f,m)),Sr(c,m,o)}function D0(a,i,o=!1){const c=o?a:`nofuzz\0${a}`,r=i.matchCache.get(c);if(r!==void 0)return r;a||="/";let f;try{f=Sr(a,i.segmentTree,o)}catch(m){if(m instanceof URIError)f=null;else throw m}return f&&(f.branch=Up(f.route)),i.matchCache.set(c,f),f}function w0(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function L0(a,i=!1,o){const c=Ea(a.fullPath),r=new Uint16Array(6),f={},m={};let x=0;return _o(i,r,a,1,c,0,v=>{if(o?.(v,x),v.id in f&&Tn(),f[v.id]=v,x!==0&&v.path){const y=w0(v.fullPath);(!m[y]||v.fullPath.endsWith("/"))&&(m[y]=v)}x++}),Pn(c),{processedTree:{segmentTree:c,singleCache:Di(1e3),matchCache:Di(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:m}}function Sr(a,i,o=!1){const c=a.split("/"),r=B0(a,c,i,o);if(!r)return null;const[f]=Lp(a,c,r);return{route:r.node.route,rawParams:f}}function Lp(a,i,o){const c=U0(o.node);let r=null;const f=Object.create(null);let m=o.extract?.part??0,x=o.extract?.node??0,v=o.extract?.path??0,y=o.extract?.segment??0;for(;x<c.length;m++,x++,v++,y++){const b=c[x];if(b.kind===$n)break;if(b.kind===Dp){y--,m--,v--;continue}const p=i[m],S=v;if(p&&(v+=p.length),b.kind===1){r??=o.node.fullPath.split("/");const _=r[y],M=b.prefix?.length??0;if(_.charCodeAt(M)===123){const C=b.suffix?.length??0,D=_.substring(M+2,_.length-C-1),w=p.substring(M,p.length-C);f[D]=decodeURIComponent(w)}else{const C=_.substring(1);f[C]=decodeURIComponent(p)}}else if(b.kind===3){if(o.skipped&1<<x){m--,v=S-1;continue}r??=o.node.fullPath.split("/");const _=r[y],M=b.prefix?.length??0,C=b.suffix?.length??0,D=_.substring(M+3,_.length-C-1),w=b.suffix||b.prefix?p.substring(M,p.length-C):p;w&&(f[D]=decodeURIComponent(w))}else if(b.kind===2){const _=b,M=a.substring(S+(_.prefix?.length??0),a.length-(_.suffix?.length??0)),C=decodeURIComponent(M);f["*"]=C,f._splat=C;break}}return o.rawParams&&Object.assign(f,o.rawParams),[f,{part:m,node:x,path:v,segment:y}]}function Up(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function U0(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function B0(a,i,o,c){if(a==="/"&&o.index)return{node:o.index,skipped:0};const r=!Ni(i),f=r&&a!=="/",m=i.length-(r?1:0),x=[{node:o,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let v=null,y=null;for(;x.length;){const b=x.pop(),{node:p,index:S,skipped:_,depth:M,statics:C,dynamics:D,optionals:w}=b;let{extract:N,rawParams:G}=b;if(p.kind===2&&p.route&&!ao(y,b))continue;if(p.parse){if(!Vm(a,i,b))continue;G=b.rawParams,N=b.extract}c&&p.route&&p.kind!==$n&&ao(v,b)&&(v=b);const X=S===m;if(X&&(p.route&&(!f||p.kind===$n||p.kind===2)&&ao(y,b)&&(y=b),!p.optional&&!p.wildcard&&!p.index&&!p.pathless))continue;const K=X?void 0:i[S];let P;if(X&&p.index){const H={node:p.index,index:S,skipped:_,depth:M+1,statics:C,dynamics:D,optionals:w,extract:N,rawParams:G};let V=!0;if(p.index.parse&&(Vm(a,i,H)||(V=!1)),V){if(!D&&!w&&!_&&H0(C,m))return H;ao(y,H)&&(y=H)}}if(p.wildcard)for(let H=p.wildcard.length-1;H>=0;H--){const V=p.wildcard[H],{prefix:F,suffix:it}=V;if(!(F&&(X||!(V.caseSensitive?K:P??=K.toLowerCase()).startsWith(F)))){if(it){if(X)continue;const at=i.slice(S).join("/").slice(-it.length);if((V.caseSensitive?at:at.toLowerCase())!==it)continue}x.push({node:V,index:m,skipped:_,depth:M+1,statics:C,dynamics:D,optionals:w,extract:N,rawParams:G})}}if(p.optional){const H=_|1<<M,V=M+1;for(let F=p.optional.length-1;F>=0;F--){const it=p.optional[F];x.push({node:it,index:S,skipped:H,depth:V,statics:C,dynamics:D,optionals:w,extract:N,rawParams:G})}if(!X)for(let F=p.optional.length-1;F>=0;F--){const it=p.optional[F],{prefix:at,suffix:et}=it;if(at||et){const Lt=it.caseSensitive?K:P??=K.toLowerCase();if(at&&!Lt.startsWith(at)||et&&!Lt.endsWith(et))continue}x.push({node:it,index:S+1,skipped:_,depth:V,statics:C,dynamics:D,optionals:w+no(m,S),extract:N,rawParams:G})}}if(!X&&p.dynamic&&K)for(let H=p.dynamic.length-1;H>=0;H--){const V=p.dynamic[H],{prefix:F,suffix:it}=V;if(F||it){const at=V.caseSensitive?K:P??=K.toLowerCase();if(F&&!at.startsWith(F)||it&&!at.endsWith(it))continue}x.push({node:V,index:S+1,skipped:_,depth:M+1,statics:C,dynamics:D+no(m,S),optionals:w,extract:N,rawParams:G})}if(!X&&p.staticInsensitive){const H=p.staticInsensitive.get(P??=K.toLowerCase());H&&x.push({node:H,index:S+1,skipped:_,depth:M+1,statics:C+no(m,S),dynamics:D,optionals:w,extract:N,rawParams:G})}if(!X&&p.static){const H=p.static.get(K);H&&x.push({node:H,index:S+1,skipped:_,depth:M+1,statics:C+no(m,S),dynamics:D,optionals:w,extract:N,rawParams:G})}if(p.pathless){const H=M+1;for(let V=p.pathless.length-1;V>=0;V--){const F=p.pathless[V];x.push({node:F,index:S,skipped:_,depth:H,statics:C,dynamics:D,optionals:w,extract:N,rawParams:G})}}}if(y)return y;if(c&&v){let b=v.index;for(let S=0;S<v.index;S++)b+=i[S].length;const p=b===a.length?"/":a.slice(b);return v.rawParams??=Object.create(null),v.rawParams["**"]=decodeURIComponent(p),v}return null}function no(a,i){return 2**(a-i-1)}function H0(a,i){return a===2**(i-1)-1}function Vm(a,i,o){let c,r;try{[c,r]=Lp(a,i,o)}catch{return null}if(o.rawParams=c,o.extract=r,!o.node.parse)return!0;try{if(o.node.parse(c)===!1)return null}catch{}return!0}function ao(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===$n)>(a.node.kind===$n)||i.node.kind===$n==(a.node.kind===$n)&&i.depth>a.depth))):!0}function oo(a){return _r(a.filter(i=>i!==void 0).join("/"))}function _r(a){return a.replace(/\/{2,}/g,"/")}function Bp(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function _n(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/{1,}$/,""):a}function Hp(a){return _n(Bp(a))}function vo(a,i){return a?.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function q0(a,i,o){return vo(a,o)===vo(i,o)}function Q0({base:a,to:i,trailingSlash:o="never",cache:c}){const r=i.startsWith("/"),f=!r&&i===".";let m;if(c){m=r?i:f?a:a+"\0"+i;const y=c.get(m);if(y)return y}let x;if(f)x=a.split("/");else if(r)x=i.split("/");else{for(x=a.split("/");x.length>1&&Ni(x)==="";)x.pop();const y=i.split("/");for(let b=0,p=y.length;b<p;b++){const S=y[b];S===""?b?b===p-1&&x.push(S):x=[S]:S===".."?x.pop():S==="."||x.push(S)}}x.length>1&&(Ni(x)===""?o==="never"&&x.pop():o==="always"&&x.push(""));const v=_r(x.join("/"))||"/";return m&&c&&c.set(m,v),v}function Y0(a){const i=new Map(a.map(r=>[encodeURIComponent(r),r])),o=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),c=new RegExp(o,"g");return r=>r.replace(c,f=>i.get(f)??f)}function Vc(a,i,o){const c=i[a];return typeof c!="string"?c:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(c)?c:c.split("/").map(r=>Zm(r,o)).join("/"):Zm(c,o)}function Km({path:a,params:i,decoder:o,...c}){let r=!1;const f=Object.create(null);if(!a||a==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:r};if(!a.includes("$"))return{interpolatedPath:a,usedParams:f,isMissingParams:r};const m=a.length;let x=0,v,y="";for(;x<m;){const b=x;v=wp(a,b,v);const p=v[5];if(x=p+1,b===p)continue;const S=v[0];if(S===0){y+="/"+a.substring(b,p);continue}if(S===2){const _=i._splat;f._splat=_,f["*"]=_;const M=a.substring(b,v[1]),C=a.substring(v[4],p);if(!_){r=!0,(M||C)&&(y+="/"+M+C);continue}const D=Vc("_splat",i,o);y+="/"+M+D+C;continue}if(S===1){const _=a.substring(v[2],v[3]);!r&&!(_ in i)&&(r=!0),f[_]=i[_];const M=a.substring(b,v[1]),C=a.substring(v[4],p),D=Vc(_,i,o)??"undefined";y+="/"+M+D+C;continue}if(S===3){const _=a.substring(v[2],v[3]),M=i[_];if(M==null)continue;f[_]=M;const C=a.substring(b,v[1]),D=a.substring(v[4],p),w=Vc(_,i,o)??"";y+="/"+C+w+D;continue}}return a.endsWith("/")&&(y+="/"),{usedParams:f,interpolatedPath:y||"/",isMissingParams:r}}function Zm(a,i){const o=encodeURIComponent(a);return i?.(o)??o}function le(a){return a?.isNotFound===!0}function G0(){try{return sessionStorage}catch{return}}const X0="tsr-scroll-restoration-v1_3",qp=G0();function V0(){try{return JSON.parse(qp?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function K0(){try{qp?.setItem(X0,JSON.stringify(xl))}catch{}}const xl=V0(),km="data-scroll-restoration-id",Z0=a=>a.state.__TSR_key||a.href;function k0(a){const i=a.getAttribute(km);if(i)return`[${km}="${i}"]`;let o="",c=a,r;for(;r=c.parentNode;){let f=1,m=c;for(;m=m.previousElementSibling;)f++;const x=`${c.localName}:nth-child(${f})`;o=o?`${x} > ${o}`:x,c=r}return o}let lo=!1;const uo="window";function fr(a){try{return typeof a=="function"?a():document.querySelector(a)}catch{}}function Jm(a){const i=new Set;for(const o of a){if(o===uo)continue;const c=fr(o);c&&i.add(c)}return i}function J0(a,i){const o=a.options.scrollRestoration,c=a._scroll;o&&(c.restoring=!0);const r=a.options.getScrollRestorationKey||Z0,f=new Set,m=x=>{const v=xl[x]||={};for(const y of f)y===document?v[uo]={scrollX,scrollY}:y.isConnected&&(v[k0(y)]={scrollX:y.scrollLeft,scrollY:y.scrollTop})};o&&!c.restoration&&(c.restoration=!0,lo=!1,history.scrollRestoration="manual",document.addEventListener("scroll",x=>{lo||f.add(x.target)},!0),a.subscribe("onBeforeLoad",x=>{x.fromLocation&&m(r(x.fromLocation)),f.clear()}),addEventListener("pagehide",()=>{m(r(a.stores.resolvedLocation.get()??a.stores.location.get())),K0()})),!c.reset&&(c.reset=!0,a.subscribe("onRendered",x=>{const v=a.options.scrollRestorationBehavior,y=a.options.scrollToTopSelectors,b=c.next,p=c.hash;let S;if(f.clear(),c.next=!0,c.hash=!1,typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return;const _=r(x.toLocation),M=x.fromLocation&&r(x.fromLocation);if(c.restoring&&M&&M!==_){const C=xl[M];if(C){let D=xl[_];for(const w in C){if(w===uo){if(b)continue}else{const N=fr(w);if(!N||b&&y&&(S??=Jm(y),S.has(N)))continue}D||(D=xl[_]={}),D[w]??=C[w]}}}lo=!0;try{const C=x.toLocation.hash,D=x.toLocation.state.__hashScrollIntoViewOptions??!0;let w=!1;if(b){!C&&y&&(S??=Jm(y));const N=C&&D&&p,G=c.restoring?xl[_]:void 0;if(G)for(const X in G){const{scrollX:K,scrollY:P}=G[X];if(X===uo){if(N)continue;scrollTo({top:P,left:K,behavior:v}),w=!0}else{const H=fr(X);H&&(H.scrollLeft=K,H.scrollTop=P,S?.delete(H))}}if(!C){const X={top:0,left:0,behavior:v};if(w||scrollTo(X),S)for(const K of S)K.scrollTo(X)}}!w&&C&&D&&document.getElementById(C)?.scrollIntoView(D)}finally{lo=!1}}))}function F0(a,i=String){const o=new URLSearchParams;for(const c in a){const r=a[c];r!==void 0&&o.set(c,i(r))}return o.toString()}function Kc(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function P0(a){const i=new URLSearchParams(a),o=Object.create(null);for(const[c,r]of i.entries()){const f=o[c];f==null?o[c]=Kc(r):Array.isArray(f)?f.push(Kc(r)):o[c]=[f,Kc(r)]}return o}const $0=I0(JSON.parse),W0=tx(JSON.stringify,JSON.parse);function I0(a){return i=>{i[0]==="?"&&(i=i.substring(1));const o=P0(i);for(const c in o){const r=o[c];if(typeof r=="string")try{o[c]=a(r)}catch{}}return o}}function tx(a,i){const o=typeof i=="function";function c(r){if(typeof r=="object"&&r!==null)try{return a(r)}catch{}else if(o&&typeof r=="string")try{return i(r),a(r)}catch{}return r}return r=>{const f=F0(r,c);return f?`?${f}`:""}}const ja="__root__";function ex(a){if(a.statusCode=a.statusCode||a.code||307,!a._builtLocation&&!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const i=new Headers(a.headers);a.href&&i.get("Location")===null&&i.set("Location",a.href);const o=new Response(null,{status:a.statusCode,headers:i});if(o.options=a,a.throw)throw o;return o}function me(a){return a instanceof Response&&!!a.options}function nx(a){return{input:({url:i})=>{for(const o of a)i=dr(o,i);return i},output:({url:i})=>{for(let o=a.length-1;o>=0;o--)i=Qp(a[o],i);return i}}}function ax(a){const i=Hp(a.basepath),o=`/${i}`,c=a.caseSensitive?o:o.toLowerCase(),r=`${c}/`;return{input:({url:f})=>{const m=a.caseSensitive?f.pathname:f.pathname.toLowerCase();return m===c?f.pathname="/":m.startsWith(r)&&(f.pathname=f.pathname.slice(o.length)),f},output:({url:f})=>(f.pathname=oo(["/",i,f.pathname]),f)}}function dr(a,i){const o=a?.input?.({url:i});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return i}function Qp(a,i){const o=a?.output?.({url:i});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return i}function lx(a,i){const{createMutableStore:o,createReadonlyStore:c,batch:r,init:f}=i,m=new Map,x=new Map,v=new Map,y=o(a.status),b=o(a.loadedAt),p=o(a.isLoading),S=o(a.isTransitioning),_=o(a.location),M=o(a.resolvedLocation),C=o(a.statusCode),D=o(a.redirect),w=o([]),N=o([]),G=o([]),X=c(()=>Zc(m,w.get())),K=c(()=>Zc(x,N.get())),P=c(()=>Zc(v,G.get())),H=c(()=>w.get()[0]),V=c(()=>w.get().some(Z=>m.get(Z)?.get().status==="pending")),F=c(()=>({locationHref:_.get().href,resolvedLocationHref:M.get()?.href,status:y.get()})),it=c(()=>({status:y.get(),loadedAt:b.get(),isLoading:p.get(),isTransitioning:S.get(),matches:X.get(),location:_.get(),resolvedLocation:M.get(),statusCode:C.get(),redirect:D.get()})),at=Di(64);function et(Z){let lt=at.get(Z);return lt||(lt=c(()=>{const xt=w.get();for(const St of xt){const E=m.get(St);if(E&&E.routeId===Z)return E.get()}}),at.set(Z,lt)),lt}const Lt={status:y,loadedAt:b,isLoading:p,isTransitioning:S,location:_,resolvedLocation:M,statusCode:C,redirect:D,matchesId:w,pendingIds:N,cachedIds:G,matches:X,pendingMatches:K,cachedMatches:P,firstId:H,hasPending:V,matchRouteDeps:F,matchStores:m,pendingMatchStores:x,cachedMatchStores:v,__store:it,getRouteMatchStore:et,setMatches:zt,setPending:Ht,setCached:U};zt(a.matches),f?.(Lt);function zt(Z){kc(Z,m,w,o,r)}function Ht(Z){kc(Z,x,N,o,r)}function U(Z){kc(Z,v,G,o,r)}return Lt}function Zc(a,i){const o=[];for(const c of i){const r=a.get(c);r&&o.push(r.get())}return o}function kc(a,i,o,c,r){const f=a.map(x=>x.id),m=new Set(f);r(()=>{for(const x of i.keys())m.has(x)||i.delete(x);for(const x of a){const v=i.get(x.id);if(!v){const y=c(x);y.routeId=x.routeId,i.set(x.id,y);continue}v.routeId=x.routeId,v.get()!==x&&v.set(x)}C0(o.get(),f)||o.set(f)})}const hr=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},ix=a=>a.stores.matchesId.get().some(i=>a.stores.matchStores.get(i)?.get()._forcePending),To=(a,i)=>!!(a.preload&&!a.router.stores.matchStores.has(i)),Ca=(a,i,o=!0)=>{const c={...a.router.options.context??{}},r=o?i:i-1;for(let f=0;f<=r;f++){const m=a.matches[f];if(!m)continue;const x=a.router.getMatch(m.id);x&&Object.assign(c,x.__routeContext,x.__beforeLoadContext)}return c},Fm=(a,i)=>{if(!a.matches.length)return;const o=i.routeId,c=a.matches.findIndex(m=>m.routeId===a.router.routeTree.id),r=c>=0?c:0;let f=o?a.matches.findIndex(m=>m.routeId===o):a.firstBadMatchIndex??a.matches.length-1;f<0&&(f=r);for(let m=f;m>=0;m--){const x=a.matches[m];if(a.router.looseRoutesById[x.routeId].options.notFoundComponent)return m}return o?f:r},Wn=(a,i,o)=>{if(!(!me(o)&&!le(o)))throw me(o)&&o.redirectHandled&&!o.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=o,a.updateMatch(i.id,c=>({...c,status:me(o)?"redirected":le(o)?"notFound":c.status==="pending"?"success":c.status,context:Ca(a,i.index),isFetching:!1,error:o})),le(o)&&!o.routeId&&(o.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(o)&&(a.rendered=!0,o.options._fromLocation=a.location,o.redirectHandled=!0,o=a.router.resolveRedirect(o))),o},Yp=(a,i)=>{const o=a.router.getMatch(i);return!!(!o||o._nonReactive.dehydrated)},Pm=(a,i,o)=>{const c=Ca(a,o);a.updateMatch(i,r=>({...r,context:c}))},_i=(a,i,o)=>{const{id:c,routeId:r}=a.matches[i],f=a.router.looseRoutesById[r];if(o instanceof Promise)throw o;a.firstBadMatchIndex??=i,Wn(a,a.router.getMatch(c),o);try{f.options.onError?.(o)}catch(m){o=m,Wn(a,a.router.getMatch(c),o)}a.updateMatch(c,m=>(m._nonReactive.beforeLoadPromise?.resolve(),m._nonReactive.beforeLoadPromise=void 0,m._nonReactive.loadPromise?.resolve(),{...m,error:o,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!a.preload&&!me(o)&&!le(o)&&(a.serialError??=o)},Gp=(a,i,o,c)=>{if(c._nonReactive.pendingTimeout!==void 0)return;const r=o.options.pendingMs??a.router.options.defaultPendingMs;if(a.onReady&&!To(a,i)&&(o.options.loader||o.options.beforeLoad||Vp(o))&&typeof r=="number"&&r!==1/0&&(o.options.pendingComponent??a.router.options?.defaultPendingComponent)){const f=setTimeout(()=>{hr(a)},r);c._nonReactive.pendingTimeout=f}},sx=(a,i,o)=>{const c=a.router.getMatch(i);if(!c._nonReactive.beforeLoadPromise&&!c._nonReactive.loaderPromise)return;Gp(a,i,o,c);const r=()=>{const f=a.router.getMatch(i);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Wn(a,f,f.error)};return c._nonReactive.beforeLoadPromise?c._nonReactive.beforeLoadPromise.then(r):r()},ox=(a,i,o,c)=>{const r=a.router.getMatch(i);let f=r._nonReactive.loadPromise;r._nonReactive.loadPromise=_l(()=>{f?.resolve(),f=void 0});const{paramsError:m,searchError:x}=r;m&&_i(a,o,m),x&&_i(a,o,x),Gp(a,i,c,r);const v=new AbortController;let y=!1;const b=()=>{y||(y=!0,a.updateMatch(i,X=>({...X,isFetching:"beforeLoad",fetchCount:X.fetchCount+1,abortController:v})))},p=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,X=>({...X,isFetching:!1}))};if(!c.options.beforeLoad){a.router.batch(()=>{b(),p()});return}r._nonReactive.beforeLoadPromise=_l();const S={...Ca(a,o,!1),...r.__routeContext},{search:_,params:M,cause:C}=r,D=To(a,i),w={search:_,abortController:v,params:M,preload:D,context:S,location:a.location,navigate:X=>a.router.navigate({...X,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:D?"preload":C,matches:a.matches,routeId:c.id,...a.router.options.additionalContext},N=X=>{if(X===void 0){a.router.batch(()=>{b(),p()});return}(me(X)||le(X))&&(b(),_i(a,o,X)),a.router.batch(()=>{b(),a.updateMatch(i,K=>({...K,__beforeLoadContext:X})),p()})};let G;try{if(G=c.options.beforeLoad(w),zi(G))return b(),G.catch(X=>{_i(a,o,X)}).then(N)}catch(X){b(),_i(a,o,X)}N(G)},ux=(a,i)=>{const{id:o,routeId:c}=a.matches[i],r=a.router.looseRoutesById[c],f=()=>x(),m=()=>ox(a,o,i,r),x=()=>{if(Yp(a,o))return;const v=sx(a,o,r);return zi(v)?v.then(m):m()};return f()},cx=(a,i,o)=>{const c=a.router.getMatch(i);if(!c||!o.options.head&&!o.options.scripts&&!o.options.headers)return;const r={ssr:a.router.options.ssr,matches:a.matches,match:c,params:c.params,loaderData:c.loaderData};return Promise.all([o.options.head?.(r),o.options.scripts?.(r),o.options.headers?.(r)]).then(([f,m,x])=>({meta:f?.meta,links:f?.links,headScripts:f?.scripts,headers:x,scripts:m,styles:f?.styles}))},Xp=(a,i,o,c,r)=>{const f=i[c-1],{params:m,loaderDeps:x,abortController:v,cause:y}=a.router.getMatch(o),b=Ca(a,c),p=To(a,o);return{params:m,deps:x,preload:!!p,parentMatchPromise:f,abortController:v,context:b,location:a.location,navigate:S=>a.router.navigate({...S,_fromLocation:a.location}),cause:p?"preload":y,route:r,...a.router.options.additionalContext}},$m=async(a,i,o,c,r)=>{try{const f=a.router.getMatch(o);try{(!(Op??a.router.isServer)||f.ssr===!0)&&wi(r);const m=r.options.loader,x=typeof m=="function"?m:m?.handler,v=x?.(Xp(a,i,o,c,r)),y=!!x&&zi(v);if((y||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||f._nonReactive.minPendingPromise)&&a.updateMatch(o,p=>({...p,isFetching:"loader"})),x){const p=y?await v:v;Wn(a,a.router.getMatch(o),p),p!==void 0&&a.updateMatch(o,S=>({...S,loaderData:p}))}r._lazyPromise&&await r._lazyPromise;const b=f._nonReactive.minPendingPromise;b&&await b,r._componentsPromise&&await r._componentsPromise,a.updateMatch(o,p=>({...p,error:void 0,context:Ca(a,c),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(m){let x=m;if(x?.name==="AbortError"){if(f.abortController.signal.aborted){f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loaderPromise=void 0;return}a.updateMatch(o,y=>({...y,status:y.status==="pending"?"success":y.status,isFetching:!1,context:Ca(a,c)}));return}const v=f._nonReactive.minPendingPromise;v&&await v,le(m)&&await r.options.notFoundComponent?.preload?.(),Wn(a,a.router.getMatch(o),m);try{r.options.onError?.(m)}catch(y){x=y,Wn(a,a.router.getMatch(o),y)}!me(x)&&!le(x)&&await wi(r,["errorComponent"]),a.updateMatch(o,y=>({...y,error:x,context:Ca(a,c),status:"error",isFetching:!1}))}}catch(f){const m=a.router.getMatch(o);m&&(m._nonReactive.loaderPromise=void 0),Wn(a,m,f)}},rx=async(a,i,o)=>{async function c(_,M,C,D,w){const N=Date.now()-M.updatedAt,G=_?w.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:w.options.staleTime??a.router.options.defaultStaleTime??0,X=w.options.shouldReload,K=typeof X=="function"?X(Xp(a,i,r,o,w)):X,{status:P,invalid:H}=D,V=N>=G&&(!!a.forceStaleReload||D.cause==="enter"||C!==void 0&&C!==D.id);m=P==="success"&&(H||(K??V)),_&&w.options.preload===!1||(m&&!a.sync&&b?(x=!0,(async()=>{try{await $m(a,i,r,o,w);const F=a.router.getMatch(r);F._nonReactive.loaderPromise?.resolve(),F._nonReactive.loadPromise?.resolve(),F._nonReactive.loaderPromise=void 0,F._nonReactive.loadPromise=void 0}catch(F){me(F)&&await a.router.navigate(F.options)}})()):P!=="success"||m?await $m(a,i,r,o,w):Pm(a,r,o))}const{id:r,routeId:f}=a.matches[o];let m=!1,x=!1;const v=a.router.looseRoutesById[f],y=v.options.loader,b=((typeof y=="function"?void 0:y?.staleReloadMode)??a.router.options.defaultStaleReloadMode)!=="blocking";if(Yp(a,r)){if(!a.router.getMatch(r))return a.matches[o];Pm(a,r,o)}else{const _=a.router.getMatch(r),M=a.router.stores.matchesId.get()[o],C=(M&&a.router.stores.matchStores.get(M)||null)?.routeId===f?M:a.router.stores.matches.get().find(w=>w.routeId===f)?.id,D=To(a,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!a.sync&&!_.preload&&b)return _;await _._nonReactive.loaderPromise;const w=a.router.getMatch(r),N=w._nonReactive.error||w.error;N&&Wn(a,w,N),w.status==="pending"&&await c(D,_,C,w,v)}else{const w=D&&!a.router.stores.matchStores.has(r),N=a.router.getMatch(r);N._nonReactive.loaderPromise=_l(),w!==N.preload&&a.updateMatch(r,G=>({...G,preload:w})),await c(D,_,C,N,v)}}const p=a.router.getMatch(r);x||(p._nonReactive.loaderPromise?.resolve(),p._nonReactive.loadPromise?.resolve(),p._nonReactive.loadPromise=void 0),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,x||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const S=x?p.isFetching:!1;return S!==p.isFetching||p.invalid!==!1?(a.updateMatch(r,_=>({..._,isFetching:S,invalid:!1})),a.router.getMatch(r)):p};async function Wm(a){const i=a,o=[];ix(i.router)&&hr(i);let c;for(let S=0;S<i.matches.length;S++){try{const _=ux(i,S);zi(_)&&await _}catch(_){if(me(_))throw _;if(le(_))c=_;else if(!i.preload)throw _;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,f=c&&!i.preload?Fm(i,c):void 0,m=c&&i.preload?0:f!==void 0?Math.min(f+1,r):r;let x,v;for(let S=0;S<m;S++)o.push(rx(i,o,S));try{await Promise.all(o)}catch{const S=await Promise.allSettled(o);for(const _ of S){if(_.status!=="rejected")continue;const M=_.reason;if(me(M))throw M;le(M)?x??=M:v??=M}if(v!==void 0)throw v}const y=x??(c&&!i.preload?c:void 0);let b=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!y&&c&&i.preload)return i.matches;if(y){const S=Fm(i,y);S===void 0&&Tn();const _=i.matches[S],M=i.router.looseRoutesById[_.routeId],C=i.router.options?.defaultNotFoundComponent;!M.options.notFoundComponent&&C&&(M.options.notFoundComponent=C),y.routeId=_.routeId;const D=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,w=>({...w,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:y},isFetching:!1})),b=S,await wi(M,["notFoundComponent"])}else if(!i.preload){const S=i.matches[0];S.globalNotFound||i.router.getMatch(S.id)?.globalNotFound&&i.updateMatch(S.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const S=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await wi(S,["errorComponent"])}for(let S=0;S<=b;S++){const{id:_,routeId:M}=i.matches[S],C=i.router.looseRoutesById[M];try{const D=cx(i,_,C);if(D){const w=await D;i.updateMatch(_,N=>({...N,...w}))}}catch(D){console.error(`Error executing head for route ${M}:`,D)}}const p=hr(i);if(zi(p)&&await p,y)throw y;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Im(a,i){const o=i.map(c=>a.options[c]?.preload?.()).filter(Boolean);if(o.length!==0)return Promise.all(o)}function wi(a,i=co){!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(c=>{const{id:r,...f}=c.options;Object.assign(a.options,f),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0);const o=()=>a._componentsLoaded?void 0:i===co?(()=>{if(a._componentsPromise===void 0){const c=Im(a,co);c?a._componentsPromise=c.then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0}):a._componentsLoaded=!0}return a._componentsPromise})():Im(a,i);return a._lazyPromise?a._lazyPromise.then(o):o()}function Vp(a){for(const i of co)if(a.options[i]?.preload)return!0;return!1}const co=["component","errorComponent","pendingComponent","notFoundComponent"];var ta="__TSR_index",tp="popstate",ep="beforeunload";function fx(a){let i=a.getLocation();const o=new Set,c=m=>{i=a.getLocation(),o.forEach(x=>x({location:i,action:m}))},r=m=>{a.notifyOnIndexChange??!0?c(m):i=a.getLocation()},f=async({task:m,navigateOpts:x,...v})=>{if(x?.ignoreBlocker??!1){m();return}const y=a.getBlockers?.()??[],b=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&y.length&&b)for(const p of y){const S=yo(v.path,v.state);if(await p.blockerFn({currentLocation:i,nextLocation:S,action:v.type})){a.onBlocked?.();return}}m()};return{get location(){return i},get length(){return a.getLength()},subscribers:o,subscribe:m=>(o.add(m),()=>{o.delete(m)}),push:(m,x,v)=>{const y=i.state[ta];x=np(y+1,x),f({task:()=>{a.pushState(m,x),c({type:"PUSH"})},navigateOpts:v,type:"PUSH",path:m,state:x})},replace:(m,x,v)=>{const y=i.state[ta];x=np(y,x),f({task:()=>{a.replaceState(m,x),c({type:"REPLACE"})},navigateOpts:v,type:"REPLACE",path:m,state:x})},go:(m,x)=>{f({task:()=>{a.go(m),r({type:"GO",index:m})},navigateOpts:x,type:"GO"})},back:m=>{f({task:()=>{a.back(m?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{f({task:()=>{a.forward(m?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>i.state[ta]!==0,createHref:m=>a.createHref(m),block:m=>{if(!a.setBlockers)return()=>{};const x=a.getBlockers?.()??[];return a.setBlockers([...x,m]),()=>{const v=a.getBlockers?.()??[];a.setBlockers?.(v.filter(y=>y!==m))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:c}}function np(a,i){i||(i={});const o=Tr();return{...i,key:o,__TSR_key:o,[ta]:a}}function dx(a){const i=typeof document<"u"?window:void 0,o=i.history.pushState,c=i.history.replaceState;let r=[];const f=()=>r,m=V=>r=V,x=(V=>V),v=(()=>yo(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const V=Tr();i.history.replaceState({[ta]:0,key:V,__TSR_key:V},"")}let y=v(),b,p=!1,S=!1,_=!1,M=!1;const C=()=>y;let D,w;const N=()=>{D&&(H._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),H._ignoreSubscribers=!1,D=void 0,w=void 0,b=void 0)},G=(V,F,it)=>{const at=x(F);w||(b=y),y=yo(F,it),D={href:at,state:it,isPush:D?.isPush||V==="push"},w||(w=Promise.resolve().then(()=>N()))},X=V=>{y=v(),H.notify({type:V})},K=async()=>{if(S){S=!1;return}const V=v(),F=V.state[ta]-y.state[ta],it=F===1,at=F===-1,et=!it&&!at||p;p=!1;const Lt=et?"GO":at?"BACK":"FORWARD",zt=et?{type:"GO",index:F}:{type:at?"BACK":"FORWARD"};if(_)_=!1;else{const Ht=f();if(typeof document<"u"&&Ht.length){for(const U of Ht)if(await U.blockerFn({currentLocation:y,nextLocation:V,action:Lt})){S=!0,i.history.go(1),H.notify(zt);return}}}y=v(),H.notify(zt)},P=V=>{if(M){M=!1;return}let F=!1;const it=f();if(typeof document<"u"&&it.length)for(const at of it){const et=at.enableBeforeUnload??!0;if(et===!0){F=!0;break}if(typeof et=="function"&&et()===!0){F=!0;break}}if(F)return V.preventDefault(),V.returnValue=""},H=fx({getLocation:C,getLength:()=>i.history.length,pushState:(V,F)=>G("push",V,F),replaceState:(V,F)=>G("replace",V,F),back:V=>(V&&(_=!0),M=!0,i.history.back()),forward:V=>{V&&(_=!0),M=!0,i.history.forward()},go:V=>{p=!0,i.history.go(V)},createHref:V=>x(V),flush:N,destroy:()=>{i.history.pushState=o,i.history.replaceState=c,i.removeEventListener(ep,P,{capture:!0}),i.removeEventListener(tp,K)},onBlocked:()=>{b&&y!==b&&(y=b)},getBlockers:f,setBlockers:m,notifyOnIndexChange:!1});return i.addEventListener(ep,P,{capture:!0}),i.addEventListener(tp,K),i.history.pushState=function(...V){const F=o.apply(i.history,V);return H._ignoreSubscribers||X("PUSH"),F},i.history.replaceState=function(...V){const F=c.apply(i.history,V);return H._ignoreSubscribers||X("REPLACE"),F},H}function hx(a){let i=a.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function yo(a,i){const o=hx(a),c=o.indexOf("#"),r=o.indexOf("?"),f=Tr();return{href:o,pathname:o.substring(0,c>0?r>0?Math.min(c,r):c:r>0?r:o.length),hash:c>-1?o.substring(c):"",search:r>-1?o.slice(r,c===-1?void 0:c):"",state:i||{[ta]:0,key:f,__TSR_key:f}}}function Tr(){return(Math.random()+1).toString(36).substring(7)}function Sl(a,i){const o=i,c=a;return{fromLocation:o,toLocation:c,pathChanged:o?.pathname!==c.pathname,hrefChanged:o?.href!==c.href,hashChanged:o?.hash!==c.hash}}var mx=class{constructor(a,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=o=>o(),this.update=o=>{const c=this.options,r=this.basepath??c?.basepath??"/",f=this.basepath===void 0,m=c?.rewrite;if(this.options={...c,...o},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Y0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=dx()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let b;this.resolvePathCache=Di(1e3),b=this.buildRouteTree(),this.setRoutes(b)}if(!this.stores&&this.latestLocation){const b=this.getStoreConfig(this);this.batch=b.batch,this.stores=lx(vx(this.latestLocation),b),J0(this)}let x=!1;const v=this.options.basepath??"/",y=this.options.rewrite;if(f||r!==v||m!==y){this.basepath=v;const b=[],p=Hp(v);p&&p!=="/"&&b.push(ax({basepath:v})),y&&b.push(y),this.rewrite=b.length===0?void 0:b.length===1?b[0]:nx(b),this.history&&this.updateLatestLocation(),x=!0}x&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const o=L0(this.routeTree,this.options.caseSensitive,(c,r)=>{c.init({originalIndex:r})});return this.options.routeMasks&&O0(this.options.routeMasks,o.processedTree),o},this.subscribe=(o,c)=>{const r={eventType:o,fn:c};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=o=>{this.subscribers.forEach(c=>{c.eventType===o.type&&c.fn(o)})},this.parseLocation=(o,c)=>{const r=({pathname:v,search:y,hash:b,href:p,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(v)){const w=this.options.parseSearch(y),N=this.options.stringifySearch(w);return{href:v+N+b,publicHref:v+N+b,pathname:Si(v).path,external:!1,searchStr:N,search:Sa(c?.search,w),hash:Si(b.slice(1)).path,state:Ra(c?.state,S)}}const _=new URL(p,this.origin),M=dr(this.rewrite,_),C=this.options.parseSearch(M.search),D=this.options.stringifySearch(C);return M.search=D,{href:M.href.replace(M.origin,""),publicHref:p,pathname:Si(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:D,search:Sa(c?.search,C),hash:Si(M.hash.slice(1)).path,state:Ra(c?.state,S)}},f=r(o),{__tempLocation:m,__tempKey:x}=f.state;if(m&&(!x||x===this.tempLocationKey)){const v=r(m);return v.state.key=f.state.key,v.state.__TSR_key=f.state.__TSR_key,delete v.state.__tempLocation,{...v,maskedLocation:f}}return f},this.resolvePathWithBase=(o,c)=>Q0({base:o,to:c.includes("//")?_r(c):c,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(o,c,r)=>typeof o=="string"?this.matchRoutesInternal({pathname:o,search:c},r):this.matchRoutesInternal(o,c),this.getMatchedRoutes=o=>yx({pathname:o,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=o=>{const c=this.getMatch(o);c&&(c.abortController.abort(),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(o=>{this.cancelMatch(o)}),this.stores.matchesId.get().forEach(o=>{if(this.stores.pendingMatchStores.has(o))return;const c=this.stores.matchStores.get(o)?.get();c&&(c.status==="pending"||c.isFetching==="loader")&&this.cancelMatch(o)})},this.buildLocation=o=>{const c=(f={})=>{const m=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,x=this.matchRoutesLightweight(m);f.from;const v=f.unsafeRelative==="path"?m.pathname:f.from??x.fullPath,y=f.to?`${f.to}`:void 0,b=x.search,p=Object.assign(Object.create(null),x.params),S=y?.charCodeAt(0)===47?"/":this.resolvePathWithBase(v,"."),_=y?this.resolvePathWithBase(S,y):S,M=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?p:Object.assign(p,Ta(f.params,p)),C=this.routesByPath[_n(_)];let D;if(C)D=this.getRouteBranch(C);else if(_.includes("$"))D=[];else{const at=this.getMatchedRoutes(_);D=at.matchedRoutes,this.options.notFoundRoute&&(!at.foundRoute||at.foundRoute.path!=="/"&&at.routeParams["**"])&&(D=[...D,this.options.notFoundRoute])}if(D.length&&zp(M))for(const at of D){const et=at.options.params?.stringify??at.options.stringifyParams;if(et)try{Object.assign(M,et(M))}catch{}}const w=o.leaveParams?_:Si(Km({path:_,params:M,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let N=b;if(o._includeValidateSearch&&this.options.search?.strict){const at={};D.forEach(et=>{if(et.options.validateSearch)try{Object.assign(at,ro(et.options.validateSearch,{...at,...N}))}catch{}}),N=at}N=gx({search:N,dest:f,destRoutes:D,_includeValidateSearch:o._includeValidateSearch}),N=Sa(b,N);const G=this.options.stringifySearch(N),X=f.hash===!0?m.hash:f.hash?Ta(f.hash,m.hash):void 0,K=X?`#${X}`:"";let P=f.state===!0?m.state:f.state?Ta(f.state,m.state):{};P=Ra(m.state,P);const H=`${w}${G}${K}`;let V,F,it=!1;if(this.rewrite){const at=new URL(H,this.origin),et=Qp(this.rewrite,at);V=at.href.replace(at.origin,""),et.origin!==this.origin?(F=et.href,it=!0):F=et.pathname+et.search+et.hash}else V=j0(H),F=V;return{publicHref:F,href:V,pathname:w,search:N,searchStr:G,state:P,hash:X??"",external:it,unmaskOnReload:f.unmaskOnReload}},r=(f={},m)=>{const x=c(f);let v=m?c(m):void 0;if(!v){const y=Object.create(null);if(this.options.routeMasks){const b=N0(x.pathname,this.processedTree);if(b){Object.assign(y,b.rawParams);const{from:p,params:S,..._}=b.route,M=S===!1||S===null?Object.create(null):(S??!0)===!0?y:Object.assign(y,Ta(S,y));m={from:o.from,..._,params:M},v=c(m)}}}return v&&(x.maskedLocation=v),x};return o.mask?r(o,{from:o.from,...o.mask}):r(o)},this.commitLocation=async({viewTransition:o,ignoreBlocker:c,...r})=>{let f;const m=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(p=>{r.state[p]=this.latestLocation.state[p]});const b=Ma(r.state,this.latestLocation.state);return y.forEach(p=>{delete r.state[p]}),b},x=_n(this.latestLocation.href)===_n(r.href);let v=this.commitLocationPromise;if(this.commitLocationPromise=_l(()=>{v?.resolve(),v=void 0}),x&&m())this.load();else{let{maskedLocation:y,hashScrollIntoView:b,...p}=r;y&&(p={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=b??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=o,f=r.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:c})}return this._scroll.next=r.resetScroll??!0,this.history.subscribers.size||this.load(f?{action:{type:f}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:o,resetScroll:c,hashScrollIntoView:r,viewTransition:f,ignoreBlocker:m,href:x,...v}={})=>{if(x){const p=this.history.location.state.__TSR_index,S=yo(x,{__TSR_index:o?p:p+1}),_=new URL(S.pathname,this.origin);v.to=dr(this.rewrite,_).pathname,v.search=this.options.parseSearch(S.search),v.hash=S.hash.slice(1)}const y=this.buildLocation({...v,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const b=this.commitLocation({...y,viewTransition:f,replace:o,resetScroll:c,hashScrollIntoView:r,ignoreBlocker:m});return queueMicrotask(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:o,reloadDocument:c,href:r,publicHref:f,...m})=>{let x=!1;if(r)try{new URL(`${r}`),x=!0}catch{}if(x&&!c&&(c=!0),c){if(o!==void 0||!r){const y=this.buildLocation({to:o,...m});r=r??y.publicHref,f=f??y.publicHref}const v=!x&&f?f:r;if(po(v,this.protocolAllowlist))return;if(!m.ignoreBlocker){const y=this.history.getBlockers?.()??[];for(const b of y)if(b?.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}m.replace?window.location.replace(v):window.location.href=v;return}return this.buildAndCommitLocation({...m,href:r,to:o,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const o=this.matchRoutes(this.latestLocation),c=this.stores.cachedMatches.get().filter(r=>!o.some(f=>f.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(o),this.stores.setCached(c)})},this.load=async o=>{const c=o?.action?.type;let r,f,m;const x=this.stores.resolvedLocation.get()??this.stores.location.get();for(m=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad(),c&&(this._scroll.hash=c==="PUSH"||c==="REPLACE");const b=this.latestLocation,p=Sl(b,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...p}),this.emit({type:"onBeforeLoad",...p}),await Wm({router:this,sync:o?.sync,forceStaleReload:x.href===b.href,matches:this.stores.pendingMatches.get(),location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let S=null,_=null,M=null,C=null;this.batch(()=>{const D=this.stores.pendingMatches.get(),w=D.length,N=this.stores.matches.get();S=w?N.filter(K=>!this.stores.pendingMatchStores.has(K.id)):null;const G=new Set;for(const K of this.stores.pendingMatchStores.values())K.routeId&&G.add(K.routeId);const X=new Set;for(const K of this.stores.matchStores.values())K.routeId&&X.add(K.routeId);_=w?N.filter(K=>!G.has(K.routeId)):null,M=w?D.filter(K=>!X.has(K.routeId)):null,C=w?D.filter(K=>X.has(K.routeId)):N,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),w&&(this.stores.setMatches(D),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...S.filter(K=>K.status!=="error"&&K.status!=="notFound"&&K.status!=="redirected")]),this.clearExpiredCache())});for(const[D,w]of[[_,"onLeave"],[M,"onEnter"],[C,"onStay"]])if(D)for(const N of D)this.looseRoutesById[N.routeId].options[w]?.(N)})})}})}catch(b){me(b)?(r=b,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):le(b)&&(f=b);const p=r?r.status:f?404:this.stores.matches.get().some(S=>S.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(p),this.stores.redirect.set(r)})}this.latestLoadPromise===m&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),y()})}),this.latestLoadPromise=m,await m;this.latestLoadPromise&&m!==this.latestLoadPromise;)await this.latestLoadPromise;let v;this.hasNotFoundMatch()?v=404:this.stores.matches.get().some(y=>y.status==="error")&&(v=500),v!==void 0&&this.stores.statusCode.set(v)},this.startViewTransition=o=>{const c=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,c&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof c=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,m=this.stores.resolvedLocation.get(),x=typeof c.types=="function"?c.types(Sl(f,m)):c.types;if(x===!1){o();return}r={update:o,types:x}}else r=o;document.startViewTransition(r)}else o()},this.updateMatch=(o,c)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(o);if(r){r.set(c);return}const f=this.stores.matchStores.get(o);if(f){f.set(c);return}const m=this.stores.cachedMatchStores.get(o);if(m){const x=c(m.get());x.status==="redirected"?this.stores.cachedMatchStores.delete(o)&&this.stores.cachedIds.set(v=>v.filter(y=>y!==o)):m.set(x)}})},this.getMatch=o=>this.stores.cachedMatchStores.get(o)?.get()??this.stores.pendingMatchStores.get(o)?.get()??this.stores.matchStores.get(o)?.get(),this.invalidate=o=>{const c=r=>o?.filter?.(r)??!0?{...r,invalid:!0,...o?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(c)),this.stores.setCached(this.stores.cachedMatches.get().map(c)),this.stores.setPending(this.stores.pendingMatches.get().map(c))}),this.shouldViewTransition=!1,this.load({sync:o?.sync})},this.getParsedLocationHref=o=>o.publicHref||"/",this.resolveRedirect=o=>{const c=o.headers.get("Location");if(!o.options.href||o.options._builtLocation){const r=o.options._builtLocation??this.buildLocation(o.options),f=this.getParsedLocationHref(r);o.options.href=f,o.headers.set("Location",f)}else if(c)try{const r=new URL(c);if(this.origin&&r.origin===this.origin){const f=r.pathname+r.search+r.hash;o.options.href=f,o.headers.set("Location",f)}}catch{}if(o.options.href&&!o.options._builtLocation&&po(o.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return o.headers.get("Location")||o.headers.set("Location",o.options.href),o},this.clearCache=o=>{const c=o?.filter;c!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!c(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const o=Date.now(),c=r=>{const f=this.looseRoutesById[r.routeId];if(!f.options.loader)return!0;const m=(r.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:o-r.updatedAt>=m};this.clearCache({filter:c})},this.loadRouteChunk=wi,this.preloadRoute=async o=>{const c=o._builtLocation??this.buildLocation(o);let r=this.matchRoutes(c,{throwOnError:!0,preload:!0,dest:o});const f=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),m=new Set([...f,...this.stores.cachedIds.get()]),x=r.filter(v=>!m.has(v.id));if(x.length){const v=this.stores.cachedMatches.get();this.stores.setCached([...v,...x])}try{return r=await Wm({router:this,matches:r,location:c,preload:!0,updateMatch:(v,y)=>{f.has(v)?r=r.map(b=>b.id===v?y(b):b):this.updateMatch(v,y)}}),r}catch(v){if(me(v))return v.options.reloadDocument?void 0:await this.preloadRoute({...v.options,_fromLocation:c});le(v)||console.error(v);return}},this.matchRoute=(o,c)=>{const r={...o,to:o.to?this.resolvePathWithBase(o.from||"",o.to):void 0,params:o.params||{},leaveParams:!0},f=this.buildLocation(r);if(c?.pending&&this.stores.status.get()!=="pending")return!1;const m=(c?.pending===void 0?!this.stores.isLoading.get():c.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),x=z0(f.pathname,c?.caseSensitive??!1,c?.fuzzy??!1,m.pathname,this.processedTree);return!x||o.params&&!Ma(x.rawParams,o.params,{partial:!0})?!1:c?.includeSearch??!0?Ma(m.search,f.search,{partial:!0})?x.rawParams:!1:x.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(o=>o.status==="notFound"||o.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??W0,parseSearch:a.parseSearch??$0,protocolAllowlist:a.protocolAllowlist??M0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:a,routesByPath:i,processedTree:o}){this.routesById=a,this.routesByPath=i,this.processedTree=o;const c=this.options.notFoundRoute;c&&(c.init({originalIndex:99999999999}),this.routesById[c.id]=c)}getRouteBranch(a){let i=this.routeBranchCache.get(a);return i||(i=Up(a),this.routeBranchCache.set(a,i)),i}get looseRoutesById(){return this.routesById}getParentContext(a){return a?.id?a.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(a,i){const o=this.getMatchedRoutes(a.pathname),{foundRoute:c,routeParams:r}=o;let{matchedRoutes:f}=o,m=!1;(c?c.path!=="/"&&r["**"]:_n(a.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:m=!0);const x=m?bx(this.options.notFoundMode,f):void 0,v=new Array(f.length),y=new Map;for(const b of this.stores.matchStores.values())b.routeId&&y.set(b.routeId,b.get());for(let b=0;b<f.length;b++){const p=f[b],S=v[b-1];let _,M,C;{const et=S?.search??a.search,Lt=S?._strictSearch??void 0;try{const zt=ro(p.options.validateSearch,{...et})??void 0;_={...et,...zt},M={...Lt,...zt},C=void 0}catch(zt){let Ht=zt;if(zt instanceof go||(Ht=new go(zt.message,{cause:zt})),i?.throwOnError)throw Ht;_=et,M={},C=Ht}}const D=p.options.loaderDeps?.({search:_})??"",w=D?JSON.stringify(D):"",{interpolatedPath:N,usedParams:G}=Km({path:p.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),X=p.id+N+w,K=this.getMatch(X),P=y.get(p.id),H=K?._strictParams??G;let V;if(!K)try{ap(p,H)}catch(et){if(le(et)||me(et)?V=et:V=new px(et.message,{cause:et}),i?.throwOnError)throw V}Object.assign(r,H);const F=P?"stay":"enter";let it;if(K)it={...K,cause:F,params:P?.params??r,_strictParams:H,search:Sa(P?P.search:K.search,_),_strictSearch:M};else{const et=p.options.loader||p.options.beforeLoad||p.lazyFn||Vp(p)?"pending":"success";it={id:X,ssr:p.options.ssr,index:b,routeId:p.id,params:P?.params??r,_strictParams:H,pathname:N,updatedAt:Date.now(),search:P?Sa(P.search,_):_,_strictSearch:M,searchError:void 0,status:et,isFetching:!1,error:void 0,paramsError:V,__routeContext:void 0,_nonReactive:{loadPromise:_l()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:F,loaderDeps:P?Ra(P.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}i?.preload||(it.globalNotFound=x===p.id),it.searchError=C;const at=this.getParentContext(S);it.context={...at,...it.__routeContext,...it.__beforeLoadContext},v[b]=it}for(let b=0;b<v.length;b++){const p=v[b],S=this.looseRoutesById[p.routeId],_=this.getMatch(p.id),M=y.get(p.routeId);if(p.params=M?Sa(M.params,r):r,!_){const C=v[b-1],D=this.getParentContext(C);if(S.options.context){const w={deps:p.loaderDeps,params:p.params,context:D??{},location:a,navigate:N=>this.navigate({...N,_fromLocation:a}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:v,routeId:S.id};p.__routeContext=S.options.context(w)??void 0}p.context={...D,...p.__routeContext,...p.__beforeLoadContext}}}return v}matchRoutesLightweight(a){const i=Ni(this.stores.matchesId.get()),o=this.lightweightCache.get(a);if(o&&o[0]===i)return o[1];const{matchedRoutes:c,routeParams:r}=this.getMatchedRoutes(a.pathname),f=Ni(c),m={...a.search};for(const p of c)try{Object.assign(m,ro(p.options.validateSearch,m))}catch{}const x=i&&this.stores.matchStores.get(i)?.get(),v=x&&x.routeId===f.id&&x.pathname===a.pathname;let y;if(v)y=x.params;else{const p=Object.assign(Object.create(null),r);for(const S of c)try{ap(S,p)}catch{}y=p}const b={matchedRoutes:c,fullPath:f.fullPath,search:m,params:y};return this.lightweightCache.set(a,[i,b]),b}},go=class extends Error{},px=class extends Error{};function vx(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],statusCode:200}}function ro(a,i){if(a==null)return{};if("~standard"in a){const o=a["~standard"].validate(i);if(o instanceof Promise)throw new go("Async validation not supported");if(o.issues)throw new go(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function yx({pathname:a,routesById:i,processedTree:o}){const c=Object.create(null),r=_n(a);let f;const m=D0(r,o,!0);return m&&(f=m.route,Object.assign(c,m.rawParams)),{matchedRoutes:m?.branch||[i.__root__],routeParams:c,foundRoute:f}}function gx({search:a,dest:i,destRoutes:o,_includeValidateSearch:c}){return xx(o)(a,i,c??!1)}function xx(a){let i,o;const c=[];for(const f of a){const m=f.options;if("search"in m)m.search?.middlewares&&c.push(...m.search.middlewares);else if(m.preSearchFilters||m.postSearchFilters){const v=({search:y,next:b})=>{const p=b(m.preSearchFilters?m.preSearchFilters.reduce((S,_)=>_(S),y):y);return m.postSearchFilters?m.postSearchFilters.reduce((S,_)=>_(S),p):p};c.push(v)}const x=m.validateSearch;if(x){const v=({search:y,next:b,meta:p})=>{const S=b(y);if(o)try{const _=ro(x,S);if(p&&_)for(const M in _)M in S||(p.defaulted||=new Map).set(M,_[M]);return{...S,..._}}catch{}return S};c.push(v)}}const r=(f,m,x)=>{if(f>=c.length){if(!i.search)return{};if(i.search===!0)return m;const y=Ta(i.search,m);return x&&(x.explicit=y),y}const v=(y,b)=>{if(b){const p=x||{};return{search:r(f+1,y,p),meta:p}}return r(f+1,y,x)};return c[f]({search:m,next:v,meta:x})};return function(m,x,v){return i=x,o=v,r(0,m)}}function bx(a,i){if(a!=="root")for(let o=i.length-1;o>=0;o--){const c=i[o];if(c.children)return c.id}return ja}function ap(a,i){const o=a.options.params?.parse??a.options.parseParams;if(o){const c=o(i);if(c===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,c)}}const Sx="Error preloading route! ☝️";var Kp=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=>{this.originalIndex=i.originalIndex;const o=this.options,c=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=ja:this.parentRoute||Tn();let r=c?ja:o?.path;r&&r!=="/"&&(r=Bp(r));const f=o?.id||r;let m=c?ja:oo([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);r==="__root__"&&(r="/"),m!=="__root__"&&(m=oo(["/",m]));const x=m==="__root__"?"/":oo([this.parentRoute.fullPath,r]);this._path=r,this._id=m,this._fullPath=x,this._to=_n(x)},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=>ex({from:this.fullPath,...i}),this.options=a||{},this.isRoot=!a?.getParentRoute,a?.id&&a?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},_x=class extends Kp{constructor(a){super(a)}};function Rr(a){const i=a.errorComponent??Er;return h.jsx(Tx,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:o,reset:c})=>o?J.createElement(i,{error:o,reset:c}):a.children})}var Tx=class extends J.Component{constructor(...a){super(...a),this.state={error:null}}static getDerivedStateFromProps(a,i){const o=a.getResetKey();return i.error&&i.resetKey!==o?{resetKey:o,error:null}:{resetKey:o}}static getDerivedStateFromError(a){return{error:a}}reset(){this.setState({error:null})}componentDidCatch(a,i){this.props.onCatch&&this.props.onCatch(a,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Er({error:a}){const[i,o]=J.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:()=>o(c=>!c),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.message?h.jsx("code",{children:a.message}):null})}):null]})}function Rx({children:a,fallback:i=null}){return Zp()?h.jsx(Oi.Fragment,{children:a}):h.jsx(Oi.Fragment,{children:i})}function Zp(){return Oi.useSyncExternalStore(Ex,()=>!0,()=>!1)}function Ex(){return()=>{}}var kp=J.createContext(null);function Be(a){return J.useContext(kp)}var Ro=J.createContext(void 0),Mx=J.createContext(void 0),wt=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(wt||{});function jx({update:a,notify:i,unwatched:o}){return{link:c,unlink:r,propagate:f,checkDirty:m,shallowPropagate:x};function c(y,b,p){const S=b.depsTail;if(S!==void 0&&S.dep===y)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===y){_.version=p,b.depsTail=_;return}const M=y.subsTail;if(M!==void 0&&M.version===p&&M.sub===b)return;const C=b.depsTail=y.subsTail={version:p,dep:y,sub:b,prevDep:S,nextDep:_,prevSub:M,nextSub:void 0};_!==void 0&&(_.prevDep=C),S!==void 0?S.nextDep=C:b.deps=C,M!==void 0?M.nextSub=C:y.subs=C}function r(y,b=y.sub){const p=y.dep,S=y.prevDep,_=y.nextDep,M=y.nextSub,C=y.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,M!==void 0?M.prevSub=C:p.subsTail=C,C!==void 0?C.nextSub=M:(p.subs=M)===void 0&&o(p),_}function f(y){let b=y.nextSub,p;t:do{const S=y.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&v(y,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&i(S),_&1){const M=S.subs;if(M!==void 0){const C=(y=M).nextSub;C!==void 0&&(p={value:b,prev:p},b=C);continue}}if((y=b)!==void 0){b=y.nextSub;continue}for(;p!==void 0;)if(y=p.value,p=p.prev,y!==void 0){b=y.nextSub;continue t}break}while(!0)}function m(y,b){let p,S=0,_=!1;t:do{const M=y.dep,C=M.flags;if(b.flags&16)_=!0;else if((C&17)===17){if(a(M)){const D=M.subs;D.nextSub!==void 0&&x(D),_=!0}}else if((C&33)===33){(y.nextSub!==void 0||y.prevSub!==void 0)&&(p={value:y,prev:p}),y=M.deps,b=M,++S;continue}if(!_){const D=y.nextDep;if(D!==void 0){y=D;continue}}for(;S--;){const D=b.subs,w=D.nextSub!==void 0;if(w?(y=p.value,p=p.prev):y=D,_){if(a(b)){w&&x(D),b=y.sub;continue}_=!1}else b.flags&=-33;b=y.sub;const N=y.nextDep;if(N!==void 0){y=N;continue t}}return _}while(!0)}function x(y){do{const b=y.sub,p=b.flags;(p&48)===32&&(b.flags=p|16,(p&6)===2&&i(b))}while((y=y.nextSub)!==void 0)}function v(y,b){let p=b.depsTail;for(;p!==void 0;){if(p===y)return!0;p=p.prevDep}return!1}}function Cx(a,i,o){const c=typeof a=="object",r=c?a:void 0;return{next:(c?a.next:a)?.bind(r),error:(c?a.error:i)?.bind(r),complete:(c?a.complete:o)?.bind(r)}}const mr=[];let fo=0;const{link:lp,unlink:Ax,propagate:Ox,checkDirty:Jp,shallowPropagate:ip}=jx({update(a){return a._update()},notify(a){mr[pr++]=a,a.flags&=~wt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=wt.Mutable|wt.Dirty,xo(a))}});let io=0,pr=0,Pe,vr=0;function Fp(a){try{++vr,a()}finally{--vr||Pp()}}function xo(a){const i=a.depsTail;let o=i!==void 0?i.nextDep:a.deps;for(;o!==void 0;)o=Ax(o,a)}function Pp(){if(!(vr>0)){for(;io<pr;){const a=mr[io];mr[io++]=void 0,a.notify()}io=0,pr=0}}function sp(a,i){const o=typeof a=="function",c=a,r={_snapshot:o?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?wt.None:wt.Mutable,get(){return Pe!==void 0&&lp(r,Pe,fo),r._snapshot},subscribe(f){const m=Cx(f),x={current:!1},v=Nx(()=>{r.get(),x.current?m.next?.(r._snapshot):x.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(f){const m=Pe,x=i?.compare??Object.is;if(o)Pe=r,++fo,r.depsTail=void 0;else if(f===void 0)return!1;o&&(r.flags=wt.Mutable|wt.RecursedCheck);try{const v=r._snapshot,y=typeof f=="function"?f(v):f===void 0&&o?c(v):f;return v===void 0||!x(v,y)?(r._snapshot=y,!0):!1}finally{Pe=m,o&&(r.flags&=~wt.RecursedCheck),xo(r)}}};return o?(r.flags=wt.Mutable|wt.Dirty,r.get=function(){const f=r.flags;if(f&wt.Dirty||f&wt.Pending&&Jp(r.deps,r)){if(r._update()){const m=r.subs;m!==void 0&&ip(m)}}else f&wt.Pending&&(r.flags=f&~wt.Pending);return Pe!==void 0&&lp(r,Pe,fo),r._snapshot}):r.set=function(f){if(r._update(f)){const m=r.subs;m!==void 0&&(Ox(m),ip(m),Pp())}},r}function Nx(a){const i=()=>{const c=Pe;Pe=o,++fo,o.depsTail=void 0,o.flags=wt.Watching|wt.RecursedCheck;try{return a()}finally{Pe=c,o.flags&=~wt.RecursedCheck,xo(o)}},o={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:wt.Watching|wt.RecursedCheck,notify(){const c=this.flags;c&wt.Dirty||c&wt.Pending&&Jp(this.deps,this)?i():this.flags=wt.Watching},stop(){this.flags=wt.None,this.depsTail=void 0,xo(this)}};return i(),o}var Jc={exports:{}},Fc={},Pc={exports:{}},$c={};var op;function zx(){if(op)return $c;op=1;var a=Ui();function i(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var o=typeof Object.is=="function"?Object.is:i,c=a.useState,r=a.useEffect,f=a.useLayoutEffect,m=a.useDebugValue;function x(p,S){var _=S(),M=c({inst:{value:_,getSnapshot:S}}),C=M[0].inst,D=M[1];return f(function(){C.value=_,C.getSnapshot=S,v(C)&&D({inst:C})},[p,_,S]),r(function(){return v(C)&&D({inst:C}),p(function(){v(C)&&D({inst:C})})},[p]),m(_),_}function v(p){var S=p.getSnapshot;p=p.value;try{var _=S();return!o(p,_)}catch{return!0}}function y(p,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:x;return $c.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,$c}var up;function Dx(){return up||(up=1,Pc.exports=zx()),Pc.exports}var cp;function wx(){if(cp)return Fc;cp=1;var a=Ui(),i=Dx();function o(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var c=typeof Object.is=="function"?Object.is:o,r=i.useSyncExternalStore,f=a.useRef,m=a.useEffect,x=a.useMemo,v=a.useDebugValue;return Fc.useSyncExternalStoreWithSelector=function(y,b,p,S,_){var M=f(null);if(M.current===null){var C={hasValue:!1,value:null};M.current=C}else C=M.current;M=x(function(){function w(P){if(!N){if(N=!0,G=P,P=S(P),_!==void 0&&C.hasValue){var H=C.value;if(_(H,P))return X=H}return X=P}if(H=X,c(G,P))return H;var V=S(P);return _!==void 0&&_(H,V)?(G=P,H):(G=P,X=V)}var N=!1,G,X,K=p===void 0?null:p;return[function(){return w(b())},K===null?void 0:function(){return w(K())}]},[b,p,S,_]);var D=r(y,M[0],M[1]);return m(function(){C.hasValue=!0,C.value=D},[D]),v(D),D},Fc}var rp;function Lx(){return rp||(rp=1,Jc.exports=wx()),Jc.exports}var Ux=Lx();function Bx(a,i){return a===i}function pe(a,i,o=Bx){const c=J.useCallback(m=>{if(!a)return()=>{};const{unsubscribe:x}=a.subscribe(m);return x},[a]),r=J.useCallback(()=>a?.get(),[a]);return Ux.useSyncExternalStoreWithSelector(c,r,r,i,o)}var Wc={get(){},subscribe(){return{unsubscribe(){}}}};function Hx(a,i){const o=J.useRef();return c=>{const r=a?.select?a.select(c):c;return a?.structuralSharing??i.options.defaultStructuralSharing?o.current=Ra(o.current,r):r}}function Aa(a){const i=Be(),o=J.useContext(a.from?Mx:Ro),c=a.from?i.stores.getRouteMatchStore(a.from):i.stores.matchStores.get(o),r=Hx(a,i),f=pe(c??Wc,m=>m?r(m):Wc);if(f!==Wc)return f;(a.shouldThrow??!0)&&Tn()}function $p(a){return Aa({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function Wp(a){const{select:i,...o}=a;return Aa({...o,select:c=>i?i(c.loaderDeps):c.loaderDeps})}function Ip(a){return Aa({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const o=a.strict===!1?i.params:i._strictParams;return a.select?a.select(o):o}})}function tv(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 ev(a){const i=Be();return J.useCallback(o=>i.navigate({...o,from:o.from??a?.from}),[a?.from,i])}function nv(a){return Aa({...a,select:i=>a.select?a.select(i.context):i.context})}var Ic={exports:{}},ae={};var fp;function qx(){if(fp)return ae;fp=1;var a=Ui();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal");function f(v,y,b){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:p==null?null:""+p,children:v,containerInfo:y,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ae.createPortal=function(v,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return f(v,y,null,b)},ae.flushSync=function(v){var y=m.T,b=c.p;try{if(m.T=null,c.p=2,v)return v()}finally{m.T=y,c.p=b,c.d.f()}},ae.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(v,y))},ae.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},ae.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var b=y.as,p=x(b,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,_=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?c.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:p,integrity:S,fetchPriority:_}):b==="script"&&c.d.X(v,{crossOrigin:p,integrity:S,fetchPriority:_,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ae.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=x(y.as,y.crossOrigin);c.d.M(v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(v)},ae.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,p=x(b,y.crossOrigin);c.d.L(v,b,{crossOrigin:p,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})}},ae.preloadModule=function(v,y){if(typeof v=="string")if(y){var b=x(y.as,y.crossOrigin);c.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(v)},ae.requestFormReset=function(v){c.d.r(v)},ae.unstable_batchedUpdates=function(v,y){return v(y)},ae.useFormState=function(v,y,b){return m.H.useFormState(v,y,b)},ae.useFormStatus=function(){return m.H.useHostTransitionStatus()},ae.version="19.2.7",ae}var dp;function av(){if(dp)return Ic.exports;dp=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(),Ic.exports=qx(),Ic.exports}var Qx=av();function Yx(a,i){const o=Be(),c=S0(i),{activeProps:r,inactiveProps:f,activeOptions:m,to:x,preload:v,preloadDelay:y,preloadIntentProximity:b,hashScrollIntoView:p,replace:S,startTransition:_,resetScroll:M,viewTransition:C,children:D,target:w,disabled:N,style:G,className:X,onClick:K,onBlur:P,onFocus:H,onMouseEnter:V,onMouseLeave:F,onTouchStart:it,ignoreBlocker:at,params:et,search:Lt,hash:zt,state:Ht,mask:U,reloadDocument:Z,unsafeRelative:lt,from:xt,_fromLocation:St,...E}=a,Q=Zp(),k=J.useMemo(()=>a,[o,a.from,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),$=pe(o.stores.location,At=>At,(At,Ft)=>At.href===Ft.href),tt=J.useMemo(()=>{const At={_fromLocation:$,...k};return o.buildLocation(At)},[o,$,k]),rt=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,vt=tt.maskedLocation?tt.maskedLocation.external:tt.external,qt=J.useMemo(()=>kx(rt,vt,o.history,N),[N,vt,rt,o.history]),jt=J.useMemo(()=>{if(qt?.external)return po(qt.href,o.protocolAllowlist)?void 0:qt.href;if(!Jx(x)&&!(typeof x!="string"||x.indexOf(":")===-1))try{return new URL(x),po(x,o.protocolAllowlist)?void 0:x}catch{}},[x,qt,o.protocolAllowlist]),tn=J.useMemo(()=>{if(jt)return!1;if(m?.exact){if(!q0($.pathname,tt.pathname,o.basepath))return!1}else{const At=vo($.pathname,o.basepath),Ft=vo(tt.pathname,o.basepath);if(!(At.startsWith(Ft)&&(At.length===Ft.length||At[Ft.length]==="/")))return!1}return(m?.includeSearch??!0)&&!Ma($.search,tt.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?Q&&$.hash===tt.hash:!0},[m?.exact,m?.explicitUndefined,m?.includeHash,m?.includeSearch,$,jt,Q,tt.hash,tt.pathname,tt.search,o.basepath]),en=tn?Ta(r,{})??Gx:tr,Rn=tn?tr:Ta(f,{})??tr,El=[X,en.className,Rn.className].filter(Boolean).join(" "),Xe=(G||en.style||Rn.style)&&{...G,...en.style,...Rn.style},[Ml,Na]=J.useState(!1),Bi=J.useRef(!1),nn=a.reloadDocument||jt?!1:v??o.options.defaultPreload,na=y??o.options.defaultPreloadDelay??0,He=J.useCallback(()=>{o.preloadRoute({...k,_builtLocation:tt}).catch(At=>{console.warn(At),console.warn(Sx)})},[o,k,tt]);b0(c,J.useCallback(At=>{At?.isIntersecting&&He()},[He]),Zx,{disabled:!!N||nn!=="viewport"}),J.useEffect(()=>{Bi.current||!N&&nn==="render"&&(He(),Bi.current=!0)},[N,He,nn]);const jl=At=>{const Ft=At.currentTarget.getAttribute("target"),Ve=w!==void 0?w:Ft;if(!N&&!Fx(At)&&!At.defaultPrevented&&(!Ve||Ve==="_self")&&At.button===0){At.preventDefault(),Qx.flushSync(()=>{Na(!0)});const za=o.subscribe("onResolved",()=>{za(),Na(!1)});o.navigate({...k,replace:S,resetScroll:M,hashScrollIntoView:p,startTransition:_,viewTransition:C,ignoreBlocker:at})}};if(jt)return{...E,ref:c,href:jt,...D&&{children:D},...w&&{target:w},...N&&{disabled:N},...G&&{style:G},...X&&{className:X},...K&&{onClick:K},...P&&{onBlur:P},...H&&{onFocus:H},...V&&{onMouseEnter:V},...F&&{onMouseLeave:F},...it&&{onTouchStart:it}};const Hi=At=>{if(N||nn!=="intent")return;if(!na){He();return}const Ft=At.currentTarget;if(Ti.has(Ft))return;const Ve=setTimeout(()=>{Ti.delete(Ft),He()},na);Ti.set(Ft,Ve)},Mo=At=>{N||nn!=="intent"||He()},ne=At=>{if(N||!nn||!na)return;const Ft=At.currentTarget,Ve=Ti.get(Ft);Ve&&(clearTimeout(Ve),Ti.delete(Ft))};return{...E,...en,...Rn,href:qt?.href,ref:c,onClick:yl([K,jl]),onBlur:yl([P,ne]),onFocus:yl([H,Hi]),onMouseEnter:yl([V,Hi]),onMouseLeave:yl([F,ne]),onTouchStart:yl([it,Mo]),disabled:!!N,target:w,...Xe&&{style:Xe},...El&&{className:El},...N&&Xx,...tn&&Vx,...Q&&Ml&&Kx}}var tr={},Gx={className:"active"},Xx={role:"link","aria-disabled":!0},Vx={"data-status":"active","aria-current":"page"},Kx={"data-transitioning":"transitioning"},Ti=new WeakMap,Zx={rootMargin:"100px"},yl=a=>i=>{for(const o of a)if(o){if(i.defaultPrevented)return;o(i)}};function kx(a,i,o,c){if(!c)return i?{href:a,external:!0}:{href:o.createHref(a)||"/",external:!1}}function Jx(a){if(typeof a!="string")return!1;const i=a.charCodeAt(0);return i===47?a.charCodeAt(1)!==47:i===46}var ea=J.forwardRef((a,i)=>{const{_asChild:o,...c}=a,{type:r,...f}=Yx(c,i),m=typeof c.children=="function"?c.children({isActive:f["data-status"]==="active"}):c.children;if(!o){const{disabled:x,...v}=f;return J.createElement("a",v,m)}return J.createElement(o,f,m)});function Fx(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var Px=class extends Kp{constructor(i){super(i),this.useMatch=o=>Aa({select:o?.select,from:this.id,structuralSharing:o?.structuralSharing}),this.useRouteContext=o=>nv({...o,from:this.id}),this.useSearch=o=>tv({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useParams=o=>Ip({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useLoaderDeps=o=>Wp({...o,from:this.id}),this.useLoaderData=o=>$p({...o,from:this.id}),this.useNavigate=()=>ev({from:this.fullPath}),this.Link=Oi.forwardRef((o,c)=>h.jsx(ea,{ref:c,from:this.fullPath,...o}))}};function $x(a){return new Px(a)}function Wx(){return a=>tb(a)}var Ix=class extends _x{constructor(a){super(a),this.useMatch=i=>Aa({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>nv({...i,from:this.id}),this.useSearch=i=>tv({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Ip({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Wp({...i,from:this.id}),this.useLoaderData=i=>$p({...i,from:this.id}),this.useNavigate=()=>ev({from:this.fullPath}),this.Link=Oi.forwardRef((i,o)=>h.jsx(ea,{ref:o,from:this.fullPath,...i}))}};function tb(a){return new Ix(a)}function Tl(a){return new eb(a,{silent:!0}).createRoute}var eb=class{constructor(a,i){this.path=a,this.createRoute=o=>{const c=$x(o);return c.isRoot=!1,c},this.silent=i?.silent}};function nb(a){const i=Be(),o=`not-found-${pe(i.stores.location,c=>c.pathname)}-${pe(i.stores.status,c=>c)}`;return h.jsx(Rr,{getResetKey:()=>o,onCatch:(c,r)=>{if(le(c))a.onCatch?.(c,r);else throw c},errorComponent:({error:c})=>{if(le(c))return a.fallback?.(c);throw c},children:a.children})}function ab(){return h.jsx("p",{children:"Not Found"})}function bl(a){return h.jsx(h.Fragment,{children:a.children})}function lv(a,i,o){return i.options.notFoundComponent?h.jsx(i.options.notFoundComponent,{...o}):a.options.defaultNotFoundComponent?h.jsx(a.options.defaultNotFoundComponent,{...o}):h.jsx(ab,{})}function lb(a){return null}function ib(){return lb(Be()),null}var sb=(a,i)=>a.routeId===i.routeId&&a._displayPending===i._displayPending,ob=(a,i)=>a[0]===i[0]&&a[1]===i[1],iv=J.memo(function({matchId:i}){const o=Be(),c=o.stores.matchStores.get(i);c||Tn();const r=pe(o.stores.loadedAt,m=>m),f=pe(c,m=>m,sb);return h.jsx(ub,{router:o,matchId:i,resetKey:r,matchState:J.useMemo(()=>{const m=f.routeId,x=o.routesById[m].parentRoute?.id;return{routeId:m,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:x}},[f._displayPending,f.routeId,f.ssr,o.routesById])})});function ub({router:a,matchId:i,resetKey:o,matchState:c}){const r=a.routesById[c.routeId],f=r.options.pendingComponent??a.options.defaultPendingComponent,m=f?h.jsx(f,{}):null,x=r.options.errorComponent??a.options.defaultErrorComponent,v=r.options.onCatch??a.options.defaultOnCatch,y=r.isRoot?r.options.notFoundComponent??a.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=c.ssr===!1||c.ssr==="data-only",p=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??f??(r.options.errorComponent?.preload||b))?J.Suspense:bl,S=x?Rr:bl,_=y?nb:bl;return h.jsxs(r.isRoot?r.options.shellComponent??bl:bl,{children:[h.jsx(Ro.Provider,{value:i,children:h.jsx(p,{fallback:m,children:h.jsx(S,{getResetKey:()=>o,errorComponent:x||Er,onCatch:(M,C)=>{if(le(M))throw M.routeId??=c.routeId,M;v?.(M,C)},children:h.jsx(_,{fallback:M=>{if(M.routeId??=c.routeId,!y||M.routeId&&M.routeId!==c.routeId||!M.routeId&&!r.isRoot)throw M;return J.createElement(y,M)},children:b||c._displayPending?h.jsx(Rx,{fallback:m,children:h.jsx(hp,{matchId:i})}):h.jsx(hp,{matchId:i})})})})}),c.parentRouteId===ja?h.jsxs(h.Fragment,{children:[h.jsx(cb,{}),a.options.scrollRestoration&&Op?h.jsx(ib,{}):null]}):null]})}function cb(){const a=Be(),i=J.useRef();return Mi(()=>{const o=a.stores.resolvedLocation.get(),c=i.current;o&&(!c||c.href!==o.href)&&a.emit({type:"onRendered",...Sl(a.stores.location.get(),c??o)}),i.current=o},[pe(a.stores.resolvedLocation,o=>o?.state.__TSR_key),a]),null}var hp=J.memo(function({matchId:i}){const o=Be(),c=(b,p)=>o.getMatch(b.id)?._nonReactive[p]??b._nonReactive[p],r=o.stores.matchStores.get(i);r||Tn();const f=pe(r,b=>b),m=f.routeId,x=o.routesById[m],v=J.useMemo(()=>{const b=(o.routesById[m].options.remountDeps??o.options.defaultRemountDeps)?.({routeId:m,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return b?JSON.stringify(b):void 0},[m,f.loaderDeps,f._strictParams,f._strictSearch,o.options.defaultRemountDeps,o.routesById]),y=J.useMemo(()=>{const b=x.options.component??o.options.defaultComponent;return b?h.jsx(b,{},v):h.jsx(sv,{})},[v,x.options.component,o.options.defaultComponent]);if(f._displayPending)throw c(f,"displayPendingPromise");if(f._forcePending)throw c(f,"minPendingPromise");if(f.status==="pending"){const b=x.options.pendingMinMs??o.options.defaultPendingMinMs;if(b){const p=o.getMatch(f.id);if(p&&!p._nonReactive.minPendingPromise){const S=_l();p._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),p._nonReactive.minPendingPromise=void 0},b)}}throw c(f,"loadPromise")}if(f.status==="notFound")return le(f.error)||Tn(),lv(o,x,f.error);if(f.status==="redirected")throw me(f.error)||Tn(),c(f,"loadPromise");if(f.status==="error")throw f.error;return y}),sv=J.memo(function(){const i=Be(),o=J.useContext(Ro);let c,r=!1,f;{const y=o?i.stores.matchStores.get(o):void 0;[c,r]=pe(y,b=>[b?.routeId,b?.globalNotFound??!1],ob),f=pe(i.stores.matchesId,b=>b[b.findIndex(p=>p===o)+1])}const m=c?i.routesById[c]:void 0,x=i.options.defaultPendingComponent?h.jsx(i.options.defaultPendingComponent,{}):null;if(r)return m||Tn(),lv(i,m,void 0);if(!f)return null;const v=h.jsx(iv,{matchId:f});return c===ja?h.jsx(J.Suspense,{fallback:x,children:v}):v});function rb(){const a=Be(),i=J.useRef({router:a,mounted:!1}),[o,c]=J.useState(!1),r=pe(a.stores.isLoading,p=>p),f=pe(a.stores.hasPending,p=>p),m=Yc(r),x=r||o||f,v=Yc(x),y=r||f,b=Yc(y);return a.startTransition=p=>{c(!0),J.startTransition(()=>{p(),c(!1)})},J.useEffect(()=>{const p=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return _n(a.latestLocation.publicHref)!==_n(S.publicHref)&&a.commitLocation({...S,replace:!0}),()=>{p()}},[a,a.history]),Mi(()=>{if(typeof window<"u"&&a.ssr||i.current.router===a&&i.current.mounted)return;i.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),Mi(()=>{m&&!r&&a.emit({type:"onLoad",...Sl(a.stores.location.get(),a.stores.resolvedLocation.get())})},[m,a,r]),Mi(()=>{b&&!y&&a.emit({type:"onBeforeRouteMount",...Sl(a.stores.location.get(),a.stores.resolvedLocation.get())})},[y,b,a]),Mi(()=>{if(v&&!x){const p=Sl(a.stores.location.get(),a.stores.resolvedLocation.get());a.emit({type:"onResolved",...p}),Fp(()=>{a.stores.status.set("idle"),a.stores.resolvedLocation.set(a.stores.location.get())})}},[x,v,a]),null}function fb(){const a=Be(),i=a.routesById[ja].options.pendingComponent??a.options.defaultPendingComponent,o=i?h.jsx(i,{}):null,c=h.jsxs(typeof document<"u"&&a.ssr?bl:J.Suspense,{fallback:o,children:[h.jsx(rb,{}),h.jsx(db,{})]});return a.options.InnerWrap?h.jsx(a.options.InnerWrap,{children:c}):c}function db(){const a=Be(),i=pe(a.stores.firstId,r=>r),o=pe(a.stores.loadedAt,r=>r),c=i?h.jsx(iv,{matchId:i}):null;return h.jsx(Ro.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?c:h.jsx(Rr,{getResetKey:()=>o,errorComponent:Er,onCatch:void 0,children:c})})}var hb=a=>({createMutableStore:sp,createReadonlyStore:sp,batch:Fp}),mb=a=>new pb(a),pb=class extends mx{constructor(a){super(a,hb)}};function vb({router:a,children:i,...o}){zp(o)&&a.update({...a.options,...o,context:{...a.options.context,...o.context}});const c=h.jsx(kp.Provider,{value:a,children:i});return a.options.Wrap?h.jsx(a.options.Wrap,{children:c}):c}function yb({router:a,...i}){return h.jsx(vb,{router:a,...i,children:h.jsx(fb,{})})}var er={exports:{}},Ri={},nr={exports:{}},ar={};var mp;function gb(){return mp||(mp=1,(function(a){function i(U,Z){var lt=U.length;U.push(Z);t:for(;0<lt;){var xt=lt-1>>>1,St=U[xt];if(0<r(St,Z))U[xt]=Z,U[lt]=St,lt=xt;else break t}}function o(U){return U.length===0?null:U[0]}function c(U){if(U.length===0)return null;var Z=U[0],lt=U.pop();if(lt!==Z){U[0]=lt;t:for(var xt=0,St=U.length,E=St>>>1;xt<E;){var Q=2*(xt+1)-1,k=U[Q],$=Q+1,tt=U[$];if(0>r(k,lt))$<St&&0>r(tt,k)?(U[xt]=tt,U[$]=lt,xt=$):(U[xt]=k,U[Q]=lt,xt=Q);else if($<St&&0>r(tt,lt))U[xt]=tt,U[$]=lt,xt=$;else break t}}return Z}function r(U,Z){var lt=U.sortIndex-Z.sortIndex;return lt!==0?lt:U.id-Z.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,x=m.now();a.unstable_now=function(){return m.now()-x}}var v=[],y=[],b=1,p=null,S=3,_=!1,M=!1,C=!1,D=!1,w=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(U){for(var Z=o(y);Z!==null;){if(Z.callback===null)c(y);else if(Z.startTime<=U)c(y),Z.sortIndex=Z.expirationTime,i(v,Z);else break;Z=o(y)}}function K(U){if(C=!1,X(U),!M)if(o(v)!==null)M=!0,P||(P=!0,et());else{var Z=o(y);Z!==null&&Ht(K,Z.startTime-U)}}var P=!1,H=-1,V=5,F=-1;function it(){return D?!0:!(a.unstable_now()-F<V)}function at(){if(D=!1,P){var U=a.unstable_now();F=U;var Z=!0;try{t:{M=!1,C&&(C=!1,N(H),H=-1),_=!0;var lt=S;try{e:{for(X(U),p=o(v);p!==null&&!(p.expirationTime>U&&it());){var xt=p.callback;if(typeof xt=="function"){p.callback=null,S=p.priorityLevel;var St=xt(p.expirationTime<=U);if(U=a.unstable_now(),typeof St=="function"){p.callback=St,X(U),Z=!0;break e}p===o(v)&&c(v),X(U)}else c(v);p=o(v)}if(p!==null)Z=!0;else{var E=o(y);E!==null&&Ht(K,E.startTime-U),Z=!1}}break t}finally{p=null,S=lt,_=!1}Z=void 0}}finally{Z?et():P=!1}}}var et;if(typeof G=="function")et=function(){G(at)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,zt=Lt.port2;Lt.port1.onmessage=at,et=function(){zt.postMessage(null)}}else et=function(){w(at,0)};function Ht(U,Z){H=w(function(){U(a.unstable_now())},Z)}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(U){U.callback=null},a.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<U?Math.floor(1e3/U):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(U){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var lt=S;S=Z;try{return U()}finally{S=lt}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(U,Z){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var lt=S;S=U;try{return Z()}finally{S=lt}},a.unstable_scheduleCallback=function(U,Z,lt){var xt=a.unstable_now();switch(typeof lt=="object"&&lt!==null?(lt=lt.delay,lt=typeof lt=="number"&&0<lt?xt+lt:xt):lt=xt,U){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=lt+St,U={id:b++,callback:Z,priorityLevel:U,startTime:lt,expirationTime:St,sortIndex:-1},lt>xt?(U.sortIndex=lt,i(y,U),o(v)===null&&U===o(y)&&(C?(N(H),H=-1):C=!0,Ht(K,lt-xt))):(U.sortIndex=St,i(v,U),M||_||(M=!0,P||(P=!0,et()))),U},a.unstable_shouldYield=it,a.unstable_wrapCallback=function(U){var Z=S;return function(){var lt=S;S=Z;try{return U.apply(this,arguments)}finally{S=lt}}}})(ar)),ar}var pp;function xb(){return pp||(pp=1,nr.exports=gb()),nr.exports}var vp;function bb(){if(vp)return Ri;vp=1;var a=xb(),i=Ui(),o=av();function c(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 r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function 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 x(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(f(t)!==t)throw Error(c(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return v(s),t;if(u===l)return v(s),e;u=u.sibling}throw Error(c(188))}if(n.return!==l.return)n=s,l=u;else{for(var d=!1,g=s.child;g;){if(g===n){d=!0,n=s,l=u;break}if(g===l){d=!0,l=s,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,l=s;break}if(g===l){d=!0,l=u,n=s;break}g=g.sibling}if(!d)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var p=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function et(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var Lt=Symbol.for("react.client.reference");function zt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Lt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case w:return"Profiler";case D:return"StrictMode";case K:return"Suspense";case P:return"SuspenseList";case F:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case G:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:zt(t.type)||"Memo";case V:e=t._payload,t=t._init;try{return zt(t(e))}catch{}}return null}var Ht=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lt={pending:!1,data:null,method:null,action:null},xt=[],St=-1;function E(t){return{current:t}}function Q(t){0>St||(t.current=xt[St],xt[St]=null,St--)}function k(t,e){St++,xt[St]=t.current,t.current=e}var $=E(null),tt=E(null),rt=E(null),vt=E(null);function qt(t,e){switch(k(rt,e),k(tt,t),k($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Jh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Jh(e),t=Fh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q($),k($,t)}function jt(){Q($),Q(tt),Q(rt)}function tn(t){t.memoizedState!==null&&k(vt,t);var e=$.current,n=Fh(e,t.type);e!==n&&(k(tt,t),k($,n))}function en(t){tt.current===t&&(Q($),Q(tt)),vt.current===t&&(Q(vt),vi._currentValue=lt)}var Rn,El;function Xe(t){if(Rn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Rn=e&&e[1]||"",El=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Rn+t+El}var Ml=!1;function Na(t,e){if(!t||Ml)return"";Ml=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(L){var z=L}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(L){z=L}t.call(Y.prototype)}}else{try{throw Error()}catch(L){z=L}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(L){if(L&&z&&typeof L.stack=="string")return[L.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),d=u[0],g=u[1];if(d&&g){var T=d.split(`
4
+ `),O=g.split(`
5
+ `);for(s=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;if(l===T.length||s===O.length)for(l=T.length-1,s=O.length-1;1<=l&&0<=s&&T[l]!==O[s];)s--;for(;1<=l&&0<=s;l--,s--)if(T[l]!==O[s]){if(l!==1||s!==1)do if(l--,s--,0>s||T[l]!==O[s]){var B=`
6
+ `+T[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=s);break}}}finally{Ml=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Xe(n):""}function Bi(t,e){switch(t.tag){case 26:case 27:case 5:return Xe(t.type);case 16:return Xe("Lazy");case 13:return t.child!==e&&e!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return Na(t.type,!1);case 11:return Na(t.type.render,!1);case 1:return Na(t.type,!0);case 31:return Xe("Activity");default:return""}}function nn(t){try{var e="",n=null;do e+=Bi(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var na=Object.prototype.hasOwnProperty,He=a.unstable_scheduleCallback,jl=a.unstable_cancelCallback,Hi=a.unstable_shouldYield,Mo=a.unstable_requestPaint,ne=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ft=a.unstable_ImmediatePriority,Ve=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,dv=a.unstable_LowPriority,jr=a.unstable_IdlePriority,hv=a.log,mv=a.unstable_setDisableYieldValue,Cl=null,ve=null;function En(t){if(typeof hv=="function"&&mv(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(Cl,t)}catch{}}var ye=Math.clz32?Math.clz32:yv,pv=Math.log,vv=Math.LN2;function yv(t){return t>>>=0,t===0?32:31-(pv(t)/vv|0)|0}var qi=256,Qi=262144,Yi=4194304;function aa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Gi(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var s=0,u=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~u,l!==0?s=aa(l):(d&=g,d!==0?s=aa(d):n||(n=g&~t,n!==0&&(s=aa(n))))):(g=l&~u,g!==0?s=aa(g):d!==0?s=aa(d):n||(n=l&~t,n!==0&&(s=aa(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function Al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function gv(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 Cr(){var t=Yi;return Yi<<=1,(Yi&62914560)===0&&(Yi=4194304),t}function jo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ol(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function xv(t,e,n,l,s,u){var d=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,O=t.hiddenUpdates;for(n=d&~n;0<n;){var B=31-ye(n),Y=1<<B;g[B]=0,T[B]=-1;var z=O[B];if(z!==null)for(O[B]=null,B=0;B<z.length;B++){var L=z[B];L!==null&&(L.lane&=-536870913)}n&=~Y}l!==0&&Ar(t,l,0),u!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=u&~(d&~e))}function Ar(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ye(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Or(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-ye(n),s=1<<l;s&e|t[l]&e&&(t[l]|=e),n&=~s}}function Nr(t,e){var n=e&-e;return n=(n&42)!==0?1:Co(n),(n&(t.suspendedLanes|e))!==0?0:n}function Co(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 Ao(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function zr(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:gm(t.type))}function Dr(t,e){var n=Z.p;try{return Z.p=t,e()}finally{Z.p=n}}var Mn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Mn,se="__reactProps$"+Mn,Da="__reactContainer$"+Mn,Oo="__reactEvents$"+Mn,bv="__reactListeners$"+Mn,Sv="__reactHandles$"+Mn,wr="__reactResources$"+Mn,Nl="__reactMarker$"+Mn;function No(t){delete t[Pt],delete t[se],delete t[Oo],delete t[bv],delete t[Sv]}function wa(t){var e=t[Pt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[Pt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=nm(t);t!==null;){if(n=t[Pt])return n;t=nm(t)}return e}t=n,n=t.parentNode}return null}function La(t){if(t=t[Pt]||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 zl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Ua(t){var e=t[wr];return e||(e=t[wr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Nl]=!0}var Lr=new Set,Ur={};function la(t,e){Ba(t,e),Ba(t+"Capture",e)}function Ba(t,e){for(Ur[t]=e,t=0;t<e.length;t++)Lr.add(e[t])}var _v=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]*$"),Br={},Hr={};function Tv(t){return na.call(Hr,t)?!0:na.call(Br,t)?!1:_v.test(t)?Hr[t]=!0:(Br[t]=!0,!1)}function Xi(t,e,n){if(Tv(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 Vi(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 an(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 je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Rv(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 s=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(d){n=""+d,u.call(this,d)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function zo(t){if(!t._valueTracker){var e=qr(t)?"checked":"value";t._valueTracker=Rv(t,e,""+t[e])}}function Qr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=qr(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Ki(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ev=/[\n"\\]/g;function Ce(t){return t.replace(Ev,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Do(t,e,n,l,s,u,d,g){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?wo(t,d,je(e)):n!=null?wo(t,d,je(n)):l!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+je(g):t.removeAttribute("name")}function Yr(t,e,n,l,s,u,d,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){zo(t);return}n=n!=null?""+je(n):"",e=e!=null?""+je(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=g?t.checked:!!l,t.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),zo(t)}function wo(t,e,n){e==="number"&&Ki(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ha(t,e,n,l){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&l&&(t[n].defaultSelected=!0)}else{for(n=""+je(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,l&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Gr(t,e,n){if(e!=null&&(e=""+je(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+je(n):""}function Xr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(Ht(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=je(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),zo(t)}function qa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Mv=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 Vr(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||Mv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Kr(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var s in e)l=e[s],e.hasOwnProperty(s)&&n[s]!==l&&Vr(t,s,l)}else for(var u in e)e.hasOwnProperty(u)&&Vr(t,u,e[u])}function Lo(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 jv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Cv=/^[\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 Zi(t){return Cv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ln(){}var Uo=null;function Bo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Qa=null,Ya=null;function Zr(t){var e=La(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Do(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="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var s=l[se]||null;if(!s)throw Error(c(90));Do(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Qr(l)}break t;case"textarea":Gr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ha(t,!!n.multiple,e,!1)}}}var Ho=!1;function kr(t,e,n){if(Ho)return t(e,n);Ho=!0;try{var l=t(e);return l}finally{if(Ho=!1,(Qa!==null||Ya!==null)&&(Ds(),Qa&&(e=Qa,t=Ya,Ya=Qa=null,Zr(e),t)))for(e=0;e<t.length;e++)Zr(t[e])}}function Dl(t,e){var n=t.stateNode;if(n===null)return null;var l=n[se]||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(c(231,e,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qo=!1;if(sn)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){qo=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{qo=!1}var jn=null,Qo=null,ki=null;function Jr(){if(ki)return ki;var t,e=Qo,n=e.length,l,s="value"in jn?jn.value:jn.textContent,u=s.length;for(t=0;t<n&&e[t]===s[t];t++);var d=n-t;for(l=1;l<=d&&e[n-l]===s[u-l];l++);return ki=s.slice(t,1<l?1-l:void 0)}function Ji(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Fi(){return!0}function Fr(){return!1}function oe(t){function e(n,l,s,u,d){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Fi:Fr,this.isPropagationStopped=Fr,this}return p(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),e}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pi=oe(ia),Ll=p({},ia,{view:0,detail:0}),Av=oe(Ll),Yo,Go,Ul,$i=p({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vo,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ul&&(Ul&&t.type==="mousemove"?(Yo=t.screenX-Ul.screenX,Go=t.screenY-Ul.screenY):Go=Yo=0,Ul=t),Yo)},movementY:function(t){return"movementY"in t?t.movementY:Go}}),Pr=oe($i),Ov=p({},$i,{dataTransfer:0}),Nv=oe(Ov),zv=p({},Ll,{relatedTarget:0}),Xo=oe(zv),Dv=p({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),wv=oe(Dv),Lv=p({},ia,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Uv=oe(Lv),Bv=p({},ia,{data:0}),$r=oe(Bv),Hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qv={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"},Qv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Qv[t])?!!e[t]:!1}function Vo(){return Yv}var Gv=p({},Ll,{key:function(t){if(t.key){var e=Hv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ji(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?qv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vo,charCode:function(t){return t.type==="keypress"?Ji(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ji(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Xv=oe(Gv),Vv=p({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wr=oe(Vv),Kv=p({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vo}),Zv=oe(Kv),kv=p({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jv=oe(kv),Fv=p({},$i,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Pv=oe(Fv),$v=p({},ia,{newState:0,oldState:0}),Wv=oe($v),Iv=[9,13,27,32],Ko=sn&&"CompositionEvent"in window,Bl=null;sn&&"documentMode"in document&&(Bl=document.documentMode);var ty=sn&&"TextEvent"in window&&!Bl,Ir=sn&&(!Ko||Bl&&8<Bl&&11>=Bl),tf=" ",ef=!1;function nf(t,e){switch(t){case"keyup":return Iv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ga=!1;function ey(t,e){switch(t){case"compositionend":return af(e);case"keypress":return e.which!==32?null:(ef=!0,tf);case"textInput":return t=e.data,t===tf&&ef?null:t;default:return null}}function ny(t,e){if(Ga)return t==="compositionend"||!Ko&&nf(t,e)?(t=Jr(),ki=Qo=jn=null,Ga=!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 Ir&&e.locale!=="ko"?null:e.data;default:return null}}var ay={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 lf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ay[t.type]:e==="textarea"}function sf(t,e,n,l){Qa?Ya?Ya.push(l):Ya=[l]:Qa=l,e=Qs(e,"onChange"),0<e.length&&(n=new Pi("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Hl=null,ql=null;function ly(t){Gh(t,0)}function Wi(t){var e=zl(t);if(Qr(e))return t}function of(t,e){if(t==="change")return e}var uf=!1;if(sn){var Zo;if(sn){var ko="oninput"in document;if(!ko){var cf=document.createElement("div");cf.setAttribute("oninput","return;"),ko=typeof cf.oninput=="function"}Zo=ko}else Zo=!1;uf=Zo&&(!document.documentMode||9<document.documentMode)}function rf(){Hl&&(Hl.detachEvent("onpropertychange",ff),ql=Hl=null)}function ff(t){if(t.propertyName==="value"&&Wi(ql)){var e=[];sf(e,ql,t,Bo(t)),kr(ly,e)}}function iy(t,e,n){t==="focusin"?(rf(),Hl=e,ql=n,Hl.attachEvent("onpropertychange",ff)):t==="focusout"&&rf()}function sy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wi(ql)}function oy(t,e){if(t==="click")return Wi(e)}function uy(t,e){if(t==="input"||t==="change")return Wi(e)}function cy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ge=typeof Object.is=="function"?Object.is:cy;function Ql(t,e){if(ge(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 s=n[l];if(!na.call(e,s)||!ge(t[s],e[s]))return!1}return!0}function df(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hf(t,e){var n=df(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=df(n)}}function mf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?mf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function pf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ki(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=Ki(t.document)}return e}function Jo(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 ry=sn&&"documentMode"in document&&11>=document.documentMode,Xa=null,Fo=null,Yl=null,Po=!1;function vf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Po||Xa==null||Xa!==Ki(l)||(l=Xa,"selectionStart"in l&&Jo(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}),Yl&&Ql(Yl,l)||(Yl=l,l=Qs(Fo,"onSelect"),0<l.length&&(e=new Pi("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Xa)))}function sa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Va={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},$o={},yf={};sn&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function oa(t){if($o[t])return $o[t];if(!Va[t])return t;var e=Va[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in yf)return $o[t]=e[n];return t}var gf=oa("animationend"),xf=oa("animationiteration"),bf=oa("animationstart"),fy=oa("transitionrun"),dy=oa("transitionstart"),hy=oa("transitioncancel"),Sf=oa("transitionend"),_f=new Map,Wo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wo.push("scrollEnd");function qe(t,e){_f.set(t,e),la(e,[t])}var Ii=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ka=0,Io=0;function ts(){for(var t=Ka,e=Io=Ka=0;e<t;){var n=Ae[e];Ae[e++]=null;var l=Ae[e];Ae[e++]=null;var s=Ae[e];Ae[e++]=null;var u=Ae[e];if(Ae[e++]=null,l!==null&&s!==null){var d=l.pending;d===null?s.next=s:(s.next=d.next,d.next=s),l.pending=s}u!==0&&Tf(n,s,u)}}function es(t,e,n,l){Ae[Ka++]=t,Ae[Ka++]=e,Ae[Ka++]=n,Ae[Ka++]=l,Io|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function tu(t,e,n,l){return es(t,e,n,l),ns(t)}function ua(t,e){return es(t,null,null,e),ns(t)}function Tf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var s=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(s=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,s&&e!==null&&(s=31-ye(n),t=u.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),u):null}function ns(t){if(50<ci)throw ci=0,cc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Za={};function my(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 xe(t,e,n,l){return new my(t,e,n,l)}function eu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function on(t,e){var n=t.alternate;return n===null?(n=xe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Rf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function as(t,e,n,l,s,u){var d=0;if(l=t,typeof t=="function")eu(t)&&(d=1);else if(typeof t=="string")d=xg(t,n,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case F:return t=xe(31,n,e,s),t.elementType=F,t.lanes=u,t;case C:return ca(n.children,s,u,e);case D:d=8,s|=24;break;case w:return t=xe(12,n,e,s|2),t.elementType=w,t.lanes=u,t;case K:return t=xe(13,n,e,s),t.elementType=K,t.lanes=u,t;case P:return t=xe(19,n,e,s),t.elementType=P,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:d=10;break t;case N:d=9;break t;case X:d=11;break t;case H:d=14;break t;case V:d=16,l=null;break t}d=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=xe(d,n,e,s),e.elementType=t,e.type=l,e.lanes=u,e}function ca(t,e,n,l){return t=xe(7,t,l,e),t.lanes=n,t}function nu(t,e,n){return t=xe(6,t,null,e),t.lanes=n,t}function Ef(t){var e=xe(18,null,null,0);return e.stateNode=t,e}function au(t,e,n){return e=xe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Mf=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var n=Mf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:nn(e)},Mf.set(t,e),e)}return{value:t,source:e,stack:nn(e)}}var ka=[],Ja=0,ls=null,Gl=0,Ne=[],ze=0,Cn=null,Ke=1,Ze="";function un(t,e){ka[Ja++]=Gl,ka[Ja++]=ls,ls=t,Gl=e}function jf(t,e,n){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Cn=t;var l=Ke;t=Ze;var s=32-ye(l)-1;l&=~(1<<s),n+=1;var u=32-ye(e)+s;if(30<u){var d=s-s%5;u=(l&(1<<d)-1).toString(32),l>>=d,s-=d,Ke=1<<32-ye(e)+s|n<<s|l,Ze=u+t}else Ke=1<<u|n<<s|l,Ze=t}function lu(t){t.return!==null&&(un(t,1),jf(t,1,0))}function iu(t){for(;t===ls;)ls=ka[--Ja],ka[Ja]=null,Gl=ka[--Ja],ka[Ja]=null;for(;t===Cn;)Cn=Ne[--ze],Ne[ze]=null,Ze=Ne[--ze],Ne[ze]=null,Ke=Ne[--ze],Ne[ze]=null}function Cf(t,e){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Ke=e.id,Ze=e.overflow,Cn=t}var $t=null,Ot=null,pt=!1,An=null,De=!1,su=Error(c(519));function On(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xl(Oe(e,t)),su}function Af(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Pt]=t,e[se]=l,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<fi.length;n++)dt(fi[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Yr(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Xr(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||Zh(e.textContent,n)?(l.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),l.onScroll!=null&&dt("scroll",e),l.onScrollEnd!=null&&dt("scrollend",e),l.onClick!=null&&(e.onclick=ln),e=!0):e=!1,e||On(t,!0)}function Of(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:$t=$t.return}}function Fa(t){if(t!==$t)return!1;if(!pt)return Of(t),pt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Rc(t.type,t.memoizedProps)),n=!n),n&&Ot&&On(t),Of(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ot=em(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ot=em(t)}else e===27?(e=Ot,Vn(t.type)?(t=Ac,Ac=null,Ot=t):Ot=e):Ot=$t?Le(t.stateNode.nextSibling):null;return!0}function ra(){Ot=$t=null,pt=!1}function ou(){var t=An;return t!==null&&(fe===null?fe=t:fe.push.apply(fe,t),An=null),t}function Xl(t){An===null?An=[t]:An.push(t)}var uu=E(null),fa=null,cn=null;function Nn(t,e,n){k(uu,e._currentValue),e._currentValue=n}function rn(t){t._currentValue=uu.current,Q(uu)}function cu(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 ru(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){var d=s.child;u=u.firstContext;t:for(;u!==null;){var g=u;u=s;for(var T=0;T<e.length;T++)if(g.context===e[T]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),cu(u.return,n,t),l||(d=null);break t}u=g.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(c(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),cu(d,n,t),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===t){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function Pa(t,e,n,l){t=null;for(var s=e,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(c(387));if(d=d.memoizedProps,d!==null){var g=s.type;ge(s.pendingProps.value,d.value)||(t!==null?t.push(g):t=[g])}}else if(s===vt.current){if(d=s.alternate,d===null)throw Error(c(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(vi):t=[vi])}s=s.return}t!==null&&ru(e,t,n,l),e.flags|=262144}function is(t){for(t=t.firstContext;t!==null;){if(!ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function da(t){fa=t,cn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Nf(fa,t)}function ss(t,e){return fa===null&&da(t),Nf(t,e)}function Nf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},cn===null){if(t===null)throw Error(c(308));cn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else cn=cn.next=e;return n}var py=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()})}},vy=a.unstable_scheduleCallback,yy=a.unstable_NormalPriority,Gt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fu(){return{controller:new py,data:new Map,refCount:0}}function Vl(t){t.refCount--,t.refCount===0&&vy(yy,function(){t.controller.abort()})}var Kl=null,du=0,$a=0,Wa=null;function gy(t,e){if(Kl===null){var n=Kl=[];du=0,$a=pc(),Wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return du++,e.then(zf,zf),e}function zf(){if(--du===0&&Kl!==null){Wa!==null&&(Wa.status="fulfilled");var t=Kl;Kl=null,$a=0,Wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function xy(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Df=U.S;U.S=function(t,e){vh=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&gy(t,e),Df!==null&&Df(t,e)};var ha=E(null);function hu(){var t=ha.current;return t!==null?t:Ct.pooledCache}function os(t,e){e===null?k(ha,ha.current):k(ha,e.pool)}function wf(){var t=hu();return t===null?null:{parent:Gt._currentValue,pool:t}}var Ia=Error(c(460)),mu=Error(c(474)),us=Error(c(542)),cs={then:function(){}};function Lf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Uf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ln,ln),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Hf(t),t;default:if(typeof e.status=="string")e.then(ln,ln);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=l}},function(l){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Hf(t),t}throw pa=e,Ia}}function ma(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pa=n,Ia):n}}var pa=null;function Bf(){if(pa===null)throw Error(c(459));var t=pa;return pa=null,t}function Hf(t){if(t===Ia||t===us)throw Error(c(483))}var tl=null,Zl=0;function rs(t){var e=Zl;return Zl+=1,tl===null&&(tl=[]),Uf(tl,t,e)}function kl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function fs(t,e){throw e.$$typeof===S?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function qf(t){function e(j,R){if(t){var A=j.deletions;A===null?(j.deletions=[R],j.flags|=16):A.push(R)}}function n(j,R){if(!t)return null;for(;R!==null;)e(j,R),R=R.sibling;return null}function l(j){for(var R=new Map;j!==null;)j.key!==null?R.set(j.key,j):R.set(j.index,j),j=j.sibling;return R}function s(j,R){return j=on(j,R),j.index=0,j.sibling=null,j}function u(j,R,A){return j.index=A,t?(A=j.alternate,A!==null?(A=A.index,A<R?(j.flags|=67108866,R):A):(j.flags|=67108866,R)):(j.flags|=1048576,R)}function d(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function g(j,R,A,q){return R===null||R.tag!==6?(R=nu(A,j.mode,q),R.return=j,R):(R=s(R,A),R.return=j,R)}function T(j,R,A,q){var nt=A.type;return nt===C?B(j,R,A.props.children,q,A.key):R!==null&&(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===V&&ma(nt)===R.type)?(R=s(R,A.props),kl(R,A),R.return=j,R):(R=as(A.type,A.key,A.props,null,j.mode,q),kl(R,A),R.return=j,R)}function O(j,R,A,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation?(R=au(A,j.mode,q),R.return=j,R):(R=s(R,A.children||[]),R.return=j,R)}function B(j,R,A,q,nt){return R===null||R.tag!==7?(R=ca(A,j.mode,q,nt),R.return=j,R):(R=s(R,A),R.return=j,R)}function Y(j,R,A){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=nu(""+R,j.mode,A),R.return=j,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return A=as(R.type,R.key,R.props,null,j.mode,A),kl(A,R),A.return=j,A;case M:return R=au(R,j.mode,A),R.return=j,R;case V:return R=ma(R),Y(j,R,A)}if(Ht(R)||et(R))return R=ca(R,j.mode,A,null),R.return=j,R;if(typeof R.then=="function")return Y(j,rs(R),A);if(R.$$typeof===G)return Y(j,ss(j,R),A);fs(j,R)}return null}function z(j,R,A,q){var nt=R!==null?R.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:g(j,R,""+A,q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?T(j,R,A,q):null;case M:return A.key===nt?O(j,R,A,q):null;case V:return A=ma(A),z(j,R,A,q)}if(Ht(A)||et(A))return nt!==null?null:B(j,R,A,q,null);if(typeof A.then=="function")return z(j,R,rs(A),q);if(A.$$typeof===G)return z(j,R,ss(j,A),q);fs(j,A)}return null}function L(j,R,A,q,nt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return j=j.get(A)||null,g(R,j,""+q,nt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return j=j.get(q.key===null?A:q.key)||null,T(R,j,q,nt);case M:return j=j.get(q.key===null?A:q.key)||null,O(R,j,q,nt);case V:return q=ma(q),L(j,R,A,q,nt)}if(Ht(q)||et(q))return j=j.get(A)||null,B(R,j,q,nt,null);if(typeof q.then=="function")return L(j,R,A,rs(q),nt);if(q.$$typeof===G)return L(j,R,A,ss(R,q),nt);fs(R,q)}return null}function W(j,R,A,q){for(var nt=null,yt=null,I=R,ct=R=0,mt=null;I!==null&&ct<A.length;ct++){I.index>ct?(mt=I,I=null):mt=I.sibling;var gt=z(j,I,A[ct],q);if(gt===null){I===null&&(I=mt);break}t&&I&&gt.alternate===null&&e(j,I),R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt,I=mt}if(ct===A.length)return n(j,I),pt&&un(j,ct),nt;if(I===null){for(;ct<A.length;ct++)I=Y(j,A[ct],q),I!==null&&(R=u(I,R,ct),yt===null?nt=I:yt.sibling=I,yt=I);return pt&&un(j,ct),nt}for(I=l(I);ct<A.length;ct++)mt=L(I,j,ct,A[ct],q),mt!==null&&(t&&mt.alternate!==null&&I.delete(mt.key===null?ct:mt.key),R=u(mt,R,ct),yt===null?nt=mt:yt.sibling=mt,yt=mt);return t&&I.forEach(function(Fn){return e(j,Fn)}),pt&&un(j,ct),nt}function st(j,R,A,q){if(A==null)throw Error(c(151));for(var nt=null,yt=null,I=R,ct=R=0,mt=null,gt=A.next();I!==null&&!gt.done;ct++,gt=A.next()){I.index>ct?(mt=I,I=null):mt=I.sibling;var Fn=z(j,I,gt.value,q);if(Fn===null){I===null&&(I=mt);break}t&&I&&Fn.alternate===null&&e(j,I),R=u(Fn,R,ct),yt===null?nt=Fn:yt.sibling=Fn,yt=Fn,I=mt}if(gt.done)return n(j,I),pt&&un(j,ct),nt;if(I===null){for(;!gt.done;ct++,gt=A.next())gt=Y(j,gt.value,q),gt!==null&&(R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt);return pt&&un(j,ct),nt}for(I=l(I);!gt.done;ct++,gt=A.next())gt=L(I,j,ct,gt.value,q),gt!==null&&(t&&gt.alternate!==null&&I.delete(gt.key===null?ct:gt.key),R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt);return t&&I.forEach(function(Og){return e(j,Og)}),pt&&un(j,ct),nt}function Mt(j,R,A,q){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var nt=A.key;R!==null;){if(R.key===nt){if(nt=A.type,nt===C){if(R.tag===7){n(j,R.sibling),q=s(R,A.props.children),q.return=j,j=q;break t}}else if(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===V&&ma(nt)===R.type){n(j,R.sibling),q=s(R,A.props),kl(q,A),q.return=j,j=q;break t}n(j,R);break}else e(j,R);R=R.sibling}A.type===C?(q=ca(A.props.children,j.mode,q,A.key),q.return=j,j=q):(q=as(A.type,A.key,A.props,null,j.mode,q),kl(q,A),q.return=j,j=q)}return d(j);case M:t:{for(nt=A.key;R!==null;){if(R.key===nt)if(R.tag===4&&R.stateNode.containerInfo===A.containerInfo&&R.stateNode.implementation===A.implementation){n(j,R.sibling),q=s(R,A.children||[]),q.return=j,j=q;break t}else{n(j,R);break}else e(j,R);R=R.sibling}q=au(A,j.mode,q),q.return=j,j=q}return d(j);case V:return A=ma(A),Mt(j,R,A,q)}if(Ht(A))return W(j,R,A,q);if(et(A)){if(nt=et(A),typeof nt!="function")throw Error(c(150));return A=nt.call(A),st(j,R,A,q)}if(typeof A.then=="function")return Mt(j,R,rs(A),q);if(A.$$typeof===G)return Mt(j,R,ss(j,A),q);fs(j,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,R!==null&&R.tag===6?(n(j,R.sibling),q=s(R,A),q.return=j,j=q):(n(j,R),q=nu(A,j.mode,q),q.return=j,j=q),d(j)):n(j,R)}return function(j,R,A,q){try{Zl=0;var nt=Mt(j,R,A,q);return tl=null,nt}catch(I){if(I===Ia||I===us)throw I;var yt=xe(29,I,null,j.mode);return yt.lanes=q,yt.return=j,yt}}}var va=qf(!0),Qf=qf(!1),zn=!1;function pu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vu(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 Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var s=l.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),l.pending=e,e=ns(t),Tf(t,null,n),e}return es(t,l,e,n),ns(t)}function Jl(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,Or(t,n)}}function yu(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:u,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 gu=!1;function Fl(){if(gu){var t=Wa;if(t!==null)throw t}}function Pl(t,e,n,l){gu=!1;var s=t.updateQueue;zn=!1;var u=s.firstBaseUpdate,d=s.lastBaseUpdate,g=s.shared.pending;if(g!==null){s.shared.pending=null;var T=g,O=T.next;T.next=null,d===null?u=O:d.next=O,d=T;var B=t.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==d&&(g===null?B.firstBaseUpdate=O:g.next=O,B.lastBaseUpdate=T))}if(u!==null){var Y=s.baseState;d=0,B=O=T=null,g=u;do{var z=g.lane&-536870913,L=z!==g.lane;if(L?(ht&z)===z:(l&z)===z){z!==0&&z===$a&&(gu=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var W=t,st=g;z=e;var Mt=n;switch(st.tag){case 1:if(W=st.payload,typeof W=="function"){Y=W.call(Mt,Y,z);break t}Y=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=st.payload,z=typeof W=="function"?W.call(Mt,Y,z):W,z==null)break t;Y=p({},Y,z);break t;case 2:zn=!0}}z=g.callback,z!==null&&(t.flags|=64,L&&(t.flags|=8192),L=s.callbacks,L===null?s.callbacks=[z]:L.push(z))}else L={lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(O=B=L,T=Y):B=B.next=L,d|=z;if(g=g.next,g===null){if(g=s.shared.pending,g===null)break;L=g,g=L.next,L.next=null,s.lastBaseUpdate=L,s.shared.pending=null}}while(!0);B===null&&(T=Y),s.baseState=T,s.firstBaseUpdate=O,s.lastBaseUpdate=B,u===null&&(s.shared.lanes=0),qn|=d,t.lanes=d,t.memoizedState=Y}}function Yf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function Gf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Yf(n[t],e)}var el=E(null),ds=E(0);function Xf(t,e){t=xn,k(ds,t),k(el,e),xn=t|e.baseLanes}function xu(){k(ds,xn),k(el,el.current)}function bu(){xn=ds.current,Q(el),Q(ds)}var be=E(null),we=null;function Ln(t){var e=t.alternate;k(Qt,Qt.current&1),k(be,t),we===null&&(e===null||el.current!==null||e.memoizedState!==null)&&(we=t)}function Su(t){k(Qt,Qt.current),k(be,t),we===null&&(we=t)}function Vf(t){t.tag===22?(k(Qt,Qt.current),k(be,t),we===null&&(we=t)):Un()}function Un(){k(Qt,Qt.current),k(be,be.current)}function Se(t){Q(be),we===t&&(we=null),Q(Qt)}var Qt=E(0);function hs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||jc(n)||Cc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fn=0,ut=null,Rt=null,Xt=null,ms=!1,nl=!1,ya=!1,ps=0,$l=0,al=null,by=0;function Ut(){throw Error(c(321))}function _u(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ge(t[n],e[n]))return!1;return!0}function Tu(t,e,n,l,s,u){return fn=u,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?jd:Hu,ya=!1,u=n(l,s),ya=!1,nl&&(u=Zf(e,n,l,s)),Kf(t),u}function Kf(t){U.H=ti;var e=Rt!==null&&Rt.next!==null;if(fn=0,Xt=Rt=ut=null,ms=!1,$l=0,al=null,e)throw Error(c(300));t===null||Vt||(t=t.dependencies,t!==null&&is(t)&&(Vt=!0))}function Zf(t,e,n,l){ut=t;var s=0;do{if(nl&&(al=null),$l=0,nl=!1,25<=s)throw Error(c(301));if(s+=1,Xt=Rt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Cd,u=e(n,l)}while(nl);return u}function Sy(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Wl(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Ru(){var t=ps!==0;return ps=0,t}function Eu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Mu(t){if(ms){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ms=!1}fn=0,Xt=Rt=ut=null,nl=!1,$l=ps=0,al=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Rt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Xt===null?ut.memoizedState:Xt.next;if(e!==null)Xt=e,Rt=t;else{if(t===null)throw ut.alternate===null?Error(c(467)):Error(c(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function vs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wl(t){var e=$l;return $l+=1,al===null&&(al=[]),t=Uf(al,t,e),e=ut,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?jd:Hu),t}function ys(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Wl(t);if(t.$$typeof===G)return Wt(t)}throw Error(c(438,String(t)))}function ju(t){var e=null,n=ut.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ut.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=vs(),ut.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=it;return e.index++,n}function dn(t,e){return typeof e=="function"?e(t):e}function gs(t){var e=Yt();return Cu(e,Rt,t)}function Cu(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var s=t.baseQueue,u=l.pending;if(u!==null){if(s!==null){var d=s.next;s.next=u.next,u.next=d}e.baseQueue=s=u,l.pending=null}if(u=t.baseState,s===null)t.memoizedState=u;else{e=s.next;var g=d=null,T=null,O=e,B=!1;do{var Y=O.lane&-536870913;if(Y!==O.lane?(ht&Y)===Y:(fn&Y)===Y){var z=O.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Y===$a&&(B=!0);else if((fn&z)===z){O=O.next,z===$a&&(B=!0);continue}else Y={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(g=T=Y,d=u):T=T.next=Y,ut.lanes|=z,qn|=z;Y=O.action,ya&&n(u,Y),u=O.hasEagerState?O.eagerState:n(u,Y)}else z={lane:Y,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(g=T=z,d=u):T=T.next=z,ut.lanes|=Y,qn|=Y;O=O.next}while(O!==null&&O!==e);if(T===null?d=u:T.next=g,!ge(u,t.memoizedState)&&(Vt=!0,B&&(n=Wa,n!==null)))throw n;t.memoizedState=u,t.baseState=d,t.baseQueue=T,l.lastRenderedState=u}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Au(t){var e=Yt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,u=e.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do u=t(u,d.action),d=d.next;while(d!==s);ge(u,e.memoizedState)||(Vt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function kf(t,e,n){var l=ut,s=Yt(),u=pt;if(u){if(n===void 0)throw Error(c(407));n=n()}else n=e();var d=!ge((Rt||s).memoizedState,n);if(d&&(s.memoizedState=n,Vt=!0),s=s.queue,zu(Pf.bind(null,l,s,t),[t]),s.getSnapshot!==e||d||Xt!==null&&Xt.memoizedState.tag&1){if(l.flags|=2048,ll(9,{destroy:void 0},Ff.bind(null,l,s,n,e),null),Ct===null)throw Error(c(349));u||(fn&127)!==0||Jf(l,e,n)}return n}function Jf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ut.updateQueue,e===null?(e=vs(),ut.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Ff(t,e,n,l){e.value=n,e.getSnapshot=l,$f(e)&&Wf(t)}function Pf(t,e,n){return n(function(){$f(e)&&Wf(t)})}function $f(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ge(t,n)}catch{return!0}}function Wf(t){var e=ua(t,2);e!==null&&de(e,t,2)}function Ou(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ya){En(!0);try{n()}finally{En(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:t},e}function If(t,e,n,l){return t.baseState=n,Cu(t,Rt,typeof l=="function"?l:dn)}function _y(t,e,n,l,s){if(Ss(t))throw Error(c(485));if(t=e.action,t!==null){var u={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};U.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,td(e,u)):(u.next=n.next,e.pending=n.next=u)}}function td(t,e){var n=e.action,l=e.payload,s=t.state;if(e.isTransition){var u=U.T,d={};U.T=d;try{var g=n(s,l),T=U.S;T!==null&&T(d,g),ed(t,e,g)}catch(O){Nu(t,e,O)}finally{u!==null&&d.types!==null&&(u.types=d.types),U.T=u}}else try{u=n(s,l),ed(t,e,u)}catch(O){Nu(t,e,O)}}function ed(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){nd(t,e,l)},function(l){return Nu(t,e,l)}):nd(t,e,n)}function nd(t,e,n){e.status="fulfilled",e.value=n,ad(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,td(t,n)))}function Nu(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,ad(e),e=e.next;while(e!==l)}t.action=null}function ad(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ld(t,e){return e}function id(t,e){if(pt){var n=Ct.formState;if(n!==null){t:{var l=ut;if(pt){if(Ot){e:{for(var s=Ot,u=De;s.nodeType!==8;){if(!u){s=null;break e}if(s=Le(s.nextSibling),s===null){s=null;break e}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Ot=Le(s.nextSibling),l=s.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ld,lastRenderedState:e},n.queue=l,n=Rd.bind(null,ut,l),l.dispatch=n,l=Ou(!1),u=Bu.bind(null,ut,!1,l.queue),l=ie(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=_y.bind(null,ut,s,u,n),s.dispatch=n,l.memoizedState=t,[e,n,!1]}function sd(t){var e=Yt();return od(e,Rt,t)}function od(t,e,n){if(e=Cu(t,e,ld)[0],t=gs(dn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Wl(e)}catch(d){throw d===Ia?us:d}else l=e;e=Yt();var s=e.queue,u=s.dispatch;return n!==e.memoizedState&&(ut.flags|=2048,ll(9,{destroy:void 0},Ty.bind(null,s,n),null)),[l,u,t]}function Ty(t,e){t.action=e}function ud(t){var e=Yt(),n=Rt;if(n!==null)return od(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ll(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ut.updateQueue,e===null&&(e=vs(),ut.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function cd(){return Yt().memoizedState}function xs(t,e,n,l){var s=ie();ut.flags|=t,s.memoizedState=ll(1|e,{destroy:void 0},n,l===void 0?null:l)}function bs(t,e,n,l){var s=Yt();l=l===void 0?null:l;var u=s.memoizedState.inst;Rt!==null&&l!==null&&_u(l,Rt.memoizedState.deps)?s.memoizedState=ll(e,u,n,l):(ut.flags|=t,s.memoizedState=ll(1|e,u,n,l))}function rd(t,e){xs(8390656,8,t,e)}function zu(t,e){bs(2048,8,t,e)}function Ry(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=vs(),ut.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function fd(t){var e=Yt().memoizedState;return Ry({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function dd(t,e){return bs(4,2,t,e)}function hd(t,e){return bs(4,4,t,e)}function md(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 pd(t,e,n){n=n!=null?n.concat([t]):null,bs(4,4,md.bind(null,e,t),n)}function Du(){}function vd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&_u(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function yd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&_u(e,l[1]))return l[0];if(l=t(),ya){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l}function wu(t,e,n){return n===void 0||(fn&1073741824)!==0&&(ht&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=gh(),ut.lanes|=t,qn|=t,n)}function gd(t,e,n,l){return ge(n,e)?n:el.current!==null?(t=wu(t,n,l),ge(t,e)||(Vt=!0),t):(fn&42)===0||(fn&1073741824)!==0&&(ht&261930)===0?(Vt=!0,t.memoizedState=n):(t=gh(),ut.lanes|=t,qn|=t,e)}function xd(t,e,n,l,s){var u=Z.p;Z.p=u!==0&&8>u?u:8;var d=U.T,g={};U.T=g,Bu(t,!1,e,n);try{var T=s(),O=U.S;if(O!==null&&O(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=xy(T,l);Il(t,e,B,Re(t))}else Il(t,e,l,Re(t))}catch(Y){Il(t,e,{then:function(){},status:"rejected",reason:Y},Re())}finally{Z.p=u,d!==null&&g.types!==null&&(d.types=g.types),U.T=d}}function Ey(){}function Lu(t,e,n,l){if(t.tag!==5)throw Error(c(476));var s=bd(t).queue;xd(t,s,e,lt,n===null?Ey:function(){return Sd(t),n(l)})}function bd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:lt,baseState:lt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:lt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Sd(t){var e=bd(t);e.next===null&&(e=t.alternate.memoizedState),Il(t,e.next.queue,{},Re())}function Uu(){return Wt(vi)}function _d(){return Yt().memoizedState}function Td(){return Yt().memoizedState}function My(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Re();t=Dn(n);var l=wn(e,t,n);l!==null&&(de(l,e,n),Jl(l,e,n)),e={cache:fu()},t.payload=e;return}e=e.return}}function jy(t,e,n){var l=Re();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ss(t)?Ed(e,n):(n=tu(t,e,n,l),n!==null&&(de(n,t,l),Md(n,e,l)))}function Rd(t,e,n){var l=Re();Il(t,e,n,l)}function Il(t,e,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ss(t))Ed(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var d=e.lastRenderedState,g=u(d,n);if(s.hasEagerState=!0,s.eagerState=g,ge(g,d))return es(t,e,s,0),Ct===null&&ts(),!1}catch{}if(n=tu(t,e,s,l),n!==null)return de(n,t,l),Md(n,e,l),!0}return!1}function Bu(t,e,n,l){if(l={lane:2,revertLane:pc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ss(t)){if(e)throw Error(c(479))}else e=tu(t,n,l,2),e!==null&&de(e,t,2)}function Ss(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function Ed(t,e){nl=ms=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Md(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Or(t,n)}}var ti={readContext:Wt,use:ys,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};ti.useEffectEvent=Ut;var jd={readContext:Wt,use:ys,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:rd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,xs(4194308,4,md.bind(null,e,t),n)},useLayoutEffect:function(t,e){return xs(4194308,4,t,e)},useInsertionEffect:function(t,e){xs(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var l=t();if(ya){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ie();if(n!==void 0){var s=n(e);if(ya){En(!0);try{n(e)}finally{En(!1)}}}else s=e;return l.memoizedState=l.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},l.queue=t,t=t.dispatch=jy.bind(null,ut,t),[l.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=Ou(t);var e=t.queue,n=Rd.bind(null,ut,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Du,useDeferredValue:function(t,e){var n=ie();return wu(n,t,e)},useTransition:function(){var t=Ou(!1);return t=xd.bind(null,ut,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ut,s=ie();if(pt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Ct===null)throw Error(c(349));(ht&127)!==0||Jf(l,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,rd(Pf.bind(null,l,u,t),[t]),l.flags|=2048,ll(9,{destroy:void 0},Ff.bind(null,l,u,n,e),null),n},useId:function(){var t=ie(),e=Ct.identifierPrefix;if(pt){var n=Ze,l=Ke;n=(l&~(1<<32-ye(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ps++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=by++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Uu,useFormState:id,useActionState:id,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Bu.bind(null,ut,!0,n),n.dispatch=e,[t,e]},useMemoCache:ju,useCacheRefresh:function(){return ie().memoizedState=My.bind(null,ut)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Hu={readContext:Wt,use:ys,useCallback:vd,useContext:Wt,useEffect:zu,useImperativeHandle:pd,useInsertionEffect:dd,useLayoutEffect:hd,useMemo:yd,useReducer:gs,useRef:cd,useState:function(){return gs(dn)},useDebugValue:Du,useDeferredValue:function(t,e){var n=Yt();return gd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=gs(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:kf,useId:_d,useHostTransitionStatus:Uu,useFormState:sd,useActionState:sd,useOptimistic:function(t,e){var n=Yt();return If(n,Rt,t,e)},useMemoCache:ju,useCacheRefresh:Td};Hu.useEffectEvent=fd;var Cd={readContext:Wt,use:ys,useCallback:vd,useContext:Wt,useEffect:zu,useImperativeHandle:pd,useInsertionEffect:dd,useLayoutEffect:hd,useMemo:yd,useReducer:Au,useRef:cd,useState:function(){return Au(dn)},useDebugValue:Du,useDeferredValue:function(t,e){var n=Yt();return Rt===null?wu(n,t,e):gd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Au(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:kf,useId:_d,useHostTransitionStatus:Uu,useFormState:ud,useActionState:ud,useOptimistic:function(t,e){var n=Yt();return Rt!==null?If(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ju,useCacheRefresh:Td};Cd.useEffectEvent=fd;function qu(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:p({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Qu={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Re(),s=Dn(l);s.payload=e,n!=null&&(s.callback=n),e=wn(t,s,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Re(),s=Dn(l);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=wn(t,s,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Re(),l=Dn(n);l.tag=2,e!=null&&(l.callback=e),e=wn(t,l,n),e!==null&&(de(e,t,n),Jl(e,t,n))}};function Ad(t,e,n,l,s,u,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,d):e.prototype&&e.prototype.isPureReactComponent?!Ql(n,l)||!Ql(s,u):!0}function Od(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&&Qu.enqueueReplaceState(e,e.state,null)}function ga(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=p({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Nd(t){Ii(t)}function zd(t){console.error(t)}function Dd(t){Ii(t)}function _s(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function wd(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Yu(t,e,n){return n=Dn(n),n.tag=3,n.payload={element:null},n.callback=function(){_s(t,e)},n}function Ld(t){return t=Dn(t),t.tag=3,t}function Ud(t,e,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=l.value;t.payload=function(){return s(u)},t.callback=function(){wd(e,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){wd(e,n,l),typeof s!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function Cy(t,e,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,s,!0),n=be.current,n!==null){switch(n.tag){case 31:case 13:return we===null?ws():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===cs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),dc(t,l,s)),!1;case 22:return n.flags|=65536,l===cs?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)),dc(t,l,s)),!1}throw Error(c(435,n.tag))}return dc(t,l,s),ws(),!1}if(pt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,l!==su&&(t=Error(c(422),{cause:l}),Xl(Oe(t,n)))):(l!==su&&(e=Error(c(423),{cause:l}),Xl(Oe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=Oe(l,n),s=Yu(t.stateNode,l,s),yu(t,s),Bt!==4&&(Bt=2)),!1;var u=Error(c(520),{cause:l});if(u=Oe(u,n),ui===null?ui=[u]:ui.push(u),Bt!==4&&(Bt=2),e===null)return!0;l=Oe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Yu(n.stateNode,l,t),yu(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Qn===null||!Qn.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Ld(s),Ud(s,t,n,l),yu(n,s),!1}n=n.return}while(n!==null);return!1}var Gu=Error(c(461)),Vt=!1;function It(t,e,n,l){e.child=t===null?Qf(e,null,n,l):va(e,t.child,n,l)}function Bd(t,e,n,l,s){n=n.render;var u=e.ref;if("ref"in l){var d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}else d=l;return da(e),l=Tu(t,e,n,d,u,s),g=Ru(),t!==null&&!Vt?(Eu(t,e,s),hn(t,e,s)):(pt&&g&&lu(e),e.flags|=1,It(t,e,l,s),e.child)}function Hd(t,e,n,l,s){if(t===null){var u=n.type;return typeof u=="function"&&!eu(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,qd(t,e,u,l,s)):(t=as(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Pu(t,s)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(d,l)&&t.ref===e.ref)return hn(t,e,s)}return e.flags|=1,t=on(u,l),t.ref=e.ref,t.return=e,e.child=t}function qd(t,e,n,l,s){if(t!==null){var u=t.memoizedProps;if(Ql(u,l)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=l=u,Pu(t,s))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,hn(t,e,s)}return Xu(t,e,n,l,s)}function Qd(t,e,n,l){var s=l.children,u=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(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~u}else l=0,e.child=null;return Yd(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&os(e,u!==null?u.cachePool:null),u!==null?Xf(e,u):xu(),Vf(e);else return l=e.lanes=536870912,Yd(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(os(e,u.cachePool),Xf(e,u),Un(),e.memoizedState=null):(t!==null&&os(e,null),xu(),Un());return It(t,e,s,n),e.child}function ei(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Yd(t,e,n,l,s){var u=hu();return u=u===null?null:{parent:Gt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&os(e,null),xu(),Vf(e),t!==null&&Pa(t,e,l,!0),e.childLanes=s,null}function Ts(t,e){return e=Es({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Gd(t,e,n){return va(e,t.child,null,n),t=Ts(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Ay(t,e,n){var l=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(pt){if(l.mode==="hidden")return t=Ts(e,l),e.lanes=536870912,ei(null,t);if(Su(e),(t=Ot)?(t=tm(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Ef(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return Ts(e,l)}var u=t.memoizedState;if(u!==null){var d=u.dehydrated;if(Su(e),s)if(e.flags&256)e.flags&=-257,e=Gd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Vt||Pa(t,e,n,!1),s=(n&t.childLanes)!==0,Vt||s){if(l=Ct,l!==null&&(d=Nr(l,n),d!==0&&d!==u.retryLane))throw u.retryLane=d,ua(t,d),de(l,t,d),Gu;ws(),e=Gd(t,e,n)}else t=u.treeContext,Ot=Le(d.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Cf(e,t),e=Ts(e,l),e.flags|=4096;return e}return t=on(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Rs(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(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Xu(t,e,n,l,s){return da(e),n=Tu(t,e,n,l,void 0,s),l=Ru(),t!==null&&!Vt?(Eu(t,e,s),hn(t,e,s)):(pt&&l&&lu(e),e.flags|=1,It(t,e,n,s),e.child)}function Xd(t,e,n,l,s,u){return da(e),e.updateQueue=null,n=Zf(e,l,n,s),Kf(t),l=Ru(),t!==null&&!Vt?(Eu(t,e,u),hn(t,e,u)):(pt&&l&&lu(e),e.flags|=1,It(t,e,n,u),e.child)}function Vd(t,e,n,l,s){if(da(e),e.stateNode===null){var u=Za,d=n.contextType;typeof d=="object"&&d!==null&&(u=Wt(d)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Qu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},pu(e),d=n.contextType,u.context=typeof d=="object"&&d!==null?Wt(d):Za,u.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(qu(e,n,d,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&Qu.enqueueReplaceState(u,u.state,null),Pl(e,l,u,s),Fl(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var g=e.memoizedProps,T=ga(n,g);u.props=T;var O=u.context,B=n.contextType;d=Za,typeof B=="object"&&B!==null&&(d=Wt(B));var Y=n.getDerivedStateFromProps;B=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,B||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||O!==d)&&Od(e,u,l,d),zn=!1;var z=e.memoizedState;u.state=z,Pl(e,l,u,s),Fl(),O=e.memoizedState,g||z!==O||zn?(typeof Y=="function"&&(qu(e,n,Y,l),O=e.memoizedState),(T=zn||Ad(e,n,T,l,z,O,d))?(B||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=O),u.props=l,u.state=O,u.context=d,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,vu(t,e),d=e.memoizedProps,B=ga(n,d),u.props=B,Y=e.pendingProps,z=u.context,O=n.contextType,T=Za,typeof O=="object"&&O!==null&&(T=Wt(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==Y||z!==T)&&Od(e,u,l,T),zn=!1,z=e.memoizedState,u.state=z,Pl(e,l,u,s),Fl();var L=e.memoizedState;d!==Y||z!==L||zn||t!==null&&t.dependencies!==null&&is(t.dependencies)?(typeof g=="function"&&(qu(e,n,g,l),L=e.memoizedState),(B=zn||Ad(e,n,B,l,z,L,T)||t!==null&&t.dependencies!==null&&is(t.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,L,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,L,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=L),u.props=l,u.state=L,u.context=T,l=B):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,Rs(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=va(e,t.child,null,s),e.child=va(e,null,n,s)):It(t,e,n,s),e.memoizedState=u.state,t=e.child):t=hn(t,e,s),t}function Kd(t,e,n,l){return ra(),e.flags|=256,It(t,e,n,l),e.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ku(t){return{baseLanes:t,cachePool:wf()}}function Zu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Te),t}function Zd(t,e,n){var l=e.pendingProps,s=!1,u=(e.flags&128)!==0,d;if((d=u)||(d=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),d&&(s=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(pt){if(s?Ln(e):Un(),(t=Ot)?(t=tm(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Ef(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return Cc(t)?e.lanes=32:e.lanes=536870912,null}var g=l.children;return l=l.fallback,s?(Un(),s=e.mode,g=Es({mode:"hidden",children:g},s),l=ca(l,s,n,null),g.return=e,l.return=e,g.sibling=l,e.child=g,l=e.child,l.memoizedState=Ku(n),l.childLanes=Zu(t,d,n),e.memoizedState=Vu,ei(null,l)):(Ln(e),ku(e,g))}var T=t.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(u)e.flags&256?(Ln(e),e.flags&=-257,e=Ju(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),g=l.fallback,s=e.mode,l=Es({mode:"visible",children:l.children},s),g=ca(g,s,n,null),g.flags|=2,l.return=e,g.return=e,l.sibling=g,e.child=l,va(e,t.child,null,n),l=e.child,l.memoizedState=Ku(n),l.childLanes=Zu(t,d,n),e.memoizedState=Vu,e=ei(null,l));else if(Ln(e),Cc(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var O=d.dgst;d=O,l=Error(c(419)),l.stack="",l.digest=d,Xl({value:l,source:null,stack:null}),e=Ju(t,e,n)}else if(Vt||Pa(t,e,n,!1),d=(n&t.childLanes)!==0,Vt||d){if(d=Ct,d!==null&&(l=Nr(d,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ua(t,l),de(d,t,l),Gu;jc(g)||ws(),e=Ju(t,e,n)}else jc(g)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ot=Le(g.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Cf(e,t),e=ku(e,l.children),e.flags|=4096);return e}return s?(Un(),g=l.fallback,s=e.mode,T=t.child,O=T.sibling,l=on(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?g=on(O,g):(g=ca(g,s,n,null),g.flags|=2),g.return=e,l.return=e,l.sibling=g,e.child=l,ei(null,l),l=e.child,g=t.child.memoizedState,g===null?g=Ku(n):(s=g.cachePool,s!==null?(T=Gt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=wf(),g={baseLanes:g.baseLanes|n,cachePool:s}),l.memoizedState=g,l.childLanes=Zu(t,d,n),e.memoizedState=Vu,ei(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=on(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=n,e.memoizedState=null,n)}function ku(t,e){return e=Es({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Es(t,e){return t=xe(22,t,null,e),t.lanes=0,t}function Ju(t,e,n){return va(e,t.child,null,n),t=ku(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function kd(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),cu(t.return,e,n)}function Fu(t,e,n,l,s,u){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:u}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=s,d.treeForkCount=u)}function Jd(t,e,n){var l=e.pendingProps,s=l.revealOrder,u=l.tail;l=l.children;var d=Qt.current,g=(d&2)!==0;if(g?(d=d&1|2,e.flags|=128):d&=1,k(Qt,d),It(t,e,l,n),l=pt?Gl:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&kd(t,n,e);else if(t.tag===19)kd(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(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&hs(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Fu(e,!1,s,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&hs(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Fu(e,!0,n,null,u,l);break;case"together":Fu(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function hn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=on(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=on(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Pu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&is(t)))}function Oy(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Nn(e,Gt,t.memoizedState.cache),ra();break;case 27:case 5:tn(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Nn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Su(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Zd(t,e,n):(Ln(e),t=hn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var s=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Pa(t,e,n,!1),l=(n&e.childLanes)!==0),s){if(l)return Jd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),k(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,Qd(t,e,n,e.pendingProps);case 24:Nn(e,Gt,t.memoizedState.cache)}return hn(t,e,n)}function Fd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Pu(t,n)&&(e.flags&128)===0)return Vt=!1,Oy(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,pt&&(e.flags&1048576)!==0&&jf(e,Gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ma(e.elementType),e.type=t,typeof t=="function")eu(t)?(l=ga(t,l),e.tag=1,e=Vd(null,e,t,l,n)):(e.tag=0,e=Xu(null,e,t,l,n));else{if(t!=null){var s=t.$$typeof;if(s===X){e.tag=11,e=Bd(null,e,t,l,n);break t}else if(s===H){e.tag=14,e=Hd(null,e,t,l,n);break t}}throw e=zt(t)||t,Error(c(306,e,""))}}return e;case 0:return Xu(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,s=ga(l,e.pendingProps),Vd(t,e,l,s,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var u=e.memoizedState;s=u.element,vu(t,e),Pl(e,l,null,n);var d=e.memoizedState;if(l=d.cache,Nn(e,Gt,l),l!==u.cache&&ru(e,[Gt],n,!0),Fl(),l=d.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Kd(t,e,l,n);break t}else if(l!==s){s=Oe(Error(c(424)),e),Xl(s),e=Kd(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ot=Le(t.firstChild),$t=e,pt=!0,An=null,De=!0,n=Qf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ra(),l===s){e=hn(t,e,n);break t}It(t,e,l,n)}e=e.child}return e;case 26:return Rs(t,e),t===null?(n=sm(e.type,null,e.pendingProps,null))?e.memoizedState=n:pt||(n=e.type,t=e.pendingProps,l=Ys(rt.current).createElement(n),l[Pt]=e,l[se]=t,te(l,n,t),kt(l),e.stateNode=l):e.memoizedState=sm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return tn(e),t===null&&pt&&(l=e.stateNode=am(e.type,e.pendingProps,rt.current),$t=e,De=!0,s=Ot,Vn(e.type)?(Ac=s,Ot=Le(l.firstChild)):Ot=s),It(t,e,e.pendingProps.children,n),Rs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&pt&&((s=l=Ot)&&(l=sg(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,$t=e,Ot=Le(l.firstChild),De=!1,s=!0):s=!1),s||On(e)),tn(e),s=e.type,u=e.pendingProps,d=t!==null?t.memoizedProps:null,l=u.children,Rc(s,u)?l=null:d!==null&&Rc(s,d)&&(e.flags|=32),e.memoizedState!==null&&(s=Tu(t,e,Sy,null,null,n),vi._currentValue=s),Rs(t,e),It(t,e,l,n),e.child;case 6:return t===null&&pt&&((t=n=Ot)&&(n=og(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ot=null,t=!0):t=!1),t||On(e)),null;case 13:return Zd(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=va(e,null,l,n):It(t,e,l,n),e.child;case 11:return Bd(t,e,e.type,e.pendingProps,n);case 7:return It(t,e,e.pendingProps,n),e.child;case 8:return It(t,e,e.pendingProps.children,n),e.child;case 12:return It(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Nn(e,e.type,l.value),It(t,e,l.children,n),e.child;case 9:return s=e.type._context,l=e.pendingProps.children,da(e),s=Wt(s),l=l(s),e.flags|=1,It(t,e,l,n),e.child;case 14:return Hd(t,e,e.type,e.pendingProps,n);case 15:return qd(t,e,e.type,e.pendingProps,n);case 19:return Jd(t,e,n);case 31:return Ay(t,e,n);case 22:return Qd(t,e,n,e.pendingProps);case 24:return da(e),l=Wt(Gt),t===null?(s=hu(),s===null&&(s=Ct,u=fu(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),e.memoizedState={parent:l,cache:s},pu(e),Nn(e,Gt,s)):((t.lanes&n)!==0&&(vu(t,e),Pl(e,null,null,n),Fl()),s=t.memoizedState,u=e.memoizedState,s.parent!==l?(s={parent:l,cache:l},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Nn(e,Gt,l)):(l=u.cache,Nn(e,Gt,l),l!==s.cache&&ru(e,[Gt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function mn(t){t.flags|=4}function $u(t,e,n,l,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(_h())t.flags|=8192;else throw pa=cs,mu}else t.flags&=-16777217}function Pd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!fm(e))if(_h())t.flags|=8192;else throw pa=cs,mu}function Ms(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Cr():536870912,t.lanes|=e,ul|=e)}function ni(t,e){if(!pt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function Ny(t,e,n){var l=e.pendingProps;switch(iu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),rn(Gt),jt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Fa(e)?mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ou())),Nt(e),null;case 26:var s=e.type,u=e.memoizedState;return t===null?(mn(e),u!==null?(Nt(e),Pd(e,u)):(Nt(e),$u(e,s,null,l,n))):u?u!==t.memoizedState?(mn(e),Nt(e),Pd(e,u)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),Nt(e),$u(e,s,t,l,n)),null;case 27:if(en(e),n=rt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}t=$.current,Fa(e)?Af(e):(t=am(s,l,n),e.stateNode=t,mn(e))}return Nt(e),null;case 5:if(en(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}if(u=$.current,Fa(e))Af(e);else{var d=Ys(rt.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}u[Pt]=e,u[se]=l;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=u;t:switch(te(u,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&mn(e)}}return Nt(e),$u(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,Fa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,s=$t,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Zh(t.nodeValue,n)),t||On(e,!0)}else t=Ys(t).createTextNode(l),t[Pt]=e,e.stateNode=t}return Nt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Fa(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Pt]=e}else ra(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=ou(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Nt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Fa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!s)throw Error(c(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(c(317));s[Pt]=e}else ra(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),s=!1}else s=ou(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==s&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ms(e,e.updateQueue),Nt(e),null);case 4:return jt(),t===null&&xc(e.stateNode.containerInfo),Nt(e),null;case 10:return rn(e.type),Nt(e),null;case 19:if(Q(Qt),l=e.memoizedState,l===null)return Nt(e),null;if(s=(e.flags&128)!==0,u=l.rendering,u===null)if(s)ni(l,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=hs(t),u!==null){for(e.flags|=128,ni(l,!1),t=u.updateQueue,e.updateQueue=t,Ms(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Rf(n,t),n=n.sibling;return k(Qt,Qt.current&1|2),pt&&un(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ne()>Ns&&(e.flags|=128,s=!0,ni(l,!1),e.lanes=4194304)}else{if(!s)if(t=hs(u),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Ms(e,t),ni(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pt)return Nt(e),null}else 2*ne()-l.renderingStartTime>Ns&&n!==536870912&&(e.flags|=128,s=!0,ni(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=Qt.current,k(Qt,s?n&1|2:n&1),pt&&un(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return Se(e),bu(),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&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&Ms(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Q(ha),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),rn(Gt),Nt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function zy(t,e){switch(iu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return rn(Gt),jt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return en(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(c(340));ra()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));ra()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Qt),null;case 4:return jt(),null;case 10:return rn(e.type),null;case 22:case 23:return Se(e),bu(),t!==null&&Q(ha),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return rn(Gt),null;case 25:return null;default:return null}}function $d(t,e){switch(iu(e),e.tag){case 3:rn(Gt),jt();break;case 26:case 27:case 5:en(e);break;case 4:jt();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:Q(Qt);break;case 10:rn(e.type);break;case 22:case 23:Se(e),bu(),t!==null&&Q(ha);break;case 24:rn(Gt)}}function ai(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){l=void 0;var u=n.create,d=n.inst;l=u(),d.destroy=l}n=n.next}while(n!==s)}}catch(g){Tt(e,e.return,g)}}function Bn(t,e,n){try{var l=e.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var u=s.next;l=u;do{if((l.tag&t)===t){var d=l.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,s=e;var T=n,O=g;try{O()}catch(B){Tt(s,T,B)}}}l=l.next}while(l!==u)}}catch(B){Tt(e,e.return,B)}}function Wd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Gf(e,n)}catch(l){Tt(t,t.return,l)}}}function Id(t,e,n){n.props=ga(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function li(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(s){Tt(t,e,s)}}function ke(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Tt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Tt(t,e,s)}else n.current=null}function th(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(s){Tt(t,t.return,s)}}function Wu(t,e,n){try{var l=t.stateNode;tg(l,t.type,n,e),l[se]=e}catch(s){Tt(t,t.return,s)}}function eh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vn(t.type)||t.tag===4}function Iu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||eh(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&&Vn(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 tc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ln));else if(l!==4&&(l===27&&Vn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(tc(t,e,n),t=t.sibling;t!==null;)tc(t,e,n),t=t.sibling}function js(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Vn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(js(t,e,n),t=t.sibling;t!==null;)js(t,e,n),t=t.sibling}function nh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);te(e,l,n),e[Pt]=t,e[se]=n}catch(u){Tt(t,t.return,u)}}var pn=!1,Kt=!1,ec=!1,ah=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Dy(t,e){if(t=t.containerInfo,_c=Js,t=pf(t),Jo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var d=0,g=-1,T=-1,O=0,B=0,Y=t,z=null;e:for(;;){for(var L;Y!==n||s!==0&&Y.nodeType!==3||(g=d+s),Y!==u||l!==0&&Y.nodeType!==3||(T=d+l),Y.nodeType===3&&(d+=Y.nodeValue.length),(L=Y.firstChild)!==null;)z=Y,Y=L;for(;;){if(Y===t)break e;if(z===n&&++O===s&&(g=d),z===u&&++B===l&&(T=d),(L=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=L}n=g===-1||T===-1?null:{start:g,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tc={focusedElem:t,selectionRange:n},Js=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,s=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var W=ga(n.type,s);t=l.getSnapshotBeforeUpdate(W,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Tt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Mc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Mc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,Jt=t;break}Jt=e.return}}function lh(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:yn(t,n),l&4&&ai(5,n);break;case 1:if(yn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){Tt(n,n.return,d)}else{var s=ga(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Tt(n,n.return,d)}}l&64&&Wd(n),l&512&&li(n,n.return);break;case 3:if(yn(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{Gf(t,e)}catch(d){Tt(n,n.return,d)}}break;case 27:e===null&&l&4&&nh(n);case 26:case 5:yn(t,n),e===null&&l&4&&th(n),l&512&&li(n,n.return);break;case 12:yn(t,n);break;case 31:yn(t,n),l&4&&oh(t,n);break;case 13:yn(t,n),l&4&&uh(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Gy.bind(null,n),ug(t,n))));break;case 22:if(l=n.memoizedState!==null||pn,!l){e=e!==null&&e.memoizedState!==null||Kt,s=pn;var u=Kt;pn=l,(Kt=e)&&!u?gn(t,n,(n.subtreeFlags&8772)!==0):yn(t,n),pn=s,Kt=u}break;case 30:break;default:yn(t,n)}}function ih(t){var e=t.alternate;e!==null&&(t.alternate=null,ih(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&No(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Dt=null,ue=!1;function vn(t,e,n){for(n=n.child;n!==null;)sh(t,e,n),n=n.sibling}function sh(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 26:Kt||ke(n,e),vn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||ke(n,e);var l=Dt,s=ue;Vn(n.type)&&(Dt=n.stateNode,ue=!1),vn(t,e,n),hi(n.stateNode),Dt=l,ue=s;break;case 5:Kt||ke(n,e);case 6:if(l=Dt,s=ue,Dt=null,vn(t,e,n),Dt=l,ue=s,Dt!==null)if(ue)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(n.stateNode)}catch(u){Tt(n,e,u)}else try{Dt.removeChild(n.stateNode)}catch(u){Tt(n,e,u)}break;case 18:Dt!==null&&(ue?(t=Dt,Wh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),vl(t)):Wh(Dt,n.stateNode));break;case 4:l=Dt,s=ue,Dt=n.stateNode.containerInfo,ue=!0,vn(t,e,n),Dt=l,ue=s;break;case 0:case 11:case 14:case 15:Bn(2,n,e),Kt||Bn(4,n,e),vn(t,e,n);break;case 1:Kt||(ke(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Id(n,e,l)),vn(t,e,n);break;case 21:vn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,vn(t,e,n),Kt=l;break;default:vn(t,e,n)}}function oh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vl(t)}catch(n){Tt(e,e.return,n)}}}function uh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vl(t)}catch(n){Tt(e,e.return,n)}}function wy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ah),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ah),e;default:throw Error(c(435,t.tag))}}function Cs(t,e){var n=wy(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var s=Xy.bind(null,t,l);l.then(s,s)}})}function ce(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],u=t,d=e,g=d;t:for(;g!==null;){switch(g.tag){case 27:if(Vn(g.type)){Dt=g.stateNode,ue=!1;break t}break;case 5:Dt=g.stateNode,ue=!1;break t;case 3:case 4:Dt=g.stateNode.containerInfo,ue=!0;break t}g=g.return}if(Dt===null)throw Error(c(160));sh(u,d,s),Dt=null,ue=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)ch(e,t),e=e.sibling}var Qe=null;function ch(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ce(e,t),re(t),l&4&&(Bn(3,t,t.return),ai(3,t),Bn(5,t,t.return));break;case 1:ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&64&&pn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=Qe;if(ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(l){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Nl]||u[Pt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(l),s.head.insertBefore(u,s.querySelector("head > title"))),te(u,l,n),u[Pt]=t,kt(u),l=u;break t;case"link":var d=cm("link","href",s).get(l+(n.href||""));if(d){for(var g=0;g<d.length;g++)if(u=d[g],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(g,1);break e}}u=s.createElement(l),te(u,l,n),s.head.appendChild(u);break;case"meta":if(d=cm("meta","content",s).get(l+(n.content||""))){for(g=0;g<d.length;g++)if(u=d[g],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(g,1);break e}}u=s.createElement(l),te(u,l,n),s.head.appendChild(u);break;default:throw Error(c(468,l))}u[Pt]=t,kt(u),l=u}t.stateNode=l}else rm(s,t.type,t.stateNode);else t.stateNode=um(s,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?rm(s,t.type,t.stateNode):um(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Wu(t,t.memoizedProps,n.memoizedProps)}break;case 27:ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),n!==null&&l&4&&Wu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),t.flags&32){s=t.stateNode;try{qa(s,"")}catch(W){Tt(t,t.return,W)}}l&4&&t.stateNode!=null&&(s=t.memoizedProps,Wu(t,s,n!==null?n.memoizedProps:s)),l&1024&&(ec=!0);break;case 6:if(ce(e,t),re(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(W){Tt(t,t.return,W)}}break;case 3:if(Vs=null,s=Qe,Qe=Gs(e.containerInfo),ce(e,t),Qe=s,re(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{vl(e.containerInfo)}catch(W){Tt(t,t.return,W)}ec&&(ec=!1,rh(t));break;case 4:l=Qe,Qe=Gs(t.stateNode.containerInfo),ce(e,t),re(t),Qe=l;break;case 12:ce(e,t),re(t);break;case 31:ce(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cs(t,l)));break;case 13:ce(e,t),re(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Os=ne()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cs(t,l)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,O=pn,B=Kt;if(pn=O||s,Kt=B||T,ce(e,t),Kt=B,pn=O,re(t),l&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||pn||Kt||xa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,s)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=T.stateNode;var Y=T.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;g.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){Tt(T,T.return,W)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(W){Tt(T,T.return,W)}}}else if(e.tag===18){if(n===null){T=e;try{var L=T.stateNode;s?Ih(L,!0):Ih(T.stateNode,!1)}catch(W){Tt(T,T.return,W)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Cs(t,n))));break;case 19:ce(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cs(t,l)));break;case 30:break;case 21:break;default:ce(e,t),re(t)}}function re(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(eh(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var s=n.stateNode,u=Iu(t);js(t,u,s);break;case 5:var d=n.stateNode;n.flags&32&&(qa(d,""),n.flags&=-33);var g=Iu(t);js(t,g,d);break;case 3:case 4:var T=n.stateNode.containerInfo,O=Iu(t);tc(t,O,T);break;default:throw Error(c(161))}}catch(B){Tt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function rh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;rh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function yn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)lh(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Bn(4,e,e.return),xa(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Id(e,e.return,n),xa(e);break;case 27:hi(e.stateNode);case 26:case 5:ke(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function gn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,s=t,u=e,d=u.flags;switch(u.tag){case 0:case 11:case 15:gn(s,u,n),ai(4,u);break;case 1:if(gn(s,u,n),l=u,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(O){Tt(l,l.return,O)}if(l=u,s=l.updateQueue,s!==null){var g=l.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)Yf(T[s],g)}catch(O){Tt(l,l.return,O)}}n&&d&64&&Wd(u),li(u,u.return);break;case 27:nh(u);case 26:case 5:gn(s,u,n),n&&l===null&&d&4&&th(u),li(u,u.return);break;case 12:gn(s,u,n);break;case 31:gn(s,u,n),n&&d&4&&oh(s,u);break;case 13:gn(s,u,n),n&&d&4&&uh(s,u);break;case 22:u.memoizedState===null&&gn(s,u,n),li(u,u.return);break;case 30:break;default:gn(s,u,n)}e=e.sibling}}function nc(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&&Vl(n))}function ac(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vl(t))}function Ye(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fh(t,e,n,l),e=e.sibling}function fh(t,e,n,l){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,l),s&2048&&ai(9,e);break;case 1:Ye(t,e,n,l);break;case 3:Ye(t,e,n,l),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vl(t)));break;case 12:if(s&2048){Ye(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,d=u.id,g=u.onPostCommit;typeof g=="function"&&g(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Tt(e,e.return,T)}}else Ye(t,e,n,l);break;case 31:Ye(t,e,n,l);break;case 13:Ye(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,d=e.alternate,e.memoizedState!==null?u._visibility&2?Ye(t,e,n,l):ii(t,e):u._visibility&2?Ye(t,e,n,l):(u._visibility|=2,il(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),s&2048&&nc(d,e);break;case 24:Ye(t,e,n,l),s&2048&&ac(e.alternate,e);break;default:Ye(t,e,n,l)}}function il(t,e,n,l,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,d=e,g=n,T=l,O=d.flags;switch(d.tag){case 0:case 11:case 15:il(u,d,g,T,s),ai(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?il(u,d,g,T,s):ii(u,d):(B._visibility|=2,il(u,d,g,T,s)),s&&O&2048&&nc(d.alternate,d);break;case 24:il(u,d,g,T,s),s&&O&2048&&ac(d.alternate,d);break;default:il(u,d,g,T,s)}e=e.sibling}}function ii(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,s=l.flags;switch(l.tag){case 22:ii(n,l),s&2048&&nc(l.alternate,l);break;case 24:ii(n,l),s&2048&&ac(l.alternate,l);break;default:ii(n,l)}e=e.sibling}}var si=8192;function sl(t,e,n){if(t.subtreeFlags&si)for(t=t.child;t!==null;)dh(t,e,n),t=t.sibling}function dh(t,e,n){switch(t.tag){case 26:sl(t,e,n),t.flags&si&&t.memoizedState!==null&&bg(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:sl(t,e,n);break;case 3:case 4:var l=Qe;Qe=Gs(t.stateNode.containerInfo),sl(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=si,si=16777216,sl(t,e,n),si=l):sl(t,e,n));break;default:sl(t,e,n)}}function hh(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 oi(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];Jt=l,ph(l,t)}hh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mh(t),t=t.sibling}function mh(t){switch(t.tag){case 0:case 11:case 15:oi(t),t.flags&2048&&Bn(9,t,t.return);break;case 3:oi(t);break;case 12:oi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,As(t)):oi(t);break;default:oi(t)}}function As(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];Jt=l,ph(l,t)}hh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Bn(8,e,e.return),As(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,As(e));break;default:As(e)}t=t.sibling}}function ph(t,e){for(;Jt!==null;){var n=Jt;switch(n.tag){case 0:case 11:case 15:Bn(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:Vl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Jt=l;else t:for(n=t;Jt!==null;){l=Jt;var s=l.sibling,u=l.return;if(ih(l),l===n){Jt=null;break t}if(s!==null){s.return=u,Jt=s;break t}Jt=u}}}var Ly={getCacheForType:function(t){var e=Wt(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(Gt).controller.signal}},Uy=typeof WeakMap=="function"?WeakMap:Map,bt=0,Ct=null,ft=null,ht=0,_t=0,_e=null,Hn=!1,ol=!1,lc=!1,xn=0,Bt=0,qn=0,ba=0,ic=0,Te=0,ul=0,ui=null,fe=null,sc=!1,Os=0,vh=0,Ns=1/0,zs=null,Qn=null,Zt=0,Yn=null,cl=null,bn=0,oc=0,uc=null,yh=null,ci=0,cc=null;function Re(){return(bt&2)!==0&&ht!==0?ht&-ht:U.T!==null?pc():zr()}function gh(){if(Te===0)if((ht&536870912)===0||pt){var t=Qi;Qi<<=1,(Qi&3932160)===0&&(Qi=262144),Te=t}else Te=536870912;return t=be.current,t!==null&&(t.flags|=32),Te}function de(t,e,n){(t===Ct&&(_t===2||_t===9)||t.cancelPendingCommit!==null)&&(rl(t,0),Gn(t,ht,Te,!1)),Ol(t,n),((bt&2)===0||t!==Ct)&&(t===Ct&&((bt&2)===0&&(ba|=n),Bt===4&&Gn(t,ht,Te,!1)),Je(t))}function xh(t,e,n){if((bt&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Al(t,e),s=l?qy(t,e):fc(t,e,!0),u=l;do{if(s===0){ol&&!l&&Gn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!By(n)){s=fc(t,e,!1),u=!1;continue}if(s===2){if(u=e,t.errorRecoveryDisabledLanes&u)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var g=t;s=ui;var T=g.current.memoizedState.isDehydrated;if(T&&(rl(g,d).flags|=256),d=fc(g,d,!1),d!==2){if(lc&&!T){g.errorRecoveryDisabledLanes|=u,ba|=u,s=4;break t}u=fe,fe=s,u!==null&&(fe===null?fe=u:fe.push.apply(fe,u))}s=d}if(u=!1,s!==2)continue}}if(s===1){rl(t,0),Gn(t,e,0,!0);break}t:{switch(l=t,u=s,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Gn(l,e,Te,!Hn);break t;case 2:fe=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(s=Os+300-ne(),10<s)){if(Gn(l,e,Te,!Hn),Gi(l,0,!0)!==0)break t;bn=e,l.timeoutHandle=Ph(bh.bind(null,l,n,fe,zs,sc,e,Te,ba,ul,Hn,u,"Throttled",-0,0),s);break t}bh(l,n,fe,zs,sc,e,Te,ba,ul,Hn,u,null,-0,0)}}break}while(!0);Je(t)}function bh(t,e,n,l,s,u,d,g,T,O,B,Y,z,L){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},dh(e,u,Y);var W=(u&62914560)===u?Os-ne():(u&4194048)===u?vh-ne():0;if(W=Sg(Y,W),W!==null){bn=u,t.cancelPendingCommit=W(Ch.bind(null,t,e,u,n,l,s,d,g,T,B,Y,null,z,L)),Gn(t,u,d,!O);return}}Ch(t,e,u,n,l,s,d,g,T)}function By(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 s=n[l],u=s.getSnapshot;s=s.value;try{if(!ge(u(),s))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 Gn(t,e,n,l){e&=~ic,e&=~ba,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var u=31-ye(s),d=1<<u;l[u]=-1,s&=~d}n!==0&&Ar(t,n,e)}function Ds(){return(bt&6)===0?(ri(0),!1):!0}function rc(){if(ft!==null){if(_t===0)var t=ft.return;else t=ft,cn=fa=null,Mu(t),tl=null,Zl=0,t=ft;for(;t!==null;)$d(t.alternate,t),t=t.return;ft=null}}function rl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,ag(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),bn=0,rc(),Ct=t,ft=n=on(t.current,null),ht=e,_t=0,_e=null,Hn=!1,ol=Al(t,e),lc=!1,ul=Te=ic=ba=qn=Bt=0,fe=ui=null,sc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var s=31-ye(l),u=1<<s;e|=t[s],l&=~u}return xn=e,ts(),n}function Sh(t,e){ut=null,U.H=ti,e===Ia||e===us?(e=Bf(),_t=3):e===mu?(e=Bf(),_t=4):_t=e===Gu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,ft===null&&(Bt=1,_s(t,Oe(e,t.current)))}function _h(){var t=be.current;return t===null?!0:(ht&4194048)===ht?we===null:(ht&62914560)===ht||(ht&536870912)!==0?t===we:!1}function Th(){var t=U.H;return U.H=ti,t===null?ti:t}function Rh(){var t=U.A;return U.A=Ly,t}function ws(){Bt=4,Hn||(ht&4194048)!==ht&&be.current!==null||(ol=!0),(qn&134217727)===0&&(ba&134217727)===0||Ct===null||Gn(Ct,ht,Te,!1)}function fc(t,e,n){var l=bt;bt|=2;var s=Th(),u=Rh();(Ct!==t||ht!==e)&&(zs=null,rl(t,e)),e=!1;var d=Bt;t:do try{if(_t!==0&&ft!==null){var g=ft,T=_e;switch(_t){case 8:rc(),d=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var O=_t;if(_t=0,_e=null,fl(t,g,T,O),n&&ol){d=0;break t}break;default:O=_t,_t=0,_e=null,fl(t,g,T,O)}}Hy(),d=Bt;break}catch(B){Sh(t,B)}while(!0);return e&&t.shellSuspendCounter++,cn=fa=null,bt=l,U.H=s,U.A=u,ft===null&&(Ct=null,ht=0,ts()),d}function Hy(){for(;ft!==null;)Eh(ft)}function qy(t,e){var n=bt;bt|=2;var l=Th(),s=Rh();Ct!==t||ht!==e?(zs=null,Ns=ne()+500,rl(t,e)):ol=Al(t,e);t:do try{if(_t!==0&&ft!==null){e=ft;var u=_e;e:switch(_t){case 1:_t=0,_e=null,fl(t,e,u,1);break;case 2:case 9:if(Lf(u)){_t=0,_e=null,Mh(e);break}e=function(){_t!==2&&_t!==9||Ct!==t||(_t=7),Je(t)},u.then(e,e);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:Lf(u)?(_t=0,_e=null,Mh(e)):(_t=0,_e=null,fl(t,e,u,7));break;case 5:var d=null;switch(ft.tag){case 26:d=ft.memoizedState;case 5:case 27:var g=ft;if(d?fm(d):g.stateNode.complete){_t=0,_e=null;var T=g.sibling;if(T!==null)ft=T;else{var O=g.return;O!==null?(ft=O,Ls(O)):ft=null}break e}}_t=0,_e=null,fl(t,e,u,5);break;case 6:_t=0,_e=null,fl(t,e,u,6);break;case 8:rc(),Bt=6;break t;default:throw Error(c(462))}}Qy();break}catch(B){Sh(t,B)}while(!0);return cn=fa=null,U.H=l,U.A=s,bt=n,ft!==null?0:(Ct=null,ht=0,ts(),Bt)}function Qy(){for(;ft!==null&&!Hi();)Eh(ft)}function Eh(t){var e=Fd(t.alternate,t,xn);t.memoizedProps=t.pendingProps,e===null?Ls(t):ft=e}function Mh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Xd(n,e,e.pendingProps,e.type,void 0,ht);break;case 11:e=Xd(n,e,e.pendingProps,e.type.render,e.ref,ht);break;case 5:Mu(e);default:$d(n,e),e=ft=Rf(e,xn),e=Fd(n,e,xn)}t.memoizedProps=t.pendingProps,e===null?Ls(t):ft=e}function fl(t,e,n,l){cn=fa=null,Mu(e),tl=null,Zl=0;var s=e.return;try{if(Cy(t,s,e,n,ht)){Bt=1,_s(t,Oe(n,t.current)),ft=null;return}}catch(u){if(s!==null)throw ft=s,u;Bt=1,_s(t,Oe(n,t.current)),ft=null;return}e.flags&32768?(pt||l===1?t=!0:ol||(ht&536870912)!==0?t=!1:(Hn=t=!0,(l===2||l===9||l===3||l===6)&&(l=be.current,l!==null&&l.tag===13&&(l.flags|=16384))),jh(e,t)):Ls(e)}function Ls(t){var e=t;do{if((e.flags&32768)!==0){jh(e,Hn);return}t=e.return;var n=Ny(e.alternate,e,xn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Bt===0&&(Bt=5)}function jh(t,e){do{var n=zy(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Bt=6,ft=null}function Ch(t,e,n,l,s,u,d,g,T){t.cancelPendingCommit=null;do Us();while(Zt!==0);if((bt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=Io,xv(t,n,u,d,g,T),t===Ct&&(ft=Ct=null,ht=0),cl=e,Yn=t,bn=n,oc=u,uc=s,yh=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Vy(za,function(){return Dh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,s=Z.p,Z.p=2,d=bt,bt|=4;try{Dy(t,e,n)}finally{bt=d,Z.p=s,U.T=l}}Zt=1,Ah(),Oh(),Nh()}}function Ah(){if(Zt===1){Zt=0;var t=Yn,e=cl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=Z.p;Z.p=2;var s=bt;bt|=4;try{ch(e,t);var u=Tc,d=pf(t.containerInfo),g=u.focusedElem,T=u.selectionRange;if(d!==g&&g&&g.ownerDocument&&mf(g.ownerDocument.documentElement,g)){if(T!==null&&Jo(g)){var O=T.start,B=T.end;if(B===void 0&&(B=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(B,g.value.length);else{var Y=g.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var L=z.getSelection(),W=g.textContent.length,st=Math.min(T.start,W),Mt=T.end===void 0?st:Math.min(T.end,W);!L.extend&&st>Mt&&(d=Mt,Mt=st,st=d);var j=hf(g,st),R=hf(g,Mt);if(j&&R&&(L.rangeCount!==1||L.anchorNode!==j.node||L.anchorOffset!==j.offset||L.focusNode!==R.node||L.focusOffset!==R.offset)){var A=Y.createRange();A.setStart(j.node,j.offset),L.removeAllRanges(),st>Mt?(L.addRange(A),L.extend(R.node,R.offset)):(A.setEnd(R.node,R.offset),L.addRange(A))}}}}for(Y=[],L=g;L=L.parentNode;)L.nodeType===1&&Y.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Y.length;g++){var q=Y[g];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Js=!!_c,Tc=_c=null}finally{bt=s,Z.p=l,U.T=n}}t.current=e,Zt=2}}function Oh(){if(Zt===2){Zt=0;var t=Yn,e=cl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=Z.p;Z.p=2;var s=bt;bt|=4;try{lh(t,e.alternate,e)}finally{bt=s,Z.p=l,U.T=n}}Zt=3}}function Nh(){if(Zt===4||Zt===3){Zt=0,Mo();var t=Yn,e=cl,n=bn,l=yh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,cl=Yn=null,zh(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Qn=null),Ao(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(Cl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=U.T,s=Z.p,Z.p=2,U.T=null;try{for(var u=t.onRecoverableError,d=0;d<l.length;d++){var g=l[d];u(g.value,{componentStack:g.stack})}}finally{U.T=e,Z.p=s}}(bn&3)!==0&&Us(),Je(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===cc?ci++:(ci=0,cc=t):ci=0,ri(0)}}function zh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Vl(e)))}function Us(){return Ah(),Oh(),Nh(),Dh()}function Dh(){if(Zt!==5)return!1;var t=Yn,e=oc;oc=0;var n=Ao(bn),l=U.T,s=Z.p;try{Z.p=32>n?32:n,U.T=null,n=uc,uc=null;var u=Yn,d=bn;if(Zt=0,cl=Yn=null,bn=0,(bt&6)!==0)throw Error(c(331));var g=bt;if(bt|=4,mh(u.current),fh(u,u.current,d,n),bt=g,ri(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(Cl,u)}catch{}return!0}finally{Z.p=s,U.T=l,zh(t,e)}}function wh(t,e,n){e=Oe(n,e),e=Yu(t.stateNode,e,2),t=wn(t,e,2),t!==null&&(Ol(t,2),Je(t))}function Tt(t,e,n){if(t.tag===3)wh(t,t,n);else for(;e!==null;){if(e.tag===3){wh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qn===null||!Qn.has(l))){t=Oe(n,t),n=Ld(2),l=wn(e,n,2),l!==null&&(Ud(n,l,e,t),Ol(l,2),Je(l));break}}e=e.return}}function dc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Uy;var s=new Set;l.set(e,s)}else s=l.get(e),s===void 0&&(s=new Set,l.set(e,s));s.has(n)||(lc=!0,s.add(n),t=Yy.bind(null,t,e,n),e.then(t,t))}function Yy(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(ht&n)===n&&(Bt===4||Bt===3&&(ht&62914560)===ht&&300>ne()-Os?(bt&2)===0&&rl(t,0):ic|=n,ul===ht&&(ul=0)),Je(t)}function Lh(t,e){e===0&&(e=Cr()),t=ua(t,e),t!==null&&(Ol(t,e),Je(t))}function Gy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Lh(t,n)}function Xy(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),Lh(t,n)}function Vy(t,e){return He(t,e)}var Bs=null,dl=null,hc=!1,Hs=!1,mc=!1,Xn=0;function Je(t){t!==dl&&t.next===null&&(dl===null?Bs=dl=t:dl=dl.next=t),Hs=!0,hc||(hc=!0,Zy())}function ri(t,e){if(!mc&&Hs){mc=!0;do for(var n=!1,l=Bs;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var u=0;else{var d=l.suspendedLanes,g=l.pingedLanes;u=(1<<31-ye(42|t)+1)-1,u&=s&~(d&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,qh(l,u))}else u=ht,u=Gi(l,l===Ct?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Al(l,u)||(n=!0,qh(l,u));l=l.next}while(n);mc=!1}}function Ky(){Uh()}function Uh(){Hs=hc=!1;var t=0;Xn!==0&&ng()&&(t=Xn);for(var e=ne(),n=null,l=Bs;l!==null;){var s=l.next,u=Bh(l,e);u===0?(l.next=null,n===null?Bs=s:n.next=s,s===null&&(dl=n)):(n=l,(t!==0||(u&3)!==0)&&(Hs=!0)),l=s}Zt!==0&&Zt!==5||ri(t),Xn!==0&&(Xn=0)}function Bh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var d=31-ye(u),g=1<<d,T=s[d];T===-1?((g&n)===0||(g&l)!==0)&&(s[d]=gv(g,e)):T<=e&&(t.expiredLanes|=g),u&=~g}if(e=Ct,n=ht,n=Gi(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(_t===2||_t===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&jl(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Al(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&jl(l),Ao(n)){case 2:case 8:n=Ve;break;case 32:n=za;break;case 268435456:n=jr;break;default:n=za}return l=Hh.bind(null,t),n=He(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&jl(l),t.callbackPriority=2,t.callbackNode=null,2}function Hh(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Us()&&t.callbackNode!==n)return null;var l=ht;return l=Gi(t,t===Ct?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(xh(t,l,e),Bh(t,ne()),t.callbackNode!=null&&t.callbackNode===n?Hh.bind(null,t):null)}function qh(t,e){if(Us())return null;xh(t,e,!0)}function Zy(){lg(function(){(bt&6)!==0?He(Ft,Ky):Uh()})}function pc(){if(Xn===0){var t=$a;t===0&&(t=qi,qi<<=1,(qi&261888)===0&&(qi=256)),Xn=t}return Xn}function Qh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zi(""+t)}function Yh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function ky(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var u=Qh((s[se]||null).action),d=l.submitter;d&&(e=(e=d[se]||null)?Qh(e.formAction):d.getAttribute("formAction"),e!==null&&(u=e,d=null));var g=new Pi("action","action",null,l,s);t.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xn!==0){var T=d?Yh(s,d):new FormData(s);Lu(n,{pending:!0,data:T,method:s.method,action:u},null,T)}}else typeof u=="function"&&(g.preventDefault(),T=d?Yh(s,d):new FormData(s),Lu(n,{pending:!0,data:T,method:s.method,action:u},u,T))},currentTarget:s}]})}}for(var vc=0;vc<Wo.length;vc++){var yc=Wo[vc],Jy=yc.toLowerCase(),Fy=yc[0].toUpperCase()+yc.slice(1);qe(Jy,"on"+Fy)}qe(gf,"onAnimationEnd"),qe(xf,"onAnimationIteration"),qe(bf,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(fy,"onTransitionRun"),qe(dy,"onTransitionStart"),qe(hy,"onTransitionCancel"),qe(Sf,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),Py=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function Gh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],s=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var d=l.length-1;0<=d;d--){var g=l[d],T=g.instance,O=g.currentTarget;if(g=g.listener,T!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=O;try{u(s)}catch(B){Ii(B)}s.currentTarget=null,u=T}else for(d=0;d<l.length;d++){if(g=l[d],T=g.instance,O=g.currentTarget,g=g.listener,T!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=O;try{u(s)}catch(B){Ii(B)}s.currentTarget=null,u=T}}}}function dt(t,e){var n=e[Oo];n===void 0&&(n=e[Oo]=new Set);var l=t+"__bubble";n.has(l)||(Xh(e,t,2,!1),n.add(l))}function gc(t,e,n){var l=0;e&&(l|=4),Xh(n,t,l,e)}var qs="_reactListening"+Math.random().toString(36).slice(2);function xc(t){if(!t[qs]){t[qs]=!0,Lr.forEach(function(n){n!=="selectionchange"&&(Py.has(n)||gc(n,!1,t),gc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[qs]||(e[qs]=!0,gc("selectionchange",!1,e))}}function Xh(t,e,n,l){switch(gm(e)){case 2:var s=Rg;break;case 8:s=Eg;break;default:s=wc}n=s.bind(null,e,n,t),s=void 0,!qo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),l?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function bc(t,e,n,l,s){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var g=l.stateNode.containerInfo;if(g===s)break;if(d===4)for(d=l.return;d!==null;){var T=d.tag;if((T===3||T===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;g!==null;){if(d=wa(g),d===null)return;if(T=d.tag,T===5||T===6||T===26||T===27){l=u=d;continue t}g=g.parentNode}}l=l.return}kr(function(){var O=u,B=Bo(n),Y=[];t:{var z=_f.get(t);if(z!==void 0){var L=Pi,W=t;switch(t){case"keypress":if(Ji(n)===0)break t;case"keydown":case"keyup":L=Xv;break;case"focusin":W="focus",L=Xo;break;case"focusout":W="blur",L=Xo;break;case"beforeblur":case"afterblur":L=Xo;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":L=Pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Nv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Zv;break;case gf:case xf:case bf:L=wv;break;case Sf:L=Jv;break;case"scroll":case"scrollend":L=Av;break;case"wheel":L=Pv;break;case"copy":case"cut":case"paste":L=Uv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Wr;break;case"toggle":case"beforetoggle":L=Wv}var st=(e&4)!==0,Mt=!st&&(t==="scroll"||t==="scrollend"),j=st?z!==null?z+"Capture":null:z;st=[];for(var R=O,A;R!==null;){var q=R;if(A=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||A===null||j===null||(q=Dl(R,j),q!=null&&st.push(di(R,q,A))),Mt)break;R=R.return}0<st.length&&(z=new L(z,W,null,n,B),Y.push({event:z,listeners:st}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",L=t==="mouseout"||t==="pointerout",z&&n!==Uo&&(W=n.relatedTarget||n.fromElement)&&(wa(W)||W[Da]))break t;if((L||z)&&(z=B.window===B?B:(z=B.ownerDocument)?z.defaultView||z.parentWindow:window,L?(W=n.relatedTarget||n.toElement,L=O,W=W?wa(W):null,W!==null&&(Mt=f(W),st=W.tag,W!==Mt||st!==5&&st!==27&&st!==6)&&(W=null)):(L=null,W=O),L!==W)){if(st=Pr,q="onMouseLeave",j="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(st=Wr,q="onPointerLeave",j="onPointerEnter",R="pointer"),Mt=L==null?z:zl(L),A=W==null?z:zl(W),z=new st(q,R+"leave",L,n,B),z.target=Mt,z.relatedTarget=A,q=null,wa(B)===O&&(st=new st(j,R+"enter",W,n,B),st.target=A,st.relatedTarget=Mt,q=st),Mt=q,L&&W)e:{for(st=$y,j=L,R=W,A=0,q=j;q;q=st(q))A++;q=0;for(var nt=R;nt;nt=st(nt))q++;for(;0<A-q;)j=st(j),A--;for(;0<q-A;)R=st(R),q--;for(;A--;){if(j===R||R!==null&&j===R.alternate){st=j;break e}j=st(j),R=st(R)}st=null}else st=null;L!==null&&Vh(Y,z,L,st,!1),W!==null&&Mt!==null&&Vh(Y,Mt,W,st,!0)}}t:{if(z=O?zl(O):window,L=z.nodeName&&z.nodeName.toLowerCase(),L==="select"||L==="input"&&z.type==="file")var yt=of;else if(lf(z))if(uf)yt=uy;else{yt=sy;var I=iy}else L=z.nodeName,!L||L.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?O&&Lo(O.elementType)&&(yt=of):yt=oy;if(yt&&(yt=yt(t,O))){sf(Y,yt,n,B);break t}I&&I(t,z,O),t==="focusout"&&O&&z.type==="number"&&O.memoizedProps.value!=null&&wo(z,"number",z.value)}switch(I=O?zl(O):window,t){case"focusin":(lf(I)||I.contentEditable==="true")&&(Xa=I,Fo=O,Yl=null);break;case"focusout":Yl=Fo=Xa=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,vf(Y,n,B);break;case"selectionchange":if(ry)break;case"keydown":case"keyup":vf(Y,n,B)}var ct;if(Ko)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else Ga?nf(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Ir&&n.locale!=="ko"&&(Ga||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Ga&&(ct=Jr()):(jn=B,Qo="value"in jn?jn.value:jn.textContent,Ga=!0)),I=Qs(O,mt),0<I.length&&(mt=new $r(mt,t,null,n,B),Y.push({event:mt,listeners:I}),ct?mt.data=ct:(ct=af(n),ct!==null&&(mt.data=ct)))),(ct=ty?ey(t,n):ny(t,n))&&(mt=Qs(O,"onBeforeInput"),0<mt.length&&(I=new $r("onBeforeInput","beforeinput",null,n,B),Y.push({event:I,listeners:mt}),I.data=ct)),ky(Y,t,O,n,B)}Gh(Y,e)})}function di(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Qs(t,e){for(var n=e+"Capture",l=[];t!==null;){var s=t,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Dl(t,n),s!=null&&l.unshift(di(t,s,u)),s=Dl(t,e),s!=null&&l.push(di(t,s,u))),t.tag===3)return l;t=t.return}return[]}function $y(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vh(t,e,n,l,s){for(var u=e._reactName,d=[];n!==null&&n!==l;){var g=n,T=g.alternate,O=g.stateNode;if(g=g.tag,T!==null&&T===l)break;g!==5&&g!==26&&g!==27||O===null||(T=O,s?(O=Dl(n,u),O!=null&&d.unshift(di(n,O,T))):s||(O=Dl(n,u),O!=null&&d.push(di(n,O,T)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var Wy=/\r\n?/g,Iy=/\u0000|\uFFFD/g;function Kh(t){return(typeof t=="string"?t:""+t).replace(Wy,`
9
+ `).replace(Iy,"")}function Zh(t,e){return e=Kh(e),Kh(t)===e}function Et(t,e,n,l,s,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||qa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&qa(t,""+l);break;case"className":Vi(t,"class",l);break;case"tabIndex":Vi(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(t,n,l);break;case"style":Kr(t,l,u);break;case"data":if(e!=="object"){Vi(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=Zi(""+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 u=="function"&&(n==="formAction"?(e!=="input"&&Et(t,e,"name",s.name,s,null),Et(t,e,"formEncType",s.formEncType,s,null),Et(t,e,"formMethod",s.formMethod,s,null),Et(t,e,"formTarget",s.formTarget,s,null)):(Et(t,e,"encType",s.encType,s,null),Et(t,e,"method",s.method,s,null),Et(t,e,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Zi(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ln);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Zi(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Xi(t,"popover",l);break;case"xlinkActuate":an(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":an(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":an(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":an(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":an(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":an(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":an(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":an(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":an(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Xi(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=jv.get(n)||n,Xi(t,n,l))}}function Sc(t,e,n,l,s,u){switch(n){case"style":Kr(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?qa(t,l):(typeof l=="number"||typeof l=="bigint")&&qa(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ur.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),u=t[se]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,s),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,s);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Xi(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Et(t,e,u,d,n,null)}}s&&Et(t,e,"srcSet",n.srcSet,n,null),l&&Et(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var g=u=d=s=null,T=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var B=n[l];if(B!=null)switch(l){case"name":s=B;break;case"type":d=B;break;case"checked":T=B;break;case"defaultChecked":O=B;break;case"value":u=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,e));break;default:Et(t,e,l,B,n,null)}}Yr(t,u,g,T,O,d,s,!1);return;case"select":dt("invalid",t),l=d=u=null;for(s in n)if(n.hasOwnProperty(s)&&(g=n[s],g!=null))switch(s){case"value":u=g;break;case"defaultValue":d=g;break;case"multiple":l=g;default:Et(t,e,s,g,n,null)}e=u,n=d,t.multiple=!!l,e!=null?Ha(t,!!l,e,!1):n!=null&&Ha(t,!!l,n,!0);return;case"textarea":dt("invalid",t),u=s=l=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":l=g;break;case"defaultValue":s=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:Et(t,e,d,g,n,null)}Xr(t,l,s,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Et(t,e,T,l,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<fi.length;l++)dt(fi[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Et(t,e,O,l,n,null)}return;default:if(Lo(e)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&Sc(t,e,B,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&Et(t,e,g,l,n,null))}function tg(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 s=null,u=null,d=null,g=null,T=null,O=null,B=null;for(L in n){var Y=n[L];if(n.hasOwnProperty(L)&&Y!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(L)||Et(t,e,L,null,l,Y)}}for(var z in l){var L=l[z];if(Y=n[z],l.hasOwnProperty(z)&&(L!=null||Y!=null))switch(z){case"type":u=L;break;case"name":s=L;break;case"checked":O=L;break;case"defaultChecked":B=L;break;case"value":d=L;break;case"defaultValue":g=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(c(137,e));break;default:L!==Y&&Et(t,e,z,L,l,Y)}}Do(t,d,g,T,O,B,u,s);return;case"select":L=d=g=z=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":L=T;default:l.hasOwnProperty(u)||Et(t,e,u,null,l,T)}for(s in l)if(u=l[s],T=n[s],l.hasOwnProperty(s)&&(u!=null||T!=null))switch(s){case"value":z=u;break;case"defaultValue":g=u;break;case"multiple":d=u;default:u!==T&&Et(t,e,s,u,l,T)}e=g,n=d,l=L,z!=null?Ha(t,!!n,z,!1):!!l!=!!n&&(e!=null?Ha(t,!!n,e,!0):Ha(t,!!n,n?[]:"",!1));return;case"textarea":L=z=null;for(g in n)if(s=n[g],n.hasOwnProperty(g)&&s!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Et(t,e,g,null,l,s)}for(d in l)if(s=l[d],u=n[d],l.hasOwnProperty(d)&&(s!=null||u!=null))switch(d){case"value":z=s;break;case"defaultValue":L=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(c(91));break;default:s!==u&&Et(t,e,d,s,l,u)}Gr(t,z,L);return;case"option":for(var W in n)z=n[W],n.hasOwnProperty(W)&&z!=null&&!l.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:Et(t,e,W,null,l,z));for(T in l)z=l[T],L=n[T],l.hasOwnProperty(T)&&z!==L&&(z!=null||L!=null)&&(T==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Et(t,e,T,z,l,L));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 st in n)z=n[st],n.hasOwnProperty(st)&&z!=null&&!l.hasOwnProperty(st)&&Et(t,e,st,null,l,z);for(O in l)if(z=l[O],L=n[O],l.hasOwnProperty(O)&&z!==L&&(z!=null||L!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,e));break;default:Et(t,e,O,z,l,L)}return;default:if(Lo(e)){for(var Mt in n)z=n[Mt],n.hasOwnProperty(Mt)&&z!==void 0&&!l.hasOwnProperty(Mt)&&Sc(t,e,Mt,void 0,l,z);for(B in l)z=l[B],L=n[B],!l.hasOwnProperty(B)||z===L||z===void 0&&L===void 0||Sc(t,e,B,z,l,L);return}}for(var j in n)z=n[j],n.hasOwnProperty(j)&&z!=null&&!l.hasOwnProperty(j)&&Et(t,e,j,null,l,z);for(Y in l)z=l[Y],L=n[Y],!l.hasOwnProperty(Y)||z===L||z==null&&L==null||Et(t,e,Y,z,l,L)}function kh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],u=s.transferSize,d=s.initiatorType,g=s.duration;if(u&&g&&kh(d)){for(d=0,g=s.responseEnd,l+=1;l<n.length;l++){var T=n[l],O=T.startTime;if(O>g)break;var B=T.transferSize,Y=T.initiatorType;B&&kh(Y)&&(T=T.responseEnd,d+=B*(T<g?1:(g-O)/(T-O)))}if(--l,e+=8*(u+d)/(s.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 _c=null,Tc=null;function Ys(t){return t.nodeType===9?t:t.ownerDocument}function Jh(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 Fh(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 Rc(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 Ec=null;function ng(){var t=window.event;return t&&t.type==="popstate"?t===Ec?!1:(Ec=t,!0):(Ec=null,!1)}var Ph=typeof setTimeout=="function"?setTimeout:void 0,ag=typeof clearTimeout=="function"?clearTimeout:void 0,$h=typeof Promise=="function"?Promise:void 0,lg=typeof queueMicrotask=="function"?queueMicrotask:typeof $h<"u"?function(t){return $h.resolve(null).then(t).catch(ig)}:Ph;function ig(t){setTimeout(function(){throw t})}function Vn(t){return t==="head"}function Wh(t,e){var n=e,l=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(s),vl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")hi(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,hi(n);for(var u=n.firstChild;u;){var d=u.nextSibling,g=u.nodeName;u[Nl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=d}}else n==="body"&&hi(t.ownerDocument.body);n=s}while(n);vl(e)}function Ih(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 Mc(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":Mc(n),No(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function sg(t,e,n,l){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Nl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function og(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function tm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(t.nextSibling),t===null))return null;return t}function jc(t){return t.data==="$?"||t.data==="$~"}function Cc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function ug(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 Le(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 Ac=null;function em(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Le(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function nm(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 am(t,e,n){switch(e=Ys(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function hi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);No(t)}var Ue=new Map,lm=new Set;function Gs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sn=Z.d;Z.d={f:cg,r:rg,D:fg,C:dg,L:hg,m:mg,X:vg,S:pg,M:yg};function cg(){var t=Sn.f(),e=Ds();return t||e}function rg(t){var e=La(t);e!==null&&e.tag===5&&e.type==="form"?Sd(e):Sn.r(t)}var hl=typeof document>"u"?null:document;function im(t,e,n){var l=hl;if(l&&typeof e=="string"&&e){var s=Ce(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),lm.has(s)||(lm.add(s),t={rel:t,crossOrigin:n,href:e},l.querySelector(s)===null&&(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function fg(t){Sn.D(t),im("dns-prefetch",t,null)}function dg(t,e){Sn.C(t,e),im("preconnect",t,e)}function hg(t,e,n){Sn.L(t,e,n);var l=hl;if(l&&t&&e){var s='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ce(n.imageSizes)+'"]')):s+='[href="'+Ce(t)+'"]';var u=s;switch(e){case"style":u=ml(t);break;case"script":u=pl(t)}Ue.has(u)||(t=p({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ue.set(u,t),l.querySelector(s)!==null||e==="style"&&l.querySelector(mi(u))||e==="script"&&l.querySelector(pi(u))||(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function mg(t,e){Sn.m(t,e);var n=hl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ce(l)+'"][href="'+Ce(t)+'"]',u=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=pl(t)}if(!Ue.has(u)&&(t=p({rel:"modulepreload",href:t},e),Ue.set(u,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(pi(u)))return}l=n.createElement("link"),te(l,"link",t),kt(l),n.head.appendChild(l)}}}function pg(t,e,n){Sn.S(t,e,n);var l=hl;if(l&&t){var s=Ua(l).hoistableStyles,u=ml(t);e=e||"default";var d=s.get(u);if(!d){var g={loading:0,preload:null};if(d=l.querySelector(mi(u)))g.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ue.get(u))&&Oc(t,n);var T=d=l.createElement("link");kt(T),te(T,"link",t),T._p=new Promise(function(O,B){T.onload=O,T.onerror=B}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Xs(d,e,l)}d={type:"stylesheet",instance:d,count:1,state:g},s.set(u,d)}}}function vg(t,e){Sn.X(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),u=l.get(s);u||(u=n.querySelector(pi(s)),u||(t=p({src:t,async:!0},e),(e=Ue.get(s))&&Nc(t,e),u=n.createElement("script"),kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function yg(t,e){Sn.M(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),u=l.get(s);u||(u=n.querySelector(pi(s)),u||(t=p({src:t,async:!0,type:"module"},e),(e=Ue.get(s))&&Nc(t,e),u=n.createElement("script"),kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function sm(t,e,n,l){var s=(s=rt.current)?Gs(s):null;if(!s)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ml(n.href),n=Ua(s).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ml(n.href);var u=Ua(s).hoistableStyles,d=u.get(t);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,d),(u=s.querySelector(mi(t)))&&!u._p&&(d.instance=u,d.state.loading=5),Ue.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ue.set(t,n),u||gg(s,t,n,d.state))),e&&l===null)throw Error(c(528,""));return d}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=pl(n),n=Ua(s).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function ml(t){return'href="'+Ce(t)+'"'}function mi(t){return'link[rel="stylesheet"]['+t+"]"}function om(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function gg(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),te(e,"link",n),kt(e),t.head.appendChild(e))}function pl(t){return'[src="'+Ce(t)+'"]'}function pi(t){return"script[async]"+t}function um(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(l)return e.instance=l,kt(l),l;var s=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),kt(l),te(l,"style",s),Xs(l,n.precedence,t),e.instance=l;case"stylesheet":s=ml(n.href);var u=t.querySelector(mi(s));if(u)return e.state.loading|=4,e.instance=u,kt(u),u;l=om(n),(s=Ue.get(s))&&Oc(l,s),u=(t.ownerDocument||t).createElement("link"),kt(u);var d=u;return d._p=new Promise(function(g,T){d.onload=g,d.onerror=T}),te(u,"link",l),e.state.loading|=4,Xs(u,n.precedence,t),e.instance=u;case"script":return u=pl(n.src),(s=t.querySelector(pi(u)))?(e.instance=s,kt(s),s):(l=n,(s=Ue.get(u))&&(l=p({},n),Nc(l,s)),t=t.ownerDocument||t,s=t.createElement("script"),kt(s),te(s,"link",l),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Xs(l,n.precedence,t));return e.instance}function Xs(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,u=s,d=0;d<l.length;d++){var g=l[d];if(g.dataset.precedence===e)u=g;else if(u!==s)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Oc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Nc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vs=null;function cm(t,e,n){if(Vs===null){var l=new Map,s=Vs=new Map;s.set(n,l)}else s=Vs,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var u=n[s];if(!(u[Nl]||u[Pt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(e)||"";d=t+d;var g=l.get(d);g?g.push(u):l.set(d,[u])}}return l}function rm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function xg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function fm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function bg(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 s=ml(l.href),u=e.querySelector(mi(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ks.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,kt(u);return}u=e.ownerDocument||e,l=om(l),(s=Ue.get(s))&&Oc(l,s),u=u.createElement("link"),kt(u);var d=u;d._p=new Promise(function(g,T){d.onload=g,d.onerror=T}),te(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Ks.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var zc=0;function Sg(t,e){return t.stylesheets&&t.count===0&&ks(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&ks(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&zc===0&&(zc=62500*eg());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ks(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>zc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Ks(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ks(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Zs=null;function ks(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zs=new Map,e.forEach(_g,t),Zs=null,Ks.call(t))}function _g(t,e){if(!(e.state.loading&4)){var n=Zs.get(t);if(n)var l=n.get(null);else{n=new Map,Zs.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var d=s[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}s=e.instance,d=s.getAttribute("data-precedence"),u=n.get(d)||l,u===l&&n.set(null,s),n.set(d,s),this.count++,l=Ks.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),u?u.parentNode.insertBefore(s,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var vi={$$typeof:G,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function Tg(t,e,n,l,s,u,d,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=jo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jo(0),this.hiddenUpdates=jo(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function dm(t,e,n,l,s,u,d,g,T,O,B,Y){return t=new Tg(t,e,n,d,T,O,B,Y,g),e=1,u===!0&&(e|=24),u=xe(3,null,null,e),t.current=u,u.stateNode=t,e=fu(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},pu(u),t}function hm(t){return t?(t=Za,t):Za}function mm(t,e,n,l,s,u){s=hm(s),l.context===null?l.context=s:l.pendingContext=s,l=Dn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=wn(t,l,e),n!==null&&(de(n,t,e),Jl(n,t,e))}function pm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Dc(t,e){pm(t,e),(t=t.alternate)&&pm(t,e)}function vm(t){if(t.tag===13||t.tag===31){var e=ua(t,67108864);e!==null&&de(e,t,67108864),Dc(t,67108864)}}function ym(t){if(t.tag===13||t.tag===31){var e=Re();e=Co(e);var n=ua(t,e);n!==null&&de(n,t,e),Dc(t,e)}}var Js=!0;function Rg(t,e,n,l){var s=U.T;U.T=null;var u=Z.p;try{Z.p=2,wc(t,e,n,l)}finally{Z.p=u,U.T=s}}function Eg(t,e,n,l){var s=U.T;U.T=null;var u=Z.p;try{Z.p=8,wc(t,e,n,l)}finally{Z.p=u,U.T=s}}function wc(t,e,n,l){if(Js){var s=Lc(l);if(s===null)bc(t,e,l,Fs,n),xm(t,l);else if(jg(s,t,e,n,l))l.stopPropagation();else if(xm(t,l),e&4&&-1<Mg.indexOf(t)){for(;s!==null;){var u=La(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=aa(u.pendingLanes);if(d!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var T=1<<31-ye(d);g.entanglements[1]|=T,d&=~T}Je(u),(bt&6)===0&&(Ns=ne()+500,ri(0))}}break;case 31:case 13:g=ua(u,2),g!==null&&de(g,u,2),Ds(),Dc(u,2)}if(u=Lc(l),u===null&&bc(t,e,l,Fs,n),u===s)break;s=u}s!==null&&l.stopPropagation()}else bc(t,e,l,null,n)}}function Lc(t){return t=Bo(t),Uc(t)}var Fs=null;function Uc(t){if(Fs=null,t=wa(t),t!==null){var e=f(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=x(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 Fs=t,null}function gm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(At()){case Ft:return 2;case Ve:return 8;case za:case dv:return 32;case jr:return 268435456;default:return 32}default:return 32}}var Bc=!1,Kn=null,Zn=null,kn=null,yi=new Map,gi=new Map,Jn=[],Mg="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 xm(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":yi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":gi.delete(e.pointerId)}}function xi(t,e,n,l,s,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[s]},e!==null&&(e=La(e),e!==null&&vm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function jg(t,e,n,l,s){switch(e){case"focusin":return Kn=xi(Kn,t,e,n,l,s),!0;case"dragenter":return Zn=xi(Zn,t,e,n,l,s),!0;case"mouseover":return kn=xi(kn,t,e,n,l,s),!0;case"pointerover":var u=s.pointerId;return yi.set(u,xi(yi.get(u)||null,t,e,n,l,s)),!0;case"gotpointercapture":return u=s.pointerId,gi.set(u,xi(gi.get(u)||null,t,e,n,l,s)),!0}return!1}function bm(t){var e=wa(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Dr(t.priority,function(){ym(n)});return}}else if(e===31){if(e=x(n),e!==null){t.blockedOn=e,Dr(t.priority,function(){ym(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 Ps(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Lc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Uo=l,n.target.dispatchEvent(l),Uo=null}else return e=La(n),e!==null&&vm(e),t.blockedOn=n,!1;e.shift()}return!0}function Sm(t,e,n){Ps(t)&&n.delete(e)}function Cg(){Bc=!1,Kn!==null&&Ps(Kn)&&(Kn=null),Zn!==null&&Ps(Zn)&&(Zn=null),kn!==null&&Ps(kn)&&(kn=null),yi.forEach(Sm),gi.forEach(Sm)}function $s(t,e){t.blockedOn===e&&(t.blockedOn=null,Bc||(Bc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Cg)))}var Ws=null;function _m(t){Ws!==t&&(Ws=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ws===t&&(Ws=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],s=t[e+2];if(typeof l!="function"){if(Uc(l||n)===null)continue;break}var u=La(n);u!==null&&(t.splice(e,3),e-=3,Lu(u,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function vl(t){function e(T){return $s(T,t)}Kn!==null&&$s(Kn,t),Zn!==null&&$s(Zn,t),kn!==null&&$s(kn,t),yi.forEach(e),gi.forEach(e);for(var n=0;n<Jn.length;n++){var l=Jn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)bm(n),n.blockedOn===null&&Jn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],u=n[l+1],d=s[se]||null;if(typeof u=="function")d||_m(n);else if(d){var g=null;if(u&&u.hasAttribute("formAction")){if(s=u,d=u[se]||null)g=d.formAction;else if(Uc(s)!==null)continue}else g=d.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),_m(n)}}}function Tm(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=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),s!==null&&(s(),s=null)}}}function Hc(t){this._internalRoot=t}Is.prototype.render=Hc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=Re();mm(n,l,t,e,null,null)},Is.prototype.unmount=Hc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;mm(t.current,2,null,t,null,null),Ds(),e[Da]=null}};function Is(t){this._internalRoot=t}Is.prototype.unstable_scheduleHydration=function(t){if(t){var e=zr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Jn.length&&e!==0&&e<Jn[n].priority;n++);Jn.splice(n,0,t),n===0&&bm(t)}};var Rm=i.version;if(Rm!=="19.2.7")throw Error(c(527,Rm,"19.2.7"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=y(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Ag={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{Cl=to.inject(Ag),ve=to}catch{}}return Ri.createRoot=function(t,e){if(!r(t))throw Error(c(299));var n=!1,l="",s=Nd,u=zd,d=Dd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=dm(t,1,!1,null,null,n,l,null,s,u,d,Tm),t[Da]=e.current,xc(t),new Hc(e)},Ri.hydrateRoot=function(t,e,n){if(!r(t))throw Error(c(299));var l=!1,s="",u=Nd,d=zd,g=Dd,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=dm(t,1,!0,e,n??null,l,s,T,u,d,g,Tm),e.context=hm(null),n=e.current,l=Re(),l=Co(l),s=Dn(l),s.callback=null,wn(n,s,l),n=l,e.current.lanes=n,Ol(e,n),Je(e),t[Da]=e.current,xc(t),new Is(e)},Ri.version="19.2.7",Ri}var yp;function Sb(){if(yp)return er.exports;yp=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(),er.exports=bb(),er.exports}var _b=Sb();const ov="ahk-theme";function Tb(){if(typeof window>"u")return"dark";const a=localStorage.getItem(ov);return a==="light"||a==="dark"?a:"dark"}function Rb(){const[a,i]=J.useState(Tb);return J.useEffect(()=>{const c=document.documentElement;a==="dark"?(c.classList.add("dark"),c.classList.remove("light")):(c.classList.add("light"),c.classList.remove("dark")),localStorage.setItem(ov,a)},[a]),{theme:a,toggle:()=>i(c=>c==="dark"?"light":"dark")}}function Eb(){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"12",cy:"12",r:"4"}),h.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]})}function Mb(){return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}const Oa=Wx()({component:Cb}),jb=[{to:"/",label:"Overview",exact:!0},{to:"/tasks",label:"Tasks",exact:!1},{to:"/agents",label:"Agents",exact:!1},{to:"/tools",label:"Tools",exact:!1},{to:"/files",label:"Files",exact:!1}];function Cb(){const{theme:a,toggle:i}=Rb();return h.jsxs("div",{className:"flex h-screen bg-[var(--color-bg-base)] text-[var(--color-text-primary)] overflow-hidden",children:[h.jsxs("nav",{className:"w-48 border-r border-[var(--color-border)] flex flex-col shrink-0",children:[h.jsxs("div",{className:"px-4 py-4 border-b border-[var(--color-border)]",children:[h.jsx("span",{className:"font-mono font-bold text-sm text-[var(--color-accent)]",children:"ahk"}),h.jsx("span",{className:"font-mono text-sm text-[var(--color-text-muted)] ml-1.5",children:"dashboard"})]}),h.jsx("div",{className:"flex-1 py-2 flex flex-col gap-0.5 px-2 overflow-y-auto",children:jb.map(({to:o,label:c,exact:r})=>h.jsx(ea,{to:o,activeOptions:{exact:r},className:"font-mono text-sm px-3 py-1.5 rounded text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-surface)] transition-colors",activeProps:{className:"font-mono text-sm px-3 py-1.5 rounded text-[var(--color-text-primary)] bg-[var(--color-bg-surface)]"},children:c},o))}),h.jsx("div",{className:"px-4 py-3 border-t border-[var(--color-border)]",children:h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-accent)] inline-block"}),h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-muted)]",children:"live"}),h.jsx("button",{onClick:i,title:a==="dark"?"Switch to light mode":"Switch to dark mode",className:"ml-auto text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] transition-colors p-1 rounded hover:bg-[var(--color-bg-elevated)]",children:a==="dark"?h.jsx(Eb,{}):h.jsx(Mb,{})})]})})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(sv,{})})]})}const Ab={lead:"bg-violet-950 text-violet-400",explorer:"bg-sky-950 text-sky-300",builder:"bg-green-950 text-green-400",reviewer:"bg-amber-950 text-amber-400"};function Ob(a){return a.startsWith("custom:")?"bg-neutral-900 text-neutral-300":Ab[a]??"bg-neutral-900 text-neutral-400"}function Ge({agent:a,size:i="sm"}){const o=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${Ob(a)} ${o} font-mono px-2 py-0.5 rounded-sm`,children:a})}function bo({cols:a,message:i="No data"}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-[var(--color-text-faint)]",children:i})})}function uv(){return h.jsx("div",{className:"p-6 font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"})}function So({cols:a}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"})})}function Rl({title:a,subtitle:i,right:o}){return h.jsxs("div",{className:"flex items-start justify-between px-6 pt-6 pb-4 border-b border-[var(--color-border)]",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"font-mono font-semibold text-base text-[var(--color-text-primary)]",children:a}),i&&h.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-0.5",children:i})]}),o!=null&&o!=null&&h.jsx("div",{children:o})]})}const gp="/api";async function Fe(a,i){const o=i?`${gp}${a}?${new URLSearchParams(i)}`:`${gp}${a}`,c=await fetch(o);if(!c.ok)throw new Error(`API ${a} → ${c.status}`);return c.json()}const Me={stats:()=>Fe("/stats"),tasks:()=>Fe("/tasks"),allTasks:(a=!1)=>Fe("/tasks",{includeArchived:String(a)}),task:a=>Fe(`/tasks/${a}`),topTools:(a=20)=>Fe("/tools/top",{limit:String(a)}),recentTools:(a=50)=>Fe("/tools/recent",{limit:String(a)}),topFiles:(a=20)=>Fe("/files/top",{limit:String(a)}),recentFiles:(a=50)=>Fe("/files/recent",{limit:String(a)}),agentStats:()=>Fe("/agents/stats"),timeline:(a=50)=>Fe("/timeline",{limit:String(a)}),updateTask:(a,i)=>fetch(`/api/tasks/${a}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(o=>o.json()),archiveTask:a=>fetch(`/api/tasks/${a}/archive`,{method:"PATCH"}).then(i=>i.json()),unarchiveTask:a=>fetch(`/api/tasks/${a}/unarchive`,{method:"PATCH"}).then(i=>i.json())},Ie={stats:["stats"],tasks:["tasks"],allTasks:a=>["tasks",{includeArchived:a}],task:a=>["tasks",a],topTools:["tools","top"],recentTools:["tools","recent"],topFiles:["files","top"],recentFiles:["files","recent"],agentStats:["agents","stats"],timeline:["timeline"]};function $e(a){return new Date(a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function cv(a,i){if(!i)return"—";const o=new Date(i).getTime()-new Date(a).getTime(),c=Math.floor(o/1e3);if(c<60)return`${c}s`;const r=Math.floor(c/60);return r<60?`${r}m ${c%60}s`:`${Math.floor(r/60)}h ${r%60}m`}const Nb=Tl("/tools")({component:zb});function zb(){const a=We({queryKey:Ie.topTools,queryFn:()=>Me.topTools(25)}),i=We({queryKey:Ie.recentTools,queryFn:()=>Me.recentTools(50)}),o=a.data?.[0]?.uses??1;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tools",subtitle:"Tool usage across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-4",children:"Top Tools"}),a.isLoading&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"}),h.jsxs("div",{className:"space-y-1.5",children:[(a.data??[]).map(({tool_name:c,uses:r})=>h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-48 font-mono text-xs text-[var(--color-text-secondary)] text-right shrink-0 truncate",children:c}),h.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-[var(--color-bg-elevated)] rounded-sm h-5 overflow-hidden",children:h.jsx("div",{className:"bg-violet-900 h-full transition-all flex items-center px-2",style:{width:`${r/o*100}%`}})}),h.jsx("span",{className:"font-mono text-xs text-[var(--color-text-muted)] w-8 text-right shrink-0",children:r})]})]},c)),!a.isLoading&&a.data?.length===0&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"No tool calls recorded yet."})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Calls"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Tool","Agent","Task","Args","Result","Called"].map(c=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:c},c))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(So,{cols:6}),(i.data??[]).map(c=>h.jsx(Db,{tool:c},c.id)),!i.isLoading&&i.data?.length===0&&h.jsx(bo,{cols:6,message:"No recent calls"})]})]})]})]})]})}function Db({tool:a}){let i="—";if(a.args_json)try{const o=JSON.parse(a.args_json);i=JSON.stringify(o).slice(0,60)+(JSON.stringify(o).length>60?"…":"")}catch{i=a.args_json.slice(0,60)}return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-violet-400",children:a.tool_name}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-muted)] max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-faint)] max-w-[180px] truncate",children:i}),h.jsx("td",{className:"px-4 py-2 text-xs text-[var(--color-text-muted)] max-w-[180px] truncate",children:a.result_summary??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.called_at)})]})}const wb={read:"text-neutral-400",created:"text-green-400",modified:"text-amber-400",deleted:"text-red-400"};function rv({op:a}){const i=wb[a]??"text-neutral-500";return h.jsx("span",{className:`${i} font-mono text-xs`,children:a})}const Lb=Tl("/files")({component:Ub});function Ub(){const a=We({queryKey:Ie.topFiles,queryFn:()=>Me.topFiles(25)}),i=We({queryKey:Ie.recentFiles,queryFn:()=>Me.recentFiles(60)});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Files",subtitle:"File operations across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Most Touched"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["File Path","Total","Read","Created","Modified","Deleted"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[a.isLoading&&h.jsx(So,{cols:6}),(a.data??[]).map(o=>h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)] max-w-xs truncate",children:o.file_path}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)]",children:o.total}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-faint)]",children:o.read||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-green-400",children:o.created||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-amber-400",children:o.modified||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-red-400",children:o.deleted||"—"})]},o.file_path)),!a.isLoading&&a.data?.length===0&&h.jsx(bo,{cols:6,message:"No file activity yet"})]})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Operations"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Op","File Path","Agent","Task","Notes","When"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(So,{cols:6}),(i.data??[]).map(o=>h.jsx(Bb,{file:o},o.id)),!i.isLoading&&i.data?.length===0&&h.jsx(bo,{cols:6,message:"No recent operations"})]})]})]})]})]})}function Bb({file:a}){return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2",children:h.jsx(rv,{op:a.operation})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)] max-w-[220px] truncate",children:a.file_path}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-muted)] max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 text-xs text-[var(--color-text-faint)] max-w-[160px] truncate",children:a.notes??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.called_at)})]})}const Hb=Tl("/agents")({component:qb});function qb(){const{data:a=[],isLoading:i}=We({queryKey:Ie.agentStats,queryFn:Me.agentStats});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Agents",subtitle:"Activity breakdown per agent role"}),h.jsxs("div",{className:"p-6 space-y-4",children:[i&&h.jsx(uv,{}),h.jsx("div",{className:"grid grid-cols-2 gap-4",children:a.map(o=>h.jsx(Qb,{stat:o},o.agent))}),a.length===0&&!i&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"No agent activity yet."}),a.length>0&&h.jsxs("div",{className:"mt-6",children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Summary Table"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Agent","Total Actions","Completed","Blocked","Tasks","Files"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsx("tbody",{children:a.map(o=>h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ge,{agent:o.agent})}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.actions_total}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-green-400",children:o.actions_done}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-red-400",children:o.actions_blocked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.tasks_worked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.files_touched})]},o.agent))})]})]})]})]})}function Qb({stat:a}){const i=a.actions_total>0?Math.round(a.actions_done/a.actions_total*100):0;return h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-4 space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:[i,"% done"]})]}),h.jsx("div",{className:"w-full bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-700 h-1 rounded-full",style:{width:`${i}%`}})}),h.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[h.jsx(gl,{label:"Actions",value:a.actions_total}),h.jsx(gl,{label:"Completed",value:a.actions_done,color:"text-green-400"}),h.jsx(gl,{label:"Tasks",value:a.tasks_worked}),h.jsx(gl,{label:"Blocked",value:a.actions_blocked,color:a.actions_blocked>0?"text-red-400":void 0}),h.jsx(gl,{label:"Files touched",value:a.files_touched}),h.jsx(gl,{label:"In progress",value:a.actions_total-a.actions_done-a.actions_blocked,color:"text-amber-400"})]})]})}function gl({label:a,value:i,color:o}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-xs text-[var(--color-text-faint)]",children:a}),h.jsx("span",{className:`font-mono text-xs ${o??"text-[var(--color-text-secondary)]"}`,children:i})]})}const Yb={pending:"bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400",in_progress:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-400",done:"bg-green-100 text-green-700 dark:bg-green-950 dark:text-green-400",blocked:"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-400",completed:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-400"},Gb={in_progress:"in progress"};function Eo({status:a,size:i="sm"}){const o=Yb[a]??"bg-neutral-100 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-500",c=Gb[a]??a,r=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${o} ${r} font-mono px-2 py-0.5 rounded-sm`,children:c})}const Xb=Tl("/")({component:Vb});function Vb(){const a=We({queryKey:Ie.stats,queryFn:Me.stats}),i=We({queryKey:Ie.tasks,queryFn:Me.tasks}),o=We({queryKey:Ie.timeline,queryFn:()=>Me.timeline(15)}),c=i.data?.filter(f=>f.status==="in_progress")??[],r=a.data;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Overview",subtitle:"Harness state at a glance"}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Pending",key:"pending",color:"text-[var(--color-text-secondary)]"},{label:"In Progress",key:"in_progress",color:"text-amber-400"},{label:"Done",key:"done",color:"text-green-400"},{label:"Blocked",key:"blocked",color:"text-red-400"}].map(({label:f,key:m,color:x})=>h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-4",children:[h.jsx("div",{className:`font-mono text-2xl font-semibold ${x}`,children:r?r.byStatus[m]??0:"—"}),h.jsx("div",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:f})]},m))}),h.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Total Actions",value:r?.totalActions},{label:"Files Touched",value:r?.totalFiles},{label:"Unique Tools",value:r?.uniqueTools}].map(({label:f,value:m})=>h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md px-4 py-3 flex items-center gap-3",children:[h.jsx("span",{className:"font-mono text-lg text-[var(--color-text-primary)]",children:m??"—"}),h.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:f})]},f))}),h.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Active Tasks"}),c.length===0?h.jsx("p",{className:"text-xs text-[var(--color-text-faint)] font-mono",children:"No tasks in progress"}):h.jsx("div",{className:"space-y-2",children:c.map(f=>h.jsxs(ea,{to:"/tasks/$id",params:{id:String(f.id)},className:"block bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-3 hover:border-[var(--color-border)] transition-colors",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"font-mono text-sm text-[var(--color-text-primary)] truncate",children:f.title}),h.jsx("div",{className:"font-mono text-xs text-[var(--color-text-faint)] mt-0.5",children:f.slug})]}),f.assigned_to&&h.jsx(Ge,{agent:f.assigned_to,size:"xs"})]}),f.acceptance_total>0&&h.jsxs("div",{className:"mt-2",children:[h.jsxs("div",{className:"flex justify-between text-[10px] font-mono text-[var(--color-text-faint)] mb-1",children:[h.jsx("span",{children:"acceptance"}),h.jsxs("span",{children:[f.acceptance_met,"/",f.acceptance_total]})]}),h.jsx("div",{className:"w-full bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full transition-all",style:{width:`${f.acceptance_met/f.acceptance_total*100}%`}})})]})]},f.id))})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Activity"}),h.jsxs("div",{className:"space-y-1",children:[(o.data??[]).map(f=>h.jsx(Kb,{entry:f},f.id)),o.data?.length===0&&h.jsx("p",{className:"text-xs text-[var(--color-text-faint)] font-mono",children:"No activity yet"})]})]})]})]})]})}function Kb({entry:a}){return h.jsxs(ea,{to:"/tasks/$id",params:{id:String(a.task_id)},className:"flex items-start gap-2 px-2 py-1.5 rounded hover:bg-[var(--color-bg-surface)] transition-colors group",children:[h.jsx(Ge,{agent:a.agent,size:"xs"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"text-xs text-[var(--color-text-secondary)] truncate group-hover:text-[var(--color-text-primary)] transition-colors",children:a.summary??a.task_title}),h.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:a.task_slug}),h.jsx(Eo,{status:a.status,size:"xs"})]})]}),h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)] shrink-0",children:$e(a.created_at)})]})}const Zb=(a,i)=>{const[o,c]=J.useState(a);return J.useEffect(()=>{const f=m=>{if(m.storageArea===localStorage&&m.key===i)try{const x=m.newValue?JSON.parse(m.newValue):void 0;c(x)}catch{}};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}},[i]),J.useEffect(()=>{try{const f=localStorage.getItem(i);f!==null&&c(JSON.parse(f))}catch{}},[i]),[o,f=>{c(f),f===void 0?localStorage.removeItem(i):localStorage.setItem(i,JSON.stringify(f))}]},kb=Tl("/tasks/")({component:$b}),Jb=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in_progress",label:"In Progress"},{value:"done",label:"Done"},{value:"blocked",label:"Blocked"},{value:"archived",label:"Archived"}],Fb=[{value:"list",label:"List"},{value:"board",label:"Board"}],Pb=[{status:"pending",label:"Pending",color:"text-[var(--color-text-secondary)]"},{status:"in_progress",label:"In Progress",color:"text-amber-400"},{status:"done",label:"Done",color:"text-green-400"},{status:"blocked",label:"Blocked",color:"text-red-400"}];function xp(a){return a.completed_at??a.started_at??a.created_at}function $b(){const[a,i]=J.useState("all"),[o,c]=Zb("list","tasks_view_mode"),[r,f]=J.useState({field:null,dir:"asc"}),{data:m=[],isLoading:x}=We({queryKey:Ie.allTasks(!0),queryFn:()=>Me.allTasks(!0)}),v=a==="all"?m.filter(p=>!p.archived_at):a==="archived"?m.filter(p=>p.archived_at):m.filter(p=>p.status===a&&!p.archived_at),y=J.useMemo(()=>r.field?[...v].sort((p,S)=>{if(r.field==="status"){const _=p.status.localeCompare(S.status);return r.dir==="asc"?_:-_}if(r.field==="created"){const _=new Date(p.created_at).getTime()-new Date(S.created_at).getTime();return r.dir==="asc"?_:-_}return 0}):v,[v,r]),b=J.useMemo(()=>{const p={pending:[],in_progress:[],done:[],blocked:[]};for(const S of v)p[S.status]&&p[S.status].push(S);for(const S of Object.keys(p))p[S].sort((_,M)=>new Date(xp(M)).getTime()-new Date(xp(_)).getTime());return p},[v]);return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tasks",subtitle:`${v.length} task${v.length!==1?"s":""}`,right:h.jsxs("div",{className:"flex gap-1 items-center",children:[Fb.map(({value:p,label:S})=>h.jsx("button",{onClick:()=>c(p),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${o===p?"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] border border-transparent"}`,children:S},p)),h.jsx("span",{className:"w-px h-5 bg-[var(--color-border)] mx-1"}),Jb.map(({value:p,label:S})=>h.jsx("button",{onClick:()=>i(p),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${a===p?"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] border border-transparent"}`,children:S},p))]})}),o==="list"?h.jsx(Wb,{tasks:y,sortConfig:r,onSortChange:f,isLoading:x}):h.jsx(tS,{columns:b})]})}function Wb({tasks:a,sortConfig:i,onSortChange:o,isLoading:c}){const r=m=>{i.field===m?o({field:m,dir:i.dir==="asc"?"desc":"asc"}):o({field:m,dir:"asc"})},f=m=>i.field!==m?"":i.dir==="asc"?" ▲":" ▼";return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-[var(--color-border)]",children:[h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"#"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Title"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Slug"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-[var(--color-text-secondary)] transition-colors",onClick:()=>r("status"),children:["Status",f("status")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Assigned"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Acceptance"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-[var(--color-text-secondary)] transition-colors",onClick:()=>r("created"),children:["Created",f("created")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Archived"})]})}),h.jsxs("tbody",{children:[c&&h.jsx(So,{cols:8}),a.map(m=>h.jsx(Ib,{task:m},m.id)),!c&&a.length===0&&h.jsx(bo,{cols:8,message:"No tasks"})]})]})})}function Ib({task:a}){return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors group",children:[h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-faint)]",children:a.id}),h.jsxs("td",{className:"px-4 py-3",children:[h.jsx(ea,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[var(--color-text-primary)] hover:text-[var(--color-accent)] transition-colors",children:a.title}),a.description&&h.jsx("div",{className:"text-xs text-[var(--color-text-faint)] mt-0.5 truncate max-w-xs",children:a.description})]}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-muted)]",children:a.slug}),h.jsx("td",{className:"px-4 py-3",children:h.jsx(Eo,{status:a.status})}),h.jsx("td",{className:"px-4 py-3",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3",children:a.acceptance_total>0?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-16 bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.acceptance_met,"/",a.acceptance_total]})]}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-faint)]",children:$e(a.created_at)}),h.jsx("td",{className:"px-4 py-3",children:a.archived_at?h.jsx("span",{className:"text-[10px] font-mono text-yellow-600/80 bg-yellow-500/5 px-2 py-0.5 rounded",children:"archived"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})})]})}function tS({columns:a}){return h.jsx("div",{className:"overflow-x-auto px-6 pb-6",children:h.jsx("div",{className:"flex gap-4 min-h-[calc(100vh-12rem)]",children:Pb.map(({status:i,label:o,color:c})=>{const r=a[i]??[];return h.jsxs("div",{className:"w-72 shrink-0 flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-2 px-1 py-3 border-b border-[var(--color-border)] mb-3",children:[h.jsx("h3",{className:`font-mono text-sm font-medium ${c}`,children:o}),h.jsxs("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:["(",r.length,")"]})]}),h.jsx("div",{className:"flex-1 overflow-y-auto max-h-[calc(100vh-16rem)] space-y-2 pr-1",children:r.length>0?r.map(f=>h.jsx(eS,{task:f},f.id)):h.jsx("div",{className:"text-xs font-mono text-[var(--color-text-faint)] text-center py-8",children:"No tasks"})})]},i)})})})}function eS({task:a}){return h.jsxs("div",{className:"border border-[var(--color-border)] rounded bg-[var(--color-bg-base)] p-3 hover:bg-[var(--color-bg-surface)] transition-colors space-y-2",children:[h.jsxs("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:["#",a.id]}),h.jsx(ea,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[var(--color-text-primary)] hover:text-[var(--color-accent)] transition-colors block",children:a.title}),h.jsx("div",{className:"flex items-center gap-2",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),a.acceptance_total>0&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.acceptance_met,"/",a.acceptance_total]})]}),h.jsx("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.created_at)})]})}function nS({message:a="Something went wrong",backTo:i,backLabel:o="← Back"}){return h.jsxs("div",{className:"p-6",children:[i&&h.jsx(ea,{to:i,className:"font-mono text-xs text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition-colors",children:o}),h.jsx("p",{className:"font-mono text-xs text-red-400 mt-4",children:a})]})}function aS({action:a}){const[i,o]=J.useState(!1),c=a.sections.length>0,r=cv(a.created_at,a.completed_at);return h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md",children:[h.jsxs("button",{className:"w-full flex items-start gap-3 p-3 text-left hover:bg-[var(--color-bg-elevated)] transition-colors rounded-md",onClick:()=>c&&o(!i),children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Eo,{status:a.status,size:"xs"}),h.jsx("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:r}),a.tools.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.tools.length," tool",a.tools.length!==1?"s":""]}),a.files.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.files.length," file",a.files.length!==1?"s":""]})]}),a.summary&&h.jsx("div",{className:"text-xs text-[var(--color-text-secondary)] mt-1",children:a.summary})]}),h.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.created_at)}),c&&h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:i?"▲":"▼"})]})]}),i&&c&&h.jsx("div",{className:"border-t border-[var(--color-border)] divide-y divide-[var(--color-border)]",children:a.sections.map(f=>h.jsx(lS,{section:f},f.id))})]})}function lS({section:a}){return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider mb-1",children:a.section_type.replace(/_/g," ")}),h.jsx("pre",{className:"text-xs text-[var(--color-text-secondary)] whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]})}function so({children:a}){return h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider",children:a})}function Ei({label:a,value:i}){return h.jsxs("div",{children:[h.jsx("div",{className:"text-[var(--color-text-faint)] text-[10px]",children:a}),h.jsx("div",{className:"text-[var(--color-text-secondary)]",children:i})]})}const fv=Tl("/tasks/$id")({component:iS});function iS(){const{id:a}=fv.useParams(),{data:i,isLoading:o,isError:c,dataUpdatedAt:r}=We({queryKey:Ie.task(Number(a)),queryFn:()=>Me.task(Number(a))}),[f,m]=J.useState(!1),[x,v]=J.useState(i?.title),[y,b]=J.useState(i?.description??""),[p,S]=J.useState(i?.acceptance.map(N=>N.criterion)??[]);if(J.useEffect(()=>{i&&(v(i.title),b(i.description??""),S(i.acceptance.map(N=>N.criterion)))},[r]),o)return h.jsx(uv,{});if(c||!i)return h.jsx(nS,{message:"Task not found",backTo:"/tasks",backLabel:"← Back to tasks"});const _=()=>S([...p,""]),M=async()=>{await Me.updateTask(Number(a),{title:x,description:y||null,acceptance:p.filter(N=>N.trim()!=="")}),m(!1),window.location.reload()},C=i.acceptance.filter(N=>N.met).length,D=async()=>{await Me.archiveTask(Number(a)),window.location.reload()},w=async()=>{await Me.unarchiveTask(Number(a)),window.location.reload()};return h.jsxs("div",{children:[h.jsx(Rl,{title:i.title,subtitle:i.slug,right:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Eo,{status:i.status}),i.assigned_to&&h.jsx(Ge,{agent:i.assigned_to}),i.archived_at?h.jsx("button",{onClick:w,className:"text-xs font-mono text-yellow-500 hover:text-yellow-400 border border-yellow-900/50 px-3 py-1 rounded",children:"Unarchive"}):h.jsx("button",{onClick:D,className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-red-400 border border-[var(--color-border)] px-3 py-1 rounded",children:"Archive"})]})}),h.jsx("div",{className:"px-6 pt-3",children:h.jsx("button",{onClick:()=>m(!0),className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] border border-[var(--color-border)] px-3 py-1.5 rounded transition-colors",children:"Edit"})}),f&&h.jsx("div",{className:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center",onClick:()=>m(!1),children:h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-lg p-6 w-full md:max-w-2xl lg:max-w-3xl xl:max-w-4xl 2xl:max-w-5xl mx-4 max-h-[80vh] overflow-y-auto max-md:inset-0 max-md:rounded-none max-md:h-screen max-md:w-screen max-md:max-w-full max-md:max-h-full max-md:m-0",onClick:N=>N.stopPropagation(),children:[h.jsx("h3",{className:"font-mono text-sm text-[var(--color-text-primary)] mb-4",children:"Edit Task"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-[var(--color-text-muted)] font-mono block mb-1",children:"Title"}),h.jsx("input",{value:x,onChange:N=>v(N.target.value),className:"w-full bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)]"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-[var(--color-text-muted)] font-mono block mb-1",children:"Description"}),h.jsx("textarea",{value:y??"",onChange:N=>b(N.target.value),className:"w-full bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)] resize-none h-20"})]}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-mono",children:"Acceptance Criteria"}),h.jsx("button",{onClick:_,className:"text-xs font-mono text-green-500 hover:text-green-400",children:"+ Add"})]}),h.jsx("div",{className:"space-y-2",children:p.map((N,G)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("span",{className:"text-xs text-[var(--color-text-faint)] font-mono mt-2 shrink-0",children:["#",G+1]}),h.jsx("input",{value:N,onChange:X=>{const K=[...p];K[G]=X.target.value,S(K)},className:"flex-1 bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)]"}),h.jsx("button",{onClick:()=>S(p.filter((X,K)=>K!==G)),className:"text-xs text-red-500 hover:text-red-400 mt-2",children:"✕"})]},`index-${G}`))})]})]}),h.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[h.jsx("button",{onClick:()=>m(!1),className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] px-3 py-1.5",children:"Cancel"}),h.jsx("button",{onClick:M,className:"text-xs font-mono bg-[var(--color-text-primary)] text-[var(--color-bg-base)] px-3 py-1.5 rounded hover:opacity-90",children:"Save"})]})]})}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"flex gap-6 text-xs font-mono",children:[h.jsx(Ei,{label:"Created",value:$e(i.created_at)}),h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"→"}),h.jsx(Ei,{label:"Started",value:i.started_at?$e(i.started_at):"—"}),h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"→"}),h.jsx(Ei,{label:"Completed",value:i.completed_at?$e(i.completed_at):"—"}),i.started_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"·"}),h.jsx(Ei,{label:"Duration",value:cv(i.started_at,i.completed_at)})]}),i.archived_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"·"}),h.jsx(Ei,{label:"Archived",value:$e(i.archived_at)})]})]}),h.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[i.acceptance.length>0&&h.jsxs("div",{className:"col-span-1",children:[h.jsxs(so,{children:["Acceptance Criteria"," ",h.jsxs("span",{className:"text-[var(--color-text-faint)]",children:["(",C,"/",i.acceptance.length,")"]})]}),h.jsx("div",{className:"space-y-1.5 mt-2",children:i.acceptance.map(N=>h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx("span",{className:`mt-0.5 text-xs font-mono shrink-0 ${N.met?"text-green-400":"text-[var(--color-text-faint)]"}`,children:N.met?"✓":"○"}),h.jsx("span",{className:`text-xs ${N.met?"text-[var(--color-text-secondary)]":"text-[var(--color-text-muted)]"}`,children:N.criterion})]},N.id))})]}),i.description&&h.jsxs("div",{className:"col-span-2",children:[h.jsx(so,{children:"Description"}),h.jsx("p",{className:"text-sm text-[var(--color-text-secondary)] mt-2 leading-relaxed",children:i.description})]})]}),i.actions.length>0&&h.jsxs("div",{children:[h.jsxs(so,{children:["Actions Timeline (",i.actions.length,")"]}),h.jsx("div",{className:"mt-3 space-y-2",children:i.actions.map(N=>h.jsx(aS,{action:N},N.id))})]}),i.actions.some(N=>N.files.length>0)&&h.jsxs("div",{children:[h.jsx(so,{children:"Files Touched"}),h.jsxs("table",{className:"w-full mt-2 text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Operation","File Path","Agent","Notes"].map(N=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-3 py-2",children:N},N))})}),h.jsx("tbody",{children:i.actions.flatMap(N=>N.files.map(G=>h.jsxs("tr",{className:"border-b border-[var(--color-border)]",children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx(rv,{op:G.operation})}),h.jsx("td",{className:"px-3 py-2 font-mono text-xs text-[var(--color-text-secondary)]",children:G.file_path}),h.jsx("td",{className:"px-3 py-2",children:h.jsx(Ge,{agent:N.agent,size:"xs"})}),h.jsx("td",{className:"px-3 py-2 text-xs text-[var(--color-text-faint)]",children:G.notes??"—"})]},G.id)))})]})]})]})]})}const sS=Nb.update({id:"/tools",path:"/tools",getParentRoute:()=>Oa}),oS=Lb.update({id:"/files",path:"/files",getParentRoute:()=>Oa}),uS=Hb.update({id:"/agents",path:"/agents",getParentRoute:()=>Oa}),cS=Xb.update({id:"/",path:"/",getParentRoute:()=>Oa}),rS=kb.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Oa}),fS=fv.update({id:"/tasks/$id",path:"/tasks/$id",getParentRoute:()=>Oa}),dS={IndexRoute:cS,AgentsRoute:uS,FilesRoute:oS,ToolsRoute:sS,TasksIdRoute:fS,TasksIndexRoute:rS},hS=Oa._addFileChildren(dS)._addFileTypes(),Mr=new i0({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0,retry:1}}}),mS=mb({routeTree:hS,context:{queryClient:Mr}}),pS=new WebSocket(`ws://${location.host}/ws`);pS.onmessage=a=>{try{JSON.parse(a.data).type==="update"&&Mr.invalidateQueries()}catch{}};const vS=document.getElementById("root");_b.createRoot(vS).render(h.jsx(J.StrictMode,{children:h.jsx(u0,{client:Mr,children:h.jsx(yb,{router:mS})})}));