@kubitnodes/stellaris 0.1.0 → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +3 -2
- package/dist/cli/index.js +167 -12
- package/dist/server/index.js +543 -32
- package/package.json +2 -1
- package/web/dist/assets/ChannelView-O1FQ_Cbf.js +1 -0
- package/web/dist/assets/CitizenView-D0rSRBnj.js +2 -0
- package/web/dist/assets/CitizensView-BPx5ChvL.js +1 -0
- package/web/dist/assets/KnowledgeView-Cjf5Axu5.js +1 -0
- package/web/dist/assets/Markdown-Dkiv3bKi.js +29 -0
- package/web/dist/assets/MessageItem-sep2BGUh.js +1 -0
- package/web/dist/assets/MetricsView-BIH8FLob.js +1 -0
- package/web/dist/assets/NeedsYouView-CuB7daZ0.js +1 -0
- package/web/dist/assets/Overview-C6Ae0n9b.js +1 -0
- package/web/dist/assets/Pane-BXpuXst6.js +1 -0
- package/web/dist/assets/ProjectView-CpTcrvFa.js +1 -0
- package/web/dist/assets/ProposalView-BXisoFis.js +1 -0
- package/web/dist/assets/ProposalsView-BjPeXIxG.js +1 -0
- package/web/dist/assets/RunnersView-0ou0ekMc.js +1 -0
- package/web/dist/assets/SocietyView-C8lU_XY4.js +1 -0
- package/web/dist/assets/SubjectThread-BWbOV_wk.js +1 -0
- package/web/dist/assets/TaskView-CDLRRfS6.js +1 -0
- package/web/dist/assets/TasksView-p6PdvdWY.js +1 -0
- package/web/dist/assets/ThreadCard-BisvLnYg.js +1 -0
- package/web/dist/assets/ThreadForms-DZ1yLsjU.js +1 -0
- package/web/dist/assets/ThreadView-CQUPQ5oR.js +1 -0
- package/web/dist/assets/{citizen-BXVebeiP.js → citizen-BwK8Ciw3.js} +1 -1
- package/web/dist/assets/format-DZLzLk7S.js +55 -0
- package/web/dist/assets/index-CbJnPhSw.js +21 -0
- package/web/dist/assets/index-DJ30ENcc.css +2 -0
- package/web/dist/assets/{tasks-rltmWd5a.js → tasks-DZgkXWwu.js} +1 -1
- package/web/dist/assets/{useStickyScroll-DDS3s21P.js → useStickyScroll-CVTdIoKj.js} +1 -1
- package/web/dist/index.html +4 -4
- package/web/dist/assets/ChannelView-B8BZLsf1.js +0 -1
- package/web/dist/assets/CitizenView-GomLDcrr.js +0 -2
- package/web/dist/assets/CitizensView-yNv8WtND.js +0 -1
- package/web/dist/assets/KnowledgeView--jxofSSN.js +0 -1
- package/web/dist/assets/Markdown-BpYzeV5r.js +0 -28
- package/web/dist/assets/MessageItem-BGPpqgpq.js +0 -1
- package/web/dist/assets/MetricsView-CcqLr6S1.js +0 -1
- package/web/dist/assets/NeedsYouView-r7gJGgVG.js +0 -1
- package/web/dist/assets/Overview-Cmz4_gfI.js +0 -1
- package/web/dist/assets/Pane-DRpHmeJ9.js +0 -1
- package/web/dist/assets/ProjectView-CuACZj4L.js +0 -1
- package/web/dist/assets/ProposalView-BiVcNEDL.js +0 -1
- package/web/dist/assets/ProposalsView-BIdkOfZO.js +0 -1
- package/web/dist/assets/SocietyView-Dya97szC.js +0 -1
- package/web/dist/assets/SubjectThread-2j_msY38.js +0 -1
- package/web/dist/assets/TaskView-CcJr7xnH.js +0 -1
- package/web/dist/assets/TasksView-BUvHntvK.js +0 -1
- package/web/dist/assets/ThreadCard-tzMGvn9j.js +0 -1
- package/web/dist/assets/ThreadForms-DE2yJEhz.js +0 -1
- package/web/dist/assets/ThreadView-FsNOTyVC.js +0 -1
- package/web/dist/assets/format-Ca2VAvEx.js +0 -77
- package/web/dist/assets/index-CtuchAFa.css +0 -2
- package/web/dist/assets/index-D4GJkeKU.js +0 -237
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChannelView-B8BZLsf1.js","assets/format-Ca2VAvEx.js","assets/MessageItem-BGPpqgpq.js","assets/tasks-rltmWd5a.js","assets/Markdown-BpYzeV5r.js","assets/Pane-DRpHmeJ9.js","assets/ThreadCard-tzMGvn9j.js","assets/ThreadForms-DE2yJEhz.js","assets/useStickyScroll-DDS3s21P.js","assets/ThreadView-FsNOTyVC.js","assets/SocietyView-Dya97szC.js","assets/Overview-Cmz4_gfI.js","assets/citizen-BXVebeiP.js","assets/ProjectView-CuACZj4L.js","assets/KnowledgeView--jxofSSN.js","assets/TasksView-BUvHntvK.js","assets/TaskView-CcJr7xnH.js","assets/SubjectThread-2j_msY38.js","assets/MetricsView-CcqLr6S1.js","assets/CitizensView-yNv8WtND.js","assets/NeedsYouView-r7gJGgVG.js","assets/ProposalsView-BIdkOfZO.js","assets/ProposalView-BiVcNEDL.js","assets/CitizenView-GomLDcrr.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,$t as t,A as n,An as r,At as i,B as a,Bt as o,Cn as s,Ct as c,Dn as l,Dt as u,E as d,En as f,Et as p,F as m,Ft as h,G as g,Gt as _,H as v,Ht as y,I as b,It as x,J as ee,Jt as te,K as ne,Kt as re,L as ie,Lt as ae,Mn as oe,Mt as S,Nt as se,O as ce,On as le,Ot as ue,P as de,Pn as fe,Pt as C,Q as pe,Qt as w,R as me,Rt as he,S as ge,Sn as _e,T as ve,Tn as ye,Tt as be,U as xe,Ut as Se,V as Ce,Vt as we,W as Te,Wt as Ee,X as De,Xt as Oe,Y as ke,Yt as Ae,Z as je,Zt as Me,_ as Ne,_n as T,_t as Pe,an as Fe,at as Ie,b as Le,bn as Re,bt as ze,cn as Be,ct as Ve,dn as He,dt as Ue,en as We,et as Ge,fn as Ke,ft as qe,gn as Je,gt as Ye,hn as Xe,ht as Ze,i as Qe,in as $e,it as et,j as tt,jn as nt,jt as rt,k as it,kn as at,kt as ot,lt as st,mn as ct,mt as lt,n as ut,nn as dt,nt as ft,o as pt,on as mt,ot as ht,p as gt,pn as _t,pt as vt,q as yt,qt as bt,r as xt,rn as St,rt as Ct,s as wt,sn as Tt,t as Et,tn as Dt,tt as Ot,un as kt,ut as At,v as jt,vn as Mt,w as Nt,wn as Pt,wt as Ft,x as It,xn as Lt,yn as Rt,z as zt,zt as Bt}from"./format-Ca2VAvEx.js";import{a as Vt,n as Ht,r as Ut,s as Wt,t as Gt}from"./tasks-rltmWd5a.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Kt=class extends He{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qt(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Ke({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ct.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function qt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Jt=class extends Je{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Kt({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Yt(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Yt(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Yt(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Yt(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ct.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Re(t,e))}findAll(e={}){return this.getAll().filter(t=>Re(e,t))}notify(e){ct.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ct.batch(()=>Promise.all(e.map(e=>e.continue().catch(_e))))}};function Yt(e){return e.options.scope?.id}var Xt=class extends Je{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ye(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Mt(t.mutationKey)!==Mt(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??qt();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){ct.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Zt=class extends Je{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??Rt(r,t),a=this.get(i);return a||(a=new kt({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ct.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Lt(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Lt(e,t)):t}notify(e){ct.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ct.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ct.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Qt=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Zt,this.#t=e.mutationCache||new Jt,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Xe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=_t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=T(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ct.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;ct.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ct.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=ct.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(_e).catch(_e)}invalidateQueries(e,t={}){return ct.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=ct.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(_e)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(_e)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(Pt(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Pt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_e).catch(_e)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_e).catch(_e)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return _t.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Mt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{s(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Mt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{s(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Rt(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===l&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},E=fe(nt(),1);function $t(e,t){let n=at(t),[r]=E.useState(()=>new Xt(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);let i=E.useSyncExternalStore(E.useCallback(e=>r.subscribe(ct.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=E.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(_e)},[r]);if(i.error&&f(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var en=oe((e=>{(function(){function t(){if(x=!1,re){var t=e.unstable_now();oe=t;var n=!0;try{a:{y=!1,b&&(b=!1,te(ie),ie=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?S():re=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y){if(r(p)!==null)y=!0,re||(re=!0,S());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}}function c(){return x?!0:!(e.unstable_now()-oe<ae)}function l(t,n){ie=ee(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,ee=typeof setTimeout==`function`?setTimeout:null,te=typeof clearTimeout==`function`?clearTimeout:null,ne=typeof setImmediate<`u`?setImmediate:null,re=!1,ie=-1,ae=5,oe=-1;if(typeof ne==`function`)var S=function(){ne(t)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=t,S=function(){ce.postMessage(null)}}else S=function(){ee(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ae=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(te(ie),ie=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,re||(re=!0,S()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),tn=oe(((e,t)=>{t.exports=en()})),nn=oe((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;if(i==null)i=null;else if(i===f)i=f;else{try{n(i);var a=!1}catch{a=!0}a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),i=``+i}return{$$typeof:u,key:i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=p.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
3
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
4
|
-
2. You might be breaking the Rules of Hooks
|
|
5
|
-
3. You might have more than one copy of React in the same app
|
|
6
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=nt(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=Symbol.for(`react.recoverable`),f=Symbol.for(`react.optimistic_key`),p=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.browser=function(e){return{$$typeof:d,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=p.T,n=l.p;try{if(p.T=null,l.p=2,e)return e()}finally{p.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.3.0`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),rn=oe(((e,t)=>{t.exports=nn()})),an=oe((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Ym(e)?e.slice():I({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Ym(e)?e.slice():I({},e);return r+1===t.length?(o[n[r]]=o[a],Ym(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Ym(e)?e.slice():I({},e);return n+1===t.length?(Ym(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function d(){}function f(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function p(e,t,n,r){return new Vr(e,t,n,r)}function m(e,t){e.context===zv&&(Qp(e.current,2,t,e,null,null),uu())}function h(e,t){if(Bv!==null){var n=t.staleFamilies;t=t.updatedFamilies,Vu(),Br(e.current,t,n),uu()}}function g(e){Bv=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(v(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function ee(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return x(i),e;if(a===r)return x(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function te(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=te(e),t!==null)return t;e=e.sibling}return null}function ne(e,t,n,r,i){re(e.child,!1,t,n,r,i)}function re(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&re(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function ie(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function ae(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function oe(e){var t=[null,null],n=ie(e);return n===null||S(t,e,n.child,{foundSelf:!1}),t}function S(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&S(e,t,n.child,r))return!0;n=n.sibling}return!1}function se(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(`Expected to find a host node. This is a bug in React.`)}}function ce(e,t,n){return e===n||e===t&&(Dm=e,!0)}function le(e,t,n){return e===n?(Om=e,!1):e===t&&(Om!==null&&(Dm=e),!0)}function ue(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function de(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}function fe(e){return typeof e!=`object`||!e?null:(e=qm&&e[qm]||e[`@@iterator`],typeof e==`function`?e:null)}function C(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Jm?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Mm:return`Fragment`;case Pm:return`Profiler`;case Nm:return`StrictMode`;case Rm:return`Suspense`;case zm:return`SuspenseList`;case Hm:return`Activity`;case Gm:return`ViewTransition`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case jm:return`Portal`;case Im:return e.displayName||`Context`;case Fm:return(e._context.displayName||`Context`)+`.Consumer`;case Lm:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Bm:return t=e.displayName||null,t===null?C(e.type)||`Memo`:t;case Vm:t=e._payload,e=e._init;try{return C(e(t))}catch{}}return null}function pe(e){return typeof e.tag==`number`?w(e):typeof e.name==`string`?e.name:null}function w(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return C(t);case 8:return t===Nm?`StrictMode`:`Mode`;case 22:if(e.return!==null)return w(e.return);break;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 30:return`ViewTransition`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return w(e.return)}return null}function me(e){return{current:e}}function he(e,t){0>$m?console.error(`Unexpected pop.`):(t!==Qm[$m]&&console.error(`Unexpected Fiber popped.`),e.current=Zm[$m],Zm[$m]=null,Qm[$m]=null,$m--)}function ge(e,t,n){$m++,Zm[$m]=e.current,Qm[$m]=n,e.current=t}function _e(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function ve(e,t){ge(nh,t,e),ge(th,e,e),ge(eh,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Xd(t):_T;break;default:if(n=t.tagName,t=t.namespaceURI)t=Xd(t),t=Zd(t,n);else switch(n){case`svg`:t=vT;break;case`math`:t=yT;break;default:t=_T}}n=n.toLowerCase(),n=sn(null,n),n={context:t,ancestorInfo:n},he(eh,e),ge(eh,n,e)}function ye(e){he(eh,e),he(th,e),he(nh,e)}function be(){return _e(eh.current)}function xe(e){var t=e.memoizedState;t!==null&&($T._currentValue=t.memoizedState,ge(rh,e,e)),t=_e(eh.current);var n=e.type,r=Zd(t.context,n);n=sn(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(ge(th,e,e),ge(eh,r,e))}function Se(e){th.current===e&&(he(eh,e),he(th,e)),rh.current===e&&(he(rh,e),$T._currentValue=QT)}function Ce(){}function we(){if(ih===0){ah=console.log,oh=console.info,sh=console.warn,ch=console.error,lh=console.group,uh=console.groupCollapsed,dh=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ih++}function Te(){if(ih--,ih===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ah}),info:I({},e,{value:oh}),warn:I({},e,{value:sh}),error:I({},e,{value:ch}),group:I({},e,{value:lh}),groupCollapsed:I({},e,{value:uh}),groupEnd:I({},e,{value:dh})})}0>ih&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function Ee(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
7
|
-
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
8
|
-
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
|
|
9
|
-
`,t)),t!==-1)e=e.slice(0,t);else return``;return e}function De(e){if(fh===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);fh=t&&t[1]||``,ph=-1<e.stack.indexOf(`
|
|
10
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
11
|
-
`+fh+e+ph}function Oe(e,t){if(!e||mh)return``;var n=hh.get(e);if(n!==void 0)return n;mh=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=L.H,L.H=null,we();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
|
|
12
|
-
`),u=c.split(`
|
|
13
|
-
`);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
|
|
14
|
-
`+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&hh.set(e,d),d}while(1<=a&&0<=o);break}}}finally{mh=!1,L.H=r,Te(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?De(l):``,typeof e==`function`&&hh.set(e,l),l}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De(`Lazy`);case 13:return e.child!==t&&t!==null?De(`Suspense Fallback`):De(`Suspense`);case 19:return De(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return De(`Activity`);case 30:return De(`ViewTransition`);default:return``}}function Ae(e){try{var t=``,n=null;do{t+=ke(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=Ee(l),d=u.lastIndexOf(`
|
|
15
|
-
`),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
|
|
16
|
-
`+f;break a}}p=De(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
|
|
17
|
-
Error generating stack: `+e.message+`
|
|
18
|
-
`+e.stack}}function je(e){return(e=e?e.displayName||e.name:``)?De(e):``}function Me(){if(gh===null)return null;var e=gh._debugOwner;return e==null?null:pe(e)}function Ne(){if(gh===null)return``;var e=gh;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=De(e.type);break;case 13:t+=De(`Suspense`);break;case 19:t+=De(`SuspenseList`);break;case 31:t+=De(`Activity`);break;case 30:t+=De(`ViewTransition`);break;case 0:case 15:case 1:e._debugOwner||t!==``||(t+=je(e.type));break;case 11:e._debugOwner||t!==``||(t+=je(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=Ee(r);i!==``&&(t+=`
|
|
19
|
-
`+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
|
|
20
|
-
`+Ee(a))}else break;var o=t}catch(e){o=`
|
|
21
|
-
Error generating stack: `+e.message+`
|
|
22
|
-
`+e.stack}return o}function T(e,t,n,r,i,a,o){var s=gh;Pe(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{Pe(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function Pe(e){L.getCurrentStack=e===null?null:Ne,_h=!1,gh=e}function Fe(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function Ie(e){try{return Le(e),!1}catch{return!0}}function Le(e){return``+e}function Re(e,t){if(Ie(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Fe(e)),Le(e)}function ze(e,t){if(Ie(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Fe(e)),Le(e)}function Be(e){if(Ie(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,Fe(e)),Le(e)}function Ve(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Mh=t.inject(e),Nh=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function He(e){if(typeof Ah==`function`&&jh(e),Nh&&typeof Nh.setStrictMode==`function`)try{Nh.setStrictMode(Mh,e)}catch(e){Ph||(Ph=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function Ue(e){return e>>>=0,e===0?32:31-(Lh(e)/Rh|0)|0}function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(`Should have found matching lanes. This is a bug in React.`),e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ih(n),i=1<<r;t|=e[r],n&=~i}return t}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function Ye(){var e=Vh;return Vh<<=1,!(Vh&62914560)&&(Vh=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ih(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ih(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ih(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function it(e,t,n){if(Fh)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Ih(n),i=1<<r;e[r].add(t),n&=~i}}function at(e,t){if(Fh)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Ih(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function ot(e){return e&=-e,Hh!==0&&Hh<e?Uh!==0&&Uh<e?e&134217727?Wh:Gh:Uh:Hh}function st(){var e=R.p;return e===0?(e=window.event,e===void 0?Wh:lm(e.type)):e}function ct(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}function lt(e){delete e[qh],delete e[Jh],delete e[Zh],delete e[Qh]}function ut(e){var t;if(t=e[qh])return t;for(var n=e.parentNode;n;){if(t=n[Yh]||n[qh]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dp(e);e!==null;){if(n=e[qh])return n;e=dp(e)}return t}e=n,n=e.parentNode}return null}function dt(e){if(e=e[qh]||e[Yh]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ft(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function pt(e){var t=e[$h];return t||=e[$h]={hoistableStyles:new Map,hoistableScripts:new Map},t}function mt(e){e[eg]=!0}function ht(e){e[tg]=void 0}function gt(e,t){_t(e,t),_t(e+`Capture`,t)}function _t(e,t){rg[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),rg[e]=t;var n=e.toLowerCase();for(ig[n]=e,e===`onDoubleClick`&&(ig.ondblclick=e),e=0;e<t.length;e++)ng.add(t[e])}function vt(e,t){ag[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function yt(e){return vh.call(cg,e)?!0:vh.call(sg,e)?!1:og.test(e)?cg[e]=!0:(sg[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function bt(){var e=z;return z=!1,e}function xt(e,t,n){if(yt(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=t.toLowerCase()===`nonce`?e.nonce:e.getAttribute(t),e===``&&!0===n||(Re(n,t),e===``+n?n:e)}}function St(e,t,n){if(yt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}Re(n,t),e.setAttribute(t,n)}}}function Ct(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}Re(n,t),e.setAttribute(t,n)}}function wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}Re(r,n),e.setAttributeNS(t,n,r)}}function Tt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return Be(e),e;default:return``}}function Et(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){Be(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){Be(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ot(e){if(!e._valueTracker){var t=Et(e)?`checked`:`value`;e._valueTracker=Dt(e,t,``+e[t])}}function kt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Et(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function At(e){return e.replace(lg,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function jt(e,t){t.checked===void 0||t.defaultChecked===void 0||dg||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,Me()||`A component`,t.type),dg=!0),t.value===void 0||t.defaultValue===void 0||ug||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,Me()||`A component`,t.type),ug=!0)}function Mt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(Re(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Tt(t)):e.value!==``+Tt(t)&&(e.value=``+Tt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Pt(e,Tt(n)):o===`number`&&e.value==t?Pt(e,Tt(e.value)):Pt(e,Tt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(Re(s,`name`),e.name=``+Tt(s)):e.removeAttribute(`name`)}function Nt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(Re(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ot(e);return}n=n==null?``:``+Tt(n),t=t==null?n:``+Tt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(Re(o,`name`),e.name=o),Ot(e)}function Pt(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function Ft(e,t){t.value??(typeof t.children==`object`&&t.children!==null?Tm.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||pg||(pg=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||mg||(mg=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||fg||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),fg=!0)}function It(){var e=Me();return e?`
|
|
23
|
-
|
|
24
|
-
Check the render method of \``+e+"`.":``}function Lt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Tt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Rt(e,t){for(e=0;e<gg.length;e++){var n=gg[e];if(t[n]!=null){var r=Ym(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,It()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,It())}}t.value===void 0||t.defaultValue===void 0||hg||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),hg=!0)}function zt(e,t){t.value===void 0||t.defaultValue===void 0||_g||(console.error(`%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`,Me()||`A component`),_g=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Bt(e,t,n){if(t!=null&&(t=``+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Tt(n)}function Vt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ym(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=Tt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ot(e)}function Ht(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ht(e.children[0],t):e}function Ut(e){return` `+` `.repeat(e)}function Wt(e){return`+ `+` `.repeat(e)}function Gt(e){return`- `+` `.repeat(e)}function Kt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function qt(e,t){return vg.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function Jt(e,t,n){var r=120-2*n;if(t===null)return Wt(n)+qt(e,r)+`
|
|
25
|
-
`;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),Wt(n)+qt(e,r)+`
|
|
26
|
-
`+Gt(n)+qt(t,r)+`
|
|
27
|
-
`}return Ut(n)+qt(e,r)+`
|
|
28
|
-
`}function Yt(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function Xt(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Ym(e))return`[...]`;if(e.$$typeof===Am)return(t=C(e.type))?`<`+t+`>`:`<...>`;var n=Yt(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=Xt(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function Zt(e,t){return typeof e!=`string`||vg.test(e)?`{`+Xt(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function Qt(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=Zt(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
|
|
29
|
-
`:0<r?n+`<`+e+` `+i.join(` `)+`>
|
|
30
|
-
`:n+`<`+e+`
|
|
31
|
-
`+n+` `+i.join(`
|
|
32
|
-
`+n+` `)+`
|
|
33
|
-
`+n+`>
|
|
34
|
-
`}function E(e,t,n){var r=``,i=I({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=Xt(e[a],o);t.hasOwnProperty(a)?(o=Xt(t[a],o),r+=Wt(n)+a+`: `+s+`
|
|
35
|
-
`,r+=Gt(n)+a+`: `+o+`
|
|
36
|
-
`):r+=Wt(n)+a+`: `+s+`
|
|
37
|
-
`}for(var c in i)i.hasOwnProperty(c)&&(e=Xt(i[c],120-2*n-c.length-2),r+=Gt(n)+c+`: `+e+`
|
|
38
|
-
`);return r}function $t(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=Qt(e,t,Ut(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=Zt(l,s);s=Zt(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&Yt(l)===`Object`&&Yt(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=Ut(r+1)+o+`={{
|
|
39
|
-
`+E(l,c,r+2)+Ut(r+1)+`}}
|
|
40
|
-
`:(i+=Wt(r+1)+o+`=`+u+`
|
|
41
|
-
`,i+=Gt(r+1)+o+`=`+s+`
|
|
42
|
-
`)}else i+=Ut(r+1)+o+`=`+Zt(t[o],s)+`
|
|
43
|
-
`}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=Gt(r+1)+e+`=`+Zt(n[e],t)+`
|
|
44
|
-
`}}),i=i===``?Ut(r)+`<`+e+`>
|
|
45
|
-
`:Ut(r)+`<`+e+`
|
|
46
|
-
`+i+Ut(r)+`>
|
|
47
|
-
`}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=Jt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+Jt(``+t,null,r+1):i+Jt(``+t,void 0,r+1)),i}function en(e,t){var n=Kt(e);if(n===null){for(n=``,e=e.child;e;)n+=en(e,t),e=e.sibling;return n}return Ut(t)+`<`+n+`>
|
|
48
|
-
`}function nn(e,t){var n=Ht(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Ut(t)+`...
|
|
49
|
-
`+nn(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=Ut(t)+`<`+a+`>
|
|
50
|
-
`,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=Jt(i,e.serverProps,t),t++;else if(a=Kt(e.fiber),a!==null){if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=Zt(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=Ut(r)+`<`+a+s+`>
|
|
51
|
-
`,t++}else e.serverProps===null?(r=Qt(a,i,Wt(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=$t(a,i,e.serverProps,t),t++)}var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=nn(o,t),a++):l+=en(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=Ut(t)+`...
|
|
52
|
-
`),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(Gt(t)+qt(a,120-2*t)+`
|
|
53
|
-
`):l+Qt(a.type,a.props,Gt(t));return n+r+l}function an(e){try{return`
|
|
54
|
-
|
|
55
|
-
`+nn(e,0)}catch{return``}}function on(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:an(i).replaceAll(/^[+-]/gm,`>`)}function sn(e,t){var n=I({},e||Cg),r={tag:t};return bg.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),xg.indexOf(t)!==-1&&(n.pTagInButtonScope=null),yg.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function cn(e,t,n){switch(t){case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return Sg.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`input`:return t!==`select`;case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function ln(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function un(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function dn(e,t){t||=Cg;var n=t.current;if(t=(n=cn(e,n&&n.tag,t.implicitRootScope)?null:n)?null:ln(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,wg[t])return!1;wg[t]=!0;var i=(t=gh)?un(t.return,r):null,a=t!==null&&i!==null?on(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
56
|
-
This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
57
|
-
This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||T(i,function(){console.error(`<%s> cannot contain a nested %s.
|
|
58
|
-
See this log for the ancestor stack trace.`,r,o)})),!1}function fn(e,t,n){if(n||cn(`#text`,t,!1))return!0;if(n=`#text|`+t,wg[n])return!1;wg[n]=!0;var r=(n=gh)?un(n,t):null;return n=n!==null&&r!==null?on(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
59
|
-
This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
60
|
-
This will cause a hydration error.%s`,t,n),!1}function pn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function mn(e){return e.replace(Ag,function(e,t){return t.toUpperCase()})}function hn(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Mg.hasOwnProperty(t)&&Mg[t]||(Mg[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,mn(t.replace(kg,`ms-`)))):Og.test(t)?Mg.hasOwnProperty(t)&&Mg[t]||(Mg[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!jg.test(n)||Ng.hasOwnProperty(n)&&Ng[n]||(Ng[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(jg,``))),typeof n==`number`&&(isNaN(n)?Pg||(Pg=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Fg||(Fg=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ig.has(t)?t===`float`?e.cssFloat=n:(ze(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function gn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=Tg[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=Tg[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=Tg[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``,z=!0);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&(hn(e,f,l),z=!0)}else for(r in t)t.hasOwnProperty(r)&&hn(e,r,t[r])}function _n(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function vn(e){return zg.get(e)||e}function yn(e,t){if(vh.call(Hg,t)&&Hg[t])return!0;if(Wg.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Vg.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Hg[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Hg[t]=!0}if(Ug.test(t)){if(e=t.toLowerCase(),e=Vg.hasOwnProperty(e)?e:null,e==null)return Hg[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Hg[t]=!0)}return!0}function bn(e,t){var n=[],r;for(r in t)yn(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function xn(e,t,n,r){if(vh.call(Kg,t)&&Kg[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Kg[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Kg[t]=!0;if(qg.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Kg[t]=!0}else if(qg.test(t))return Jg.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Kg[t]=!0;if(Yg.test(t)||Xg.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Kg[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Kg[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Kg[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Kg[t]=!0;if(Bg.hasOwnProperty(i)){if(i=Bg[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Kg[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Kg[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
|
|
61
|
-
|
|
62
|
-
If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
|
|
63
|
-
|
|
64
|
-
If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Kg[t]=!0)}case`function`:case`symbol`:return Kg[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Kg[t]=!0}}return!0}function Sn(e,t,n){var r=[],i;for(i in t)xn(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function Cn(e){return Zg.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function wn(){}function Tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function En(e){var t=dt(e);if(t&&(e=t.stateNode)){var n=e[Jh]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Mt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(Re(t,`name`),n=n.querySelectorAll(`input[name="`+At(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Jh]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Mt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&kt(r)}break a;case`textarea`:Bt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Lt(e,!!n.multiple,t,!1)}}}function Dn(e,t,n){if(t_)return e(t,n);t_=!0;try{return e(t)}finally{if(t_=!1,($g!==null||e_!==null)&&(uu(),$g&&(t=$g,e=e_,e_=$g=null,En(t),e)))for(t=0;t<e.length;t++)En(e[t])}}function On(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Jh]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function kn(){if(s_)return s_;var e,t=o_,n=t.length,r,i=`value`in a_?a_.value:a_.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return s_=i.slice(e,1<r?1-r:void 0)}function An(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jn(){return!0}function Mn(){return!1}function Nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?jn:Mn,this.isPropagationStopped=Mn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){},isPersistent:jn}),t}function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=T_[e])?!!t[e]:!1}function Fn(){return Pn}function In(e,t){switch(e){case`keyup`:return N_.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==P_;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Ln(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function Rn(e,t){switch(e){case`compositionend`:return Ln(t);case`keypress`:return t.which===z_?(V_=!0,B_):null;case`textInput`:return e=t.data,e===B_&&V_?null:e;default:return null}}function zn(e,t){if(H_)return e===`compositionend`||!F_&&In(e,t)?(e=kn(),s_=o_=a_=null,H_=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return R_&&t.locale!==`ko`?null:t.data;default:return null}}function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!U_[e.type]:t===`textarea`}function Vn(e){if(!n_)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function Hn(e,t,n,r){$g?e_?e_.push(r):e_=[r]:$g=r,t=xd(t,`onChange`),0<t.length&&(n=new l_(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function Un(e){hd(e,0)}function Wn(e){if(kt(ft(e)))return e}function Gn(e,t){if(e===`change`)return t}function Kn(){W_&&(W_.detachEvent(`onpropertychange`,qn),G_=W_=null)}function qn(e){if(e.propertyName===`value`&&Wn(G_)){var t=[];Hn(t,G_,e,Tn(e)),Dn(Un,t)}}function Jn(e,t,n){e===`focusin`?(Kn(),W_=t,G_=n,W_.attachEvent(`onpropertychange`,qn)):e===`focusout`&&Kn()}function Yn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Wn(G_)}function Xn(e,t){if(e===`click`)return Wn(t)}function Zn(e,t){if(e===`input`||e===`change`)return Wn(t)}function Qn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function $n(e,t){if(q_(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!vh.call(t,i)||!q_(e[i],t[i]))return!1}return!0}function er(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nr(e,t){var n=tr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=tr(n)}}function rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=er(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=er(e.document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function or(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Q_||Y_==null||Y_!==er(r)||(r=Y_,`selectionStart`in r&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Z_&&$n(Z_,r)||(Z_=r,r=xd(X_,`onSelect`),0<r.length&&(t=new l_(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Y_)))}function sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function cr(e){if(ev[e])return ev[e];if(!$_[e])return e;var t=$_[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tv)return ev[e]=t[n];return e}function lr(e,t){lv.set(e,t),gt(t,[e])}function ur(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=iw.identifierPrefix;var n=dv++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function dr(e){if(e==null||typeof e==`string`)return e;var t=null,n=pw;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function fr(e,t){return e=dr(e),t=dr(t),t==null?e===`auto`?null:e:t===`auto`?null:t}function pr(e){for(var t=vv,n=0;n<e.length&&n<Sv;n++){var r=e[n];if(typeof r==`object`&&r){if(Ym(r)&&r.length===2&&typeof r[0]==`string`){if(t!==vv&&t!==xv)return yv;t=xv}else return yv}else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==vv&&t!==bv||typeof r==`bigint`)return yv;t=bv}}return t}function mr(e,t,n,r){if(!ArrayBuffer.isView(e)){var i=0,a;for(a in e)if(vh.call(e,a)&&a[0]!==`_`&&(i++,gr(a,e[a],t,n,r),i>=Sv)){t.push([r+`\xA0\xA0`.repeat(n)+`Only `+Sv+` properties are shown. React will not log more properties of this object.`,``]);break}}}function hr(e){return`$$typeof`in e&&vh.call(e,`$$typeof`)?e.$$typeof:void 0}function gr(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}if(hr(t)===Am){var a=C(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&gr(`key`,o,n,r+1,i),e=!1,o=0,t)if(o++,l===`children`?t.children!=null&&(!Ym(t.children)||0<t.children.length)&&(e=!0):vh.call(t,l)&&l[0]!==`_`&&gr(l,t[l],n,r+1,i),o>=Sv)break;n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),ArrayBuffer.isView(t)){t=t.length,t=typeof t==`number`?a+`(`+t+`)`:a;break}if(a===`Array`){if(l=t.length>Sv,o=pr(t),o===bv||o===vv){t=JSON.stringify(l?t.slice(0,Sv).concat(`…`):t);break}if(o===xv){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length&&e<Sv;e++)a=t[e],gr(a[0],a[1],n,r+1,i);l&&gr(Sv.toString(),`…`,n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,gr(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,gr(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&mr(t,n,r+1,i);return;case`function`:t=t.name,t=t===``||typeof t!=`string`?`() => {}`:t+`() {}`;break;case`string`:t=t===_v?`…`:JSON.stringify(1024<=t.length?t.slice(0,1023)+`…`:t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function _r(e,t,n,r){var i=!0,a=0;for(s in e){if(a>Sv){n.push([`Previous object has more than `+Sv+` properties. React will not attempt to diff objects with too many properties.`,``]),i=!1;break}s in t||(n.push([Cv+`\xA0\xA0`.repeat(r)+s,`…`]),i=!1),a++}for(var o in a=0,t){if(a>Sv){n.push([`Next object has more than `+Sv+` properties. React will not attempt to diff objects with too many properties.`,``]),i=!1;break}if(o in e){var s=e[o],c=t[o];if(s!==c){if(r===0&&o===`children`){i=`\xA0\xA0`.repeat(r)+o,n.push([Cv+i,`…`],[wv+i,`…`]),i=!1;continue}if(!(3<=r)){if(typeof s==`object`&&typeof c==`object`&&s!==null&&c!==null&&hr(s)===hr(c)){if(hr(c)===Am){if(s.type===c.type&&s.key===c.key){s=C(c.type)||`…`,i=`\xA0\xA0`.repeat(r)+o,s=`<`+s+` … />`,n.push([Cv+i,s],[wv+i,s]),i=!1;continue}}else{var l=Object.prototype.toString.call(s),u=Object.prototype.toString.call(c);if(l===u&&(u===`[object Object]`||u===`[object Array]`)){l=[Tv+`\xA0\xA0`.repeat(r)+o,u===`[object Array]`?`Array`:``],n.push(l),u=n.length,_r(s,c,n,r+1)?u===n.length&&(l[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}}else if(typeof s==`function`&&typeof c==`function`&&s.name===c.name&&s.length===c.length&&(l=Function.prototype.toString.call(s),u=Function.prototype.toString.call(c),l===u)){s=c.name===``?`() => {}`:c.name+`() {}`,n.push([Tv+`\xA0\xA0`.repeat(r)+o,s+` Referentially unequal function closure. Consider memoization.`]);continue}}gr(o,s,n,r,Cv),gr(o,c,n,r,wv),i=!1}}else n.push([wv+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1;a++}return i}function vr(e){V=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function yr(e,t,n,r){Ev&&(Av.start=t,Av.end=n,kv.color=`warning`,kv.tooltipText=r,kv.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,Av)):performance.measure(r,Av),performance.clearMeasures(r))}function br(e,t,n){yr(e,t,n,`Reconnect`)}function xr(e,t,n,r,i){var a=w(e);if(a!==null&&Ev){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;s=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;r=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[jv],l=_r(o.memoizedProps,l,c,0),1<c.length?(l&&!Ov&&(o.lanes&i)===0&&100<e.actualDuration?(Ov=!0,c[0]=Nv,kv.color=`warning`,kv.tooltipText=Mv):(kv.color=s,kv.tooltipText=a),kv.properties=c,Av.start=t,Av.end=n,e=``+a,r==null?performance.measure(e,Av):r.run(performance.measure.bind(performance,e,Av)),performance.clearMeasures(e)):r==null?console.timeStamp(a,t,n,Dv,void 0,s):r.run(console.timeStamp.bind(console,a,t,n,Dv,void 0,s))):r==null?console.timeStamp(a,t,n,Dv,void 0,s):r.run(console.timeStamp.bind(console,a,t,n,Dv,void 0,s))}}function Sr(e,t,n,r){if(Ev){var i=w(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&gr(`key`,e.key,o,0,``),e.memoizedProps!==null&&mr(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:Dv,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},i=``+i,a?a.run(performance.measure.bind(performance,i,e)):performance.measure(i,e),performance.clearMeasures(i)}}}function Cr(e,t,n,r,i){if(i!==null){if(Ev){var a=w(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&gr(`key`,e.key,r,0,``),e.memoizedProps!==null&&mr(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:Dv,tooltipText:`A lifecycle or effect errored`,properties:r}}},e=e._debugTask,n=``+a,e?e.run(performance.measure.bind(performance,n,t)):performance.measure(n,t),performance.clearMeasures(n)}}}else a=w(e),a!==null&&Ev&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,Dv,void 0,i)):console.timeStamp(a,t,n,Dv,void 0,i))}function wr(e,t,n,r){!Ev||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,V,B,n)):console.timeStamp(`Prewarm`,e,t,V,B,n))}function Tr(e,t,n,r){!Ev||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,V,B,n)):console.timeStamp(`Suspended`,e,t,V,B,n))}function Er(e,t,n,r){!Ev||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,V,B,`error`)):console.timeStamp(`Errored`,e,t,V,B,`error`))}function Dr(e,t,n,r){!Ev||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,V,B,`secondary-light`)):console.timeStamp(n,e,t,V,B,`secondary-light`))}function Or(e,t,n,r,i){if(Ev&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:V,trackGroup:B,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e),performance.clearMeasures(`Errored`)}}function kr(e,t,n,r,i){n===null?!Ev||t<=e||(i?i.run(console.timeStamp.bind(console,r?`Commit Interrupted View Transition`:`Commit`,e,t,V,B,r?`error`:`secondary-dark`)):console.timeStamp(r?`Commit Interrupted View Transition`:`Commit`,e,t,V,B,r?`error`:`secondary-dark`)):Or(e,t,n,!1,i)}function Ar(e,t,n){!Ev||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,V,B,`secondary-dark`)):console.timeStamp(`Animating`,e,t,V,B,`secondary-dark`))}function jr(){for(var e=Lv,t=Rv=Lv=0;t<e;){var n=Iv[t];Iv[t++]=null;var r=Iv[t];Iv[t++]=null;var i=Iv[t];Iv[t++]=null;var a=Iv[t];if(Iv[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Fr(n,i,a)}}function Mr(e,t,n,r){Iv[Lv++]=e,Iv[Lv++]=t,Iv[Lv++]=n,Iv[Lv++]=r,Rv|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Nr(e,t,n,r){return Mr(e,t,n,r),Ir(e)}function Pr(e,t){return Mr(e,null,null,t),Ir(e)}function Fr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Pv||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ih(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ir(e){if(vw>_w)throw Cw=vw=0,ww=yw=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);Cw>Sw&&(Cw=0,ww=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&Qu(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Qu(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Lr(e){if(Bv===null)return e;var t=Bv(e);return t===void 0?e:t.current}function Rr(e,t){if(Bv===null)return!1;var n=Bv,r=e.elementType;t=t.type;var i=!1,a=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(i=!0);break;case 0:(typeof t==`function`||a===Vm)&&(i=!0);break;case 11:(a===Lm||a===Vm)&&(i=!0);break;case 14:case 15:(a===Bm||a===Vm)&&(i=!0);break;default:return!1}return!!(i&&(e=n(r),e!==void 0&&e===n(t)))}function zr(e){Bv!==null&&typeof WeakSet==`function`&&(Vv===null&&(Vv=new WeakSet),Vv.add(e))}function Br(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag,c=r.type,l=r.elementType,u=null;switch(r=null,s){case 0:case 1:u=c;break;case 15:u=c,r=l;break;case 14:r=l;break;case 11:u=c.render,r=l}if(Bv===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var d=Bv;if(c=l=!1,u!==null&&(u=d(u),u!==void 0&&(n.has(u)?c=!0:t.has(u)&&(s===1?c=!0:l=!0))),c||r===null||(s=d(r),s!==void 0&&n.has(s)?c=!0:typeof r==`object`&&r.$$typeof===Vm&&(s=r._payload,s._status===1&&(s=d(s._result.default),s!==void 0&&n.has(s)&&(c=!0)))),Vv!==null&&(Vv.has(e)||i!==null&&Vv.has(i))&&(c=!0),c&&(e._debugNeedsRemount=!0),(c||l)&&(i=Pr(e,2),i!==null&&au(i,e,2)),a===null||c||Br(a,t,n),o===null)break;e=o}while(1)}function Vr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Kv||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function Hr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ur(e,t){var n=e.alternate;switch(n===null?(n=p(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:case 14:case 1:case 11:n.type=Lr(e.type)}return n}function Wr(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Gr(e,t,n,r,i,a){var o=0,s=Lr(e);if(typeof s==`function`)Hr(s)&&(o=1);else if(typeof s==`string`)o=be(),o=Lp(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(s){case Hm:return t=p(31,n,t,i),t.elementType=Hm,t.lanes=a,t;case Mm:return qr(n.children,i,a,t);case Nm:o=8,i|=Uv,i|=Wv;break;case Pm:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=p(12,e,t,r|U),t.elementType=Pm,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Rm:return t=p(13,n,t,i),t.elementType=Rm,t.lanes=a,t;case zm:return t=p(19,n,t,i),t.elementType=zm,t.lanes=a,t;case Um:case Gm:return e=i|Gv,t=p(30,n,t,e),t.elementType=Gm,t.lanes=a,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof s==`object`&&s)switch(s.$$typeof){case Im:o=10;break a;case Fm:o=9;break a;case Lm:o=11;break a;case Bm:o=14;break a;case Vm:o=16,s=null;break a}n=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(n+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?s=`null`:Ym(e)?s=`array`:e!==void 0&&e.$$typeof===Am?(s=`<`+(C(e.type)||`Unknown`)+` />`,n=` Did you accidentally export a JSX literal instead of a component?`):s=typeof e,(o=r?pe(r):null)&&(n+=`
|
|
65
|
-
|
|
66
|
-
Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(s+`.`+n)),s=null}return t=p(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function Kr(e,t,n){return t=Gr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function qr(e,t,n,r){return e=p(7,e,r,t),e.lanes=n,e}function Jr(e,t,n){return e=p(6,e,null,t),e.lanes=n,e}function Yr(e){var t=p(18,null,null,H);return t.stateNode=e,t}function Xr(e,t,n){return t=p(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zr(e,t){if(typeof e==`object`&&e){var n=qv.get(e);return n===void 0?(t={value:e,source:t,stack:Ae(t)},qv.set(e,t),t):n}return{value:e,source:t,stack:Ae(t)}}function Qr(e,t){ii(),Jv[Yv++]=Zv,Jv[Yv++]=Xv,Xv=e,Zv=t}function $r(e,t,n){ii(),Qv[$v++]=ty,Qv[$v++]=ny,Qv[$v++]=ey,ey=e;var r=ty;e=ny;var i=32-Ih(r)-1;r&=~(1<<i),n+=1;var a=32-Ih(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ty=1<<32-Ih(t)+i|n<<i|r,ny=a+e}else ty=1<<a|n<<i|r,ny=e}function ei(e){ii(),e.return!==null&&(Qr(e,1),$r(e,1,0))}function ti(e){for(;e===Xv;)Xv=Jv[--Yv],Jv[Yv]=null,Zv=Jv[--Yv],Jv[Yv]=null;for(;e===ey;)ey=Qv[--$v],Qv[$v]=null,ny=Qv[--$v],Qv[$v]=null,ty=Qv[--$v],Qv[$v]=null}function ni(){return ii(),ey===null?null:{id:ty,overflow:ny}}function ri(e,t){ii(),Qv[$v++]=ty,Qv[$v++]=ny,Qv[$v++]=ey,ty=t.id,ny=t.overflow,ey=e}function ii(){W||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function ai(e,t){if(e.return===null){if(oy===null)oy={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(oy.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);oy.distanceFromLeaf>t&&(oy.distanceFromLeaf=t)}return oy}var n=ai(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function oi(){W&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function si(e,t){ay||(e=ai(e,0),e.serverProps=null,t!==null&&(t=cp(t),e.serverTail.push(t)))}function ci(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=oy;throw r!==null&&(oy=null,n=an(r)),mi(Zr(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
67
|
-
|
|
68
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
69
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
70
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
71
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
72
|
-
- Invalid HTML tag nesting.
|
|
73
|
-
|
|
74
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
75
|
-
|
|
76
|
-
https://react.dev/link/hydration-mismatch`+n),e)),ly}function li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[qh]=e,t[Jh]=r,wd(n,r),n){case`dialog`:F(`cancel`,t),F(`close`,t);break;case`iframe`:case`object`:case`embed`:F(`load`,t);break;case`video`:case`audio`:for(n=0;n<zw.length;n++)F(zw[n],t);break;case`source`:F(`error`,t);break;case`img`:case`image`:case`link`:F(`error`,t),F(`load`,t);break;case`details`:F(`toggle`,t);break;case`input`:vt(`input`,r),F(`invalid`,t),jt(t,r),Nt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:Ft(t,r);break;case`select`:vt(`select`,r),F(`invalid`,t),Rt(t,r);break;case`textarea`:vt(`textarea`,r),F(`invalid`,t),zt(t,r),Vt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(F(`beforetoggle`,t),F(`toggle`,t)),r.onScroll!=null&&F(`scroll`,t),r.onScrollEnd!=null&&F(`scrollend`,t),r.onClick!=null&&(t.onclick=wn),t=!0):t=!1,t||ci(e,!0)}function ui(e){for(ry=e.return;ry;)switch(ry.tag){case 5:case 31:case 13:cy=!1;return;case 27:case 3:cy=!0;return;default:ry=ry.return}}function di(e){if(e!==ry)return!1;if(!W)return ui(e),W=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||ef(e.type,e.memoizedProps)),n=!n),n&&iy){for(n=iy;n;){var r=ai(e,0),i=cp(n);r.serverTail.push(i),n=i.type===`Suspense`?up(n):sp(n.nextSibling)}ci(e)}if(ui(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);iy=up(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);iy=up(e)}else t===27?(t=iy,ff(e.type)?(e=FT,FT=null,iy=e):iy=t):iy=ry?sp(e.stateNode.nextSibling):null;return!0}function fi(){iy=ry=null,ay=W=!1}function pi(){var e=sy;return e!==null&&(LC===null?LC=e:LC.push.apply(LC,e),sy=null),e}function mi(e){sy===null?sy=[e]:sy.push(e)}function hi(){var e=oy;if(e!==null){oy=null;for(var t=an(e);0<e.children.length;)e=e.children[0];T(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
77
|
-
|
|
78
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
79
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
80
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
81
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
82
|
-
- Invalid HTML tag nesting.
|
|
83
|
-
|
|
84
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
85
|
-
|
|
86
|
-
%s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function gi(){my=py=null,hy=!1}function _i(e,t,n){ge(uy,t._currentValue,e),t._currentValue=n,ge(dy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==fy&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=fy}function vi(e,t){e._currentValue=uy.current;var n=dy.current;he(dy,t),e._currentRenderer=n,he(uy,t)}function yi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function bi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),yi(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),yi(o,n,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),yi(i.return,n,e),o=i.child,o=o===null?null:o.sibling):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function xi(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;q_(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===rh.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[$T]:e.push($T))}i=i.return}return e!==null&&bi(t,e,n,r),t.flags|=262144,e!==null}function Si(e){for(e=e.firstContext;e!==null;){if(!q_(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ci(e){py=e,my=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wi(e){return hy&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),Ei(py,e)}function Ti(e,t){return py===null&&Ci(e),Ei(e,t)}function Ei(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},my===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);my=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else my=my.next=t;return n}function Di(){return{controller:new gy,data:new Map,refCount:0}}function Oi(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function ki(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&_y(vy,function(){e.controller.abort()})}function Ai(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}function ji(e){var t=e.transitionTypes;return e.transitionTypes=null,t}function Mi(e,t,n){e&127?0>Fy&&(Fy=xy(),Iy=Sy(t),Ry=t,n!=null&&(zy=w(n)),(X&(aC|oC))!==iC&&(Ny=!0,Ly=Cy),e=rf(),t=nf(),e!==Hy||t!==Vy?Hy=-1.1:t!==null&&(Ly=Cy),By=e,Vy=t):e&4194048&&0>Ky&&(Ky=xy(),Jy=Sy(t),Yy=t,n!=null&&(Xy=w(n)),0>Gy)&&(e=rf(),t=nf(),(e!==$y||t!==Qy)&&($y=-1.1),Zy=e,Qy=t)}function Ni(e){if(0>Fy){Fy=xy(),Iy=e._debugTask==null?null:e._debugTask,(X&(aC|oC))!==iC&&(Ly=Cy);var t=rf(),n=nf();t!==Hy||n!==Vy?Hy=-1.1:n!==null&&(Ly=Cy),By=t,Vy=n}0>Ky&&(Ky=xy(),Jy=e._debugTask==null?null:e._debugTask,0>Gy)&&(e=rf(),t=nf(),(e!==$y||t!==Qy)&&($y=-1.1),Zy=e,Qy=t)}function Pi(){var e=Ay;return Ay=0,e}function Fi(e){var t=Ay;return Ay=e,t}function Ii(e){var t=Ay;return Ay+=e,t}function Li(){K=G=-1.1}function Ri(){var e=G;return G=-1.1,e}function zi(e){0<=e&&(G=e)}function Bi(){var e=jy;return jy=-0,e}function Vi(e){0<=e&&(jy=e)}function Hi(){var e=My;return My=null,e}function Ui(){var e=Ny;return Ny=!1,e}function Wi(e){ky=xy(),0>e.actualStartTime&&(e.actualStartTime=ky)}function Gi(e){if(0<=ky){var t=xy()-ky;e.actualDuration+=t,e.selfBaseDuration=t,ky=-1}}function Ki(e){if(0<=ky){var t=xy()-ky;e.actualDuration+=t,ky=-1}}function qi(){if(0<=ky){var e=xy(),t=e-ky;ky=-1,Ay+=t,jy+=t,K=e}}function Ji(e){My===null&&(My=[]),My.push(e),Oy===null&&(Oy=[]),Oy.push(e)}function Yi(){ky=xy(),0>G&&(G=ky)}function Xi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Zi(e,t){if(lb===null){var n=lb=[];ub=0,db=dd(),fb={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ub++,t.then(Qi,Qi),t}function Qi(){if(--ub===0&&(-1<Ky||(Gy=-1.1),by=null,lb!==null)){fb!==null&&(fb.status=`fulfilled`);var e=lb;lb=null,db=0,fb=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $i(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function ea(){var e=mb.current;return e===null?mC.pooledCache:e}function ta(e,t){t===null?ge(mb,mb.current,e):ge(mb,t.pool,e)}function na(){var e=ea();return e===null?null:{parent:yy._currentValue,pool:e}}function ra(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function ia(e){return e=e.status,e===`fulfilled`||e===`rejected`}function aa(e,t,n,r){L.actQueue!==null&&(L.didUsePromise=!0);var i=e.thenables;if(n=i[n],n===void 0?i.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(wn,wn),t=n),t._debugInfo===void 0){e=performance.now(),i=t.displayName;var a={name:typeof i==`string`?i:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:a}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){a.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw r=t.reason,ca(r),r===void 0&&!(`reason`in t)?Error("A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."):r;default:if(typeof t.status==`string`)t.then(wn,wn);else{if(e=mC,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw r=t.reason,ca(r),r}throw Zb=t,Qb=!0,Xb||r===null||r.alternate!==null||(Jb=r,Yb=Error(`This library called use() to suspend in a previous render but did not call use() when it finished. This indicates an incorrect use of use(). Learn more: https://react.dev/warnings/conditional-use-of-use`)),Wb}}function oa(e){try{return Ub(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Zb=e,Qb=!0,Wb):e}}function sa(){if(Zb===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Zb;return Zb=null,Qb=!1,e}function ca(e){if(e===Wb||e===Kb)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function D(e,t){return e===t?!0:e.tag!==t.tag||e.type!==t.type||e.key!==t.key||e.index!==t.index||e.tag===3&&e.stateNode!==t.stateNode||e.return===null||t.return===null?!1:D(e.return,t.return)}function la(e){var t=q;return e!=null&&(q=t===null?e:t.concat(e)),t}function ua(){var e=q;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function da(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`&&a!==`ref`){t===null&&(t=Kr(e,n.mode,0),t._debugInfo=q,t.return=n),T(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key`, `ref`, and `children` props.",e)},a);break}}}function fa(e){var t=ex;return ex+=1,$b===null&&($b=ra()),aa($b,e,t,null)}function pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ma(e,t){throw t.$$typeof===km?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
87
|
-
- Multiple copies of the "react" package is used.
|
|
88
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
89
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function ha(e,t){var n=ua();n===null?ma(e,t):n.run(ma.bind(null,e,t))}function ga(e,t){var n=w(e)||`Component`;ix[n]||(ix[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
90
|
-
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
91
|
-
<%s>{%s}</%s>`,t,t,n,t,n))}function _a(e,t){var n=ua();n===null?ga(e,t):n.run(ga.bind(null,e,t))}function va(e,t){var n=w(e)||`Component`;ax[n]||(ax[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
92
|
-
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
93
|
-
<%s>%s</%s>`,n,t,n))}function ya(e,t){var n=ua();n===null?va(e,t):n.run(va.bind(null,e,t))}function ba(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=Ur(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=Jr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=q,t):(t=i(t,n),t.return=e,t._debugInfo=q,t)}function c(e,t,n,r){var a=n.type;return a===Mm?(t=u(e,t,n.props.children,r,n.key),pa(t,n),da(n,t,e),t):t!==null&&(t.elementType===a||Rr(t,n)||typeof a==`object`&&a&&a.$$typeof===Vm&&oa(a)===t.type)?(t=i(t,n.props),pa(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=q,t):(t=Kr(n,e.mode,r),pa(t,n),t.return=e,t._debugInfo=q,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Xr(n,e.mode,r),t.return=e,t._debugInfo=q,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=q,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=qr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=q,t):(t=i(t,n),t.return=e,t._debugInfo=q,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Jr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=q,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Am:return n=Kr(t,e.mode,n),pa(n,t),n.return=e,e=la(t._debugInfo),n._debugInfo=q,q=e,n;case jm:return t=Xr(t,e.mode,n),t.return=e,t._debugInfo=q,t;case Vm:var r=la(t._debugInfo);return t=oa(t),e=f(e,t,n),q=r,e}if(Ym(t)||fe(t))return n=qr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=la(t._debugInfo),n._debugInfo=q,q=e,n;if(typeof t.then==`function`)return r=la(t._debugInfo),e=f(e,fa(t),n),q=r,e;if(t.$$typeof===Im)return f(e,Ti(e,t),n);ha(e,t)}return typeof t==`function`&&_a(e,t),typeof t==`symbol`&&ya(e,t),null}function m(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Am:return n.key===i?(i=la(n._debugInfo),e=c(e,t,n,r),q=i,e):null;case jm:return n.key===i?l(e,t,n,r):null;case Vm:return i=la(n._debugInfo),n=oa(n),e=m(e,t,n,r),q=i,e}if(Ym(n)||fe(n))return i===null?(i=la(n._debugInfo),e=u(e,t,n,r,null),q=i,e):null;if(typeof n.then==`function`)return i=la(n._debugInfo),e=m(e,t,fa(n),r),q=i,e;if(n.$$typeof===Im)return m(e,t,Ti(e,n),r);ha(e,n)}return typeof n==`function`&&_a(e,n),typeof n==`symbol`&&ya(e,n),null}function h(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Am:return n=e.get(r.key===null?n:r.key)||null,e=la(r._debugInfo),t=c(t,n,r,i),q=e,t;case jm:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Vm:var a=la(r._debugInfo);return r=oa(r),t=h(e,t,n,r,i),q=a,t}if(Ym(r)||fe(r))return n=e.get(n)||null,e=la(r._debugInfo),t=u(t,n,r,i,null),q=e,t;if(typeof r.then==`function`)return a=la(r._debugInfo),t=h(e,t,n,fa(r),i),q=a,t;if(r.$$typeof===Im)return h(e,t,n,Ti(t,r),i);ha(t,r)}return typeof r==`function`&&_a(t,r),typeof r==`symbol`&&ya(t,r),null}function g(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Am:case jm:d(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}T(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Vm:n=oa(n),g(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,d=null,p=o,_=o=0,v=null;p!==null&&_<s.length;_++){p.index>_?(v=p,p=null):v=p.sibling;var y=m(i,p,s[_],c);if(y===null){p===null&&(p=v);break}l=g(i,y,s[_],l),e&&p&&y.alternate===null&&t(i,p),o=a(y,o,_),d===null?u=y:d.sibling=y,d=y,p=v}if(_===s.length)return n(i,p),W&&Qr(i,_),u;if(p===null){for(;_<s.length;_++)p=f(i,s[_],c),p!==null&&(l=g(i,p,s[_],l),o=a(p,o,_),d===null?u=p:d.sibling=p,d=p);return W&&Qr(i,_),u}for(p=r(p);_<s.length;_++)v=h(p,i,_,s[_],c),v!==null&&(l=g(i,v,s[_],l),e&&(y=v.alternate,y!==null&&p.delete(y.key===null?_:y.key)),o=a(v,o,_),d===null?u=v:d.sibling=v,d=v);return e&&p.forEach(function(e){return t(i,e)}),W&&Qr(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,d=o,p=o=0,_=null,v=null,y=s.next();d!==null&&!y.done;p++,y=s.next()){d.index>p?(_=d,d=null):_=d.sibling;var b=m(i,d,y.value,c);if(b===null){d===null&&(d=_);break}v=g(i,b,y.value,v),e&&d&&b.alternate===null&&t(i,d),o=a(b,o,p),u===null?l=b:u.sibling=b,u=b,d=_}if(y.done)return n(i,d),W&&Qr(i,p),l;if(d===null){for(;!y.done;p++,y=s.next())d=f(i,y.value,c),d!==null&&(v=g(i,d,y.value,v),o=a(d,o,p),u===null?l=d:u.sibling=d,u=d);return W&&Qr(i,p),l}for(d=r(d);!y.done;p++,y=s.next())_=h(d,i,p,y.value,c),_!==null&&(v=g(i,_,y.value,v),e&&(y=_.alternate,y!==null&&d.delete(y.key===null?p:y.key)),o=a(_,o,p),u===null?l=_:u.sibling=_,u=_);return e&&d.forEach(function(e){return t(i,e)}),W&&Qr(i,p),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Mm&&a.key===null&&a.props.ref===void 0&&(da(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Am:var c=la(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Mm){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),pa(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=q,da(a,s,e),e=s;break a}}else if(r.elementType===l||Rr(r,a)||typeof l==`object`&&l&&l.$$typeof===Vm&&oa(l)===r.type){n(e,r.sibling),s=i(r,a.props),pa(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=q,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===Mm?(s=qr(a.props.children,e.mode,s,a.key),pa(s,a),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=q,da(a,s,e),e=s):(s=Kr(a,e.mode,s),pa(s,a),s.return=e,s._debugInfo=q,e=s)}return e=o(e),q=c,e;case jm:a:{for(c=a,a=c.key;r!==null;){if(r.key===a){if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}s=Xr(c,e.mode,s),s.return=e,e=s}return o(e);case Vm:return c=la(a._debugInfo),a=oa(a),e=y(e,r,a,s),q=c,e}if(Ym(a))return _(e,r,a,s);if(fe(a)){if(c=a,a=fe(c),typeof a!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);return l=a.call(c),l===c?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(l)!==`[object Generator]`)&&(nx||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),nx=!0):c.entries!==a||tx||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),tx=!0),v(e,r,l,s)}if(typeof a.then==`function`)return c=la(a._debugInfo),e=y(e,r,fa(a),s),q=c,e;if(a.$$typeof===Im)return y(e,r,Ti(e,a),s);ha(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=Jr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=q,e=s),o(e)):(typeof a==`function`&&_a(e,a),typeof a==`symbol`&&ya(e,a),n(e,r))}return function(e,t,n,r){var i=q;q=null;try{ex=0;var a=y(e,t,n,r);return $b=null,a}catch(t){if(t===Wb||t===Kb)throw t;var o=p(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=q;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{q=i}}}function xa(e,t){var n=Ym(e);return e=!n&&typeof fe(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Sa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ca(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wa(e){return{lane:e,tag:cx,payload:null,callback:null,next:null}}function Ta(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,mx===r&&!px){var i=w(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
94
|
-
|
|
95
|
-
Please update the following component: %s`,i),px=!0}return(X&aC)===iC?(Mr(e,r,t,n),Ir(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ir(e),Fr(e,null,n),t)}function Ea(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Da(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oa(){if(hx){var e=fb;if(e!==null)throw e}}function ka(e,t,n,r){hx=!1;var i=e.updateQueue;fx=!1,mx=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Q&f)===f:(r&f)===f){f!==0&&f===db&&(hx=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case lx:if(m=m.payload,typeof m==`function`){hy=!0;var _=m.call(g,d,h);if(f.mode&Uv){He(!0);try{m.call(g,d,h)}finally{He(!1)}}hy=!1,d=_;break a}d=m;break a;case dx:f.flags=f.flags&-65537|128;case cx:if(_=m.payload,typeof _==`function`){if(hy=!0,m=_.call(g,d,h),f.mode&Uv){He(!0);try{_.call(g,d,h)}finally{He(!1)}}hy=!1}else m=_;if(m==null)break a;d=I({},d,m);break a;case ux:fx=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),jC|=o,e.lanes=o,e.memoizedState=d}mx=null}function Aa(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function ja(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Aa(n[e],t)}function Ma(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Aa(n[e],t)}function Na(e,t){var n=kC;ge(_x,n,e),ge(gx,t,e),kC=n|t.baseLanes}function Pa(e){ge(_x,kC,e),ge(gx,gx.current,e)}function Fa(e){kC=_x.current,he(gx,e),he(_x,e)}function Ia(e){var t=e.alternate;ge(Sx,Sx.current&bx,e),ge(vx,e,e),yx===null&&(t===null||gx.current!==null||t.memoizedState!==null)&&(yx=e)}function La(e){ge(Sx,Sx.current,e),ge(vx,e,e),yx===null&&(yx=e)}function Ra(e){e.tag===22?(ge(Sx,Sx.current,e),ge(vx,e,e),yx===null&&(yx=e)):za(e)}function za(e){ge(Sx,Sx.current,e),ge(vx,vx.current,e)}function Ba(e){he(vx,e),yx===e&&(yx=null),he(Sx,e)}function Va(e,t){ge(vx,vx.current,e),ge(Sx,t,e)}function Ha(e){he(Sx,e),he(vx,e),yx===e&&(yx=null)}function Ua(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ip(n)||ap(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function O(){var e=Y;Wx===null?Wx=[e]:Wx.push(e)}function k(){var e=Y;if(Wx!==null&&(Gx++,Wx[Gx]!==e)){var t=w(J);if(!kx.has(t)&&(kx.add(t),Wx!==null)){for(var n=``,r=0;r<=Gx;r++){var i=Wx[r],a=r===Gx?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
|
|
96
|
-
`,n+=i}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
97
|
-
|
|
98
|
-
Previous render Next render
|
|
99
|
-
------------------------------------------------------
|
|
100
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
101
|
-
`,t,n)}}}function Wa(e){e==null||Ym(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Y,typeof e)}function Ga(){var e=w(J);Mx.has(e)||(Mx.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function Ka(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
102
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
103
|
-
2. You might be breaking the Rules of Hooks
|
|
104
|
-
3. You might have more than one copy of React in the same app
|
|
105
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function qa(e,t){if(Kx)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,Y),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
106
|
-
|
|
107
|
-
Previous: %s
|
|
108
|
-
Incoming: %s`,Y,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!q_(e[n],t[n]))return!1;return!0}function Ja(e,t,n,r,i,a){Nx=a,J=t,Wx=e===null?null:e._debugHookTypes,Gx=-1,Kx=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=w(J),jx.has(a)||(jx.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e!==null&&e.memoizedState!==null?Xx:Wx===null?Jx:Yx,Rx=a=(t.mode&Uv)!==H;var o=Db(n,r,i);if(Rx=!1,Lx&&(o=Xa(t,n,r,i)),a){He(!0);try{o=Xa(t,n,r,i)}finally{He(!1)}}return Ya(e,t),o}function Ya(e,t){t._debugHookTypes=Wx,t.dependencies===null?Vx!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Vx}):t.dependencies._debugThenableState=Vx;var n=Vx;if(Jb!==null&&D(Jb,t)&&(n!==null||Yb===null||Xb||(Xb=!0,console.error(Yb)),Yb=Jb=null),L.H=qx,n=Px!==null&&Px.next!==null,Nx=0,Wx=Y=Fx=Px=J=null,Gx=-1,e!==null&&(e.flags&1206910976)!=(t.flags&1206910976)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),Ix=!1,Bx=0,Vx=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||gS||(e=e.dependencies,e!==null&&Si(e)&&(gS=!0)),Qb?(Qb=!1,e=!0):e=!1,e&&(t=w(t)||`Unknown`,Ax.has(t)||jx.has(t)||(Ax.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Xa(e,t,n,r){J=e;var i=0;do{if(Lx&&(Vx=null),Bx=0,Lx=!1,i>=Ux)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Kx=!1,Fx=Px=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Gx=-1,L.H=Zx,a=Db(t,n,r)}while(Lx);return a}function Za(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?ro(t):t,e=e.useState()[0],(Px===null?null:Px.memoizedState)!==e&&(J.flags|=1024),t}function Qa(){var e=zx!==0;return zx=0,e}function $a(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Wv)===H?t.flags&-2053:t.flags&-805308421,e.lanes&=~n}function eo(e){if(Ix){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ix=!1}Nx=0,Wx=Fx=Px=J=null,Gx=-1,Y=null,Lx=!1,Bx=zx=0,Vx=null}function to(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fx===null?J.memoizedState=Fx=e:Fx=Fx.next=e,Fx}function A(){if(Px===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=Px.next;var t=Fx===null?J.memoizedState:Fx.next;if(t!==null)Fx=t,Px=e;else{if(e===null)throw J.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);Px=e,e={memoizedState:Px.memoizedState,baseState:Px.baseState,baseQueue:Px.baseQueue,queue:Px.queue,next:null},Fx===null?J.memoizedState=Fx=e:Fx=Fx.next=e}return Fx}function no(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ro(e){var t=Bx;return Bx+=1,Vx===null&&(Vx=ra()),e=aa(Vx,e,t,J),t=J,(Fx===null?t.memoizedState:Fx.next)===null&&(t=t.alternate,L.H=t!==null&&t.memoizedState!==null?Xx:Jx),e}function io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ro(e);if(e.$$typeof===Km)return;if(e.$$typeof===Im)return wi(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function ao(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=J.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=no(),J.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Kx)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Wm;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function oo(e,t){return typeof t==`function`?t(e):t}function so(e,t,n){var r=to();if(n!==void 0){var i=n(t);if(Rx){He(!0);try{n(t)}finally{He(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ms.bind(null,J,e),[r.memoizedState,e]}function co(e){return lo(A(),Px,e)}function lo(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Nx&d)===d:(Q&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===db&&(u=!0);else if((Nx&f)===f){l=l.next,f===db&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,J.lanes|=f,jC|=f;d=l.action,Rx&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,J.lanes|=d,jC|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!q_(a,e.memoizedState)&&(gS=!0,u&&(n=fb,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function uo(e){var t=A(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);q_(a,t.memoizedState)||(gS=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function fo(e,t,n){var r=J,i=to();if(W){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();Ox||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),Ox=!0)}else{if(a=t(),Ox||(n=t(),q_(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),Ox=!0)),mC===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);Q&127||mo(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,Bo(go.bind(null,r,n,e),[e]),r.flags|=2048,Lo(wx|Dx,{destroy:void 0},ho.bind(null,r,n,a,t),null),a}function po(e,t,n){var r=J,i=A(),a=W;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!Ox){var o=t();q_(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),Ox=!0)}if((o=!q_((Px||i).memoizedState,n))&&(i.memoizedState=n,gS=!0),i=i.queue,zo(2048,Dx,go.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||o||Fx!==null&&(Fx.memoizedState.tag&wx)!==Cx,Lo(e?wx|Dx:Dx,{destroy:void 0},ho.bind(null,r,i,n,t),null),e){if(r.flags|=2048,mC===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Nx&127||mo(r,t,n)}return n}function mo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=no(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ho(e,t,n,r){t.value=n,t.getSnapshot=r,_o(t)&&vo(e)}function go(e,t,n){return n(function(){_o(t)&&(Mi(2,`updateSyncExternalStore()`,e),vo(e))})}function _o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!q_(e,n)}catch{return!0}}function vo(e){var t=Pr(e,2);t!==null&&au(t,e,2)}function yo(e){var t=to();if(typeof e==`function`){var n=e;if(e=n(),Rx){He(!0);try{n()}finally{He(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e},t}function bo(e){e=yo(e);var t=e.queue,n=hs.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]}function xo(e){var t=to();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=_s.bind(null,J,!0,n),n.dispatch=t,[e,t]}function So(e,t){return Co(A(),Px,e,t)}function Co(e,t,n,r){return e.baseState=n,lo(e,Px,typeof r==`function`?r:oo)}function wo(e,t){var n=A();return Px===null?(n.baseState=e,[e,n.queue.dispatch]):Co(n,Px,e,t)}function To(e,t,n,r,i){if(vs(e))throw Error(`Cannot update action state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};L.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Eo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Eo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,o._updatedFibers=new Set,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),Do(e,t,s)}catch(n){ko(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),L.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),Do(e,t,o)}catch(n){ko(e,t,n)}}function Do(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(L.asyncTransitions++,n.then(ns,ns),n.then(function(n){Oo(e,t,n)},function(n){return ko(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Oo(e,t,n)}function Oo(e,t,n){t.status=`fulfilled`,t.value=n,Ao(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Eo(e,n)))}function ko(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ao(t),t=t.next;while(t!==r)}e.action=null}function Ao(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jo(e,t){return t}function Mo(e,t){if(W){var n=mC.formState;if(n!==null){a:{var r=J;if(W){if(iy){b:{for(var i=iy,a=cy;i.nodeType!==8;){if(!a){i=null;break b}if(i=sp(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===pT||a===mT?i:null}if(i){iy=sp(i.nextSibling),r=i.data===pT;break a}}ci(r)}r=!1}r&&(t=n[0])}}return n=to(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:t},n.queue=r,n=hs.bind(null,J,r),r.dispatch=n,r=yo(!1),a=_s.bind(null,J,!1,r.queue),r=to(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=To.bind(null,J,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function No(e){return Po(A(),Px,e)}function Po(e,t,n){if(t=lo(e,t,jo)[0],e=co(oo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ro(t)}catch(e){throw e===Wb?Kb:e}else r=t;t=A();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(J.flags|=2048,Lo(wx|Dx,{destroy:void 0},Fo.bind(null,i,n),null)),[r,a,e]}function Fo(e,t){e.action=t}function Io(e){var t=A(),n=Px;if(n!==null)return Po(t,n,e);A(),t=t.memoizedState,n=A();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Lo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=J.updateQueue,t===null&&(t=no(),J.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function j(e){var t=to();return e={current:e},t.memoizedState=e}function Ro(e,t,n,r){var i=to();J.flags|=e,i.memoizedState=Lo(wx|t,{destroy:void 0},n,r===void 0?null:r)}function zo(e,t,n,r){var i=A();r=r===void 0?null:r;var a=i.memoizedState.inst;Px!==null&&r!==null&&qa(r,Px.memoizedState.deps)?i.memoizedState=Lo(t,a,n,r):(J.flags|=e,i.memoizedState=Lo(wx|t,a,n,r))}function Bo(e,t){(J.mode&Wv)===H?Ro(8390656,Dx,e,t):Ro(545261568,Dx,e,t)}function Vo(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=no(),J.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ho(e){var t=to(),n={impl:e};return t.memoizedState=n,function(){if((X&aC)!==iC)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function Uo(e){var t=A().memoizedState;return Vo({ref:t,nextImpl:e}),function(){if((X&aC)!==iC)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function Wo(e,t){var n=4194308;return(J.mode&Wv)!==H&&(n|=268435456),Ro(n,Ex,e,t)}function M(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function Go(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(J.mode&Wv)!==H&&(r|=268435456),Ro(r,Ex,M.bind(null,t,e),n)}function Ko(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),zo(4,Ex,M.bind(null,t,e),n)}function qo(e,t){return to().memoizedState=[e,t===void 0?null:t],e}function Jo(e,t){var n=A();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&qa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yo(e,t){var n=to();t=t===void 0?null:t;var r=e();if(Rx){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r}function Xo(e,t){var n=A();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&qa(t,r[1]))return r[0];if(r=e(),Rx){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r}function Zo(e,t){return es(to(),e,t)}function Qo(e,t){return ts(A(),Px.memoizedState,e,t)}function $o(e,t){var n=A();return Px===null?es(n,e,t):ts(n,Px.memoizedState,e,t)}function es(e,t,n){return n===void 0||Nx&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=ru(),J.lanes|=e,jC|=e,n)}function ts(e,t,n,r){return q_(n,t)?n:gx.current===null?!(Nx&106)||Nx&1073741824&&!(Q&261930)?(gS=!0,e.memoizedState=n):(e=ru(),J.lanes|=e,jC|=e,t):(e=es(e,n,r),q_(e,t)||(gS=!0),e)}function ns(){L.asyncTransitions--}function rs(e,t,n,r,i){var a=R.p;R.p=a!==0&&a<Uh?a:Uh;var o=L.T,s={};s.types=o===null?null:o.types,s._updatedFibers=new Set,L.T=s,_s(e,!1,t,n);try{var c=i(),l=L.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){L.asyncTransitions++,c.then(ns,ns);var u=$i(c,r);gs(e,t,u,nu(e))}else gs(e,t,r,nu(e))}catch(n){gs(e,t,{then:function(){},status:`rejected`,reason:n},nu(e))}finally{R.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),L.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function is(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=as(e).queue;Ni(e),rs(e,i,t,QT,n===null?u:function(){return os(e),n(r)})}function as(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:QT,baseState:QT,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:QT},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function os(e){L.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=as(e);t.next===null&&(t=e.alternate.memoizedState),gs(e,t.next.queue,{},nu(e))}function ss(){var e=yo(!1);return e=rs.bind(null,J,e.queue,!0,!1),to().memoizedState=e,[!1,e]}function cs(){var e=co(oo)[0],t=A().memoizedState;return[typeof e==`boolean`?e:ro(e),t]}function ls(){var e=uo(oo)[0],t=A().memoizedState;return[typeof e==`boolean`?e:ro(e),t]}function us(){return wi($T)}function ds(){var e=to(),t=mC.identifierPrefix;if(W){var n=ny,r=ty;n=(r&~(1<<32-Ih(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=zx++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Hx++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function fs(){return to().memoizedState=ps.bind(null,J)}function ps(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=nu(n),i=wa(r),a=Ta(n,i,r);a!==null&&(Mi(r,`refresh()`,e),au(a,n,r),Ea(a,n,r)),e=Di(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function ms(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=nu(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};vs(e)?ys(t,i):(i=Nr(e,t,i,r),i!==null&&(Mi(r,`dispatch()`,e),au(i,e,r),bs(i,t,r)))}function hs(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=nu(e),gs(e,t,n,r)&&Mi(r,`setState()`,e)}function gs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vs(e))ys(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=L.H;L.H=$x;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,q_(c,s))return Mr(e,t,i,0),mC===null&&jr(),!1}catch{}finally{L.H=o}}if(n=Nr(e,t,i,r),n!==null)return au(n,e,r),bs(n,t,r),!0}return!1}function _s(e,t,n,r){if(L.T===null&&db===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vs(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=Nr(e,n,r,2),t!==null&&(Mi(2,`setOptimistic()`,e),au(t,e,2))}function vs(e){var t=e.alternate;return e===J||t!==null&&t===J}function ys(e,t){Lx=Ix=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function xs(e){if(e!==null&&typeof e!=`function`){var t=String(e);dS.has(t)||(dS.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ss(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Uv){He(!0);try{a=n(r,i)}finally{He(!1)}}a===void 0&&(t=C(t)||`Component`,sS.has(t)||(sS.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:I({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Cs(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Uv){He(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{He(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,C(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!$n(n,r)||!$n(i,a):!0}function ws(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=w(e)||`Component`,nS.has(e)||(nS.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),fS.enqueueReplaceState(t,t.state,null))}function Ts(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=I({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Es(e){gv(e),console.warn(`%s
|
|
109
|
-
|
|
110
|
-
%s
|
|
111
|
-
`,pS?`An error occurred in the <`+pS+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
112
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Ds(e){var t=pS?`The above error occurred in the <`+pS+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((mS||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
|
|
113
|
-
|
|
114
|
-
%s
|
|
115
|
-
|
|
116
|
-
%s
|
|
117
|
-
`,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,eE+` `+e[0],tE,rE+r+rE,nE):e.splice(0,0,eE,tE,rE+r+rE,nE),e.unshift(console),r=iE.apply(console.error,e),r()}else console.error(`%o
|
|
118
|
-
|
|
119
|
-
%s
|
|
120
|
-
|
|
121
|
-
%s
|
|
122
|
-
`,e,t,n)}function Os(e){gv(e)}function ks(e,t){try{pS=t.source?w(t.source):null,mS=null;var n=t.value;if(L.actQueue!==null)L.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function As(e,t,n){try{pS=n.source?w(n.source):null,mS=w(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function js(e,t,n){return n=wa(n),n.tag=dx,n.payload={element:null},n.callback=function(){T(t.source,ks,e,t)},n}function Ms(e){return e=wa(e),e.tag=dx,e}function Ns(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){zr(n),T(r.source,As,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){zr(n),T(r.source,As,t,n,r),typeof i!=`function`&&(KC===null?KC=new Set([this]):KC.add(this)),Fb(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,w(n)||`Unknown`)})}function Ps(e,t,n,r,i){if(n.flags|=32768,Fh&&$u(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&xi(t,n,i,!0),W&&(ay=!0),n=vx.current,n!==null){switch(n.tag){case 31:case 13:case 19:return yx===null?yu():n.alternate===null&&AC===sC&&(AC=uC),n.flags&=-257,n.flags|=65536,n.lanes=i,r===qb?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,i)),!1;case 22:return n.flags|=65536,r===qb?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Wu(e,r,i),yu(),!1}if(W)return ay=!0,t=vx.current,t===null?(r!==ly&&mi(Zr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Zr(r,n),i=js(e.stateNode,r,i),Da(e,i),AC!==dC&&(AC=lC)):(t.tag===19&&console.error(`SuspenseList should never catch while hydrating. This is a bug in React.`),!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==ly&&mi(Zr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=Zr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(IC===null?IC=[a]:IC.push(a),AC!==dC&&(AC=lC),t===null)return!0;r=Zr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=js(n.stateNode,r,e),Da(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(KC===null||!KC.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Ms(i),Ns(i,e,n,r),Da(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}function Fs(e,t,n,r){t.child=e===null?sx(t,null,n,r):ox(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var a=Lr(n);if(a!==n&&(n=a,e!==null&&(gS=!0)),a=t.ref,`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ci(t),r=Ja(e,t,n,o,a,i),s=Qa(),e!==null&&!gS?($a(e,t,i),uc(e,t,i)):(W&&s&&ei(t),t.flags|=1,Fs(e,t,r,i),t.child)}function Ls(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Hr(a)&&a.defaultProps===void 0&&n.compare===null?(n=Lr(a),t.tag=15,t.type=n,Xs(t,a),Rs(e,t,n,r,i)):(e=Gr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!dc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?$n:n,n(o,r)&&e.ref===t.ref)return uc(e,t,i)}return t.flags|=1,e=Ur(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if($n(a,r)&&e.ref===t.ref&&t.type===e.type){if(gS=!1,t.pendingProps=r=a,dc(e,i))e.flags&131072&&(gS=!0);else return t.lanes=e.lanes,uc(e,t,i)}}return Ks(e,t,n,r,i)}function zs(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Pv,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Vs(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ta(t,a===null?null:a.cachePool),a===null?Pa(t):Na(t,a),Ra(t);else return r=t.lanes=536870912,Vs(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ta(t,null),Pa(t),za(t)):(ta(t,a.cachePool),Na(t,a),za(t),t.memoizedState=null);return Fs(e,t,i,n),t.child}function Bs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Pv,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vs(e,t,n,r,i){var a=ea();return a=a===null?null:{parent:yy._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ta(t,null),Pa(t),Ra(t),e!==null&&xi(e,t,r,!0),t.childLanes=i,null}function Hs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
123
|
-
- <Activity %s>
|
|
124
|
-
+ <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Us(e,t,n){return ox(t,e.child,null,n),e=Hs(t,t.pendingProps),e.flags|=2,Ba(t),t.memoizedState=null,e}function Ws(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(W){if(r.mode===`hidden`)return e=Hs(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Bs(null,e);if(La(t),(e=iy)?(n=rp(e,cy),n=n!==null&&n.data===rT?n:null,n!==null&&(r={dehydrated:n,treeContext:ni(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Yr(n),r.return=t,t.child=r,ry=t,iy=null)):n=null,n===null)throw si(t,e),ci(t);return t.lanes=536870912,null}return Hs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(La(t),i){if(t.flags&256)t.flags&=-257,t=Us(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}else if(oi(),n&536870912&&vu(t),gS||xi(e,t,n,!1),i=(n&e.childLanes)!==0,gS||i){if(gx.current===null){if(r=mC,r!==null&&(o=tt(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Pr(e,o),au(r,e,o),hS;yu()}t=Us(e,t,n)}else e=a.treeContext,iy=sp(o.nextSibling),ry=t,W=!0,sy=null,ay=!1,oy=null,cy=!1,e!==null&&ri(t,e),t=Hs(t,r),t.flags|=134221824;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&vu(t),e=Ur(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function Gs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ks(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=C(n)||`Unknown`;_S[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),_S[a]=!0)}return t.mode&Uv&&hb.recordLegacyContextWarning(t,null),e===null&&(Xs(t,t.type),n.contextTypes&&(a=C(n)||`Unknown`,yS[a]||(yS[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),Ci(t),n=Ja(e,t,n,r,void 0,i),r=Qa(),e!==null&&!gS?($a(e,t,i),uc(e,t,i)):(W&&r&&ei(t),t.flags|=1,Fs(e,t,n,i),t.child)}function qs(e,t,n,r,i,a){return Ci(t),Gx=-1,Kx=e!==null&&e.type!==t.type,t.updateQueue=null,n=Xa(t,r,n,i),Ya(e,t),r=Qa(),e!==null&&!gS?($a(e,t,a),uc(e,t,a)):(W&&r&&ei(t),t.flags|=1,Fs(e,t,n,a),t.child)}function Js(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=mC,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=Ms(c),Ns(c,o,t,Zr(a,t)),Da(t,c)}if(Ci(t),t.stateNode===null){if(o=zv,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Im)&&!uS.has(n)&&(uS.add(n),c=a===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof a==`object`?a.$$typeof===Fm?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,C(n)||`Component`,c)),typeof a==`object`&&a&&(o=wi(a)),a=new n(r,o),t.mode&Uv){He(!0);try{a=new n(r,o)}finally{He(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=fS,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=tS,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=C(n)||`Component`,rS.has(o)||(rS.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=C(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;aS.has(a)||(aS.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
125
|
-
|
|
126
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
127
|
-
|
|
128
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
129
|
-
https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
|
|
130
|
-
`+o,c===null?``:`
|
|
131
|
-
`+c,l===null?``:`
|
|
132
|
-
`+l))}}a=t.stateNode,o=C(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!lS.has(n)&&(lS.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!cS.has(n)&&(cS.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,C(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||iS.has(n)||(iS.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,C(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Ym(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Sa(t),o=n.contextType,a.context=typeof o==`object`&&o?wi(o):zv,a.state===r&&(o=C(n)||`Component`,oS.has(o)||(oS.add(o),console.error(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,o))),t.mode&Uv&&hb.recordLegacyContextWarning(t,a),hb.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ss(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,w(t)||`Component`),fS.enqueueReplaceState(a,a.state,null)),ka(t,r,a,i),Oa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Wv)!==H&&(t.flags|=268435456),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=Ts(n,d),a.props=c;var f=a.context;l=n.contextType,o=zv,typeof l==`object`&&l&&(o=wi(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&ws(t,a,r,o),fx=!1;var p=t.memoizedState;a.state=p,ka(t,r,a,i),Oa(),f=t.memoizedState,d||p!==f||fx?(typeof u==`function`&&(Ss(t,n,u,r),f=t.memoizedState),(c=fx||Cs(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Wv)!==H&&(t.flags|=268435456)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Wv)!==H&&(t.flags|=268435456),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Wv)!==H&&(t.flags|=268435456),a=!1)}else{a=t.stateNode,Ca(e,t),o=t.memoizedProps,l=Ts(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=zv,typeof f==`object`&&f&&(c=wi(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&ws(t,a,r,c),fx=!1,p=t.memoizedState,a.state=p,ka(t,r,a,i),Oa();var m=t.memoizedState;o!==u||p!==m||fx||e!==null&&e.dependencies!==null&&Si(e.dependencies)?(typeof d==`function`&&(Ss(t,n,d,r),m=t.memoizedState),(l=fx||Cs(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&Si(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,Gs(e,t),o=!!(t.flags&128),c||o){if(c=t.stateNode,Pe(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,ky=-1;else if(n=kb(c),t.mode&Uv){He(!0);try{kb(c)}finally{He(!1)}}t.flags|=1,e!==null&&o?(t.child=ox(t,e.child,null,i),t.child=ox(t,null,n,i)):Fs(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=uc(e,t,i);return i=t.stateNode,a&&i.props!==r&&(xS||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",w(t)||`a component`),xS=!0),e}function Ys(e,t,n,r){return fi(),t.flags|=256,Fs(e,t,n,r),t.child}function Xs(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
133
|
-
%s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=C(t)||`Unknown`,bS[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),bS[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=C(t)||`Unknown`,vS[t]||(console.error(`%s: Function components do not support contextType.`,t),vS[t]=!0))}function Zs(e){return{baseLanes:e,cachePool:na()}}function Qs(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=PC),e}function $s(e,t,n){var r=t.pendingProps;o(t)&&(t.flags|=128);var i=!1,a=!!(t.flags&128),s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(Sx.current&xx)!==0),s&&(i=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(W){if(i?Ia(t):za(t),(e=iy)?(n=rp(e,cy),n=n!==null&&n.data!==rT?n:null,n!==null&&(s={dehydrated:n,treeContext:ni(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=Yr(n),s.return=t,t.child=s,ry=t,iy=null)):n=null,n===null)throw si(t,e),ci(t);return t.lanes=ap(n)?32:536870912,null}return a=r.children,r=r.fallback,i?(za(t),i=t.mode,a=tc({mode:`hidden`,children:a},i),r=qr(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Zs(n),r.childLanes=Qs(e,s,n),t.memoizedState=TS,Bs(null,r)):(Ia(t),ec(t,a))}var c=e.memoizedState;if(c!==null){var l=c.dehydrated;if(l!==null)return rc(e,t,a,s,r,l,c,n)}return i?(za(t),i=r.fallback,a=t.mode,c=e.child,l=c.sibling,r=Ur(c,{mode:`hidden`,children:r.children}),r.subtreeFlags=c.subtreeFlags&1206910976,l===null?(i=qr(i,a,n,null),i.flags|=2):i=Ur(l,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Bs(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Zs(n):(a=i.cachePool,a===null?a=na():(c=yy._currentValue,a=a.parent===c?a:{parent:c,pool:c}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Qs(e,s,n),t.memoizedState=TS,Bs(e.child,r)):(c!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&vu(t),Ia(t),n=e.child,e=n.sibling,n=Ur(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function ec(e,t){return t=tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function tc(e,t){return e=p(22,e,null,t),e.lanes=0,e}function nc(e,t,n){return ox(t,e.child,null,n),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rc(e,t,n,r,i,a,o,s){if(n){if(t.flags&256)return Ia(t),t.flags&=-257,nc(e,t,s);if(t.memoizedState!==null)return za(t),t.child=e.child,t.flags|=128,null;za(t);var c=i.fallback,l=t.mode,u=tc({mode:`visible`,children:i.children},l);return c=qr(c,l,s,null),c.flags|=2,u.return=t,c.return=t,u.sibling=c,t.child=u,ox(t,e.child,null,s),c=t.child,c.memoizedState=Zs(s),c.childLanes=Qs(e,r,s),t.memoizedState=TS,Bs(null,c)}if(Ia(t),oi(),s&536870912&&vu(t),ap(a)){if(r=a.nextSibling&&a.nextSibling.dataset,r){c=r.dgst;var d=r.msg;l=r.stck,u=r.cstck}return a=d,o=c,i=l,r=u,c=o,l=a,u=i,i=r,c!==Tb&&(r=Error(l||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),r.stack=u||``,r.digest=c,c=i===void 0?null:i,l={value:r,source:null,stack:c},typeof c==`string`&&qv.set(r,l),mi(l)),nc(e,t,s)}if(gS||xi(e,t,s,!1),r=(s&e.childLanes)!==0,gS||r){if(gx.current!==null)return nc(e,t,s);if(r=mC,r!==null&&(c=tt(r,s),c!==0&&c!==o.retryLane))throw o.retryLane=c,Pr(e,c),au(r,e,c),hS;return ip(a)||yu(),nc(e,t,s)}return ip(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,iy=sp(a.nextSibling),ry=t,W=!0,sy=null,ay=!1,oy=null,cy=!1,e!==null&&ri(t,e),t=ec(t,i.children),t.flags|=134221824,t)}function ic(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yi(e.return,t,n)}function ac(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ua(n)===null&&(t=e),e=e.sibling}return t}function oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function sc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function cc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=Sx.current;if(t.flags&128)return Va(t,s),null;if((r=(s&xx)!==0)?(s=s&bx|xx,t.flags|=128):s&=bx,Va(t,s),s=i??`null`,i!=null&&i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!SS[s]){if(SS[s]=!0,typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}s=a??`null`,CS[s]||a==null||(a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(CS[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!=null&&i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(CS[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" (default) or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i==null||i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o){if(Ym(o)){for(s=0;s<o.length;s++)if(!xa(o[s],s))break a}else if(s=fe(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!xa(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i)}if(i===`backwards`&&e!==null?(sc(e),Fs(e,t,o,n),sc(e)):Fs(e,t,o,n),W?(ii(),o=Zv):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ic(e,n,t);else if(e.tag===19)ic(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=ac(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,sc(t)),oc(t,!0,i,null,a,o);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ua(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oc(t,!0,n,null,a,o);break;case`together`:oc(t,!1,null,null,void 0,o);break;case`independent`:t.memoizedState=null;break;default:n=ac(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oc(t,!1,i,n,a,o)}return t.child}function lc(e,t,n){var r=t.type,i=t.pendingProps,a=i.value;return`value`in i||ES||(ES=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),_i(t,r,a),Fs(e,t,i.children,n),t.child}function uc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ky=-1,jC|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=Ur(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ur(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Si(e)))}function fc(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),_i(t,yy,e.memoizedState.cache),fi();break;case 27:case 5:xe(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:_i(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,La(t),null;break;case 13:if(r=t.memoizedState,r!==null){if(r.dehydrated!==null)return Ia(t),t.flags|=128,null;r=xi(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?$s(e,t,n):(Ia(t),e=uc(e,t,n),e===null?null:e.sibling)}Ia(t);break;case 19:if(t.flags&128)return cc(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return cc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Va(t,Sx.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:_i(t,yy,e.memoizedState.cache)}return uc(e,t,n)}function pc(e,t,n){if(t._debugNeedsRemount&&e!==null){n=Gr(Lr(t.elementType),t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=134217730,n}if(e!==null){if(e.memoizedProps!==t.pendingProps||t.type!==e.type)gS=!0;else{if(!dc(e,n)&&!(t.flags&128))return gS=!1,fc(e,t,n);gS=!!(e.flags&131072)}}else gS=!1,(r=W)&&(ii(),r=!!(t.flags&1048576)),r&&(r=t.index,ii(),$r(t,Zv,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=oa(t.elementType),e=Lr(e),t.type=e,typeof e==`function`)Hr(e)?(r=Ts(e,r),t.tag=1,t=Js(null,t,e,r,n)):(t.tag=0,Xs(t,e),t=Ks(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Lm){t.tag=11,t=Is(null,t,e,r,n);break a}if(i===Bm){t.tag=14,t=Ls(null,t,e,r,n);break a}if(i===Im){t.tag=10,t.type=e,t=lc(null,t,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Vm&&(t=` Did you wrap a component in React.lazy() more than once?`),n=C(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return Ks(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ts(r,t.pendingProps),Js(e,t,r,i,n);case 3:a:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Ca(e,t),ka(t,r,null,n);var o=t.memoizedState;if(r=o.cache,_i(t,yy,r),r!==a.cache&&bi(t,[yy],n,!0),Oa(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Ys(e,t,r,n);break a}if(r!==i){i=Zr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),mi(i),t=Ys(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(iy=sp(e.firstChild),ry=t,W=!0,sy=null,ay=!1,oy=null,cy=!0,n=sx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(fi(),r===i){t=uc(e,t,n);break a}Fs(e,t,r,n)}t=t.child}return t;case 26:return Gs(e,t),e===null?(n=Cp(t.type,null,t.pendingProps,null))?t.memoizedState=n:W||(t.stateNode=Qd(t.type,t.pendingProps,_e(nh.current),t)):t.memoizedState=Cp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&W&&(r=_e(nh.current),i=be(),r=t.stateNode=_p(t.type,t.pendingProps,r,i,!1),ay||(i=Gd(r,t.type,t.pendingProps,i),i!==null&&(ai(t,0).serverProps=i)),ry=t,cy=!0,i=iy,ff(t.type)?(FT=i,iy=sp(r.firstChild)):iy=i),Fs(e,t,t.pendingProps.children,n),Gs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&W&&(a=be(),r=dn(t.type,a.ancestorInfo),i=iy,(o=!i)||(o=tp(i,t.type,t.pendingProps,cy),o===null?a=!1:(t.stateNode=o,ay||(a=Gd(o,t.type,t.pendingProps,a),a!==null&&(ai(t,0).serverProps=a)),ry=t,iy=sp(o.firstChild),cy=!1,a=!0),o=!a),o&&(r&&si(t,i),ci(t))),xe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,ef(i,a)?r=null:o!==null&&ef(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=Ja(e,t,Za,null,null,n),$T._currentValue=i),Gs(e,t),Fs(e,t,r,n),t.child;case 6:return e===null&&W&&(n=t.pendingProps,e=be(),r=e.ancestorInfo.current,n=r==null||fn(n,r.tag,e.ancestorInfo.implicitRootScope),e=iy,(r=!e)||(r=np(e,t.pendingProps,cy),r===null?r=!1:(t.stateNode=r,ry=t,iy=null,r=!0),r=!r),r&&(n&&si(t,e),ci(t))),null;case 13:return $s(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ox(t,null,r,n):Fs(e,t,r,n),t.child;case 11:return Is(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Gs(e,t),Fs(e,t,r,n),t.child;case 8:return Fs(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,Fs(e,t,t.pendingProps.children,n),t.child;case 10:return lc(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Ci(t),i=wi(i),r=Db(r,i,void 0),t.flags|=1,Fs(e,t,r,n),t.child;case 14:return Ls(e,t,t.type,t.pendingProps,n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 19:return cc(e,t,n);case 31:return Ws(e,t,n);case 22:return zs(e,t,n,t.pendingProps);case 24:return Ci(t),r=wi(yy),e===null?(i=ea(),i===null&&(i=mC,a=Di(),i.pooledCache=a,Oi(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Sa(t),_i(t,yy,i)):((e.lanes&n)!==0&&(Ca(e,t),ka(t,null,null,n),Oa()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,_i(t,yy,r),r!==i.cache&&bi(t,[yy],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),_i(t,yy,r))),Fs(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:W&&ei(t),r.className!==void 0&&(i=typeof r.className==`string`?JSON.stringify(r.className):`{...}`,wS[i]||(wS[i]=!0,console.error(`<ViewTransition> doesn't accept a "className" prop. It has been renamed to "default".
|
|
134
|
-
- <ViewTransition className=%s>
|
|
135
|
-
+ <ViewTransition default=%s>`,i,i))),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Gs(e,t),Fs(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function mc(e){e.flags|=4}function hc(e,t,n,r,i){var a;if((a=(e.mode&Gv)!==H)&&(a=n===null?Rp(t,r):Rp(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(hu())e.flags|=8192;else throw Zb=qb,Gb}}else e.flags&=-16777217}function gc(e,t){if(t.type!==`stylesheet`||(t.state.loading&BT)!==IT)e.flags&=-16777217;else if(e.flags|=16777216,!zp(t)){if(hu())e.flags|=8192;else throw Zb=qb,Gb}}function _c(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,FC|=t)}function vc(e,t){if(!W)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function yc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t){if((e.mode&U)!==H){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&1206910976,r|=a.flags&1206910976,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling}else if((e.mode&U)!==H){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bc(e,t,n){var r=t.pendingProps;switch(ti(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yc(t),null;case 1:return yc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),vi(yy,t),ye(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(di(t)?(hi(),mc(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pi())),yc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(mc(t),a===null?(yc(t),hc(t,i,null,r,n)):(yc(t),gc(t,a))):a?a===e.memoizedState?(yc(t),t.flags&=-16777217):(mc(t),yc(t),gc(t,a)):(e=e.memoizedProps,e!==r&&mc(t),yc(t),hc(t,i,e,r,n)),null;case 27:if(Se(t),n=_e(nh.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&mc(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return yc(t),t.subtreeFlags&=-33554433,null}e=be(),di(t)?li(t,e):(e=_p(i,r,n,e,!0),t.stateNode=e,mc(t))}return yc(t),t.subtreeFlags&=-33554433,null;case 5:if(Se(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&mc(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return yc(t),t.subtreeFlags&=-33554433,null}var o=be();if(di(t))li(t,o);else{switch(a=_e(nh.current),dn(i,o.ancestorInfo),o=o.context,a=Yd(a),o){case vT:a=a.createElementNS(Rg,i);break;case yT:a=a.createElementNS(Lg,i);break;default:switch(i){case`svg`:a=a.createElementNS(Rg,i);break;case`math`:a=a.createElementNS(Lg,i);break;case`script`:a=a.createElement(`div`),ST||$d(r)||(console.error(`Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).`),ST=!0),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||vh.call(CT,i)||(CT[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[qh]=t,a[Jh]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Fd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&mc(t)}}return yc(t),t.subtreeFlags&=-33554433,hc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=_e(nh.current),n=be(),di(t)){if(e=t.stateNode,n=t.memoizedProps,i=!ay,r=null,a=ry,a!==null)switch(a.tag){case 3:i&&(i=lp(e,n,r),i!==null&&(ai(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=lp(e,n,r),i!==null&&(ai(t,0).serverProps=i))}e[qh]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||ci(t,!0)}else i=n.ancestorInfo.current,i!=null&&fn(r,i.tag,n.ancestorInfo.implicitRootScope),e=Yd(e).createTextNode(r),e[qh]=t,t.stateNode=e}return yc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=di(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[qh]=t,yc(t),(t.mode&U)!==H&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else hi(),fi(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,yc(t),(t.mode&U)!==H&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ba(t),t):(Ba(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return yc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=di(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[qh]=t,yc(t),(t.mode&U)!==H&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else hi(),fi(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,yc(t),(t.mode&U)!==H&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ba(t),t):(Ba(t),null)}return Ba(t),t.flags&128?(t.lanes=n,(t.mode&U)!==H&&Xi(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_c(t,t.updateQueue),yc(t),(t.mode&U)!==H&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return ye(t),e===null&&_d(t.stateNode.containerInfo),t.flags|=67108864,yc(t),null;case 10:return vi(t.type,t),yc(t),null;case 19:if(Ha(t),r=t.memoizedState,r===null)return yc(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)vc(r,!1);else{if(AC!==sC||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ua(e),a!==null){for(t.flags|=128,vc(r,!1),e=a.updateQueue,t.updateQueue=e,_c(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Wr(n,e),n=n.sibling;return Va(t,Sx.current&bx|xx),W&&Qr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ch()>HC&&(t.flags|=128,i=!0,vc(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Ua(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,_c(t,e),vc(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!W)return yc(t),null}else 2*Ch()-r.renderingStartTime>HC&&n!==536870912&&(t.flags|=128,i=!0,vc(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ch(),e.sibling=null,a=Sx.current,a=i?a&bx|xx:a&bx,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||W?Va(t,a):(n=a,ge(vx,t,t),ge(Sx,n,t),yx===null&&(yx=t)),W&&Qr(t,r.treeForkCount),e}return yc(t),null;case 22:case 23:return Ba(t),Fa(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(yc(t),t.subtreeFlags&6&&(t.flags|=8192)):yc(t),n=t.updateQueue,n!==null&&_c(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&he(mb,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vi(yy,t),yc(t),null;case 25:return null;case 30:return t.flags|=33554432,yc(t),null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function xc(e,t){switch(ti(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&Xi(t),t):null;case 3:return vi(yy,t),ye(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(Ba(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&Xi(t),t):null;case 13:if(Ba(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&Xi(t),t):null;case 19:return Ha(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ye(t),null;case 10:return vi(t.type,t),null;case 22:case 23:return Ba(t),Fa(t),e!==null&&he(mb,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&Xi(t),t):null;case 24:return vi(yy,t),null;case 25:return null;default:return null}}function Sc(e,t){switch(ti(t),t.tag){case 3:vi(yy,t),ye(t);break;case 26:case 27:case 5:Se(t);break;case 4:ye(t);break;case 31:t.memoizedState!==null&&Ba(t);break;case 13:Ba(t);break;case 19:Ha(t);break;case 10:vi(t.type,t);break;case 22:case 23:Ba(t),Fa(t),e!==null&&he(mb,t);break;case 24:vi(yy,t)}}function Cc(e){return(e.mode&U)!==H}function wc(e,t){Cc(e)?(Yi(),N(t,e),qi()):N(t,e)}function Tc(e,t,n){Cc(e)?(Yi(),Ec(n,e,t),qi()):Ec(n,e,t)}function N(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&Tx)!==Cx&&(Tw=!0),r=T(t,zb,n),(e&Tx)!==Cx&&(Tw=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&Ex)===0?(n.tag&Tx)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
|
|
136
|
-
|
|
137
|
-
It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
138
|
-
|
|
139
|
-
`+a+`(() => {
|
|
140
|
-
async function fetchData() {
|
|
141
|
-
// You can await here
|
|
142
|
-
const response = await MyAPI.getData(someId);
|
|
143
|
-
// ...
|
|
144
|
-
}
|
|
145
|
-
fetchData();
|
|
146
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
147
|
-
|
|
148
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,T(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){P(t,t.return,e)}}function Ec(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&Tx)!==Cx&&(Tw=!0),i=t,T(i,Vb,i,n,s),(e&Tx)!==Cx&&(Tw=!1))}r=r.next}while(r!==a)}}catch(e){P(t,t.return,e)}}function Dc(e,t){Cc(e)?(Yi(),N(t,e),qi()):N(t,e)}function Oc(e,t,n){Cc(e)?(Yi(),Ec(n,e,t),qi()):Ec(n,e,t)}function kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||xS||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(e)||`instance`));try{T(e,Ma,t,n)}catch(t){P(e,e.return,t)}}}function Ac(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function jc(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||xS||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(e)||`instance`));try{var i=Ts(e.type,n),a=T(e,Ac,t,i,r);n=DS,a!==void 0||n.has(e.type)||(n.add(e.type),T(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,w(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){P(e,e.return,t)}}function Mc(e,t,n){n.props=Ts(e.type,e.memoizedProps),n.state=e.memoizedState,Cc(e)?(Yi(),T(e,Lb,e,t,n),qi()):T(e,Lb,e,t,n)}function Nc(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;var r=ur(e.memoizedProps,n);(n.ref===null||n.ref.name!==r)&&(n.ref=Pf(r)),n=n.ref;break;case 7:e.stateNode===null&&(n=new Ff(e),ne(e,Xf,n),e.stateNode=n),n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`){if(Cc(e))try{Yi(),e.refCleanup=t(n)}finally{qi()}else e.refCleanup=t(n)}else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,w(e)),t.current=n}}function Pc(e,t){try{T(e,Nc,e)}catch(n){P(e,t,n)}}function Fc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{if(Cc(e))try{Yi(),T(e,r)}finally{qi(e)}else T(e,r)}catch(n){P(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Cc(e))try{Yi(),T(e,n,null)}finally{qi(e)}else T(e,n,null)}catch(n){P(e,t,n)}else n.current=null}}function Ic(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,sb&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function Lc(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,sb&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function Rc(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Qf(e.stateNode,t[n])}function zc(e){for(var t=e.return;t!==null&&(Hc(t)&&Qf(e.stateNode,t.stateNode),!Vc(t));)t=t.return}function Bc(e){for(var t=e.return;t!==null&&(Hc(t)&&$f(e.stateNode,t.stateNode),!Vc(t));)t=t.return}function Vc(e){return e.tag===5||e.tag===3||e.tag===27}function Hc(e){return e&&e.tag===7&&e.stateNode!==null}function Uc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{T(e,of,r,t,n,e)}catch(t){P(e,e.return,t)}}function Wc(e,t,n){try{T(e,cf,e.stateNode,e.type,n,t,e)}catch(t){P(e,e.return,t)}}function Gc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ff(e.type)||e.tag===4}function Kc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ff(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qc(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(df(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t)):(df(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),i=n._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=wn)),Rc(e,r),z=!0;else if(i!==4&&(i===27&&(Rc(e,r),r=null,ff(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(qc(e,t,n,r),e=e.sibling;e!==null;)qc(e,t,n,r),e=e.sibling}function Jc(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Rc(e,r),z=!0;else if(i!==4&&(i===27&&(Rc(e,r),r=null,ff(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Jc(e,t,n,r),e=e.sibling;e!==null;)Jc(e,t,n,r),e=e.sibling}function Yc(e){for(var t,n=e.return;n!==null;){if(Gc(n)){t=n;break}n=n.return}n=null;for(var r=e.return;r!==null;){if(Hc(r)){var i=r.stateNode;n===null?n=[i]:n.push(i)}if(Vc(r))break;r=r.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,r=Kc(e),Jc(e,r,t,n);break;case 5:r=t.stateNode,t.flags&32&&(lf(r),t.flags&=-33),t=Kc(e),Jc(e,t,r,n);break;case 3:case 4:t=t.stateNode.containerInfo,r=Kc(e),qc(e,r,t,n);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{T(e,vp,e.type,n,t,e)}catch(t){P(e,e.return,t)}}function Zc(e){(e.tag===30||e.subtreeFlags&33554432)&&(OS=!0)}function Qc(){var e=AS;return AS=null,e}function $c(e,t,n,r,i){return jS=0,(t=el(e.child,t,n,r,i))&&e._debugTask!=null&&ib===null&&(ib=e._debugTask),t}function el(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Df(o);r.push(s),s.view&&(a=!0)}else a||Df(o).view&&(a=!0);OS=!0,wf(o,jS===0?t:t+`_`+jS,n),jS++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||el(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function tl(e,t){for(;e!==null;)e.tag===5?Tf(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||tl(e.child,t)),e=e.sibling}function nl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(nl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(`Found a pair with an auto name. This is a bug in React.`);var n=t.name;t=fr(t.default,t.share),t!==`none`&&($c(e,n,t,null,!1)||tl(e.child,!1))}e=e.sibling}}function rl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=ur(r,n),a=fr(r.default,n.paired?r.share:r.enter);a===`none`?nl(e):$c(e,i,a,null,!1)?(nl(e),n.paired||t||iu(e,r.onEnter)):tl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)rl(e,t),e=e.sibling;else nl(e)}function il(e){if(kS!==null&&kS.size!==0){var t=kS;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=fr(n.default,n.share);if(a!==`none`&&($c(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,iu(e,n.onShare)):tl(e.child,!1)),t.delete(r),t.size===0)break}}}il(e)}e=e.sibling}}}function al(e){if(e.tag===30){var t=e.memoizedProps,n=ur(t,e.stateNode),r=kS===null?void 0:kS.get(n),i=fr(t.default,r===void 0?t.exit:t.share);i!==`none`&&($c(e,n,i,null,!1)?r===void 0?iu(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,kS.delete(n),iu(e,t.onShare)):tl(e.child,!1)),kS!==null&&il(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)al(e),e=e.sibling;else kS!==null&&il(e)}function ol(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ur(t,e.stateNode);t=fr(t.default,t.update),e.flags&=-5,t!==`none`&&$c(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ol(e);e=e.sibling}}function sl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,tl(e.child,!1))}sl(e)}e=e.sibling}}function cl(e){if(e.tag===30)e.stateNode.paired=null,tl(e.child,!1),sl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)cl(e),e=e.sibling;else sl(e)}function ll(e){for(e=e.child;e!==null;)e.tag===30?tl(e.child,!1):e.subtreeFlags&33554432&&ll(e),e=e.sibling}function ul(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&jS<a.length){var l=a[jS],u=Df(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&wf(c,jS===0?n:n+`_`+jS,i),s&&e.flags&4||(AS===null&&(AS=[]),AS.push(c,jS===0?r:r+`_`+jS,t.memoizedProps)),jS++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ul(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function dl(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=ur(n,r),a=fr(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Of)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child,c=i;jS=0,a=ul(r,s,c,i,a,o,!1),e.flags&4&&a&&(t||iu(e,n.onUpdate))}else e.subtreeFlags&33554432&&dl(e,t);e=e.sibling}}function fl(e){var t=e.memoizedProps.name;if(t!=null&&t!==`auto`){var n=MS.get(t);if(n!==void 0){if(n!==e&&n!==e.alternate&&!NS[t]){NS[t]=!0;var r=JSON.stringify(t);T(e,function(){console.error(`There are two <ViewTransition name=%s> components with the same name mounted at the same time. This is not supported and will cause View Transitions to error. Try to use a more unique name e.g. by using a namespace prefix and adding the id of an item to the name.`,r)}),T(n,function(){console.error(`The existing <ViewTransition name=%s> duplicate has this stack trace.`,r)})}}else MS.set(t,e)}}function pl(e){var t=e.memoizedProps.name;if(t!=null&&t!==`auto`){var n=MS.get(t);n===void 0||n!==e&&n!==e.alternate||MS.delete(t)}}function ml(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3&&e.memoizedState.isDehydrated&&!(t.flags&256)}function hl(e,t,n){if(e=e.containerInfo,bT=gE,e=ir(e),ar(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(xT={focusedElem:e,selectionRange:r},gE=!1,n=(n&335544064)===n,HS=t,t=n?9270:1024;HS!==null;){if(e=HS,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&al(r[a]);if(e.alternate===null&&e.flags&2)n&&Zc(e),gl(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&al(r),gl(n);continue}if(r!==null&&r.memoizedState!==null){n&&Zc(e),gl(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,HS=r):(n&&ol(e),gl(n))}}kS=null}function gl(e){for(;HS!==null;){var t=HS,n=t,r=e,i=n.alternate,a=n.flags;switch(n.tag){case 0:case 11:case 15:break;case 1:a&1024&&i!==null&&jc(n,i);break;case 3:if(a&1024){if(r=n.stateNode.containerInfo,n=r.nodeType,n===9)ep(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:ep(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:r&&i!==null&&(r=i,i=n,n=ur(r.memoizedProps,r.stateNode),i=i.memoizedProps,i=fr(i.default,i.update),i!==`none`&&$c(r,n,i,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(r=t.sibling,r!==null){r.return=t.return,HS=r;break}HS=t.return}}function _l(e,t,n){var r=Ri(),i=Bi(),a=Hi(),o=Ui(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Pl(e,n),s&4&&wc(n,Ex|wx);break;case 1:if(Pl(e,n),s&4){if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||xS||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(n)||`instance`)),Cc(n)?(Yi(),T(n,jb,n,e),qi()):T(n,jb,n,e);else{var c=Ts(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||xS||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(n)||`instance`)),Cc(n)?(Yi(),T(n,Nb,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),qi()):T(n,Nb,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}}s&64&&kc(n),s&512&&Pc(n,n.return);break;case 3:if(t=Pi(),Pl(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{T(n,Ma,s,c)}catch(e){P(n,n.return,e)}}e.effectDuration+=Fi(t);break;case 27:t===null&&s&4&&Xc(n);case 26:case 5:if(Pl(e,n),t===null){if(s&4)Uc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{T(n,sf,c,e,t,n)}catch(e){P(n,n.return,e)}}}s&512&&Pc(n,n.return);break;case 12:if(s&4){s=Pi(),Pl(e,n),e=n.stateNode,e.effectDuration+=Ii(s);try{T(n,Ic,n,t,Ey,e.effectDuration)}catch(e){P(n,n.return,e)}}else Pl(e,n);break;case 31:Pl(e,n),s&4&&wl(e,n);break;case 13:Pl(e,n),s&4&&Tl(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=qu.bind(null,n),op(e,s))));break;case 22:if(s=n.memoizedState!==null||LS,!s){var l=t!==null&&t.memoizedState!==null||RS;t=LS,c=RS,LS=s,(RS=l)&&!c?(s=IS,n.subtreeFlags&8772&&(s|=FS),Rl(e,n,s),(n.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&br(n,G,K)):Pl(e,n),LS=t,RS=c}break;case 30:s&18874368&&fl(n),Pl(e,n),s&512&&Pc(n,n.return);break;case 7:s&512&&Pc(n,n.return);default:Pl(e,n)}(n.mode&U)!==H&&0<=G&&0<=K&&((Ny||.05<jy)&&Cr(n,G,K,jy,My),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<K-G&&(ml(n.return.alternate,n.return)||yr(n,G,K,`Mount`))),zi(r),Vi(i),My=a,Ny=o}function vl(e,t){for(e=e.child;e!==null;)yl(e,t),e=e.sibling}function yl(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;t?T(e,vf,n):T(e,xf,e.stateNode,e.memoizedProps)}catch(t){P(e,e.return,t)}bl(e,t);break;case 6:try{var r=e.stateNode;t?T(e,yf,r):T(e,Sf,r,e.memoizedProps),z=!0}catch(t){P(e,e.return,t)}break;case 18:try{var i=e.stateNode;t?T(e,_f,i):T(e,bf,e.stateNode)}catch(t){P(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&vl(e,t);break;default:vl(e,t)}}function bl(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:yl(n,r);break a;case 22:n.memoizedState===null&&bl(n,r);break a;default:bl(n,r)}}e=e.sibling}}function xl(e){var t=e.alternate;t!==null&&(e.alternate=null,xl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&<(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Sl(e,t,n){for(n=n.child;n!==null;)Cl(e,t,n),n=n.sibling}function Cl(e,t,n){if(Nh&&typeof Nh.onCommitFiberUnmount==`function`)try{Nh.onCommitFiberUnmount(Mh,n)}catch(e){Ph||(Ph=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=Ri(),i=Bi(),a=Hi(),o=Ui();switch(n.tag){case 26:RS||Fc(n,t),Sl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!RS&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:RS||Fc(n,t),Bc(n);var s=YS,c=XS;ff(n.type)&&(YS=n.stateNode,XS=!1),Sl(e,t,n),T(n,yp,n.stateNode,n.type,n.memoizedProps),YS=s,XS=c;break;case 5:RS||Fc(n,t),Bc(n);case 6:if(n.tag===6&&Bc(n),s=YS,c=XS,YS=null,Sl(e,t,n),YS=s,XS=c,YS!==null){if(XS)try{T(n,mf,YS,n.stateNode),z=!0}catch(e){P(n,t,e)}else try{T(n,pf,YS,n.stateNode),z=!0}catch(e){P(n,t,e)}}break;case 18:YS!==null&&(XS?(e=YS,hf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),ym(e)):hf(YS,n.stateNode));break;case 4:s=YS,c=XS,YS=n.stateNode.containerInfo,XS=!0,Sl(e,t,n),YS=s,XS=c;break;case 0:case 11:case 14:case 15:Ec(Tx,n,t),RS||Tc(n,t,Ex),Sl(e,t,n);break;case 1:RS||(Fc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&Mc(n,t,s)),Sl(e,t,n);break;case 21:Sl(e,t,n);break;case 22:RS=(s=RS)||n.memoizedState!==null,Sl(e,t,n),RS=s;break;case 30:n.flags&18874368&&pl(n),Fc(n,t),Sl(e,t,n);break;case 7:RS||Fc(n,t),Sl(e,t,n);break;default:Sl(e,t,n)}(n.mode&U)!==H&&0<=G&&0<=K&&(Ny||.05<jy)&&Cr(n,G,K,jy,My),zi(r),Vi(i),My=a,Ny=o}function wl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{T(t,pp,e)}catch(e){P(t,t.return,e)}}}function Tl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{T(t,mp,e)}catch(e){P(t,t.return,e)}}function El(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new VS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new VS),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function Dl(e,t){var n=El(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Fh){if(US!==null&&WS!==null)$u(WS,US);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`)}var r=Ju.bind(null,e,t);t.then(r,r)}})}function Ol(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=e,o=t,s=r[i],c=Ri(),l=o;a:for(;l!==null;){switch(l.tag){case 27:if(ff(l.type)){YS=l.stateNode,XS=!1;break a}break;case 5:YS=l.stateNode,XS=!1;break a;case 3:case 4:YS=l.stateNode.containerInfo,XS=!0;break a}l=l.return}if(YS===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);Cl(a,o,s),YS=null,XS=!1,(s.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&yr(s,G,K,`Unmount`),zi(c),a=s,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kl(t,e,n),t=t.sibling}function kl(e,t,n){var r=Ri(),i=Bi(),a=Hi(),o=Ui(),s=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(c&4&&(s=e.updateQueue,s=s===null?null:s.events,s!==null))for(var l=0;l<s.length;l++){var u=s[l];u.ref.impl=u.nextImpl}Ol(t,e,n),Al(e),c&4&&(Ec(Tx|wx,e,e.return),N(Tx|wx,e),Tc(e,e.return,Ex|wx));break;case 1:Ol(t,e,n),Al(e),c&512&&(RS||s===null||Fc(s,s.return)),c&64&&LS&&(t=e.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(c=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=c===null?n:c.concat(n))));break;case 26:if(l=ZS,Ol(t,e,n),Al(e),c&512&&(RS||s===null||Fc(s,s.return)),c&4){if(c=s===null?null:s.memoizedState,n=e.memoizedState,s===null){if(n===null){if(e.stateNode===null){if(LS)e.stateNode=Qd(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,c=l.ownerDocument||l;b:switch(t){case`title`:s=c.getElementsByTagName(`title`)[0],(!s||s[eg]||s[qh]||s.namespaceURI===Rg||s.hasAttribute(`itemprop`))&&(s=c.createElement(t),c.head.insertBefore(s,c.querySelector(`head > title`))),Fd(s,t,n),s[qh]=e,mt(s),t=s;break a;case`link`:if(l=Fp(`link`,`href`,c).get(t+(n.href||``))){for(u=0;u<l.length;u++)if(s=l[u],s.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&s.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&s.getAttribute(`title`)===(n.title==null?null:n.title)&&s.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){l.splice(u,1);break b}}s=c.createElement(t),Fd(s,t,n),c.head.appendChild(s);break;case`meta`:if(l=Fp(`meta`,`content`,c).get(t+(n.content||``))){for(u=0;u<l.length;u++)if(s=l[u],Re(n.content,`content`),s.getAttribute(`content`)===(n.content==null?null:``+n.content)&&s.getAttribute(`name`)===(n.name==null?null:n.name)&&s.getAttribute(`property`)===(n.property==null?null:n.property)&&s.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){l.splice(u,1);break b}}s=c.createElement(t),Fd(s,t,n),c.head.appendChild(s);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+t+`". This is a bug in React.`)}s[qh]=e,mt(s),t=s}e.stateNode=t}}else LS||Ip(l,e.type,e.stateNode)}else e.stateNode=jp(l,n,e.memoizedProps)}else c===n?n===null&&e.stateNode!==null&&Wc(e,e.memoizedProps,s.memoizedProps):(c===null?(t=s.stateNode,t===null||RS||t.parentNode.removeChild(t)):c.count--,n===null?LS||Ip(l,e.type,e.stateNode):jp(l,n,e.memoizedProps))}break;case 27:Ol(t,e,n),Al(e),c&512&&(RS||s===null||Fc(s,s.return)),s!==null&&c&4&&Wc(e,e.memoizedProps,s.memoizedProps);break;case 5:if(l=zS,zS=!1,Ol(t,e,n),zS=l,Al(e),c&512&&(RS||s===null||Fc(s,s.return)),e.flags&32){t=e.stateNode;try{T(e,lf,t),z=!0}catch(t){P(e,e.return,t)}}c&4&&e.stateNode!=null&&(t=e.memoizedProps,Wc(e,t,s===null?t:s.memoizedProps)),c&1024&&(BS=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(Ol(t,e,n),Al(e),c&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);t=e.memoizedProps,n=s===null?t:s.memoizedProps,c=e.stateNode;try{T(e,uf,c,n,t),z=!0}catch(t){P(e,e.return,t)}}break;case 3:if(l=Pi(),z=!1,GT=null,u=ZS,ZS=xp(t.containerInfo),Ol(t,e,n),ZS=u,Al(e),c&4&&s!==null&&s.memoizedState.isDehydrated)try{T(e,fp,t.containerInfo)}catch(t){P(e,e.return,t)}BS&&(BS=!1,jl(e)),t.effectDuration+=Fi(l),z=!1;break;case 4:c=zS,zS=LS,s=bt(),l=ZS,ZS=xp(e.stateNode.containerInfo),Ol(t,e,n),Al(e),ZS=l,z&&KS&&(qS=!0),z=s,zS=c;break;case 12:c=Pi(),Ol(t,e,n),Al(e),e.stateNode.effectDuration+=Ii(c);break;case 31:Ol(t,e,n),Al(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Dl(e,t)));break;case 13:Ol(t,e,n),Al(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(zC=Ch()),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Dl(e,t)));break;case 22:l=e.memoizedState!==null,u=s!==null&&s.memoizedState!==null;var d=LS,f=RS,p=zS;LS=d||l,zS=p||l,RS=f||u,Ol(t,e,n),RS=f,zS=p,LS=d,u&&!l&&!d&&!f&&(e.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&br(e,G,K),Al(e),c&8192&&(t=e.stateNode,t._visibility=l?t._visibility&~Pv:t._visibility|Pv,!l||s===null||u||LS||RS||(t=IS,n=u||RS,s=LS,u=RS,LS=l||LS,RS=n,Il(e,t),(e.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&yr(e,G,K,`Disconnect`),LS=s,RS=u),!l&&zS||vl(e,l)),c&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Dl(e,n))));break;case 19:Ol(t,e,n),Al(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Dl(e,t)));break;case 30:c&512&&(RS||s===null||Fc(s,s.return)),c=bt(),l=KS,u=(n&335544064)===n,d=e.memoizedProps,KS=u&&fr(d.default,d.update)!==`none`,Ol(t,e,n),Al(e),u&&s!==null&&z&&(e.flags|=4),KS=l,z=c;break;case 21:break;case 7:c&512&&(RS||s===null||Fc(s,s.return)),s&&s.stateNode!==null&&(s.stateNode._fragmentFiber=e);default:Ol(t,e,n),Al(e)}(e.mode&U)!==H&&0<=G&&0<=K&&((Ny||.05<jy)&&Cr(e,G,K,jy,My),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<K-G&&(ml(e.return.alternate,e.return)||yr(e,G,K,`Mount`))),zi(r),Vi(i),My=a,Ny=o}function Al(e){var t=e.flags;if(t&2){try{T(e,Yc,e)}catch(t){P(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jl(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gE=!0,t.reset(),gE=!1),e=e.sibling}}function Ml(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Nl(t,e),t=t.sibling;else dl(t,!1)}function Nl(e,t){var n=e.alternate;if(n===null)rl(e,!1);else switch(e.tag){case 3:if(JS=GS=!1,Qc(),Ml(t,e),!GS&&!qS){if(e=AS,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Tf(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),JS=!0}AS=null;break;case 5:Ml(t,e);break;case 4:r=GS,GS=!1,Ml(t,e),GS&&(qS=!0),GS=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Ml(t,e):rl(e,!1));break;case 30:r=GS,i=Qc(),GS=!1,Ml(t,e),GS&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=ur(a,o),o=ur(n.memoizedProps,o);var s=fr(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,jS=0,t=ul(e,n,t,o,s,a,!0),jS!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(iu(e,e.memoizedProps.onUpdate),AS=i):i!==null&&(i.push.apply(i,AS),AS=i),GS=e.flags&32?!0:r;break;default:Ml(t,e)}}function Pl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_l(e,t.alternate,t),t=t.sibling}function Fl(e,t){var n=Ri(),r=Bi(),i=Hi(),a=Ui();switch(e.tag){case 0:case 11:case 14:case 15:Tc(e,e.return,Ex),Il(e,t);break;case 1:Fc(e,e.return);var o=e.stateNode;typeof o.componentWillUnmount==`function`&&Mc(e,e.return,o),Il(e,t);break;case 27:(t&IS)!==PS&&T(e,yp,e.stateNode,e.type,e.memoizedProps);case 5:Fc(e,e.return),e.tag!==5&&e.tag!==27||Bc(e),Il(e,t);break;case 6:Bc(e);break;case 26:Fc(e,e.return),o=e.stateNode,e.memoizedState!==null||o===null||RS||o.parentNode.removeChild(o),Il(e,t);break;case 22:e.memoizedState===null&&Il(e,t);break;case 30:e.flags&18874368&&pl(e),Fc(e,e.return),Il(e,t);break;case 7:Fc(e,e.return);default:Il(e,t)}(e.mode&U)!==H&&0<=G&&0<=K&&(Ny||.05<jy)&&Cr(e,G,K,jy,My),zi(n),Vi(r),My=i,Ny=a}function Il(e,t){for(e=e.child;e!==null;)Fl(e,t),e=e.sibling}function Ll(e,t,n,r){var i=Ri(),a=Bi(),o=Hi(),s=Ui(),c=n.flags,l=(r&FS)!==PS;switch(n.tag){case 0:case 11:case 15:Rl(e,n,r),wc(n,Ex);break;case 1:if(Rl(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&T(n,jb,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{T(n,ja,t,e)}catch(e){P(n,n.return,e)}}l&&c&64&&kc(n),Pc(n,n.return);break;case 27:(r&IS)!==PS&&Xc(n);case 5:n.tag!==5&&n.tag!==27||zc(n),Rl(e,n,r),l&&t===null&&c&4&&Uc(n),Pc(n,n.return);break;case 6:zc(n);break;case 26:var u=n.stateNode;n.memoizedState!==null||u===null||LS||Ip(xp(u.ownerDocument),n.type,u),Rl(e,n,r),l&&t===null&&c&4&&Uc(n),Pc(n,n.return);break;case 12:if(l&&c&4){c=Pi(),Rl(e,n,r),l=n.stateNode,l.effectDuration+=Ii(c);try{T(n,Ic,n,t,Ey,l.effectDuration)}catch(e){P(n,n.return,e)}}else Rl(e,n,r);break;case 31:Rl(e,n,r),l&&c&4&&wl(e,n);break;case 13:Rl(e,n,r),l&&c&4&&Tl(e,n);break;case 22:n.memoizedState===null&&Rl(e,n,r),Pc(n,n.return);break;case 30:Rl(e,n,r),c&18874368&&fl(n),Pc(n,n.return);break;case 7:Pc(n,n.return);default:Rl(e,n,r)}(n.mode&U)!==H&&0<=G&&0<=K&&(Ny||.05<jy)&&Cr(n,G,K,jy,My),zi(i),Vi(a),My=o,Ny=s}function Rl(e,t,n){for(n=t.subtreeFlags&8772?n:n&~FS,t=t.child;t!==null;)Ll(e,t.alternate,t,n),t=t.sibling}function zl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Oi(e),n!=null&&ki(n))}function Bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Oi(t),e!=null&&ki(e))}function Vl(e,t,n,r,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;)a=t.sibling,Hl(e,t,n,r,a===null?i:a.actualStartTime),t=a;else a&&ll(t)}function Hl(e,t,n,r,i){var a=Ri(),o=Bi(),s=Hi(),c=Ui(),l=Ov,u=(n&335544064)===n;u&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&cl(t);var d=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&U)!==H&&0<t.actualStartTime&&t.flags&1&&xr(t,t.actualStartTime,i,QS,n),Vl(e,t,n,r,i),d&2048&&Dc(t,Dx|wx);break;case 1:(t.mode&U)!==H&&0<t.actualStartTime&&(t.flags&128?Sr(t,t.actualStartTime,i,[]):t.flags&1&&xr(t,t.actualStartTime,i,QS,n)),Vl(e,t,n,r,i);break;case 3:var f=Pi(),p=QS;QS=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!(t.flags&256),Vl(e,t,n,r,i),QS=p,u&&JS&&(n=e.containerInfo,n=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,n.style.viewTransitionName===`root`&&(n.style.viewTransitionName=``),n=n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName===`none`&&(n.style.viewTransitionName=``)),d&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(Oi(r),n!=null&&ki(n))),e.passiveEffectDuration+=Fi(f);break;case 12:if(d&2048){d=Pi(),Vl(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=Ii(d);try{T(t,Lc,t,t.alternate,Ey,e.passiveEffectDuration)}catch(e){P(t,t.return,e)}}else Vl(e,t,n,r,i);break;case 31:d=QS,f=t.alternate===null?null:t.alternate.memoizedState,u=t.memoizedState,f!==null&&u===null?(u=t.deletions,u!==null&&0<u.length&&u[0].tag===18?(QS=!1,f=f.hydrationErrors,f!==null&&Sr(t,t.actualStartTime,i,f)):QS=!0):QS=!1,Vl(e,t,n,r,i),QS=d;break;case 13:d=QS,f=t.alternate===null?null:t.alternate.memoizedState,u=t.memoizedState,f===null||f.dehydrated===null||u!==null&&u.dehydrated!==null?QS=!1:(u=t.deletions,u!==null&&0<u.length&&u[0].tag===18?(QS=!1,f=f.hydrationErrors,f!==null&&Sr(t,t.actualStartTime,i,f)):QS=!0),Vl(e,t,n,r,i),QS=d;break;case 23:break;case 22:p=t.stateNode,f=t.alternate,t.memoizedState===null?(u&&f!==null&&f.memoizedState!==null&&cl(t),p._visibility&Fv?Vl(e,t,n,r,i):(p._visibility|=Fv,Ul(e,t,n,r,!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&U)===H||QS||(e=t.actualStartTime,0<=e&&.05<i-e&&br(t,e,i),0<=G&&0<=K&&.05<K-G&&br(t,G,K)))):(u&&f!==null&&f.memoizedState===null&&cl(f),p._visibility&Fv?Vl(e,t,n,r,i):Gl(e,t,n,r,i)),d&2048&&zl(f,t);break;case 24:Vl(e,t,n,r,i),d&2048&&Bl(t.alternate,t);break;case 30:u&&(d=t.alternate,d!==null&&(tl(d.child,!0),tl(t.child,!0))),Vl(e,t,n,r,i);break;default:Vl(e,t,n,r,i)}(t.mode&U)!==H&&((e=!QS&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&yr(t,n,i,`Mount`)),0<=G&&0<=K&&((Ny||.05<jy)&&Cr(t,G,K,jy,My),e&&.05<K-G&&yr(t,G,K,`Mount`))),zi(a),Vi(o),My=s,Ny=c,Ov=l}function Ul(e,t,n,r,i,a){for(i&&=!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Wl(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Wl(e,t,n,r,i,a){var o=Ri(),s=Bi(),c=Hi(),l=Ui(),u=Ov;i&&(t.mode&U)!==H&&0<t.actualStartTime&&t.flags&1&&xr(t,t.actualStartTime,a,QS,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Ul(e,t,n,r,i,a),Dc(t,Dx);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=Fv,Ul(e,t,n,r,i,a)):f._visibility&Fv?Ul(e,t,n,r,i,a):Gl(e,t,n,r,a),i&&d&2048&&zl(t.alternate,t);break;case 24:Ul(e,t,n,r,i,a),i&&d&2048&&Bl(t.alternate,t);break;default:Ul(e,t,n,r,i,a)}(t.mode&U)!==H&&0<=G&&0<=K&&(Ny||.05<jy)&&Cr(t,G,K,jy,My),zi(o),Vi(s),My=c,Ny=l,Ov=u}function Gl(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=Ov;(a.mode&U)!==H&&0<a.actualStartTime&&a.flags&1&&xr(a,a.actualStartTime,l,QS,s);var d=a.flags;switch(a.tag){case 22:Gl(o,a,s,c,l),d&2048&&zl(a.alternate,a);break;case 24:Gl(o,a,s,c,l),d&2048&&Bl(a.alternate,a);break;default:Gl(o,a,s,c,l)}Ov=u,a=t}}function Kl(e,t,n){if(e.subtreeFlags&$S)for(e=e.child;e!==null;)ql(e,t,n),e=e.sibling}function ql(e,t,n){switch(e.tag){case 26:Kl(e,t,n),e.flags&$S&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Vp(n,e)):Hp(n,ZS,e.memoizedState,e.memoizedProps));break;case 5:Kl(e,t,n),e.flags&$S&&(e=e.stateNode,(t&335544128)===t&&Vp(n,e));break;case 3:case 4:var r=ZS;ZS=xp(e.stateNode.containerInfo),Kl(e,t,n),ZS=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=$S,$S=16777216,Kl(e,t,n),$S=r):Kl(e,t,n));break;case 30:if((e.flags&$S)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,kS===null&&(kS=new Map),kS.set(r,i)}Kl(e,t,n);break;default:Kl(e,t,n)}}function Jl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Ri();HS=r,$l(r,e),(r.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&yr(r,G,K,`Unmount`),zi(i)}Jl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xl(e),e=e.sibling}function Xl(e){var t=Ri(),n=Bi(),r=Hi(),i=Ui();switch(e.tag){case 0:case 11:case 15:Yl(e),e.flags&2048&&Oc(e,e.return,Dx|wx);break;case 3:var a=Pi();Yl(e),e.stateNode.passiveEffectDuration+=Fi(a);break;case 12:a=Pi(),Yl(e),e.stateNode.passiveEffectDuration+=Ii(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&Fv&&(e.return===null||e.return.tag!==13)?(a._visibility&=~Fv,Zl(e),(e.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&yr(e,G,K,`Disconnect`)):Yl(e);break;default:Yl(e)}(e.mode&U)!==H&&0<=G&&0<=K&&(Ny||.05<jy)&&Cr(e,G,K,jy,My),zi(t),Vi(n),Ny=i,My=r}function Zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Ri();HS=r,$l(r,e),(r.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&yr(r,G,K,`Unmount`),zi(i)}Jl(e)}for(e=e.child;e!==null;)Ql(e),e=e.sibling}function Ql(e){var t=Ri(),n=Bi(),r=Hi(),i=Ui();switch(e.tag){case 0:case 11:case 15:Oc(e,e.return,Dx),Zl(e);break;case 22:var a=e.stateNode;a._visibility&Fv&&(a._visibility&=~Fv,Zl(e));break;default:Zl(e)}(e.mode&U)!==H&&0<=G&&0<=K&&(Ny||.05<jy)&&Cr(e,G,K,jy,My),zi(t),Vi(n),Ny=i,My=r}function $l(e,t){for(;HS!==null;){var n=HS,r=n,i=t,a=Ri(),o=Bi(),s=Hi(),c=Ui();switch(r.tag){case 0:case 11:case 15:Oc(r,i,Dx);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&Oi(i));break;case 24:ki(r.memoizedState.cache)}if((r.mode&U)!==H&&0<=G&&0<=K&&(Ny||.05<jy)&&Cr(r,G,K,jy,My),zi(a),Vi(o),Ny=c,My=s,r=n.child,r!==null)r.return=n,HS=r;else a:for(n=e;HS!==null;){if(r=HS,a=r.sibling,o=r.return,xl(r),r===n){HS=null;break a}if(a!==null){a.return=o,HS=a;break a}HS=o}}}function eu(){nC.forEach(function(e){return e()})}function tu(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||L.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function nu(e){if((X&aC)!==iC&&Q!==0)return Q&-Q;var t=L.T;return t===null?(e=st(),e===Hh&&(Jb=null),e):(t._updatedFibers||=new Set,t._updatedFibers.add(e),Jb!==null&&st()===Hh&&(Jb=null),dd())}function ru(){if(PC===0){if(!(Q&536870912)||W){var e=Bh;Bh<<=1,!(Bh&3932160)&&(Bh=262144),PC=e}else PC=536870912}return e=vx.current,e!==null&&(e.flags|=32),PC}function iu(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pf(ur(e.memoizedProps,n))),fw===null&&(fw=[]),fw.push(t.bind(null,r))}}function au(e,t,n){if(Tw&&console.error(`useInsertionEffect must not schedule updates.`),bw&&(xw=!0),(e===mC&&($===_C||$===wC)||e.cancelPendingCommit!==null)&&(pu(e,0),lu(e,Q,PC,!1)),Ze(e,n),(X&aC)!==iC&&e===mC){if(_h)switch(t.tag){case 0:case 11:case 15:e=Z&&w(Z)||`Unknown`,kw.has(e)||(kw.add(e),t=w(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:Ow||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Fh&&it(e,t,n),td(t),e===mC&&((X&aC)===iC&&(MC|=n),AC===dC&&lu(e,Q,PC,!1)),nd(e)}function ou(e,t,n){if((X&(aC|oC))!==iC)throw Error(`Should not already be working.`);if(Q!==0&&Z!==null){var r=Z,i=Ch();switch(ab){case vC:case _C:var a=ob;Ev&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,Dv,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,Dv,void 0,`primary-light`));break;case wC:a=ob,Ev&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,Dv,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,Dv,void 0,`primary-light`));break;default:Ev&&(r=i-ob,3>r||console.timeStamp(`Blocked`,ob,i,Dv,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ke(e,t))?Su(e,t):bu(e,t,!0);var o=n;do{if(a===sC){DC&&!n&&lu(e,t,0,!1),t=$,ob=xy(),ab=t;break}if(r=Ch(),i=e.current.alternate,o&&!cu(i)){vr(t),i=Ty,a=r,!Ev||a<=i||(GC?GC.run(console.timeStamp.bind(console,`Teared Render`,i,a,V,B,`error`)):console.timeStamp(`Teared Render`,i,a,V,B,`error`)),fu(t,r),a=bu(e,t,!1),o=!1;continue}if(a===lC){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){vr(t),Er(Ty,r,t,GC),fu(t,r),t=s;a:{r=e,a=o,o=IC;var c=r.current.memoizedState.isDehydrated;if(c&&(pu(r,s).flags|=256),s=bu(r,s,!1),s!==lC&&s!==fC){if(OC&&!c){r.errorRecoveryDisabledLanes|=a,MC|=a,a=dC;break a}r=LC,LC=o,r!==null&&(LC===null?LC=r:LC.push.apply(LC,r))}a=s}if(o=!1,a!==lC)continue;r=Ch()}}if(a===cC){vr(t),Er(Ty,r,t,GC),fu(t,r),pu(e,0),lu(e,t,0,!0);break}a:{switch(n=e,a){case sC:case cC:throw Error(`Root did not complete. This is a bug in React.`);case dC:if((t&4194048)!==t&&(t&62914560)!==t)break;case fC:vr(t),wr(Ty,r,t,GC),fu(t,r),i=t,i&127?Uy=r:i&4194048&&(eb=r),lu(n,t,PC,!EC);break a;case lC:LC=null;break;case uC:case pC:break;default:throw Error(`Unknown root exit status.`)}if(L.actQueue!==null)Au(n,i,t,LC,WC,RC,PC,MC,FC,EC,a,null,null,Ty,r);else{if((t&62914560)===t&&(o=zC+VC-Ch(),10<o)){if(lu(n,t,PC,!EC),Ge(n,0,!0)!==0)break a;ow=t,n.timeoutHandle=ET(su.bind(null,n,i,LC,WC,RC,t,PC,MC,FC,EC,a,`Throttled`,Ty,r),o);break a}su(n,i,LC,WC,RC,t,PC,MC,FC,EC,a,null,Ty,r)}}break}while(1);nd(e)}function su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=OT;var m=t.subtreeFlags,h=(a&335544064)===a,g=null;if((h||m&8192||(m&16785408)==16785408)&&(g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wn},kS=null,ql(t,a,g),h&&(m=g,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=Gp.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?zC-Ch():(a&4194048)===a?BC-Ch():0,m=Up(g,m),m!==null)){ow=a,e.cancelPendingCommit=m(Au.bind(null,e,t,a,n,r,i,o,s,c,l,u,g,g.waitingForViewTransition?`Waiting for the previous Animation`:0<g.count?0<g.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:g.imgCount===1?`Suspended on an Image`:0<g.imgCount?`Suspended on Images`:null,f,p)),lu(e,a,o,!l);return}Au(e,t,a,n,r,i,o,s,c,l,u,g,d,f,p)}function cu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!q_(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function lu(e,t,n,r){t=qe(e,t),t&=~NC,t&=~MC,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ih(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function uu(){return(X&(aC|oC))!==iC||(rd(0,!1),!1)}function du(){if(Z!==null){if($===hC)var e=Z.return;else e=Z,gi(),eo(e),$b=null,ex=0,e=Z;for(;e!==null;)Sc(e.alternate,e),e=e.return;Z=null}}function fu(e,t){e&127&&(Py=t),e&4194048&&(Wy=t),e&62914560&&(tb=t),e&2080374784&&(nb=t)}function pu(e,t){Ev&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,B,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,B,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,B,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,B,`primary-light`));var n=Ty;if(Ty=xy(),Q!==0&&0<n){if(vr(Q),AC===uC||AC===dC)wr(n,Ty,t,GC);else{var r=Ty,i=GC;if(Ev&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,V,B,a)):console.timeStamp(o,n,r,V,B,a)}}fu(Q,Ty)}if(n=GC,GC=null,t&127){GC=Iy,i=0<=Fy&&Fy<Py?Py:Fy,r=0<=By&&By<Py?Py:By,a=0<=r?r:0<=i?i:Ty,0<=Uy?(vr(2),Tr(Uy,a,t,n)):rb&127&&(vr(2),Ar(Py,a,ib)),n=i;var s=r,c=Vy,l=0<Hy,u=Ly===Cy,d=Ly===wy;if(i=Ty,r=Iy,a=Ry,o=zy,Ev){if(V=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,V,B,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,V,B,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:V,trackGroup:B,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n),performance.clearMeasures(u))}Fy=-1.1,Ly=0,zy=Ry=null,Uy=-1.1,Hy=By,By=-1.1,Py=xy()}return t&4194048&&(GC=Jy,i=0<=Gy&&Gy<Wy?Wy:Gy,n=0<=Ky&&Ky<Wy?Wy:Ky,r=0<=Zy&&Zy<Wy?Wy:Zy,a=0<=r?r:0<=n?n:Ty,0<=eb?(vr(256),Tr(eb,a,t,GC)):rb&4194048&&(vr(256),Ar(Wy,a,ib)),d=r,s=Qy,c=0<$y,l=qy===wy,a=Ty,r=Jy,o=Yy,u=Xy,Ev&&(V=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,V,B,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,V,B,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,V,B,`primary-dark`)):console.timeStamp(`Action`,i,n,V,B,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:V,trackGroup:B,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n),performance.clearMeasures(i))),Ky=Gy=-1.1,qy=0,eb=-1.1,$y=Zy,Zy=-1.1,Wy=xy()),t&62914560&&rb&62914560&&(vr(4194304),Ar(tb,Ty,ib)),t&2080374784&&rb&2080374784&&(vr(268435456),Ar(nb,Ty,ib)),n=e.timeoutHandle,n!==OT&&(e.timeoutHandle=OT,DT(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ow=0,du(),mC=e,Z=n=Ur(e.current,null),Q=t,$=hC,TC=null,EC=!1,DC=Ke(e,t),OC=!1,AC=sC,FC=PC=NC=MC=jC=0,LC=IC=null,RC=!1,kC=qe(e,t),jr(),e=mv(),1e3<e-fv&&(L.recentlyCreatedOwnerStacks=0,fv=e),hb.discardPendingWarnings(),n}function mu(e,t){J=null,L.H=qx,L.getCurrentStack=null,_h=!1,gh=null,t===Wb||t===Kb?(t=sa(),$=vC):t===Gb?(t=sa(),$=yC):$=t===hS?CC:typeof t==`object`&&t&&typeof t.then==`function`?xC:gC,TC=t;var n=Z;n===null?(AC=cC,ks(e,Zr(t,e.current))):n.mode&U&&Gi(n)}function hu(){var e=vx.current;return e===null?!0:(Q&4194048)===Q?yx===null:(Q&62914560)===Q||Q&536870912?e===yx:!1}function gu(){var e=L.H;return L.H=qx,e===null?qx:e}function _u(){var e=L.A;return L.A=eC,e}function vu(e){GC===null&&(GC=e._debugTask==null?null:e._debugTask)}function yu(){AC=dC,EC||(Q&4194048)!==Q&&vx.current!==null||(DC=!0),!(jC&134217727)&&!(MC&134217727)||mC===null||lu(mC,Q,PC,!1)}function bu(e,t,n){var r=X;X|=aC;var i=gu(),a=_u();if(mC!==e||Q!==t){if(Fh){var o=e.memoizedUpdaters;0<o.size&&($u(e,Q),o.clear()),at(e,t)}WC=null,pu(e,t)}t=!1,o=AC;a:do try{if($!==hC&&Z!==null){var s=Z,c=TC;switch($){case CC:du(),o=fC;break a;case vC:case _C:case wC:case xC:vx.current===null&&(t=!0);var l=$;if($=hC,TC=null,Du(e,s,c,l),n&&DC){o=sC;break a}break;default:l=$,$=hC,TC=null,Du(e,s,c,l)}}xu(),o=AC;break}catch(t){mu(e,t)}while(1);return t&&e.shellSuspendCounter++,gi(),X=r,L.H=i,L.A=a,Z===null&&(mC=null,Q=0,jr()),o}function xu(){for(;Z!==null;)wu(Z)}function Su(e,t){var n=X;X|=aC;var r=gu(),i=_u();if(mC!==e||Q!==t){if(Fh){var a=e.memoizedUpdaters;0<a.size&&($u(e,Q),a.clear()),at(e,t)}WC=null,HC=Ch()+UC,pu(e,t)}else DC=Ke(e,t);a:do try{if($!==hC&&Z!==null)b:switch(t=Z,a=TC,$){case gC:$=hC,TC=null,Du(e,t,a,gC);break;case _C:case wC:if(ia(a)){$=hC,TC=null,Tu(t);break}t=function(){$!==_C&&$!==wC||mC!==e||($=SC),nd(e)},a.then(t,t);break a;case vC:$=SC;break a;case yC:$=bC;break a;case SC:ia(a)?($=hC,TC=null,Tu(t)):($=hC,TC=null,Du(e,t,a,SC));break;case bC:var o=null;switch(Z.tag){case 26:o=Z.memoizedState;case 5:case 27:var s=Z;if(o?zp(o):s.stateNode.complete){$=hC,TC=null;var c=s.sibling;if(c!==null)Z=c;else{var l=s.return;l===null?Z=null:(Z=l,Ou(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}$=hC,TC=null,Du(e,t,a,bC);break;case xC:$=hC,TC=null,Du(e,t,a,xC);break;case CC:du(),AC=fC;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}L.actQueue===null?Cu():xu();break}catch(t){mu(e,t)}while(1);return gi(),L.H=r,L.A=i,X=n,Z===null?(mC=null,Q=0,jr(),AC):sC}function Cu(){for(;Z!==null&&!xh();)wu(Z)}function wu(e){var t=e.alternate;(e.mode&U)===H?t=T(e,pc,t,e,kC):(Wi(e),t=T(e,pc,t,e,kC),Gi(e)),e.memoizedProps=e.pendingProps,t===null?Ou(e):Z=t}function Tu(e){var t=T(e,Eu,e);e.memoizedProps=e.pendingProps,t===null?Ou(e):Z=t}function Eu(e){var t=e.alternate,n=(e.mode&U)!==H;switch(n&&Wi(e),e.tag){case 15:case 0:t=qs(t,e,e.pendingProps,e.type,void 0,Q);break;case 11:t=qs(t,e,e.pendingProps,e.type.render,e.ref,Q);break;case 5:eo(e);var r=e;r===ry&&(W?(ui(r),r.tag===5&&r.stateNode!=null&&(iy=r.stateNode)):(ui(r),W=!0));default:Sc(t,e),e=Z=Wr(e,kC),t=pc(t,e,kC)}return n&&Gi(e),t}function Du(e,t,n,r){gi(),eo(t),$b=null,ex=0;var i=t.return;try{if(Ps(e,i,t,n,Q)){AC=cC,ks(e,Zr(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;AC=cC,ks(e,Zr(n,e.current)),Z=null;return}t.flags&32768?(W||r===gC?e=!0:DC||Q&536870912?e=!1:(EC=e=!0,(r===_C||r===wC||r===vC||r===xC)&&(r=vx.current,r!==null&&r.tag===13&&(r.flags|=16384))),ku(t,e)):Ou(t)}function Ou(e){var t=e;do{if(t.flags&32768){ku(t,EC);return}var n=t.alternate;if(e=t.return,Wi(t),n=T(t,bc,n,t,kC),(t.mode&U)!==H&&Ki(t),n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);AC===sC&&(AC=pC)}function ku(e,t){do{var n=xc(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if((e.mode&U)!==H){Ki(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);AC=fC,Z=null}function Au(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.cancelPendingCommit=null;do Vu();while(rw!==ZC);if(hb.flushLegacyContextWarning(),hb.flushPendingUnsafeLifecycleWarnings(),(X&(aC|oC))!==iC)throw Error(`Should not already be working.`);if(vr(n),u===lC)Er(p,m,n,GC);else if(r!==null){if(l=t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!!(t.flags&256),a=GC,Ev&&!(m<=p)){u=[];for(var h=0;h<r.length;h++){var g=r[h].value;u.push([`Recoverable Error`,typeof g==`object`&&g&&typeof g.message==`string`?String(g.message):String(g)])}p={start:p,end:m,detail:{devtools:{color:`primary-dark`,track:V,trackGroup:B,tooltipText:l?`Hydration Failed`:`Recovered after Error`,properties:u}}},a?a.run(performance.measure.bind(performance,`Recovered`,p)):performance.measure(`Recovered`,p),performance.clearMeasures(`Recovered`)}}else a=GC,!Ev||m<=p||(l=(n&738197653)===n?`tertiary-dark`:`primary-dark`,u=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,a?a.run(console.timeStamp.bind(console,u,p,m,V,B,l)):console.timeStamp(u,p,m,V,B,l));if(t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);e===mC&&(Z=mC=null,Q=0),aw=t,iw=e,ow=n,lw=i,uw=r,cw=m,mw=f,hw=qC,gw=null,ju(e,t,n,o,s,c,d,f,m)}}function ju(e,t,n,r,i,a,o,s,c){var l=t.lanes|t.childLanes;if(sw=l,l|=Rv,Qe(e,n,l,r,i,a),fw=null,(n&335544064)===n?(pw=ji(e),r=10262):(pw=null,r=10256),t.actualDuration!==0||(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,ed(Dh,function(){return TT=window.event,hw===qC&&(hw=YC),Hu(),null})):(e.callbackNode=null,e.callbackPriority=0),Oy=null,Ey=xy(),s!==null&&Dr(c,Ey,s,GC),OS=!1,s=!!(t.flags&13878),t.subtreeFlags&13878||s){s=L.T,L.T=null,c=R.p,R.p=Hh,r=X,X|=oC;try{hl(e,t,n)}finally{X=r,R.p=c,L.T=s}}rw=QC,OS?(rb|=n,ib=null,dw=Mf(o,e.containerInfo,pw,Iu,Lu,Fu,Ru,Hu,Mu,Nu,Pu.bind(null,n))):(Iu(),Lu(),Ru())}function Mu(e){if(rw!==ZC){var t=iw.onRecoverableError;t(e,zu(null))}}function Nu(e){Dy=xy(),kr(mw===null?cw:Ey,Dy,Oy,hw===JC,GC),mw=gw=e}function Pu(e){if((rb&e)!==0){var t=ib;rb&=~e,ib=null,e&4194048&&!(Q&4194048)&&!(ow&4194048)&&(vr(256),Ar(Wy,Ch(),t)),e&62914560&&!(Q&62914560)&&!(ow&62914560)&&(vr(4194304),Ar(tb,Ch(),t)),e&2080374784&&!(Q&2080374784)&&!(ow&2080374784)&&(vr(268435456),Ar(nb,Ch(),t))}}function Fu(){rw===ew&&(rw=ZC,Nl(aw,iw),rw=tw)}function Iu(){if(rw===QC){rw=ZC;var e=iw,t=aw,n=ow,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=Hh;var a=X;X|=oC;try{US=n,WS=e,KS=qS=!1,Li(),kl(t,e,n),WS=US=null,n=xT;var o=ir(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&rr(s.ownerDocument.documentElement,s)){if(c!==null&&ar(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=nr(s,h),v=nr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gE=!!bT,xT=bT=null}finally{X=a,R.p=i,L.T=r}}e.current=t,rw=$C}}function Lu(){if(rw===$C){rw=ZC;var e=gw;if(e!==null){Ey=xy();var t=Dy,n=Ey;!Ev||n<=t||(ib?ib.run(console.timeStamp.bind(console,e,t,n,V,B,`secondary-light`)):console.timeStamp(e,t,n,V,B,`secondary-light`))}e=iw,t=aw,n=ow;var r=!!(t.flags&8772);if(t.subtreeFlags&8772||r){r=L.T,L.T=null;var i=R.p;R.p=Hh;var a=X;X|=oC;try{US=n,WS=e,Li(),_l(e,t.alternate,t),WS=US=null}finally{X=a,R.p=i,L.T=r}}e=cw,t=mw,Dy=xy(),kr(t===null?e:Ey,Dy,Oy,hw===JC,GC),rw=ew}}function Ru(){if(rw===tw||rw===ew){if(rw===tw){var e=Dy;Dy=xy();var t=Dy,n=hw===JC;!Ev||t<=e||(ib?ib.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,V,B,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,V,B,n?` error`:`secondary-light`)),hw!==JC&&(hw=XC)}rw=ZC,e=dw,dw=null,Sh(),t=iw;var r=aw;n=ow;var i=uw,a=(n&335544064)===n?10262:10256;(a=r.actualDuration!==0||(r.subtreeFlags&a)!==0||(r.flags&a)!==0)?rw=nw:(rw=ZC,aw=iw=null,Bu(t,t.pendingLanes),Cw=0,ww=null);var o=t.pendingLanes;if(o===0&&(KC=null),a||Zu(t),o=ot(n),r=r.stateNode,Nh&&typeof Nh.onCommitFiberRoot==`function`)try{var s=(r.current.flags&128)==128;switch(o){case Hh:var c=Th;break;case Uh:c=Eh;break;case Wh:c=Dh;break;case Gh:c=kh;break;default:c=Dh}Nh.onCommitFiberRoot(Mh,r,c,s)}catch(e){Ph||(Ph=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Fh&&t.memoizedUpdaters.clear(),eu(),i!==null){s=L.T,c=R.p,R.p=Hh,L.T=null;try{var l=t.onRecoverableError;for(r=0;r<i.length;r++){var u=i[r],d=zu(u.stack);T(u.source,l,u.value,d)}}finally{L.T=s,R.p=c}}if(l=fw,u=pw,pw=null,l!==null&&(fw=null,u===null&&(u=[]),e!==null))for(d=0;d<l.length;d++)i=(0,l[d])(u),i!==void 0&&e.finished.finally(i);ow&3&&Vu(),nd(t),o=t.pendingLanes,n&261930&&o&42?(cb=!0,t===yw?vw++:(vw=0,yw=t)):(vw=0,yw=null),a||fu(n,Dy),rd(0,!1)}}function zu(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Bu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ki(t)))}function Vu(){return dw!==null&&(dw.skipTransition(),Ew||(Ew=!0,console.warn(`A flushSync update cancelled a View Transition because it was called while the View Transition was still preparing. To preserve the synchronous semantics, React had to skip the View Transition. If you can, try to avoid flushSync() in a scenario that's likely to interfere.`)),dw=null,hw=JC),Iu(),Lu(),Ru(),Hu()}function Hu(){if(rw!==nw)return!1;var e=iw,t=sw;sw=0;var n=ot(ow),r=Wh===0||Wh>n?Wh:n;n=L.T;var i=R.p;try{R.p=r,L.T=null;var a=lw;lw=null,r=iw;var o=ow;if(rw=ZC,aw=iw=null,ow=0,(X&(aC|oC))!==iC)throw Error(`Cannot flush passive effects while already rendering.`);vr(o),bw=!0,xw=!1;var s=0;if(Oy=null,s=Ch(),hw===XC)Ar(Dy,s,ib);else{var c=Dy,l=s,u=hw===YC;!Ev||l<=c||(GC?GC.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,V,B,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,V,B,`secondary-light`))}c=X,X|=oC;var d=r.current;Li(),Xl(d);var f=r.current;d=cw,Li(),Hl(r,f,o,a,d),Zu(r),X=c;var p=Ch();if(f=s,d=GC,Oy===null?!Ev||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,V,B,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,V,B,`secondary-dark`)):Or(f,p,Oy,!0,d),fu(o,p),rd(0,!1),xw?r===ww?Cw++:(Cw=0,ww=r):Cw=0,xw=bw=!1,Nh&&typeof Nh.onPostCommitFiberRoot==`function`)try{Nh.onPostCommitFiberRoot(Mh,r)}catch(e){Ph||(Ph=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{R.p=i,L.T=n,Bu(e,t)}}function Uu(e,t,n){t=Zr(n,t),Ji(t),t=js(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(Ze(e,2),nd(e))}function P(e,t,n){if(Tw=!1,e.tag===3)Uu(e,e,n);else{for(;t!==null;){if(t.tag===3){Uu(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(KC===null||!KC.has(r))){e=Zr(n,e),Ji(e),n=Ms(2),r=Ta(t,n,2),r!==null&&(Ns(n,r,t,e),Ze(r,2),nd(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
149
|
-
|
|
150
|
-
Error message:
|
|
151
|
-
|
|
152
|
-
%s`,n)}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rC;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(OC=!0,i.add(n),r=Gu.bind(null,e,t,n),Fh&&$u(e,n),t.then(r,r))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>Fy&&(Py=Fy=xy(),Iy=Sy(`Promise Resolved`),Ly=wy):n&4194048&&0>Ky&&(Wy=Ky=xy(),Jy=Sy(`Promise Resolved`),qy=wy),tu()&&L.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
153
|
-
|
|
154
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
155
|
-
|
|
156
|
-
act(() => {
|
|
157
|
-
/* finish loading suspended data */
|
|
158
|
-
});
|
|
159
|
-
/* assert on the output */
|
|
160
|
-
|
|
161
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),mC===e&&(Q&n)===n&&((AC===dC||AC===uC&&(Q&62914560)===Q&&Ch()-zC<VC)&&(X&aC)===iC?pu(e,0):NC|=n,FC===Q&&(FC=0)),nd(e)}function Ku(e,t){t===0&&(t=Ye()),e=Pr(e,t),e!==null&&(Ze(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t,n){if(t.subtreeFlags&134225920)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Nm;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&134225920?T(i,Xu,r,i):i.subtreeFlags&134217728&&T(i,Yu,r,i,a)):i.flags&134217728?a&&T(i,Xu,r,i):Yu(r,i,a),t=t.sibling}}function Xu(e,t){He(!0);try{Fl(t,PS),Ql(t),Ll(e,t.alternate,t,PS),Wl(e,t,0,null,!1,0)}finally{He(!1)}}function Zu(e){var t=!0;e.current.mode&(Uv|Wv)||(t=!1),Yu(e,e.current,t)}function Qu(e){if((X&aC)===iC){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=w(e)||`ReactComponent`,Dw!==null){if(Dw.has(t))return;Dw.add(t)}else Dw=new Set([t]);T(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function $u(e,t){Fh&&e.memoizedUpdaters.forEach(function(n){it(e,n,t)})}function ed(e,t){var n=L.actQueue;return n===null?yh(e,t):(n.push(t),Aw)}function td(e){tu()&&L.actQueue===null&&T(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
162
|
-
|
|
163
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
164
|
-
|
|
165
|
-
act(() => {
|
|
166
|
-
/* fire events that update state */
|
|
167
|
-
});
|
|
168
|
-
/* assert on the output */
|
|
169
|
-
|
|
170
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,w(e))})}function nd(e){e!==Mw&&e.next===null&&(Mw===null?jw=Mw=e:Mw=Mw.next=e),Fw=!0,L.actQueue===null?Nw||(Nw=!0,ud()):Pw||(Pw=!0,ud())}function rd(e,t){if(!Iw&&Fw){Iw=!0;do for(var n=!1,r=jw;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ih(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Q,a=Ge(r,r===mC?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==OT),!(a&3)||Ke(r,a)||(n=!0,cd(r,a))}r=r.next}while(n);Iw=!1}}function id(){TT=window.event,ad()}function ad(){Fw=Pw=Nw=!1;var e=0;Lw!==0&&tf()&&(e=Lw);for(var t=Ch(),n=null,r=jw;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?jw=i:n.next=i,i===null&&(Mw=n)):(n=r,(e!==0||a&3)&&(Fw=!0)),r=i}rw!==ZC&&rw!==nw||rd(e,!1),Lw!==0&&(Lw=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ih(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=mC,n=Q,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==OT),r=e.callbackNode,n===0||e===t&&($===_C||$===wC)||e.cancelPendingCommit!==null)return r!==null&&ld(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t!==e.callbackPriority||L.actQueue!==null&&r!==Rw)ld(r);else return t;switch(ot(n)){case Hh:case Uh:n=Eh;break;case Wh:n=Dh;break;case Gh:n=kh;break;default:n=Dh}return r=sd.bind(null,e),L.actQueue===null?n=yh(n,r):(L.actQueue.push(r),n=Rw),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&ld(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(cb=sb=!1,TT=window.event,rw!==ZC&&rw!==nw)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hw===qC&&(hw=YC),Vu()&&e.callbackNode!==n)return null;var r=Q;return r=Ge(e,e===mC?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==OT),r===0?null:(ou(e,r,t),od(e,Ch()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Vu())return null;sb=cb,cb=!1,ou(e,t,!0)}function ld(e){e!==Rw&&e!==null&&bh(e)}function ud(){L.actQueue!==null&&L.actQueue.push(function(){return ad(),null}),jT(function(){(X&(aC|oC))===iC?ad():yh(Th,id)})}function dd(){if(Lw===0){var e=db;e===0&&(e=zh,zh<<=1,!(zh&261888)&&(zh=256)),Lw=e}return Lw}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(Re(e,`action`),Cn(e))}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[Jh]||null).action),o=r.submitter;o&&(t=(t=o[Jh]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new l_(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Lw!==0){var e=new FormData(i,o),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),is(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),is(n,t,a,e))},currentTarget:i}]})}}function md(e,t,n){e.currentTarget=n;try{t(e)}catch(e){gv(e)}e.currentTarget=null}function hd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?md(a,s,l):T(c,md,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?md(a,s,l):T(c,md,a,s,l),i=c}}}}function F(e,t){Bw.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Xh];n===void 0&&(n=t[Xh]=new Set);var r=e+`__bubble`;n.has(r)||(vd(t,e,2,!1),n.add(r))}function gd(e,t,n){Bw.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),vd(n,e,r,t)}function _d(e){if(!e[Vw]){e[Vw]=!0,ng.forEach(function(t){t!==`selectionchange`&&(Bw.has(t)||gd(t,!1,e),gd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vw]||(t[Vw]=!0,gd(`selectionchange`,!1,t))}}function vd(e,t,n,r){switch(lm(t)){case Hh:var i=im;break;case Uh:i=am;break;default:i=om}n=i.bind(null,t,n,e),i=void 0,!r_||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function yd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ut(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Dn(function(){var r=a,i=Tn(n),o=[];a:{var s=lv.get(e);if(s!==void 0){var c=l_,l=e;switch(e){case`keypress`:if(An(n)===0)break a;case`keydown`:case`keyup`:c=E_;break;case`focusin`:l=`focus`,c=v_;break;case`focusout`:l=`blur`,c=v_;break;case`beforeblur`:case`afterblur`:c=v_;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=g_;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=__;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=k_;break;case nv:case rv:case iv:c=y_;break;case cv:c=A_;break;case`scroll`:case`scrollend`:c=d_;break;case`wheel`:c=j_;break;case`copy`:case`cut`:case`paste`:c=b_;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=D_;break;case`submit`:c=O_;break;case`toggle`:case`beforetoggle`:c=M_}var u=!!(t&4),d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=On(p,f),h!=null&&u.push(bd(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,s=e===`mouseout`||e===`pointerout`,c&&n!==Qg&&(l=n.relatedTarget||n.fromElement)&&(ut(l)||l[Yh]))break a;(s||c)&&(l=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,s?(c=n.relatedTarget||n.toElement,s=r,c=c?ut(c):null,c!==null&&(d=v(c),u=c.tag,c!==d||u!==5&&u!==27&&u!==6)&&(c=null)):(s=null,c=r),s!==c&&(u=g_,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=D_,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=s==null?l:ft(s),m=c==null?l:ft(c),l=new u(h,p+`leave`,s,n,i),l.target=d,l.relatedTarget=m,h=null,ut(i)===r&&(u=new u(f,p+`enter`,c,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,u=s&&c?de(s,c,Sd):null,s!==null&&Cd(o,l,s,u,!1),c!==null&&d!==null&&Cd(o,d,c,u,!0)))}a:{if(s=r?ft(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Gn;else if(Bn(s)){if(K_)g=Zn;else{g=Yn;var _=Jn}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&_n(r.elementType)&&(g=Gn):g=Xn;if(g&&=g(e,r)){Hn(o,g,n,i);break a}_&&_(e,s,r)}switch(_=r?ft(r):window,e){case`focusin`:(Bn(_)||_.contentEditable===`true`)&&(Y_=_,X_=r,Z_=null);break;case`focusout`:Z_=X_=Y_=null;break;case`mousedown`:Q_=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Q_=!1,or(o,n,i);break;case`selectionchange`:if(J_)break;case`keydown`:case`keyup`:or(o,n,i)}var y;if(F_)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else H_?In(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===P_&&(b=`onCompositionStart`);b&&(R_&&n.locale!==`ko`&&(H_||b!==`onCompositionStart`?b===`onCompositionEnd`&&H_&&(y=kn()):(a_=i,o_=`value`in a_?a_.value:a_.textContent,H_=!0)),_=xd(r,b),0<_.length&&(b=new x_(b,e,null,n,i),o.push({event:b,listeners:_}),y?b.data=y:(y=Ln(n),y!==null&&(b.data=y)))),(y=L_?Rn(e,n):zn(e,n))&&(b=xd(r,`onBeforeInput`),0<b.length&&(_=new S_(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:_,listeners:b}),_.data=y)),pd(o,e,r,n,i)}hd(o,t)})}function bd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=On(e,n),i!=null&&r.unshift(bd(e,i,a)),i=On(e,t),i!=null&&r.push(bd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Sd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=On(n,a),l!=null&&o.unshift(bd(n,l,c))):i||(l=On(n,a),l!=null&&o.push(bd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function wd(e,t){bn(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Gg||(Gg=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:rg,possibleRegistrationNames:ig};_n(e)||typeof t.is==`string`||Sn(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Td(e,t,n,r){t!==n&&(n=jd(n),jd(t)!==n&&(r[e]=t))}function Ed(e){return!!(e.getAttribute(`vt-share`)||e.getAttribute(`vt-exit`)||e.getAttribute(`vt-enter`)||e.getAttribute(`vt-update`))}function Dd(e){if(!Ed(e))return!1;var t=e.getAttribute(`vt-name`);return e=e.style[`view-transition-name`],t?t===e:e.startsWith(`_T_`)}function Od(e,t,n){t.forEach(function(t){t===`style`?e.getAttribute(t)!==``&&(t=e.style,(t.length===1&&t[0]===`view-transition-name`||t.length===2&&t[0]===`view-transition-class`&&t[1]===`view-transition-name`)&&Dd(e)||(n.style=Rd(e))):n[Ld(t)]=e.getAttribute(t)})}function kd(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Ad(e,t){return e=e.namespaceURI===Lg||e.namespaceURI===Rg?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function jd(e){return Ie(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,Fe(e)),Le(e)),(typeof e==`string`?e:``+e).replace(Xw,`
|
|
171
|
-
`).replace(Zw,``)}function Md(e,t){return t=jd(t),jd(e)===t}function Nd(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)fn(r,t,!1),t===`body`||t===`textarea`&&r===``||pn(e,r);else if(typeof r==`number`||typeof r==`bigint`)fn(``+r,t,!1),t!==`body`&&pn(e,``+r);else return;break;case`className`:Ct(e,`class`,r);break;case`tabIndex`:Ct(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ct(e,n,r);break;case`style`:gn(e,r,a);return;case`data`:if(t!==`object`){Ct(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}Re(r,n),r=Cn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||qw||(qw=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||Kw||(Kw=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||Ww?t!==`button`||i.type==null||i.type===`submit`||Ww?typeof r==`function`&&(i.name==null||Gw||(Gw=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||qw||(qw=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||Kw||(Kw=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(Ww=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(Ww=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.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}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&Nd(e,t,`name`,i.name,i,null),Nd(e,t,`formEncType`,i.formEncType,i,null),Nd(e,t,`formMethod`,i.formMethod,i,null),Nd(e,t,`formTarget`,i.formTarget,i,null)):(Nd(e,t,`encType`,i.encType,i,null),Nd(e,t,`method`,i.method,i,null),Nd(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}Re(r,n),r=Cn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&kd(n,r),e.onclick=wn);return;case`onScroll`:r!=null&&(typeof r!=`function`&&kd(n,r),F(`scroll`,e));return;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&kd(n,r),F(`scrollend`,e));return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}Re(r,n),n=Cn(r),e.setAttributeNS(Qw,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(Re(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`inert`:r!==``||Yw[n]||(Yw[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(Re(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(Re(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(Re(r,n),e.setAttribute(n,r));break;case`popover`:F(`beforetoggle`,e),F(`toggle`,e),St(e,`popover`,r);break;case`xlinkActuate`:wt(e,Qw,`xlink:actuate`,r);break;case`xlinkArcrole`:wt(e,Qw,`xlink:arcrole`,r);break;case`xlinkRole`:wt(e,Qw,`xlink:role`,r);break;case`xlinkShow`:wt(e,Qw,`xlink:show`,r);break;case`xlinkTitle`:wt(e,Qw,`xlink:title`,r);break;case`xlinkType`:wt(e,Qw,`xlink:type`,r);break;case`xmlBase`:wt(e,$w,`xml:base`,r);break;case`xmlLang`:wt(e,$w,`xml:lang`,r);break;case`xmlSpace`:wt(e,$w,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),St(e,`is`,r);break;case`innerText`:case`textContent`:return;case`popoverTarget`:Jw||typeof r!=`object`||!r||(Jw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=vn(n),St(e,n,r);else{rg.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&kd(n,r);return}}z=!0}function Pd(e,t,n,r,i,a){switch(n){case`style`:gn(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)pn(e,r);else if(typeof r==`number`||typeof r==`bigint`)pn(e,``+r);else return;break;case`onScroll`:r!=null&&(typeof r!=`function`&&kd(n,r),F(`scroll`,e));return;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&kd(n,r),F(`scrollend`,e));return;case`onClick`:r!=null&&(typeof r!=`function`&&kd(n,r),e.onclick=wn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(rg.hasOwnProperty(n))r!=null&&typeof r!=`function`&&kd(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),a=n.slice(2,i?n.length-7:void 0),t=e[Jh]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(a,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,r,i);break a}z=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):St(e,n,r)}return}z=!0}function Fd(e,t,n){switch(wd(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:F(`error`,e),F(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nd(e,t,a,o,n,null)}}i&&Nd(e,t,`srcSet`,n.srcSet,n,null),r&&Nd(e,t,`src`,n.src,n,null);return;case`input`:vt(`input`,n),F(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nd(e,t,r,u,n,null)}}jt(e,n),Nt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in vt(`select`,n),F(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:Nd(e,t,i,s,n,null)}Rt(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&Lt(e,!!r,n,!0):Lt(e,!!r,t,!1);return;case`textarea`:for(o in vt(`textarea`,n),F(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nd(e,t,o,s,n,null)}zt(e,n),Vt(e,r,i,a);return;case`option`:for(c in Ft(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Nd(e,t,c,r,n,null)}return;case`dialog`:F(`beforetoggle`,e),F(`toggle`,e),F(`cancel`,e),F(`close`,e);break;case`iframe`:case`object`:F(`load`,e);break;case`video`:case`audio`:for(r=0;r<zw.length;r++)F(zw[r],e);break;case`image`:F(`error`,e),F(`load`,e);break;case`details`:F(`toggle`,e);break;case`embed`:case`source`:case`link`:F(`error`,e),F(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nd(e,t,l,r,n,null)}return;default:if(_n(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&Pd(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&Nd(e,t,s,r,n,null))}function Id(e,t,n,r){switch(wd(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||Nd(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:p!==d&&(z=!0),a=p;break;case`name`:p!==d&&(z=!0),i=p;break;case`checked`:p!==d&&(z=!0),l=p;break;case`defaultChecked`:p!==d&&(z=!0),u=p;break;case`value`:p!==d&&(z=!0),o=p;break;case`defaultValue`:p!==d&&(z=!0),s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&Nd(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||Uw||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),Uw=!0),!t||r||Hw||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),Hw=!0),Mt(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||Nd(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:a!==c&&(z=!0),f=a;break;case`defaultValue`:a!==c&&(z=!0),s=a;break;case`multiple`:a!==c&&(z=!0),o=a;default:a!==c&&Nd(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?Lt(e,!!t,t?[]:``,!1):Lt(e,!!t,r,!0)):Lt(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:Nd(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:i!==a&&(z=!0),f=i;break;case`defaultValue`:i!==a&&(z=!0),p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&Nd(e,t,o,i,r,a)}Bt(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:Nd(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:f!==p&&(z=!0),e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:Nd(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&Nd(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nd(e,t,l,f,r,p)}return;default:if(_n(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&Pd(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||Pd(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&Nd(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||Nd(e,t,d,f,r,p)}function Ld(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function Rd(e){for(var t={},n=e.style,r=0;r<n.length;r++){var i=n[r];i===`view-transition-name`&&Dd(e)||(t[i]=n.getPropertyValue(i))}return t}function zd(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(ze(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Ig.has(a)?(ze(o,a),r+=i+a.replace(Eg,`-$1`).toLowerCase().replace(Dg,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(Eg,`-$1`).toLowerCase().replace(Dg,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=jd(r),t=jd(t),t===r||t[t.length-1]===`;`&&Ed(e)||(n.style=Rd(e)))}}function Bd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(Re(r,t),e===``+r)return}Td(t,e,r,a)}function Vd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}Td(t,e,r,a)}function Hd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(Re(r,n),e===``+r)return}Td(t,e,r,a)}function Ud(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(Re(r,t),e===``+r))return}Td(t,e,r,a)}function Wd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(Re(r,t),n=Cn(``+r),e===n)return}Td(t,e,r,a)}function Gd(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;case`vt-name`:case`vt-update`:case`vt-enter`:case`vt-exit`:case`vt-share`:case`vt-parent-enter`:case`vt-parent-exit`:break;default:a.add(o[s].name)}if(_n(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(rg.hasOwnProperty(c))typeof l!=`function`&&kd(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||Td(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=Ad(e,l),Td(c,o,l,i));continue;case`style`:a.delete(c),zd(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=xt(e,`class`,l),Td(`className`,o,l,i);continue;default:r.context===_T&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=xt(e,c,l),Td(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(rg.hasOwnProperty(l))typeof c!=`function`&&kd(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||Td(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=Ad(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Bd(e,l,`class`,c,a,i);continue;case`tabIndex`:Bd(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),zd(e,c,i);continue;case`multiple`:a.delete(l),Td(l,e.multiple,c,i);continue;case`muted`:a.delete(l),Td(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),Td(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),Td(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Wd(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}if(o===tT){a.delete(l.toLowerCase()),Td(l,`function`,c,i);continue}Wd(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Wd(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Hd(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Hd(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Hd(e,l,l,c,a,i);continue;case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:Vd(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(Re(c,o),s===``+c)break a}Td(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(Re(c,o),s===``+c))break a}Td(o,s,c,d)}continue;case`rowSpan`:Ud(e,l,`rowspan`,c,a,i);continue;case`start`:Ud(e,l,l,c,a,i);continue;case`xHeight`:Bd(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Bd(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Bd(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Bd(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Bd(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Bd(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Bd(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Bd(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Bd(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Bd(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||Yw[l]||(Yw[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Vd(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=vn(l),o=!1,r.context===_T&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Bg.hasOwnProperty(u)&&Bg[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,yt(d)){if(u.hasAttribute(d))u=d.toLowerCase()===`nonce`?u.nonce:u.getAttribute(d),Re(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}}else s=void 0;o||Td(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&Od(e,a,i),Object.keys(i).length===0?null:i}function Kd(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function qd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Jd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&qd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&qd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Yd(e){return e.nodeType===9?e:e.ownerDocument}function Xd(e){switch(e){case Rg:return vT;case Lg:return yT;default:return _T}}function Zd(e,t){if(e===_T)switch(t){case`svg`:return vT;case`math`:return yT;default:return _T}return e===vT&&t===`foreignObject`?_T:e}function Qd(e,t,n,r){return n=Yd(n).createElement(e),n[qh]=r,n[Jh]=t,Fd(n,e,t),mt(n),n}function $d(e){if(e=e.type,typeof e!=`string`||e===``||(e=e.toLowerCase(),e===`module`||e===`importmap`||e===`speculationrules`))return!1;switch(e){case`application/ecmascript`:case`application/javascript`:case`application/x-ecmascript`:case`application/x-javascript`:case`text/ecmascript`:case`text/javascript`:case`text/javascript1.0`:case`text/javascript1.1`:case`text/javascript1.2`:case`text/javascript1.3`:case`text/javascript1.4`:case`text/javascript1.5`:case`text/jscript`:case`text/livescript`:case`text/x-ecmascript`:case`text/x-javascript`:return!1}return!0}function ef(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function tf(){var e=window.event;return e&&e.type===`popstate`?e!==wT&&(wT=e,!0):(wT=null,!1)}function nf(){var e=window.event;return e&&e!==TT?e.type:null}function rf(){var e=window.event;return e&&e!==TT?e.timeStamp:-1.1}function af(e){setTimeout(function(){throw e})}function of(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function sf(){}function cf(e,t,n,r){Id(e,t,n,r),e[Jh]=r}function lf(e){pn(e,``)}function uf(e,t,n){e.nodeValue=n}function df(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Jh]||null;if(t!==null){var n=dt(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,T(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,T(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function ff(e){return e===`head`}function pf(e,t){e.removeChild(t)}function mf(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function hf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===oT||n===iT){if(r===0){e.removeChild(i),ym(t);return}r--}else if(n===aT||n===sT||n===cT||n===lT||n===rT)r++;else if(n===uT)bp(e.ownerDocument.documentElement);else if(n===fT){n=e.ownerDocument.head,bp(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[eg]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===dT&&bp(e.ownerDocument.body)}n=i}while(n);ym(t)}function gf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===oT){if(e===0)break;e--}else n!==aT&&n!==sT&&n!==cT&&n!==lT||e++}n=r}while(n)}function _f(e){gf(e,!0)}function vf(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function yf(e){e.nodeValue=``}function bf(e){gf(e,!1)}function xf(e,t){t=t[gT],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function Sf(e,t){e.nodeValue=t}function Cf(e){for(var t=e.firstChild;t!=null;){if(t.nodeType===1&&getComputedStyle(t).display===`block`){T(dt(t)||dt(e),function(e,t){console.error(`You're about to start a <ViewTransition> around a display: inline element <%s>, which itself has a display: block element <%s> inside it. This might trigger a bug in Safari which causes the View Transition to be skipped with a duplicate name error.
|
|
172
|
-
https://bugs.webkit.org/show_bug.cgi?id=290923`,e.toLocaleLowerCase(),t.toLocaleLowerCase())},e.tagName,t.tagName);break}if(t.firstChild!=null)t=t.firstChild;else{if(t===e)break;for(;t.nextSibling==null&&t.parentNode!=null&&t.parentNode!==e;)t=t.parentNode;t=t.nextSibling}}}function wf(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1?(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom):Cf(e)}}function Tf(e,t){e=e.style,t=t[gT];var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Ef(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Df(e){return Ef(e.getBoundingClientRect(),getComputedStyle(e),e)}function Of(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ef(t,n,e)}function kf(e,t){if(typeof e==`object`&&e)switch(e.name){case`TimeoutError`:return Error(`A ViewTransition timed out because a Navigation stalled. This can happen if a Navigation is blocked on React itself. Such as if it's resolved inside useEffect. This can be solved by moving the resolution to useLayoutEffect.`,{cause:e});case`AbortError`:return t?null:Error(`A ViewTransition was aborted early. This might be because you have other View Transition libraries on the page and only one can run at a time. To avoid this, use only React's built-in <ViewTransition> to coordinate.`,{cause:e});case`InvalidStateError`:if(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)return null}return e}function Af(e){return e.documentElement.clientHeight}function jf(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mf(e,t,n,r,i,a,o,s,c,l,u){var d=t.nodeType===9?t:t.ownerDocument;try{var f=d.startViewTransition({update:function(){var t=d.defaultView,n=t.navigation&&t.navigation.transition,o=d.fonts.status;r();var s=[];if(o===`loaded`&&(Af(d),d.fonts.status===`loading`&&s.push(d.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,f=0;f<c.length;f++){var p=c[f];if(!p.complete){var m=p.getBoundingClientRect();if(0<m.bottom&&0<m.right&&m.top<t.innerHeight&&m.left<t.innerWidth){if(u+=Bp(p),u>YT){s.length=o;break}p=new Promise(jf.bind(p)),s.push(p)}}}if(0<s.length)return l(0<o?s.length>o?`Waiting on Fonts and Images`:`Waiting on Fonts`:`Waiting on Images`),t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,MT)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});d.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var e=d.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){p.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var l=n[c],u=l.width;if(i===void 0)i=u;else if(i!==u){s=!1;break}if(u=l.height,a===void 0)a=u;else if(a!==u){s=!1;break}delete l.width,delete l.height,l.transform===`none`&&delete l.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){d.__reactViewTransition===f&&(d.__reactViewTransition=null);try{e=kf(e,!1),e!==null&&c(e)}finally{r(),i(),o(),u()}}),f.finished.finally(function(){for(var e=0;e<p.length;e++)p[e].cancel();d.__reactViewTransition===f&&(d.__reactViewTransition=null),u(),s()}),f}catch{return r(),i(),u(),o(),null}}function Nf(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}function Pf(e){return{name:e,group:new Nf(`group`,e),imagePair:new Nf(`image-pair`,e),old:new Nf(`old`,e),new:new Nf(`new`,e)}}function Ff(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function If(e,t,n,r){return se(e).addEventListener(t,n,r),!1}function Lf(e,t,n,r){return se(e).removeEventListener(t,n,r),!1}function Rf(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zf(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bf(e,t,n,r){if(e.length===0)return-1;r=zf(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zf(a.optionsOrUseCapture)===r)return i}return-1}function Vf(e,t){return e.tag!==6&&(e=se(e),hp(e,t))}function Hf(e,t){return t.push(e),!1}function Uf(e,t){return e.tag!==6&&(e=se(e),e===t||e.contains(t)?(t.blur(),!0):!1)}function Wf(e,t){return e.tag!==6&&(e=se(e),t.observe(e),!1)}function Gf(e,t){return e.tag!==6&&(e=se(e),t.unobserve(e),!1)}function Kf(e,t,n){NT.push({fragmentInstance:e,observer:t,instance:n}),PT||(PT=!0,gp(function(){PT=!1;var e=NT;NT=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}function qf(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=se(e),t.push.apply(t,e.getClientRects());return!1}function Jf(e,t,n,r,i){var a=ut(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=ie(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=de(n,a,ue),t===null?t=!1:(re(t,!0,ce,a,n),a=Dm,Dm=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=de(r,a,ue),t===null?t=!1:(re(t,!0,le,a,r),a=Dm,Om=Dm=null,t=a!==null)),t):!1}function Yf(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function Xf(e,t){return e=se(e),Zf(e,t),!1}function Zf(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function Qf(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rf(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<NT.length;i++){var a=NT[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(NT[r++]=a)}NT.length=r,n.observe(e)}),Zf(e,t))}function $f(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rf(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Kf(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function ep(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ep(n),lt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tp(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){Re(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[eg])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=sp(e.nextSibling),e===null)break}return null}function np(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=sp(e.nextSibling),e===null))return null;return e}function rp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=sp(e.nextSibling),e===null))return null;return e}function ip(e){return e.data===sT||e.data===cT}function ap(e){return e.data===lT||e.data===sT&&e.ownerDocument.readyState!==hT}function op(e,t){var n=e.ownerDocument;if(e.data===cT)e._reactRetry=t;else if(e.data!==sT||n.readyState!==hT)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function sp(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===aT||t===lT||t===sT||t===cT||t===rT||t===pT||t===mT)break;if(t===oT||t===iT)return null}}return e}function cp(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[Ld(a.name)]=a.name.toLowerCase()===`style`?Rd(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===rT?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function lp(e,t,n){return n===null||!0!==n[nT]?(e.nodeValue===t?e=null:(t=jd(t),e=jd(e.nodeValue)===t?null:e.nodeValue),e):null}function up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===oT||n===iT){if(t===0)return sp(e.nextSibling);t--}else n!==aT&&n!==lT&&n!==sT&&n!==cT&&n!==rT||t++}e=e.nextSibling}return null}function dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===aT||n===lT||n===sT||n===cT||n===rT){if(t===0)return e;t--}else n!==oT&&n!==iT||t++}e=e.previousSibling}return null}function fp(e){ym(e)}function pp(e){ym(e)}function mp(e){ym(e)}function hp(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function gp(e){AT(function(){AT(function(t){return e(t)})})}function _p(e,t,n,r,i){switch(i&&dn(e,r.ancestorInfo),t=Yd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function vp(e,t,n,r){if(!n[Yh]&&dt(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Fd(n,e,t),n[qh]=r,n[Jh]=t}function yp(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&Nd(e,t,r,null,eT,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===wn&&(e.onclick=null),lt(e)}function bp(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lt(e)}function xp(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}function Sp(e,t,n){var r=WT;if(r&&typeof t==`string`&&t){var i=At(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),HT.has(i)||(HT.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),mt(t),r.head.appendChild(t)))}}function Cp(e,t,n,r){var i=(i=nh.current)?xp(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Tp(n.href),t=pt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Tp(n.href);var a=pt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:IT,preload:null}},a.set(e,o),(a=i.querySelector(Ep(e)))?a._p||(o.instance=a,o.state.loading=LT|BT):(a=VT.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},VT.set(e,a)),Op(i,e,a,o.state))),t&&r===null)throw n=`
|
|
173
|
-
|
|
174
|
-
- `+wp(t)+`
|
|
175
|
-
+ `+wp(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
|
|
176
|
-
|
|
177
|
-
- `+wp(t)+`
|
|
178
|
-
+ `+wp(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=kp(n),t=pt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function wp(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):vh.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):vh.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):vh.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Tp(e){return`href="`+At(e)+`"`}function Ep(e){return`link[rel="stylesheet"][`+e+`]`}function Dp(e){return I({},e,{"data-precedence":e.precedence,precedence:null})}function Op(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[tg]){r.loading=LT;return}}else t=e.createElement(`link`),t[tg]=!0,t.onload=t.onerror=ht.bind(null,t),Fd(t,`link`,n),mt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=LT}),t.addEventListener(`error`,function(){return r.loading|=RT})}function kp(e){return`[src="`+At(e)+`"]`}function Ap(e){return`script[async]`+e}function jp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+At(n.href)+`"]`);if(r)return t.instance=r,mt(r),r;var i=I({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),mt(r),Fd(r,`style`,i),Mp(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Tp(n.href);var a=e.querySelector(Ep(i));if(a)return t.state.loading|=BT,t.instance=a,mt(a),a;r=Dp(n),(i=VT.get(i))&&Np(r,i),a=(e.ownerDocument||e).createElement(`link`),mt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),t.state.loading|=BT,Mp(a,n.precedence,e),t.instance=a;case`script`:return a=kp(n.src),(i=e.querySelector(Ap(a)))?(t.instance=i,mt(i),i):(r=n,(i=VT.get(a))&&(r=I({},n),Pp(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),mt(i),Fd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&BT)===IT&&(r=t.instance,t.state.loading|=BT,Mp(r,n.precedence,e));return t.instance}function Mp(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Np(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Pp(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Fp(e,t,n){if(GT===null){var r=new Map,i=GT=new Map;i.set(n,r)}else i=GT,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[eg]||a[qh]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Rg){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ip(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Lp(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===vT||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Kd(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Rp(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function zp(e){return e.type!==`stylesheet`||(e.state.loading&zT)!==IT}function Bp(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Vp(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Bp(t),e.suspenseyImages.push(t)),e=Kp.bind(e),t.decode().then(e,e))}function Hp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&BT)===IT){if(n.instance===null){var i=Tp(r.href),a=t.querySelector(Ep(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Gp.bind(e),t.then(e,e)),n.state.loading|=BT,n.instance=a,mt(a);return}a=t.ownerDocument||t,r=Dp(r),(i=VT.get(i))&&Np(r,i),a=a.createElement(`link`),mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&zT)===IT&&(e.count++,n=Gp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Up(e,t){return e.stylesheets&&e.count===0&&qp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&qp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},KT+t);0<e.imgBytes&&YT===0&&(YT=125*Jd()*JT);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>YT?50:qT)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Wp(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)qp(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Gp(){this.count--,Wp(this)}function Kp(){this.imgCount--,Wp(this)}function qp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ZT=new Map,t.forEach(Jp,e),ZT=null,Gp.call(e))}function Jp(e,t){if(!(t.state.loading&BT)){var n=ZT.get(e);if(n)var r=n.get(XT);else{n=new Map,ZT.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(XT,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(XT,i),n.set(o,i),this.count++,r=Gp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=BT}}function Yp(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=OT,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Xp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Yp(e,t,n,o,c,l,u,d,s),t=Hv,!0===a&&(t|=Uv|Wv),t|=U,a=p(3,null,null,t),e.current=a,a.stateNode=e,t=Di(),Oi(t),e.pooledCache=t,Oi(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Sa(a),e}function Zp(e){return e?(e=zv,e):zv}function Qp(e,t,n,r,i,a){if(Nh&&typeof Nh.onScheduleFiberRoot==`function`)try{Nh.onScheduleFiberRoot(Mh,r,n)}catch(e){Ph||(Ph=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Zp(i),r.context===null?r.context=i:r.pendingContext=i,_h&&gh!==null&&!aE&&(aE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
179
|
-
|
|
180
|
-
Check the render method of %s.`,w(gh)||`Unknown`)),r=wa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=Ta(e,r,t),n!==null&&(Mi(t,`root.render()`,null),au(n,e,t),Ea(n,e,t))}function $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function em(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function tm(e){if(e.tag===13||e.tag===31){var t=Pr(e,67108864);t!==null&&au(t,e,67108864),em(e,67108864)}}function nm(e){if(e.tag===13||e.tag===31){var t=nu(e);t=rt(t);var n=Pr(e,t);n!==null&&au(n,e,t),em(e,t)}}function rm(){return gh}function im(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=Hh,om(e,t,n,r)}finally{R.p=a,L.T=i}}function am(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=Uh,om(e,t,n,r)}finally{R.p=a,L.T=i}}function om(e,t,n,r){if(gE){var i=sm(r);if(i===null)yd(e,t,r,_E,n),um(e,r);else if(fm(i,e,t,n,r))r.stopPropagation();else if(um(e,r),t&4&&-1<TE.indexOf(e)){for(;i!==null;){var a=dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ih(o);s.entanglements[1]|=c,o&=~c}nd(a),(X&(aC|oC))===iC&&(HC=Ch()+UC,rd(0,!1))}}break;case 31:case 13:s=Pr(a,2),s!==null&&au(s,a,2),uu(),em(a,2)}if(a=sm(r),a===null&&yd(e,t,r,_E,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else yd(e,t,r,null,n)}}function sm(e){return e=Tn(e),cm(e)}function cm(e){if(_E=null,e=ut(e),e!==null){var t=v(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=y(t),e!==null)return e;e=null}else if(n===31){if(e=b(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _E=e,null}function lm(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return Hh;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return Uh;case`message`:switch(wh()){case Th:return Hh;case Eh:return Uh;case Dh:case Oh:return Wh;case kh:return Gh;default:return Wh}default:return Wh}}function um(e,t){switch(e){case`focusin`:case`focusout`:yE=null;break;case`dragenter`:case`dragleave`:bE=null;break;case`mouseover`:case`mouseout`:xE=null;break;case`pointerover`:case`pointerout`:SE.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:CE.delete(t.pointerId)}}function dm(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=dt(t),t!==null&&tm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fm(e,t,n,r,i){switch(t){case`focusin`:return yE=dm(yE,e,t,n,r,i),!0;case`dragenter`:return bE=dm(bE,e,t,n,r,i),!0;case`mouseover`:return xE=dm(xE,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return SE.set(a,dm(SE.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,CE.set(a,dm(CE.get(a)||null,e,t,n,r,i)),!0}return!1}function pm(e){var t=ut(e.target);if(t!==null){var n=v(t);if(n!==null){if(t=n.tag,t===13){if(t=y(n),t!==null){e.blockedOn=t,ct(e.priority,function(){nm(n)});return}}else if(t===31){if(t=b(n),t!==null){e.blockedOn=t,ct(e.priority,function(){nm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sm(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Qg!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Qg=i,n.target.dispatchEvent(r),Qg===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),Qg=null}else return t=dt(n),t!==null&&tm(t),e.blockedOn=n,!1;t.shift()}return!0}function hm(e,t,n){mm(e)&&n.delete(t)}function gm(){vE=!1,yE!==null&&mm(yE)&&(yE=null),bE!==null&&mm(bE)&&(bE=null),xE!==null&&mm(xE)&&(xE=null),SE.forEach(hm),CE.forEach(hm)}function _m(e,t){e.blockedOn===t&&(e.blockedOn=null,vE||(vE=!0,wm.unstable_scheduleCallback(wm.unstable_NormalPriority,gm)))}function vm(e){EE!==e&&(EE=e,wm.unstable_scheduleCallback(wm.unstable_NormalPriority,function(){EE===e&&(EE=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(cm(r||n)===null)continue;break}var a=dt(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),is(a,n,r,i))}}))}function ym(e){function t(t){return _m(t,e)}yE!==null&&_m(yE,e),bE!==null&&_m(bE,e),xE!==null&&_m(xE,e),SE.forEach(t),CE.forEach(t);for(var n=0;n<wE.length;n++){var r=wE[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wE.length&&(n=wE[0],n.blockedOn===null);)pm(n),n.blockedOn===null&&wE.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Jh]||null;if(typeof a==`function`)o||vm(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Jh]||null)s=o.formAction;else if(cm(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),vm(n)}}}function bm(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function xm(e){this._internalRoot=e}function Sm(e){this._internalRoot=e}function Cm(e){e[Yh]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var wm=tn(),Tm=nt(),Em=rn(),Dm=null,Om=null,I=Object.assign,km=Symbol.for(`react.element`),Am=Symbol.for(`react.transitional.element`),jm=Symbol.for(`react.portal`),Mm=Symbol.for(`react.fragment`),Nm=Symbol.for(`react.strict_mode`),Pm=Symbol.for(`react.profiler`),Fm=Symbol.for(`react.consumer`),Im=Symbol.for(`react.context`),Lm=Symbol.for(`react.forward_ref`),Rm=Symbol.for(`react.suspense`),zm=Symbol.for(`react.suspense_list`),Bm=Symbol.for(`react.memo`),Vm=Symbol.for(`react.lazy`),Hm=Symbol.for(`react.activity`),Um=Symbol.for(`react.legacy_hidden`),Wm=Symbol.for(`react.memo_cache_sentinel`),Gm=Symbol.for(`react.view_transition`),Km=Symbol.for(`react.recoverable`),qm=Symbol.iterator,Jm=Symbol.for(`react.client.reference`),Ym=Array.isArray,L=Tm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Em.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xm=Object.freeze({pending:!1,data:null,method:null,action:null}),Zm=[],Qm=[],$m=-1,eh=me(null),th=me(null),nh=me(null),rh=me(null),ih=0,ah,oh,sh,ch,lh,uh,dh;Ce.__reactDisabledLog=!0;var fh,ph,mh=!1,hh=new(typeof WeakMap==`function`?WeakMap:Map),gh=null,_h=!1,vh=Object.prototype.hasOwnProperty,yh=wm.unstable_scheduleCallback,bh=wm.unstable_cancelCallback,xh=wm.unstable_shouldYield,Sh=wm.unstable_requestPaint,Ch=wm.unstable_now,wh=wm.unstable_getCurrentPriorityLevel,Th=wm.unstable_ImmediatePriority,Eh=wm.unstable_UserBlockingPriority,Dh=wm.unstable_NormalPriority,Oh=wm.unstable_LowPriority,kh=wm.unstable_IdlePriority,Ah=wm.log,jh=wm.unstable_setDisableYieldValue,Mh=null,Nh=null,Ph=!1,Fh=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Ih=Math.clz32?Math.clz32:Ue,Lh=Math.log,Rh=Math.LN2,zh=256,Bh=262144,Vh=4194304,Hh=2,Uh=8,Wh=32,Gh=268435456,Kh=Math.random().toString(36).slice(2),qh=`__reactFiber$`+Kh,Jh=`__reactProps$`+Kh,Yh=`__reactContainer$`+Kh,Xh=`__reactEvents$`+Kh,Zh=`__reactListeners$`+Kh,Qh=`__reactHandles$`+Kh,$h=`__reactResources$`+Kh,eg=`__reactMarker$`+Kh,tg=`__reactLoad$`+Kh,ng=new Set,rg={},ig={},ag={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},og=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]*$`),sg={},cg={},z=!1,lg=/[\n"\\]/g,ug=!1,dg=!1,fg=!1,pg=!1,mg=!1,hg=!1,gg=[`value`,`defaultValue`],_g=!1,vg=/["'&<>\n\t]|^\s|\s$/,yg=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),bg=`applet caption html table td th marquee object select template foreignObject desc title`.split(` `),xg=bg.concat([`button`]),Sg=`dd dt li option optgroup p rp rt`.split(` `),Cg={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},wg={},Tg={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlock:`borderBlockEndColor borderBlockEndStyle borderBlockEndWidth borderBlockStartColor borderBlockStartStyle borderBlockStartWidth`.split(` `),borderBlockColor:[`borderBlockEndColor`,`borderBlockStartColor`],borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBlockStyle:[`borderBlockEndStyle`,`borderBlockStartStyle`],borderBlockWidth:[`borderBlockEndWidth`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInline:`borderInlineEndColor borderInlineEndStyle borderInlineEndWidth borderInlineStartColor borderInlineStartStyle borderInlineStartWidth`.split(` `),borderInlineColor:[`borderInlineEndColor`,`borderInlineStartColor`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderInlineStyle:[`borderInlineEndStyle`,`borderInlineStartStyle`],borderInlineWidth:[`borderInlineEndWidth`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],colorAdjust:[`printColorAdjust`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],containIntrinsicSize:[`containIntrinsicHeight`,`containIntrinsicWidth`],container:[`containerName`,`containerType`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontSynthesis:[`fontSynthesisPosition`,`fontSynthesisSmallCaps`,`fontSynthesisStyle`,`fontSynthesisWeight`],fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],inset:[`bottom`,`left`,`right`,`top`],insetBlock:[`insetBlockEnd`,`insetBlockStart`],insetInline:[`insetInlineEnd`,`insetInlineStart`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marginBlock:[`marginBlockEnd`,`marginBlockStart`],marginInline:[`marginInlineEnd`,`marginInlineStart`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],offset:[`offsetAnchor`,`offsetDistance`,`offsetPath`,`offsetPosition`,`offsetRotate`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],overscrollBehavior:[`overscrollBehaviorX`,`overscrollBehaviorY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],paddingBlock:[`paddingBlockEnd`,`paddingBlockStart`],paddingInline:[`paddingInlineEnd`,`paddingInlineStart`],pageBreakAfter:[`breakAfter`],pageBreakBefore:[`breakBefore`],pageBreakInside:[`breakInside`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],scrollMargin:[`scrollMarginBottom`,`scrollMarginLeft`,`scrollMarginRight`,`scrollMarginTop`],scrollMarginBlock:[`scrollMarginBlockEnd`,`scrollMarginBlockStart`],scrollMarginInline:[`scrollMarginInlineEnd`,`scrollMarginInlineStart`],scrollPadding:[`scrollPaddingBottom`,`scrollPaddingLeft`,`scrollPaddingRight`,`scrollPaddingTop`],scrollPaddingBlock:[`scrollPaddingBlockEnd`,`scrollPaddingBlockStart`],scrollPaddingInline:[`scrollPaddingInlineEnd`,`scrollPaddingInlineStart`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`,`textDecorationThickness`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],textWrap:[`textWrapMode`,`textWrapStyle`],transition:[`transitionBehavior`,`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],verticalAlign:[`alignmentBaseline`,`baselineShift`,`baselineSource`],whiteSpace:[`textWrapMode`,`whiteSpaceCollapse`],wordWrap:[`overflowWrap`]},Eg=/([A-Z])/g,Dg=/^ms-/,Og=/^(?:webkit|moz|o)[A-Z]/,kg=/^-ms-/,Ag=/-(.)/g,jg=/;\s*$/,Mg={},Ng={},Pg=!1,Fg=!1,Ig=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(` `)),Lg=`http://www.w3.org/1998/Math/MathML`,Rg=`http://www.w3.org/2000/svg`,zg=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Bg={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,credentialless:`credentialless`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,masktype:`maskType`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Vg={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Hg={},Ug=RegExp(`^(aria)-[: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]*$`),Wg=RegExp(`^(aria)[A-Z][: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]*$`),Gg=!1,Kg={},qg=/^on./,Jg=/^on[^A-Z]/,Yg=RegExp(`^(aria)-[: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]*$`),Xg=RegExp(`^(aria)[A-Z][: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]*$`),Zg=/^[\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,Qg=null,$g=null,e_=null,t_=!1,n_=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,r_=!1;if(n_)try{var i_={};Object.defineProperty(i_,"passive",{get:function(){r_=!0}}),window.addEventListener(`test`,i_,i_),window.removeEventListener(`test`,i_,i_)}catch{r_=!1}var a_=null,o_=null,s_=null,c_={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},l_=Nn(c_),u_=I({},c_,{view:0,detail:0}),d_=Nn(u_),f_,p_,m_,h_=I({},u_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==m_&&(m_&&e.type===`mousemove`?(f_=e.screenX-m_.screenX,p_=e.screenY-m_.screenY):p_=f_=0,m_=e),f_)},movementY:function(e){return`movementY`in e?e.movementY:p_}}),g_=Nn(h_),__=Nn(I({},h_,{dataTransfer:0})),v_=Nn(I({},u_,{relatedTarget:0})),y_=Nn(I({},c_,{animationName:0,elapsedTime:0,pseudoElement:0})),b_=Nn(I({},c_,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),x_=Nn(I({},c_,{data:0})),S_=x_,C_={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},w_={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`},T_={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},E_=Nn(I({},u_,{key:function(e){if(e.key){var t=C_[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=An(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?w_[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?An(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?An(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),D_=Nn(I({},h_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),O_=Nn(I({},c_,{submitter:0})),k_=Nn(I({},u_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),A_=Nn(I({},c_,{propertyName:0,elapsedTime:0,pseudoElement:0})),j_=Nn(I({},h_,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),M_=Nn(I({},c_,{newState:0,oldState:0,source:0})),N_=[9,13,27,32],P_=229,F_=n_&&`CompositionEvent`in window,I_=null;n_&&`documentMode`in document&&(I_=document.documentMode);var L_=n_&&`TextEvent`in window&&!I_,R_=n_&&(!F_||I_&&8<I_&&11>=I_),z_=32,B_=String.fromCharCode(z_),V_=!1,H_=!1,U_={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},W_=null,G_=null,K_=!1;n_&&(K_=Vn(`input`)&&(!document.documentMode||9<document.documentMode));var q_=typeof Object.is==`function`?Object.is:Qn,J_=n_&&`documentMode`in document&&11>=document.documentMode,Y_=null,X_=null,Z_=null,Q_=!1,$_={animationend:sr(`Animation`,`AnimationEnd`),animationiteration:sr(`Animation`,`AnimationIteration`),animationstart:sr(`Animation`,`AnimationStart`),transitionrun:sr(`Transition`,`TransitionRun`),transitionstart:sr(`Transition`,`TransitionStart`),transitioncancel:sr(`Transition`,`TransitionCancel`),transitionend:sr(`Transition`,`TransitionEnd`)},ev={},tv={};n_&&(tv=document.createElement(`div`).style,`AnimationEvent`in window||(delete $_.animationend.animation,delete $_.animationiteration.animation,delete $_.animationstart.animation),`TransitionEvent`in window||delete $_.transitionend.transition);var nv=cr(`animationend`),rv=cr(`animationiteration`),iv=cr(`animationstart`),av=cr(`transitionrun`),ov=cr(`transitionstart`),sv=cr(`transitioncancel`),cv=cr(`transitionend`),lv=new Map,uv=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);uv.push(`scrollEnd`);var dv=0,fv=0;if(typeof performance==`object`&&typeof performance.now==`function`)var pv=performance,mv=function(){return pv.now()};else{var hv=Date;mv=function(){return hv.now()}}var gv=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},_v=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,vv=0,yv=1,bv=2,xv=3,Sv=100,Cv=`-\xA0`,wv=`+\xA0`,Tv=` \xA0`,Ev=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,Dv=`Components ⚛`,B=`Scheduler ⚛`,V=`Blocking`,Ov=!1,kv={color:`primary`,properties:null,tooltipText:``,track:Dv},Av={start:-0,end:-0,detail:{devtools:kv}},jv=[`Changed Props`,``],Mv=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Nv=[`Changed Props`,Mv],Pv=1,Fv=2,Iv=[],Lv=0,Rv=0,zv={};Object.freeze(zv);var Bv=null,Vv=null,H=0,Hv=1,U=2,Uv=8,Wv=16,Gv=32,Kv=!1;try{Object.preventExtensions({})}catch{Kv=!0}var qv=new WeakMap,Jv=[],Yv=0,Xv=null,Zv=0,Qv=[],$v=0,ey=null,ty=1,ny=``,ry=null,iy=null,W=!1,ay=!1,oy=null,sy=null,cy=!1,ly=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),uy=me(null),dy=me(null),fy={},py=null,my=null,hy=!1,gy=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},_y=wm.unstable_scheduleCallback,vy=wm.unstable_NormalPriority,yy={$$typeof:Im,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},by=null,xy=wm.unstable_now,Sy=console.createTask?console.createTask:function(){return null},Cy=1,wy=2,Ty=-0,Ey=-0,Dy=-0,Oy=null,ky=-1.1,Ay=-0,jy=-0,G=-1.1,K=-1.1,My=null,Ny=!1,Py=-0,Fy=-1.1,Iy=null,Ly=0,Ry=null,zy=null,By=-1.1,Vy=null,Hy=-1.1,Uy=-1.1,Wy=-0,Gy=-1.1,Ky=-1.1,qy=0,Jy=null,Yy=null,Xy=null,Zy=-1.1,Qy=null,$y=-1.1,eb=-1.1,tb=-0,nb=-0,rb=0,ib=null,ab=0,ob=-1.1,sb=!1,cb=!1,lb=null,ub=0,db=0,fb=null,pb=L.S;L.S=function(e,t){if(BC=Ch(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>Gy&&0>Ky){Gy=xy();var n=rf(),r=nf();(n!==$y||r!==Qy)&&($y=-1.1),Zy=n,Qy=r}Zi(e,t)}if(by!==null)for(n=jw;n!==null;)Ai(n,by),n=n.next;if(n=e.types,n!==null){for(r=jw;r!==null;)Ai(r,n),r=r.next;if(db!==0){r=by,r===null&&(r=by=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}pb!==null&&pb(e,t)};var mb=me(null),hb={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},gb=[],_b=[],vb=[],yb=[],bb=[],xb=[],Sb=new Set;hb.recordUnsafeLifecycleWarnings=function(e,t){Sb.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&gb.push(e),e.mode&Uv&&typeof t.UNSAFE_componentWillMount==`function`&&_b.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&vb.push(e),e.mode&Uv&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&yb.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&bb.push(e),e.mode&Uv&&typeof t.UNSAFE_componentWillUpdate==`function`&&xb.push(e))},hb.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<gb.length&&(gb.forEach(function(t){e.add(w(t)||`Component`),Sb.add(t.type)}),gb=[]);var t=new Set;0<_b.length&&(_b.forEach(function(e){t.add(w(e)||`Component`),Sb.add(e.type)}),_b=[]);var n=new Set;0<vb.length&&(vb.forEach(function(e){n.add(w(e)||`Component`),Sb.add(e.type)}),vb=[]);var r=new Set;0<yb.length&&(yb.forEach(function(e){r.add(w(e)||`Component`),Sb.add(e.type)}),yb=[]);var i=new Set;0<bb.length&&(bb.forEach(function(e){i.add(w(e)||`Component`),Sb.add(e.type)}),bb=[]);var a=new Set;if(0<xb.length&&(xb.forEach(function(e){a.add(w(e)||`Component`),Sb.add(e.type)}),xb=[]),0<t.size){var o=f(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
181
|
-
|
|
182
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
183
|
-
|
|
184
|
-
Please update the following components: %s`,o)}0<r.size&&(o=f(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
|
-
|
|
186
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
187
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
188
|
-
|
|
189
|
-
Please update the following components: %s`,o)),0<a.size&&(o=f(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
190
|
-
|
|
191
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
192
|
-
|
|
193
|
-
Please update the following components: %s`,o)),0<e.size&&(o=f(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
-
|
|
195
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
196
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
197
|
-
|
|
198
|
-
Please update the following components: %s`,o)),0<n.size&&(o=f(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
199
|
-
|
|
200
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
201
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
202
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
203
|
-
|
|
204
|
-
Please update the following components: %s`,o)),0<i.size&&(o=f(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
205
|
-
|
|
206
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
207
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
208
|
-
|
|
209
|
-
Please update the following components: %s`,o))};var Cb=new Map,wb=new Set;hb.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Uv&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!wb.has(e.type)&&(r=Cb.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],Cb.set(n,r)),r.push(e))},hb.flushLegacyContextWarning=function(){Cb.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(w(e)||`Component`),wb.add(e.type)});var r=f(n);T(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
210
|
-
|
|
211
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
212
|
-
|
|
213
|
-
Please update the following components: %s
|
|
214
|
-
|
|
215
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},hb.discardPendingWarnings=function(){gb=[],_b=[],vb=[],yb=[],bb=[],xb=[],Cb=new Map};var Tb=``,Eb={react_stack_bottom_frame:function(e,t,n){var r=_h;_h=!0;try{return e(t,n)}finally{_h=r}}},Db=Eb.react_stack_bottom_frame.bind(Eb),Ob={react_stack_bottom_frame:function(e){var t=_h;_h=!0;try{return e.render()}finally{_h=t}}},kb=Ob.react_stack_bottom_frame.bind(Ob),Ab={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){P(e,e.return,t)}}},jb=Ab.react_stack_bottom_frame.bind(Ab),Mb={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){P(e,e.return,t)}}},Nb=Mb.react_stack_bottom_frame.bind(Mb),Pb={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Fb=Pb.react_stack_bottom_frame.bind(Pb),Ib={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){P(e,t,n)}}},Lb=Ib.react_stack_bottom_frame.bind(Ib),Rb={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},zb=Rb.react_stack_bottom_frame.bind(Rb),Bb={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){P(e,t,n)}}},Vb=Bb.react_stack_bottom_frame.bind(Bb),Hb={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Ub=Hb.react_stack_bottom_frame.bind(Hb),Wb=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Gb=Error(`Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),Kb=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),qb={then:function(){console.error(`Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.`)}},Jb=null,Yb=null,Xb=!1,Zb=null,Qb=!1,$b=null,ex=0,q=null,tx,nx=tx=!1,rx={},ix={},ax={};d=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=w(e),i=r||`null`;if(!rx[i]){rx[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=w(e))&&(a=`
|
|
216
|
-
|
|
217
|
-
Check the render method of \``+i+"`."),a||r&&(a=`
|
|
218
|
-
|
|
219
|
-
Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=w(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),T(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var ox=ba(!0),sx=ba(!1),cx=0,lx=1,ux=2,dx=3,fx=!1,px=!1,mx=null,hx=!1,gx=me(null),_x=me(0),vx=me(null),yx=null,bx=1,xx=2,Sx=me(0),Cx=0,wx=1,Tx=2,Ex=4,Dx=8,Ox,kx=new Set,Ax=new Set,jx=new Set,Mx=new Set,Nx=0,J=null,Px=null,Fx=null,Ix=!1,Lx=!1,Rx=!1,zx=0,Bx=0,Vx=null,Hx=0,Ux=25,Y=null,Wx=null,Gx=-1,Kx=!1,qx={readContext:wi,use:io,useCallback:Ka,useContext:Ka,useEffect:Ka,useImperativeHandle:Ka,useLayoutEffect:Ka,useInsertionEffect:Ka,useMemo:Ka,useReducer:Ka,useRef:Ka,useState:Ka,useDebugValue:Ka,useDeferredValue:Ka,useTransition:Ka,useSyncExternalStore:Ka,useId:Ka,useHostTransitionStatus:Ka,useFormState:Ka,useActionState:Ka,useOptimistic:Ka,useMemoCache:Ka,useCacheRefresh:Ka,useEffectEvent:Ka},Jx=null,Yx=null,Xx=null,Zx=null,Qx=null,$x=null,eS=null;Jx={readContext:function(e){return wi(e)},use:io,useCallback:function(e,t){return Y=`useCallback`,O(),Wa(t),qo(e,t)},useContext:function(e){return Y=`useContext`,O(),wi(e)},useEffect:function(e,t){return Y=`useEffect`,O(),Wa(t),Bo(e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,O(),Wa(n),Go(e,t,n)},useInsertionEffect:function(e,t){Y=`useInsertionEffect`,O(),Wa(t),Ro(4,Tx,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,O(),Wa(t),Wo(e,t)},useMemo:function(e,t){Y=`useMemo`,O(),Wa(t);var n=L.H;L.H=Qx;try{return Yo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){Y=`useReducer`,O();var r=L.H;L.H=Qx;try{return so(e,t,n)}finally{L.H=r}},useRef:function(e){return Y=`useRef`,O(),j(e)},useState:function(e){Y=`useState`,O();var t=L.H;L.H=Qx;try{return bo(e)}finally{L.H=t}},useDebugValue:function(){Y=`useDebugValue`,O()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,O(),Zo(e,t)},useTransition:function(){return Y=`useTransition`,O(),ss()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,O(),fo(e,t,n)},useId:function(){return Y=`useId`,O(),ds()},useFormState:function(e,t){return Y=`useFormState`,O(),Ga(),Mo(e,t)},useActionState:function(e,t){return Y=`useActionState`,O(),Mo(e,t)},useOptimistic:function(e){return Y=`useOptimistic`,O(),xo(e)},useHostTransitionStatus:us,useMemoCache:ao,useCacheRefresh:function(){return Y=`useCacheRefresh`,O(),fs()},useEffectEvent:function(e){return Y=`useEffectEvent`,O(),Ho(e)}},Yx={readContext:function(e){return wi(e)},use:io,useCallback:function(e,t){return Y=`useCallback`,k(),qo(e,t)},useContext:function(e){return Y=`useContext`,k(),wi(e)},useEffect:function(e,t){return Y=`useEffect`,k(),Bo(e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,k(),Go(e,t,n)},useInsertionEffect:function(e,t){Y=`useInsertionEffect`,k(),Ro(4,Tx,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,k(),Wo(e,t)},useMemo:function(e,t){Y=`useMemo`,k();var n=L.H;L.H=Qx;try{return Yo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){Y=`useReducer`,k();var r=L.H;L.H=Qx;try{return so(e,t,n)}finally{L.H=r}},useRef:function(e){return Y=`useRef`,k(),j(e)},useState:function(e){Y=`useState`,k();var t=L.H;L.H=Qx;try{return bo(e)}finally{L.H=t}},useDebugValue:function(){Y=`useDebugValue`,k()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,k(),Zo(e,t)},useTransition:function(){return Y=`useTransition`,k(),ss()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,k(),fo(e,t,n)},useId:function(){return Y=`useId`,k(),ds()},useActionState:function(e,t){return Y=`useActionState`,k(),Mo(e,t)},useFormState:function(e,t){return Y=`useFormState`,k(),Ga(),Mo(e,t)},useOptimistic:function(e){return Y=`useOptimistic`,k(),xo(e)},useHostTransitionStatus:us,useMemoCache:ao,useCacheRefresh:function(){return Y=`useCacheRefresh`,k(),fs()},useEffectEvent:function(e){return Y=`useEffectEvent`,k(),Ho(e)}},Xx={readContext:function(e){return wi(e)},use:io,useCallback:function(e,t){return Y=`useCallback`,k(),Jo(e,t)},useContext:function(e){return Y=`useContext`,k(),wi(e)},useEffect:function(e,t){Y=`useEffect`,k(),zo(2048,Dx,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,k(),Ko(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,k(),zo(4,Tx,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,k(),zo(4,Ex,e,t)},useMemo:function(e,t){Y=`useMemo`,k();var n=L.H;L.H=$x;try{return Xo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){Y=`useReducer`,k();var r=L.H;L.H=$x;try{return co(e,t,n)}finally{L.H=r}},useRef:function(){return Y=`useRef`,k(),A().memoizedState},useState:function(){Y=`useState`,k();var e=L.H;L.H=$x;try{return co(oo)}finally{L.H=e}},useDebugValue:function(){Y=`useDebugValue`,k()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,k(),Qo(e,t)},useTransition:function(){return Y=`useTransition`,k(),cs()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,k(),po(e,t,n)},useId:function(){return Y=`useId`,k(),A().memoizedState},useFormState:function(e){return Y=`useFormState`,k(),Ga(),No(e)},useActionState:function(e){return Y=`useActionState`,k(),No(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,k(),So(e,t)},useHostTransitionStatus:us,useMemoCache:ao,useCacheRefresh:function(){return Y=`useCacheRefresh`,k(),A().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,k(),Uo(e)}},Zx={readContext:function(e){return wi(e)},use:io,useCallback:function(e,t){return Y=`useCallback`,k(),Jo(e,t)},useContext:function(e){return Y=`useContext`,k(),wi(e)},useEffect:function(e,t){Y=`useEffect`,k(),zo(2048,Dx,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,k(),Ko(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,k(),zo(4,Tx,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,k(),zo(4,Ex,e,t)},useMemo:function(e,t){Y=`useMemo`,k();var n=L.H;L.H=eS;try{return Xo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){Y=`useReducer`,k();var r=L.H;L.H=eS;try{return uo(e,t,n)}finally{L.H=r}},useRef:function(){return Y=`useRef`,k(),A().memoizedState},useState:function(){Y=`useState`,k();var e=L.H;L.H=eS;try{return uo(oo)}finally{L.H=e}},useDebugValue:function(){Y=`useDebugValue`,k()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,k(),$o(e,t)},useTransition:function(){return Y=`useTransition`,k(),ls()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,k(),po(e,t,n)},useId:function(){return Y=`useId`,k(),A().memoizedState},useFormState:function(e){return Y=`useFormState`,k(),Ga(),Io(e)},useActionState:function(e){return Y=`useActionState`,k(),Io(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,k(),wo(e,t)},useHostTransitionStatus:us,useMemoCache:ao,useCacheRefresh:function(){return Y=`useCacheRefresh`,k(),A().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,k(),Uo(e)}},Qx={readContext:function(e){return l(),wi(e)},use:function(e){return c(),io(e)},useCallback:function(e,t){return Y=`useCallback`,c(),O(),qo(e,t)},useContext:function(e){return Y=`useContext`,c(),O(),wi(e)},useEffect:function(e,t){return Y=`useEffect`,c(),O(),Bo(e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,c(),O(),Go(e,t,n)},useInsertionEffect:function(e,t){Y=`useInsertionEffect`,c(),O(),Ro(4,Tx,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,c(),O(),Wo(e,t)},useMemo:function(e,t){Y=`useMemo`,c(),O();var n=L.H;L.H=Qx;try{return Yo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){Y=`useReducer`,c(),O();var r=L.H;L.H=Qx;try{return so(e,t,n)}finally{L.H=r}},useRef:function(e){return Y=`useRef`,c(),O(),j(e)},useState:function(e){Y=`useState`,c(),O();var t=L.H;L.H=Qx;try{return bo(e)}finally{L.H=t}},useDebugValue:function(){Y=`useDebugValue`,c(),O()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,c(),O(),Zo(e,t)},useTransition:function(){return Y=`useTransition`,c(),O(),ss()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,c(),O(),fo(e,t,n)},useId:function(){return Y=`useId`,c(),O(),ds()},useFormState:function(e,t){return Y=`useFormState`,c(),O(),Mo(e,t)},useActionState:function(e,t){return Y=`useActionState`,c(),O(),Mo(e,t)},useOptimistic:function(e){return Y=`useOptimistic`,c(),O(),xo(e)},useMemoCache:function(e){return c(),ao(e)},useHostTransitionStatus:us,useCacheRefresh:function(){return Y=`useCacheRefresh`,O(),fs()},useEffectEvent:function(e){return Y=`useEffectEvent`,c(),O(),Ho(e)}},$x={readContext:function(e){return l(),wi(e)},use:function(e){return c(),io(e)},useCallback:function(e,t){return Y=`useCallback`,c(),k(),Jo(e,t)},useContext:function(e){return Y=`useContext`,c(),k(),wi(e)},useEffect:function(e,t){Y=`useEffect`,c(),k(),zo(2048,Dx,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,c(),k(),Ko(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,c(),k(),zo(4,Tx,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,c(),k(),zo(4,Ex,e,t)},useMemo:function(e,t){Y=`useMemo`,c(),k();var n=L.H;L.H=$x;try{return Xo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){Y=`useReducer`,c(),k();var r=L.H;L.H=$x;try{return co(e,t,n)}finally{L.H=r}},useRef:function(){return Y=`useRef`,c(),k(),A().memoizedState},useState:function(){Y=`useState`,c(),k();var e=L.H;L.H=$x;try{return co(oo)}finally{L.H=e}},useDebugValue:function(){Y=`useDebugValue`,c(),k()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,c(),k(),Qo(e,t)},useTransition:function(){return Y=`useTransition`,c(),k(),cs()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,c(),k(),po(e,t,n)},useId:function(){return Y=`useId`,c(),k(),A().memoizedState},useFormState:function(e){return Y=`useFormState`,c(),k(),No(e)},useActionState:function(e){return Y=`useActionState`,c(),k(),No(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,c(),k(),So(e,t)},useMemoCache:function(e){return c(),ao(e)},useHostTransitionStatus:us,useCacheRefresh:function(){return Y=`useCacheRefresh`,k(),A().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,c(),k(),Uo(e)}},eS={readContext:function(e){return l(),wi(e)},use:function(e){return c(),io(e)},useCallback:function(e,t){return Y=`useCallback`,c(),k(),Jo(e,t)},useContext:function(e){return Y=`useContext`,c(),k(),wi(e)},useEffect:function(e,t){Y=`useEffect`,c(),k(),zo(2048,Dx,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,c(),k(),Ko(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,c(),k(),zo(4,Tx,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,c(),k(),zo(4,Ex,e,t)},useMemo:function(e,t){Y=`useMemo`,c(),k();var n=L.H;L.H=$x;try{return Xo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){Y=`useReducer`,c(),k();var r=L.H;L.H=$x;try{return uo(e,t,n)}finally{L.H=r}},useRef:function(){return Y=`useRef`,c(),k(),A().memoizedState},useState:function(){Y=`useState`,c(),k();var e=L.H;L.H=$x;try{return uo(oo)}finally{L.H=e}},useDebugValue:function(){Y=`useDebugValue`,c(),k()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,c(),k(),$o(e,t)},useTransition:function(){return Y=`useTransition`,c(),k(),ls()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,c(),k(),po(e,t,n)},useId:function(){return Y=`useId`,c(),k(),A().memoizedState},useFormState:function(e){return Y=`useFormState`,c(),k(),Io(e)},useActionState:function(e){return Y=`useActionState`,c(),k(),Io(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,c(),k(),wo(e,t)},useMemoCache:function(e){return c(),ao(e)},useHostTransitionStatus:us,useCacheRefresh:function(){return Y=`useCacheRefresh`,k(),A().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,c(),k(),Uo(e)}};var tS={},nS=new Set,rS=new Set,iS=new Set,aS=new Set,oS=new Set,sS=new Set,cS=new Set,lS=new Set,uS=new Set,dS=new Set;Object.freeze(tS);var fS={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nu(e),i=wa(r);i.payload=t,n!=null&&(xs(n),i.callback=n),t=Ta(e,i,r),t!==null&&(Mi(r,`this.setState()`,e),au(t,e,r),Ea(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nu(e),i=wa(r);i.tag=lx,i.payload=t,n!=null&&(xs(n),i.callback=n),t=Ta(e,i,r),t!==null&&(Mi(r,`this.replaceState()`,e),au(t,e,r),Ea(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nu(e),r=wa(n);r.tag=ux,t!=null&&(xs(t),r.callback=t),t=Ta(e,r,n),t!==null&&(Mi(n,`this.forceUpdate()`,e),au(t,e,n),Ea(t,e,n))}},pS=null,mS=null,hS=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),gS=!1,_S={},vS={},yS={},bS={},xS=!1,SS={},CS={},wS={},TS={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ES=!1,DS=null;DS=new Set;var OS=!1,kS=null,AS=null,jS=0,MS=new Map,NS={},PS=0,FS=1,IS=2,LS=!1,RS=!1,zS=!1,BS=!1,VS=typeof WeakSet==`function`?WeakSet:Set,HS=null,US=null,WS=null,GS=!1,KS=!1,qS=!1,JS=!1,YS=null,XS=!1,ZS=null,QS=!1,$S=8192,eC={getCacheForType:function(e){var t=wi(yy),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return wi(yy).controller.signal},getOwner:function(){return gh}};if(typeof Symbol==`function`&&Symbol.for){var tC=Symbol.for;tC(`selector.component`),tC(`selector.has_pseudo_class`),tC(`selector.role`),tC(`selector.test_id`),tC(`selector.text`)}var nC=[],rC=typeof WeakMap==`function`?WeakMap:Map,iC=0,aC=2,oC=4,sC=0,cC=1,lC=2,uC=3,dC=4,fC=6,pC=5,X=iC,mC=null,Z=null,Q=0,hC=0,gC=1,_C=2,vC=3,yC=4,bC=5,xC=6,SC=7,CC=8,wC=9,$=hC,TC=null,EC=!1,DC=!1,OC=!1,kC=0,AC=sC,jC=0,MC=0,NC=0,PC=0,FC=0,IC=null,LC=null,RC=!1,zC=0,BC=0,VC=300,HC=1/0,UC=500,WC=null,GC=null,KC=null,qC=0,JC=1,YC=2,XC=3,ZC=0,QC=1,$C=2,ew=3,tw=4,nw=5,rw=0,iw=null,aw=null,ow=0,sw=0,cw=-0,lw=null,uw=null,dw=null,fw=null,pw=null,mw=null,hw=qC,gw=null,_w=50,vw=0,yw=null,bw=!1,xw=!1,Sw=50,Cw=0,ww=null,Tw=!1,Ew=!1,Dw=null,Ow=!1,kw=new Set,Aw={},jw=null,Mw=null,Nw=!1,Pw=!1,Fw=!1,Iw=!1,Lw=0,Rw={};(function(){for(var e=0;e<uv.length;e++){var t=uv[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),lr(n,`on`+t)}lr(nv,`onAnimationEnd`),lr(rv,`onAnimationIteration`),lr(iv,`onAnimationStart`),lr(`dblclick`,`onDoubleClick`),lr(`focusin`,`onFocus`),lr(`focusout`,`onBlur`),lr(av,`onTransitionRun`),lr(ov,`onTransitionStart`),lr(sv,`onTransitionCancel`),lr(cv,`onTransitionEnd`)})(),_t(`onMouseEnter`,[`mouseout`,`mouseover`]),_t(`onMouseLeave`,[`mouseout`,`mouseover`]),_t(`onPointerEnter`,[`pointerout`,`pointerover`]),_t(`onPointerLeave`,[`pointerout`,`pointerover`]),gt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),gt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),gt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),gt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zw=`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(` `),Bw=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zw)),Vw=`_reactListening`+Math.random().toString(36).slice(2),Hw=!1,Uw=!1,Ww=!1,Gw=!1,Kw=!1,qw=!1,Jw=!1,Yw={},Xw=/\r\n?/g,Zw=/\u0000|\uFFFD/g,Qw=`http://www.w3.org/1999/xlink`,$w=`http://www.w3.org/XML/1998/namespace`,eT={},tT=`javascript:throw new Error('React form unexpectedly submitted.')`,nT=`suppressHydrationWarning`,rT=`&`,iT=`/&`,aT=`$`,oT=`/$`,sT=`$?`,cT=`$~`,lT=`$!`,uT=`html`,dT=`body`,fT=`head`,pT=`F!`,mT=`F`,hT=`loading`,gT=`style`,_T=0,vT=1,yT=2,bT=null,xT=null,ST=!1,CT={dialog:!0,webview:!0},wT=null,TT=void 0,ET=typeof setTimeout==`function`?setTimeout:void 0,DT=typeof clearTimeout==`function`?clearTimeout:void 0,OT=-1,kT=typeof Promise==`function`?Promise:void 0,AT=typeof requestAnimationFrame==`function`?requestAnimationFrame:ET,jT=typeof queueMicrotask==`function`?queueMicrotask:kT===void 0?ET:function(e){return kT.resolve(null).then(e).catch(af)},MT=500;Nf.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:I({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Nf.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Nf.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)},Ff.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bf(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rf(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),ne(this._fragmentFiber,If,e,s,r)}this._eventListeners=a}},Ff.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bf(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rf(i.optionsOrUseCapture),ne(this._fragmentFiber,Lf,e,n,i),r.splice(t,1),a!==null&&a()}},Ff.prototype.dispatchEvent=function(e){var t=ie(this._fragmentFiber);if(t===null)return!0;t=se(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rf(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rf(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Ff.prototype.focus=function(e){re(this._fragmentFiber.child,!0,Vf,e,void 0,void 0)},Ff.prototype.focusLast=function(e){var t=[];re(this._fragmentFiber.child,!0,Hf,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vf(t[n],e);n--);},Ff.prototype.blur=function(){var e=ie(this._fragmentFiber);e!==null&&(e=se(e),e=Yd(e).activeElement,e!==null&&ne(this._fragmentFiber,Uf,e))},Ff.prototype.observeUsing=function(e){var t=!1,n=!1;ne(this._fragmentFiber,function(e){if(e.tag===6)t=!0;else return n=!0;return!1}),t&&!n&&console.error(`observeUsing() was called on a FragmentInstance with only text children. Observers do not work on text nodes.`),this._observers===null&&(this._observers=new Set),this._observers.add(e),ne(this._fragmentFiber,Wf,e)},Ff.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),ne(this._fragmentFiber,Gf,e);for(var n=t=0;n<NT.length;n++){var r=NT[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):NT[t++]=r}NT.length=t}else console.error(`You are calling unobserveUsing() with an observer that is not being observed with this fragment instance. First attach the observer with observeUsing()`)};var NT=[],PT=!1;Ff.prototype.getClientRects=function(){var e=[];return ne(this._fragmentFiber,qf,e),e},Ff.prototype.getRootNode=function(e){var t=ie(this._fragmentFiber);return t===null?this:se(t).getRootNode(e)},Ff.prototype.compareDocumentPosition=function(e){var t=ie(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];ne(this._fragmentFiber,Hf,n);var r=se(t);if(n.length===0){if(t=r,ae(this._fragmentFiber)){a:{for(n=this._fragmentFiber.return;n!==null;){if(n.tag===4){n=n.stateNode.containerInfo;break a}if(n.tag===3||n.tag===5||n.tag===27)break;n=n.return}n=null}n!=null&&(t=n)}n=this._fragmentFiber;var i=r=t.compareDocumentPosition(e);return t===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=oe(n)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=se(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=se(n[0]),i=se(n[n.length-1]);var a=ae(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Jf(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC},Ff.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(`FragmentInstance.scrollIntoView() does not support scrollIntoViewOptions. Use the alignToTop boolean instead.`);var t=[];ne(this._fragmentFiber,Hf,t);var n=!1!==e;if(t.length===0){var r=oe(this._fragmentFiber);if(r=n?r[1]||r[0]||ie(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=se(r),Yf(e,n);return}if(r=se(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n===null?console.warn(`You are attempting to scroll a FragmentInstance that is only mounted inside a detached DocumentFragment. No scroll was performed.`):n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var i=t[r];i.tag===6?(i=se(i),Yf(i,n)):se(i).scrollIntoView(e),r+=n?-1:1}};var FT=null,IT=0,LT=1,RT=2,zT=3,BT=4,VT=new Map,HT=new Set,UT=R.d;R.d={f:function(){var e=UT.f(),t=uu();return e||t},r:function(e){var t=dt(e);t!==null&&t.tag===5&&t.type===`form`?os(t):UT.r(e)},D:function(e){UT.D(e),Sp(`dns-prefetch`,e,null)},C:function(e,t){UT.C(e,t),Sp(`preconnect`,e,t)},L:function(e,t,n){UT.L(e,t,n);var r=WT;if(r&&e&&t){var i=`link[rel="preload"][as="`+At(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+At(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+At(n.imageSizes)+`"]`)):i+=`[href="`+At(e)+`"]`;var a=i;switch(t){case`style`:a=Tp(e);break;case`script`:a=kp(e)}if(!(VT.has(a)||(e=I({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),VT.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ep(a))||t===`script`&&r.querySelector(Ap(a))))){var o=r.createElement(`link`);Fd(o,`link`,e),t===`style`&&(o[tg]=!0,o.onload=o.onerror=function(){ht(o)}),mt(o),r.head.appendChild(o)}}},m:function(e,t){UT.m(e,t);var n=WT;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+At(r)+`"][href="`+At(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=kp(e)}if(!VT.has(a)&&(e=I({rel:`modulepreload`,href:e},t),VT.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ap(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),mt(r),n.head.appendChild(r)}}},X:function(e,t){UT.X(e,t);var n=WT;if(n&&e){var r=pt(n).hoistableScripts,i=kp(e),a=r.get(i);a||(a=n.querySelector(Ap(i)),a||(e=I({src:e,async:!0},t),(t=VT.get(i))&&Pp(e,t),a=n.createElement(`script`),mt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){UT.S(e,t,n);var r=WT;if(r&&e){var i=pt(r).hoistableStyles,a=Tp(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:IT,preload:null};if(o=r.querySelector(Ep(a)))s.loading=LT|BT;else{e=I({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=VT.get(a))&&Np(e,n);var c=o=r.createElement(`link`);mt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=LT}),c.addEventListener(`error`,function(){s.loading|=RT}),s.loading|=BT,Mp(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){UT.M(e,t);var n=WT;if(n&&e){var r=pt(n).hoistableScripts,i=kp(e),a=r.get(i);a||(a=n.querySelector(Ap(i)),a||(e=I({src:e,async:!0,type:`module`},t),(t=VT.get(i))&&Pp(e,t),a=n.createElement(`script`),mt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var WT=typeof document>`u`?null:document,GT=null,KT=6e4,qT=800,JT=500,YT=0,XT=null,ZT=null,QT=Xm,$T={$$typeof:Im,Provider:null,Consumer:null,_currentValue:QT,_currentValue2:QT,_threadCount:0},eE=`%c%s%c`,tE=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,nE=``,rE=` `,iE=Function.prototype.bind,aE=!1,oE=null,sE=null,cE=null,lE=null,uE=null,dE=null,fE=null,pE=null,mE=null,hE=null;oE=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=I({},e.memoizedProps),i=Pr(e,2),i!==null&&au(i,e,2))},sE=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=I({},e.memoizedProps),r=Pr(e,2),r!==null&&au(r,e,2))},cE=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=I({},e.memoizedProps),i=Pr(e,2),i!==null&&au(i,e,2))},lE=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Pr(e,2),t!==null&&au(t,e,2)},uE=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Pr(e,2),t!==null&&au(t,e,2)},dE=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Pr(e,2),t!==null&&au(t,e,2)},fE=function(e){var t=Pr(e,2);t!==null&&au(t,e,2)},pE=function(e){var t=Ye(),n=Pr(e,t);n!==null&&au(n,e,t)},mE=function(e){s=e},hE=function(e){o=e};var gE=!0,_E=null,vE=!1,yE=null,bE=null,xE=null,SE=new Map,CE=new Map,wE=[],TE=`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(` `),EE=null;if(Sm.prototype.render=xm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):_(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Qp(r,nu(r),n,t,null,null)},Sm.prototype.unmount=xm.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(X&(aC|oC))!==iC&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Qp(e.current,2,null,e,null,null),uu(),t[Yh]=null}},Sm.prototype.unstable_scheduleHydration=function(e){if(e){var t=st();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wE.length&&t!==0&&t<wE[n].priority;n++);wE.splice(n,0,e),n===0&&pm(e)}},(function(){var e=Tm.version;if(e!==`19.3.0`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
220
|
-
- react: `+(e+`
|
|
221
|
-
- react-dom: 19.3.0
|
|
222
|
-
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills`),R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=ee(t),e=e===null?null:te(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.0`};return e.overrideHookState=oE,e.overrideHookStateDeletePath=sE,e.overrideHookStateRenamePath=cE,e.overrideProps=lE,e.overridePropsDeletePath=uE,e.overridePropsRenamePath=dE,e.scheduleUpdate=fE,e.scheduleRetry=pE,e.setErrorHandler=mE,e.setSuspenseHandler=hE,e.scheduleRefresh=h,e.scheduleRoot=m,e.setRefreshHandler=g,e.getCurrentFiber=rm,Ve(e)})()&&n_&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var DE=window.location.protocol;/^(https?|file):$/.test(DE)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(DE===`file:`?`
|
|
223
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!_(e))throw Error(`Target container is not a DOM element.`);Cm(e);var n=!1,r=``,i=Es,a=Ds,o=Os;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Am&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
224
|
-
|
|
225
|
-
let root = createRoot(domContainer);
|
|
226
|
-
root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Xp(e,1,!1,null,null,n,r,null,i,a,o,bm),e[Yh]=t.current,_d(e),new xm(t)},e.hydrateRoot=function(e,t,n){if(!_(e))throw Error(`Target container is not a DOM element.`);Cm(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=Es,o=Ds,s=Os,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Xp(e,1,!0,t,n??null,r,i,c,a,o,s,bm),t.context=Zp(null),n=t.current,r=nu(n),r=rt(r),i=wa(r),i.callback=null,Ta(n,i,r),Mi(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,Ze(t,n),nd(t),e[Yh]=t.current,_d(e),new Sm(t)},e.version=`19.3.0`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),on=oe(((e,t)=>{t.exports=an()}));function sn(e){return e?.isNotFound===!0}var cn=`__root__`;function ln(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function un(e){return e instanceof Response&&!!e.options}function dn(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var fn=4,pn=5;function mn(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function hn(e,t,n){let r=e.substring(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.substring(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.substring(s,a);return[o?3:c?1:2,c||`_splat`,r.substring(0,i),e.substring(t+a+1,c?n:e.length)]}}return r}function gn(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=Fe(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=hn(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=vn(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.substring(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=vn(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.substring(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=vn(r,pn);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=vn(r,fn);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function _n(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function vn(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function yn(e,t){let n=vn(),r=[];function i(e,t,n,a){let[o,s,c]=gn(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(_n);t.masksTree=n,t.flatCache=dn(1e3)}function bn(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=wn(e,t.masksTree);return t.flatCache.set(e,r),r}function xn(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=vn(),gn(t,{from:e},1,o),i.singleCache.set(a,o)),wn(r,o,n)}function Sn(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=wn(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=En(a.route)),t.matchCache.set(r,a),a}function Cn(e,t=!1){let n=vn(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i)throw Error(`Invariant failed: Duplicate routes found with id: ${String(e.id)}`);if(i[e.id]=e,o!==0&&e.path){let t=_(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=gn(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(_n);return{processedTree:{segmentTree:n,singleCache:dn(1e3),matchCache:dn(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function wn(e,t,n=!1){let r=e.split(`/`),i=On(e,r,t,n);if(!i)return null;let[a]=Tn(e,r,i);return{route:i.node.route,rawParams:a}}function Tn(e,t,n){let r=Dn(n.node),i=n.node.data&&mn(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===fn)break;if(u.kind===pn){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function En(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Dn(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function On(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!Fe(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Mn(l,n))continue;if(i.parse){if(!jn(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==fn&&Mn(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===fn||i.kind===2)&&Mn(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(jn(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&An(f,o))return n;Mn(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+kn(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+kn(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+kn(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+kn(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function kn(e,t){return 2**(e-t-1)}function An(e,t){return e===2**(t-1)-1}function jn(e,t,n){let r,i;try{[r,i]=Tn(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Mn(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===fn)>(e.node.kind===fn)||t.node.kind===fn==(e.node.kind===fn)&&t.node.depth>e.node.depth)))}function Nn(){try{return sessionStorage}catch{return}}var Pn=`tsr-scroll-restoration-v1_3`,Fn=Nn();function In(){try{return JSON.parse(Fn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var Ln=In(),Rn=`data-scroll-restoration-id`,zn=e=>e.state.__TSR_key||e.href;function Bn(e){let t=e.getAttribute(Rn);if(t)return`[${Rn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Vn=!1,Hn=`window`;function Un(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Wn(e){let t=new Set;for(let n of e){if(n===Hn)continue;let e=Un(n);e&&t.add(e)}return t}function Gn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;if(n&&(r.e=!0),e.isServer)return;let i=e.options.getScrollRestorationKey||zn,a=new Set,o=e=>{let t=Ln[e]||={};for(let e of a)e===document?t[Hn]={scrollX,scrollY}:e.isConnected&&(t[Bn(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Vn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Vn||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{Fn?.setItem(Pn,JSON.stringify(Ln))}catch{console.warn(`[ts-router] Could not persist scroll restoration state to sessionStorage.`)}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=Ln[d];if(e){let t=Ln[u];for(let n in e){if(n===Hn){if(s)continue}else{let e=Un(n);if(!e||s&&o&&(l??=Wn(o),l.has(e)))continue}t||=Ln[u]={},t[n]??=e[n]}}}Vn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Wn(o));let t=e&&i&&c,s=r.e?Ln[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Hn){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Un(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Vn=!1}}))}function Kn(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function qn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Jn(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=qn(r):Array.isArray(t)?t.push(qn(r)):n[e]=[t,qn(r)]}return n}var Yn=/^(?:\s|["[{\d-]|fa|nu|tr)/,Xn=Qn(JSON.parse),Zn=$n(JSON.stringify,JSON.parse);function Qn(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.substring(1));let r=Jn(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!Yn.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function $n(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!Yn.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=Kn(e,r);return t?`?${t}`:``}}function er(e,t,n){let r=Se(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=Bt(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>tr(n,s.input({url:e})),output:({url:e})=>s.output({url:nr(n,e)})}:s}function tr(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function nr(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function rr(e){let n=e;return{get(){return n},set(e){n=t(e,n)}}}function ir(e){return{get(){return e()}}}function ar(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{bt(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var or=`__TSR_index`,sr=`popstate`,cr=`beforeunload`,lr=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function ur(e){let t=lr.exec(e);return t?`/`+e.slice(t[0].length):e}function dr(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
227
|
-
\r`.includes(e)?``:encodeURIComponent(e))),ur(e)}function fr(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=hr(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[or];i=pr(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[or];i=pr(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[or]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function pr(e,t){let n=gr();return{...t,key:n,__TSR_key:n,[or]:e}}function mr(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>dr(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>hr(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=gr();t.history.replaceState({[or]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(ee._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),ee._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=hr(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),ee.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[or]-l.state[or],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),ee.notify(u);return}}}l=c(),ee.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},ee=fr({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(cr,x,{capture:!0}),t.removeEventListener(sr,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return ee._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(cr,x,{capture:!0}),t.addEventListener(sr,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return ee._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return ee._ignoreSubscribers||y(`REPLACE`),n},ee}function hr(e,t){let n=dr(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=gr();t={[or]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function gr(){return(Math.random()+1).toString(36).substring(7)}function _r(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function vr(e){return e.pathname+e.search+e.hash}function yr(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function br(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function xr({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Sr(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Cr(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var wr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{e.notFoundRoute&&console.warn(`The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.`);let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??void 0??typeof document>`u`,this.isServer||(this.staticLocations=new WeakMap),this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=mr())),this.origin=this.options.origin,this.origin||=!this.isServer&&window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&Se(n)?er(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||this.isServer&&t?.caseSensitive!==this.options.caseSensitive){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ar(this.latestLocation,e),this.isServer||Gn(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Cn(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&yn(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:dn(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Ae(e),external:!1,searchStr:o,search:mt(t?.search,i),hash:Ae(r.slice(1)),state:Be(t?.state,a)}}let o=tr(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:Ae(ur(o.pathname)),external:!!this.rewrite&&_r(o,this.origin),searchStr:c,search:mt(t?.search,s),hash:Ae(o.hash.slice(1)),state:Be(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Sn(_(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{if(!this.isServer){let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=hr(n.href,{});n={...n,to:tr(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=n._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>(t=!0,i??=this.matchRoutesLightweight(r));if(n.from&&n._isNavigate){let[e]=this.getMatchedRoutes(n.from),[t,r]=o(),i=w(t,e=>kr(e.fullPath,n.from)),a=w(e,e=>kr(e.fullPath,r));!i&&!a&&console.warn(`Could not find match for from: ${n.from}`)}let s=n.to?`${n.to}`:`.`,c=y(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[_(c)],u=c.includes(`$`),d;if(l)d=l._branch??=En(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??gn(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=jr(n.params,e),!Dt(p))break;p===e&&(p=Object.assign(te(),p));try{Object.assign(p,t(p))}catch{}}}p??=jr(n.params,Mr(n.params,f)?o()[3]:Nr);let m=e.leaveParams?c:ur(Ae(f?we(c,f,p,this.pathParamsDecoder):c));if(l&&!e.leaveParams)try{let e=this.getMatchedRoutes(m)[2];e?.id!==l.id&&console.warn(`Generated path "${m}" for route "${l.id}" matched route "${e?.id}" instead. This can happen when multiple route templates resolve to the same URL. Use the route template that matches the intended route, or adjust params.stringify if it changed the target path.`)}catch{}let h=Pr(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,Ar(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},v=h.length?Fr(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||Nr,b=this.options.stringifySearch(v),x=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,ee=x?`#${x}`:``,ne=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Nr,re=`${m}${b}${ee}`,ie,ae,oe=!1;if(this.rewrite){let e=new URL(re,this.origin),t=e.origin,n=nr(this.rewrite,e);ie=vr(e),_r(n,t)?(ae=n.href,oe=!0):ae=ur(vr(n))}else ie=Me(re),ae=ie;return{publicHref:ae,href:ie,pathname:m,search:v,searchStr:b,state:ne,hash:x??``,external:oe,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=bn(r.pathname,this.processedTree);if(t){let i=Object.assign(te(),t.rawParams),{from:a,params:o,...s}=t.route,c=jr(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!this.isServer&&!t&&e._fromLocation&&!r.maskedLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{if(this.isServer)return;let r=n.maskedLocation??n;if(r.external&&!this.isServer)return Tr(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=_(this.latestLocation.href)===_(n.href)&&Oe(xr(n.state),xr(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{if(this.isServer)return Promise.resolve();let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{if(this.isServer)return;let a=n?We(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return Tr(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{if(this.isServer)return ia(this,e);this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await Oi(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(br(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&yr(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(Tt.test(n)||(r=We(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol in href "${n}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(`, `)}.`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:_r(e,this.origin)||(n=vr(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=Vr,this.preloadRoute=e=>Ai(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?y(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=xn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!Oe(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?Oe(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=o(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Zn,parseSearch:e.parseSearch??Xn,protocolAllowlist:e.protocolAllowlist??re}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.isServer||(this.staticLocations=new WeakMap);let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=gn(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:_(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Ir(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=Ar(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof Er||(r=new Er(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=te(),_=i._interpolation?we(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=t?._rematerialize?void 0:this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{Lr(i,d)}catch(e){if(x=sn(e)||un(e)?e:new Dr(e.message,{cause:e}),t?.throwOnError)throw x}let ee=y?`stay`:`enter`,ne;if(b)ne={...b,cause:ee,search:mt(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=yr(i)?`pending`:`success`;ne={id:v,ssr:this.isServer?void 0:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?mt(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:ee,loaderDeps:y?Be(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let re=s===i.id;ne._notFound&&!re&&(ne.error=void 0),ne._notFound=re,c[n]=ne}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?mt(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=Fe(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=Fe(a),c={...e.search};for(let e of a)try{Object.assign(c,Ar(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{Lr(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function Tr(e,t,{replace:n,ignoreBlocker:r}){if(St(t,e.protocolAllowlist)){console.warn(`Blocked navigation to dangerous protocol: ${t}`);return}if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}wr.prototype._replaceRouteChunk=Rr,wr.prototype._refreshRoute=async function(){this._serverResult=void 0,this.updateLatestLocation(),await ki(this)};var Er=class extends Error{},Dr=class extends Error{},Or=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e;function kr(e,t){return Or(e)===Or(t)}function Ar(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Er(`Async validation not supported`);if(n.issues)throw new Er(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function jr(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function Mr(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!dt.call(e,t[1]))}var Nr=Object.freeze({});function Pr(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=Ar(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Fr(e,n,r){let i=(n,a,o)=>{if(n>=e.length){if(!r.search)return{};if(r.search===!0)return a;let e=t(r.search,a);return o&&(o.explicit=e),e}return e[n]({search:a,next:(e,t)=>{if(t){let t=o||{};return{search:i(n+1,e,t),meta:t}}return i(n+1,e,o)},meta:o})};return i(0,n)}function Ir(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return cn}function Lr(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Rr(e,t){e.lazyFn=t??e.lazyFn,e._lazy=void 0}function zr(e,t){return e.options[t]?.preload?.()}function Br(e,t){let n=zr(e,`component`),r=zr(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function Vr(e,t,n){let r=()=>t===!1?void 0:t?zr(e,t):Br(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{if(e._lazy===a){let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy===a&&(e._lazy=void 0),t});return e._lazy=a,a.then(r)}function Hr(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}var Ur=0,Wr=1,Gr=2,Kr=3,qr=[4];function Jr(e){return typeof e[0]==`number`}function Yr(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function Xr(e,t){return e.routesById[t.routeId]}function Zr(e,t,n){return un(e)?[Kr,e]:sn(e)?(e.routeId||=n,[Gr,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[Wr,e]):[Ur,e]}function Qr(e,t){let n=Zr(t,!0,e.id);if(n[0]!==Wr)return n;try{e.options.onError?.(n[1])}catch(t){n=Zr(t,!0,e.id)}return n}function $r(e,t,n,r,i){return i[0].signal.aborted?qr:hi(e,t,n,Qr(n,r),i)}async function ei(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=Xr(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return ni(e,r),[i,$r(e,t,u,a,n)]}if(c.aborted)return[i,qr];let p=r.paramsError??r.searchError;if(p!==void 0)return ni(e,r),[i,$r(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{ai(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?Yr(a,c):a);if(c.aborted)return[i,qr];let s=hi(e,t,u,Zr(o,!1,u.id),n);if(s[0]!==Ur)return ni(e,r),[i,s];r.context={...r.context,...o}}catch(a){return ni(e,r),[i,$r(e,t,u,a,n)]}finally{r.status=h,ai(e,r,!1,n[0])}}i()}function ti(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function ni(e,t){let n=t._flight;t._flight=void 0,ti(e,t,n)?.abort()}function ri(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=ti(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function ii(e){for(let t of e){let e=t._flight;e&&e[2]++}}function ai(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function oi(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function si(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return qr;if(!i)return[Ur,void 0];let l=n._flight;ai(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(oi(e,t,n,r,s,a,!!o[3]))).then(e=>Zr(e,!1,r.id),e=>Zr(e,!0,r.id)).then(t=>(t[0]!==Ur&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Wr&&l[2]?Qr(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],hi(e,t,r,await Yr(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return ni(e,n),qr}finally{ai(e,n,!1,s)}}function ci(e,t,n){t[0]!==Kr&&(e.status=`success`,e.error=void 0,t[0]===Ur?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function li(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&ni(e,r)}function ui(e,t){return t[0]===Wr||t[0]===Gr?{...e,status:t[0]===Wr?`error`:`notFound`,error:t[1],_flight:void 0}:e}function di(e,t,n,r,i,a,o){let s=t[1][n],c=Xr(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(oi(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=qr)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,ni(e,s),p=$r(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m&&!e._tx?.[6]?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),ee=n>=o?a[7]:void 0,te=c.lazyFn&&c._lazy!==!0?ee:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,ti(e,s,t)?.abort(),n>=o&&(s.status=`pending`),ee?.()}b||(s.isFetching=!1);let ne=!p&&x?si(e,t,s,c,g,i,a).then(t=>(ci(s,t,l),t[0]===Ur&&(m&&!a[0].signal.aborted&&li(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Ur,s.loaderData]),re=(async()=>{try{let e=Vr(c,void 0,te);e&&await Yr(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,$r(e,t,c,r,a)]}let r=await ne;x&&r[0]===Ur&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,ee?.())})();if(r.push([n,ne,re]),!y)return ne.then(e=>ui(s,e));let ie={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let ae=si(e,t,ie,c,g,i,a).then(e=>(s.isFetching=!1,ci(ie,e,!1),e));return(t[2]??=[]).push([n,ae,re,ie]),ae.then(e=>ui(ie,e))}async function fi(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=Xr(e,t[n]);try{let e=Vr(i,!1);e&&await Yr(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function pi(e,t){t[2]&&=(ri(e,t[2].map(e=>e[3])),void 0)}async function mi(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=Kr)throw[a,t];!i&&t[0]!==Ur&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===Kr)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function hi(e,t,n,r,i,a){for(;r[0]===Kr;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[Kr,t]:[Kr,t,a]}return[Kr,o,n]}catch(e){r=a?[Wr,e]:Qr(n,e),a=!0}}return r}async function gi(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Gr?fi(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=Kr)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==Ur&&t[0]<Kr&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=Kr){let n=s[1];if(n[0]!==Kr||n[1].options.reloadDocument||n[2])return pi(e,t),n;c=!0,s=[0,[Wr,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===Wr?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=Xr(e,u);try{await Yr(i?Promise.resolve().then(()=>Vr(m,l===Wr?`errorComponent`:`notFoundComponent`)):Promise.all([Vr(m),Vr(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return pi(e,t),qr}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),pi(e,t),ri(e,o),p()):u.status=`success`}return t}async function _i(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=Xr(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await Yr(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function vi(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await fi(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=di(e,i,t,u,f,r,l)},m=await ei(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Gr){let t=await fi(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=Kr&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=gi(e,i,u,r[0],mi(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=mi(i[2],void 0,void 0,h.then(e=>Jr(e)?0:Hr(n).length,()=>0))),o=await h}catch(t){if(pi(e,i),t===a&&a.aborted)return qr;throw t}return Jr(o)?o:_i(e,o,a,r[6]===n.length?r[6]:0)}function yi(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=Xr(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>yi(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function bi(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function xi(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Hr(t[3]).some(e=>e.id===n[1]))return;let i;try{await Yr(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Si(e,t){e._committed=t,e.stores.setMatches(t)}function Ci(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=Hr(n).length,c=new Map;if(!t[6]){let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=Xr(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Sr(n);Si(e,n),ri(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n);{let n=t[6]?.[0];n&&e._handoff===n&&n[1]()}Cr(e,i,n,a,l,t)}async function wi(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Ti(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function Ei(e,t,n,r,i){let a=n.map(e=>({...e}));ii(a);for(let t of r)ni(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await gi(e,o,r,t[0],i)}catch(t){throw ri(e,a),t}if(Jr(s)){ri(e,a),s[0]===Kr&&e._tx===t&&e._committed===n&&await Ti(e,t,s);return}if(await _i(e,s,t[0].signal),e._tx!==t||e._committed!==n){ri(e,a);return}for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),ni(e,n))}Si(e,a),ri(e,n,a)}async function Di(e,t,n,r,i,a){let o=await vi(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Jr(o)){let n=o[0]===Kr&&e._tx===t;if((!n||o[1].options.reloadDocument)&&bi(e,t),ri(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){bi(e,t);return}t[6]&&(e._refreshNextLoad=!0),await Ti(e,t,o);return}let s=o[1];if(e._tx===t&&await xi(e,t),e._tx!==t){bi(e,t),ri(e,s),pi(e,o);return}let c=t[2],l=br(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await xi(e,t),e._tx!==t){bi(e,t),ri(e,s),pi(e,o);return}let n=await e.startTransition(()=>{bi(e,t),Ci(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);if(t[6]&&=void 0,e._tx!==t){pi(e,o);return}u?.length&&Ei(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function Oi(e,t){let n=!1;n=!!e._refreshNextLoad||!!e._tx?.[6];let r=e._tx,i=e.stores.resolvedLocation.get(),a=i??e.stores.location.get(),o=e.latestLocation,s=e._pendingLocation,c=s?.href===o.href?s._redirects??0:0,l=e._handoff,u=n?void 0:l?.[0](),d=new AbortController,f=e._preflight;if(e._preflight=d,!n&&!u&&l?.[1](),f?.abort(),!d.signal.aborted){let t=br(o,i);e.emit({type:`onBeforeNavigate`,...t}),d.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(d.signal.aborted){await wi(e,r);return}let p=a.href===o.href,m=d,h=n?e.matchRoutes(o,{_controller:d,_rematerialize:!0}):e.matchRoutes(o,{_controller:d});ii(h);let g=u?l[1](h):void 0;if(g?m=u:u?.abort(),d.signal.aborted){ri(e,h),await wi(e,r);return}e._preflight=void 0;let _,v=()=>Di(e,b,p,()=>yi(e,b),t?.sync,g),y=t?.sync?new Promise(e=>_=e):Promise.resolve().then(v),b=[m,c,o,h,Date.now(),y.then(()=>wi(e,b))];if(n&&(b[6]=[l],e._refreshNextLoad=void 0),e._tx=b,r){for(let t of e.stores.matches.get()){if(e._tx!==b)break;t.isFetching&&ai(e,t,!1)}r[0].abort(),ri(e,r[3],b[3],!0)}if(e._tx!==b){ri(e,b[3]),b[3]=[],_?.(),await wi(e,b);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(o)}),(g||!e._committed.length&&h[0]?.status!==`success`&&!h.some(e=>e._notFound))&&yi(e,b),_?.(v()),await b[5]}async function ki(e){let t=e._tx;t&&!t[6]&&e.stores.status.get()===`pending`&&(await t[5],e._tx!==t&&await wi(e,t)),e._flights?.clear(),e.clearCache(),e._refreshNextLoad=!0,await Oi(e,{sync:!0})}async function Ai(e,t){if(e._refreshNextLoad||e._tx?.[6])return;let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),ii(a),o=(e._preloads??=new Map).set(i,a),s=await vi(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),ri(e,a)),i.abort()}if(!Jr(s))return s[1];if(!o||s.length<3||e._refreshNextLoad||e._tx?.[6])return;n=s[2]}catch(e){sn(e)||console.error(e);return}}}function ji(e,t){if(e)try{let n=e(t);n!==void 0&&Promise.resolve(n).catch(()=>{})}catch{}}function Mi(e,t,n,r){let i=Promise.resolve(e);return t.aborted?(i.then(e=>ji(n,e),e=>ji(r,e)),Promise.reject(t.reason)):new Promise((e,a)=>{let o=()=>a(t.reason);t.addEventListener(`abort`,o,{once:!0}),i.then(r=>{t.removeEventListener(`abort`,o),t.aborted?ji(n,r):e(r)},e=>{t.removeEventListener(`abort`,o),t.aborted?ji(r,e):a(e)})})}var Ni=0,Pi=1,Fi=2,Ii=3,Li=4,Ri=Object.freeze({name:`AbortError`,message:`TanStack Router aborted this server match because it settled.`}),zi=Object.freeze({name:`AbortError`,message:`TanStack Router aborted this server match because of a redirect.`});function Bi(e,t){return e.routesById[t.routeId]}function Vi(e,t){return un(e)?[Ii,e]:sn(e)?[Fi,e]:(t&&typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),t?[Pi,e]:[Ni,e])}function Hi(e,t,n,r,i,a=!0){i?.throwIfAborted();let o=Vi(r,!0);if(o[0]!==Pi)return Ui(e,t,n,o,i,a);try{n.options.onError?.(o[1])}catch(e){o=Vi(e,!0)}return i?.throwIfAborted(),Ui(e,t,n,o,i,a)}function Ui(e,t,n,r,i,a=!0){if(r[0]!==Ii)return r;i?.throwIfAborted();try{return r[1].options._fromLocation=t.location,e.resolveRedirect(r[1]),i?.throwIfAborted(),r}catch(r){return i?.throwIfAborted(),a?Hi(e,t,n,r,i,!1):[Pi,r]}}function Wi(e,t){return t===void 0?{status:`success`,value:e}:{status:`error`,error:t}}function Gi(e,t){return n=>e.navigate({...n,_fromLocation:t})}function Ki(e,t){return t?Mi(e,t):e}function qi(e,t,n){let r=t.matches[n],i=Bi(e,r),a=t.matches[n-1]?.ssr;if(e.isShell())return i.id===cn;if(a===!1)return!1;let o=e=>e===!0&&a===`data-only`?`data-only`:e,s=e.options.defaultSsr??!0,c=o(s);r.ssr=c;let l=i.options.ssr;if(l===void 0)return c;if(typeof l!=`function`)return o(l);let u={search:Wi(r.search,r.searchError),params:Wi(r.params,r.paramsError),location:t.location,matches:t.matches.map(e=>({index:e.index,pathname:e.pathname,fullPath:e.fullPath,staticData:e.staticData,id:e.id,routeId:e.routeId,search:Wi(e.search,e.searchError),params:Wi(e.params,e.paramsError),ssr:e.ssr}))};try{return Promise.resolve(l(u)).then(e=>o(e??s))}catch(e){return Promise.reject(e)}}function Ji(e,t){return t[0]===Fi&&!t[1].routeId&&(t[1].routeId=e.routeId),t}async function Yi(e,t,n){let r=t.matches.findIndex(e=>e._notFound),i=r<0?t.matches.length:r+1,a,o={...e.options.context??{}};for(let r=0;r<i;r++){let s=t.matches[r],c=Bi(e,s);try{let n=qi(e,t,r);s.ssr=n instanceof Promise?await n:n}catch(o){n?.throwIfAborted(),a=[r,Ji(s,Hi(e,t,c,o,n))],i=r}if(n?.throwIfAborted(),a?.[1][0]===Ii)break;s.__beforeLoadContext=void 0;let l=o;try{let n;if(c.options.context){let r={deps:s.loaderDeps,params:s.params,context:o,location:t.location,navigate:Gi(e,t.location),buildLocation:e.buildLocation,cause:s.cause,abortController:s.abortController,preload:!1,matches:t.matches,routeId:c.id};n=c.options.context(r)??void 0}l={...o,...n},s.context=l}catch(o){n?.throwIfAborted(),a||=[r,Ji(s,Hi(e,t,c,o,n))],i=r;break}if(n?.throwIfAborted(),a)break;let u=s.paramsError??s.searchError;if(u!==void 0){a=[r,Ji(s,Hi(e,t,c,u,n))],i=r;break}if(n?.throwIfAborted(),s.ssr===!1||!c.options.beforeLoad){o=l;continue}let d=s.abortController,f={search:s.search,abortController:d,params:s.params,preload:!1,context:l,location:t.location,navigate:Gi(e,t.location),buildLocation:e.buildLocation,cause:s.cause,matches:t.matches,routeId:c.id,...e.options.additionalContext};try{let u=await c.options.beforeLoad(f);n?.throwIfAborted();let d=Ji(s,Ui(e,t,c,Vi(u,!1),n));if(d[0]!==Ni){a=[r,d],i=r;break}s.__beforeLoadContext=u,s.context={...l,...u},o=s.context}catch(o){n?.throwIfAborted(),a=[r,Ji(s,Hi(e,t,c,o,n))],i=r;break}}return{location:t.location,matches:t.matches,end:i,failure:a}}function Xi(e,t,n,r,i,a){return{params:n.params,deps:n.loaderDeps,preload:!1,parentMatchPromise:a[i-1]?.match,abortController:n.abortController,context:n.context,location:t.location,navigate:Gi(e,t.location),cause:n.cause,route:r,...e.options.additionalContext}}function Zi(e,t,n,r,i){let a=t.matches[n],o=Bi(e,a),s;if(a.ssr===!1)s=Promise.resolve([Li]);else{let c=o.options.loader,l=typeof c==`function`?c:c?.handler;s=l?Promise.resolve().then(()=>l(Xi(e,t,a,o,n,r))).then(e=>Vi(e,!1),e=>Vi(e,!0)).then(n=>i?.aborted||a.abortController.signal.reason===zi?[Li]:(n=n[0]===Pi?Hi(e,t,o,n[1],i):Ui(e,t,o,n,i),Ji(a,n))):Promise.resolve([Ni,void 0])}let c=s.then(e=>{let t={...a};return e[0]===Ni?(t.loaderData=e[1],t.status=`success`,t.error=void 0,t.invalid=!1,t.isFetching=!1):e[0]===Pi?(t.status=`error`,t.error=e[1]):e[0]===Fi&&(t.status=`notFound`,t.error=e[1]),t});return{index:n,outcome:s,match:c}}async function Qi(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=Bi(e,t[n]);try{let e=Vr(i,!1);e&&await e}catch{r?.throwIfAborted()}if(r?.throwIfAborted(),i.options.notFoundComponent)return n}return a?.routeId?o:i}function $i(e,t=0,n=Ri){for(let r=t;r<e.length;r++)e[r].abortController.abort(n)}async function ea(e,t,n,r){if(!n){let e=t.matches.findIndex(e=>e._notFound);return e>=0?($i(t.matches,e+1),{status:404,boundary:e,kind:Fi}):{status:200}}let[i,a]=n;if(a[0]===Pi){let e=t.matches[i];return e._notFound=void 0,e.status=`error`,e.error=a[1],e.isFetching=!1,$i(t.matches,i+1),{status:500,boundary:i,kind:Pi}}let o=n[2]??await Qi(e,t.matches,n,r),s=t.matches[o],c=a[1];return c.routeId=s.routeId,s._notFound=void 0,s.routeId===e.routeTree.id?(s.status=`success`,s._notFound=!0,s.error=c):(s.status=`notFound`,s.error=c),s.isFetching=!1,$i(t.matches,o+1),{status:404,boundary:o,kind:Fi}}async function ta(e,t,n,r){let i=[];for(let a=0;a<t.matches.length;a++){let o=t.matches[a];if(a>=n||o.ssr!==!0||o.status!==`success`)continue;let s=Bi(e,o);try{let n=Vr(s);if(n){let c=n.then(()=>{r?.throwIfAborted()},n=>(r?.throwIfAborted(),[a,Ji(o,Hi(e,t,s,n,r))]));c.catch(()=>{}),i.push(c)}}catch(n){r?.throwIfAborted(),i.push([a,Ji(o,Hi(e,t,s,n,r))])}}for(let e of i){let t=Array.isArray(e)?e:await e;if(t)return t}}async function na(e,t,n){for(let r of t.matches){let i=Bi(e,r).options;if(i.head||i.scripts||i.headers){let a={ssr:e.options.ssr,matches:t.matches,match:r,params:r.params,loaderData:r.loaderData};try{let[e,t,o]=await Promise.all([i.head?.(a),i.scripts?.(a),i.headers?.(a)]);n?.throwIfAborted(),r.meta=e?.meta,r.links=e?.links,r.headScripts=e?.scripts,r.styles=e?.styles,r.scripts=t,r.headers=o}catch(e){n?.throwIfAborted(),console.error(e)}}if(r.ssr===!1||r.status!==`success`||r._notFound)break}}async function ra(e,t,n,r){let i={location:t,matches:n.map(e=>({...e,__beforeLoadContext:void 0,context:{},isFetching:!1,abortController:new AbortController}))},a=()=>$i(i.matches,0,r?.reason??Ri);r?.aborted&&(a(),r.throwIfAborted()),r?.addEventListener(`abort`,a,{once:!0});try{let t=i.matches.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&t>=0){let n=await Qi(e,i.matches,void 0,r,t);n!==t&&(i.matches[t]._notFound=void 0,i.matches[n]._notFound=!0)}let n=await Yi(e,i,r);r?.throwIfAborted();let o=n.end;n.failure?.[1][0]===Ii?o=0:n.failure?.[1][0]===Fi&&(n.failure[2]=await Qi(e,n.matches,n.failure,r),o=Math.min(o,n.failure[2]+1));let s=[];for(let t=0;t<o;t++){let i=Zi(e,n,t,s,r);s.push(i)}let c,l=n.failure?.[1][0]===Ii?n.failure:void 0;try{await Promise.all(s.map(e=>e.outcome.then(t=>{let r=n.matches[e.index],i=t;if(i[0]===Ni)r.loaderData=i[1],r.status=`success`,r.error=void 0,r.invalid=!1,r.isFetching=!1,r.updatedAt=Date.now();else if(i[0]===Ii)throw l=[e.index,i],l;else r.ssr!==!1&&(r.status=`success`,r.error=void 0,r.invalid=!0,r.isFetching=!1),!c&&i[0]!==Li&&(c=[e.index,i])})))}catch(e){if(!Array.isArray(e))throw e;l=e}if(r?.throwIfAborted(),l?.[1][0]===Ii)return $i(n.matches,0,zi),{type:`redirect`,redirect:l[1][1]};let u=n.failure??c,d=n.matches.findIndex(e=>e._notFound),f;if(u){let t=u[2]??=u[1][0]===Fi?await Qi(e,n.matches,u,r):u[0];for(let i of s){if(i.index>=t)break;let a=await i.outcome;if(a[0]!==Ni&&a[0]<Ii&&!(`loaderData`in n.matches[i.index])){u=[i.index,a],u[2]=a[0]===Fi?await Qi(e,n.matches,u,r):i.index;break}}f=u[2]}else f=d<0?n.matches.length:d;let p=await ta(e,n,f,r);if(r?.throwIfAborted(),p){if(p[1][0]===Ii)return $i(n.matches,0,zi),{type:`redirect`,redirect:p[1][1]};u=p}let m=await ea(e,n,u,r);if(m.boundary!==void 0){let t=n.matches[m.boundary];if(t.ssr===!0){let n=Bi(e,t);try{m.kind===Pi?await Vr(n,`errorComponent`):t._notFound?await Promise.all([Vr(n),Vr(n,`notFoundComponent`)]):await Vr(n,`notFoundComponent`)}catch{}r?.throwIfAborted()}}return r?.throwIfAborted(),await na(e,{location:n.location,matches:n.matches},r),r?.throwIfAborted(),e.serverSsr?.onCleanup(e=>{e||a()}),{type:`render`,status:m.status,matches:n.matches}}finally{r?.removeEventListener(`abort`,a)}}async function ia(e,t){e.updateLatestLocation();let n=e.latestLocation,r=e._committed,i=e._lifecycleEnd,a;try{let r=e.buildLocation({to:n.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(n.publicHref!==r.publicHref)throw ln({href:r.publicHref||`/`});let i=br(n,e.stores.resolvedLocation.get());e.emit({type:`onBeforeNavigate`,...i}),e.emit({type:`onBeforeLoad`,...i}),t?._signal?.throwIfAborted(),a=await Ki(ra(e,n,e.matchRoutes(n),t?._signal),t?._signal),t?._signal?.throwIfAborted()}catch(r){if(t?._signal?.throwIfAborted(),!un(r))throw r;r.options._fromLocation=n,a={type:`redirect`,redirect:e.resolveRedirect(r)}}e._serverResult=a;let o=0;e.batch(()=>{e.stores.location.set(n),e.stores.status.set(`idle`),a.type===`render`&&(e._committed=a.matches,o=e._lifecycleEnd=Sr(a.matches),e.stores.setMatches(a.matches),e.stores.resolvedLocation.set(n))}),a.type===`render`&&Cr(e,r,a.matches,i,o),e._commitPromise?.resolve(),e._commitPromise=void 0}var aa=E.use,oa=typeof window>`u`?E.useEffect:E.useLayoutEffect,sa=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;if(this.parentRoute=this.options.getParentRoute?.(),n)this._path=cn;else if(!this.parentRoute)throw Error(`Invariant failed: Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.`);let r=n?cn:t?.path;r&&r!==`/`&&(r=Ee(r));let i=t?.id||r,a=n?cn:Bt((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:Bt(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=_(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>ln({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ca=class extends sa{constructor(e){super(e)}},D=r(),la=E.createContext(void 0);function ua(e,t){return(0,D.jsx)(la.Provider,{value:t,children:e})}var da=class extends E.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?ua(E.createElement(this.props.errorComponent??fa,{error:e[0],reset:this.reset}),`errorComponent`):this.props.children}};function fa({error:e}){let[t,n]=E.useState(!0);return(0,D.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,D.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,D.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,D.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,D.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,D.jsx)(`div`,{children:(0,D.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,D.jsx)(`code`,{children:e.message}):null})}):null]})}var pa=E.createContext(void 0),ma=E.createContext(void 0);function ha({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function ga(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var _a=[],va=0,{link:ya,unlink:ba,propagate:xa,checkDirty:Sa,shallowPropagate:Ca}=ha({update(e){return e._update()},notify(e){_a[Ta++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ka(e))}}),wa=0,Ta=0,Ea,Da=0;function Oa(e){try{++Da,e()}finally{--Da||Aa()}}function ka(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ba(n,e)}function Aa(){if(!(Da>0)){for(;wa<Ta;){let e=_a[wa];_a[wa++]=void 0,e.notify()}wa=0,Ta=0}}function ja(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return Ea!==void 0&&ya(i,Ea,va),i._snapshot},subscribe(e){let t=ga(e),n={current:!1},r=Ma(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Ea,o=t?.compare??Object.is;if(n)Ea=i,++va,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Ea=a,n&&(i.flags&=-5),ka(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Sa(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ca(e)}}else e&32&&(i.flags=e&-33);return Ea!==void 0&&ya(i,Ea,va),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(xa(e),Ca(e),Aa())}},i}function Ma(e){let t=()=>{let t=Ea;Ea=n,++va,n.depsTail=void 0,n.flags=6;try{return e()}finally{Ea=t,n.flags&=-5,ka(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Sa(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ka(this)}};return t(),n}var Na={};function Pa(e,t){let n=E.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Be(n.current,i):i}}function Fa(e){let t=x(),n=E.useContext(e.from?ma:pa),r=e.from??n,i=t.stores.getMatchStore(r);if(t.isServer){let t=i.get();if(!t){if(e.shouldThrow??!0)throw Error(`Invariant failed: Could not find ${e.from?`an active match from "${e.from}"`:`a nearest match!`}`);return}return e.select?e.select(t):t}let a=Pa(e,t),o=h(i,e=>e?a(e):Na);if(o!==Na)return o;if(e.shouldThrow??!0)throw Error(`Invariant failed: Could not find ${e.from?`an active match from "${e.from}"`:`a nearest match!`}`)}function Ia(e){return Fa({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function La(e){let{select:t,...n}=e;return Fa({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ra(e){return Fa({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function za(e){return Fa({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ba(e){let t=x();return E.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Va(e){return Fa({...e,select:t=>e.select?e.select(t.context):t.context})}var Ha=class extends sa{constructor(e){super(e),this.useMatch=e=>Fa({...e,from:this.id}),this.useRouteContext=e=>Va({...e,from:this.id}),this.useSearch=e=>za({...e,from:this.id}),this.useParams=e=>Ra({...e,from:this.id}),this.useLoaderDeps=e=>La({...e,from:this.id}),this.useLoaderData=e=>Ia({...e,from:this.id}),this.useNavigate=()=>Ba({from:this.fullPath}),this.Link=E.forwardRef((e,t)=>(0,D.jsx)(C,{ref:t,from:this.fullPath,...e}))}};function Ua(e){return new Ha(e)}var O=class extends ca{constructor(e){super(e),this.useMatch=e=>Fa({...e,from:this.id}),this.useRouteContext=e=>Va({...e,from:this.id}),this.useSearch=e=>za({...e,from:this.id}),this.useParams=e=>Ra({...e,from:this.id}),this.useLoaderDeps=e=>La({...e,from:this.id}),this.useLoaderData=e=>Ia({...e,from:this.id}),this.useNavigate=()=>Ba({from:this.fullPath}),this.Link=E.forwardRef((e,t)=>(0,D.jsx)(C,{ref:t,from:this.fullPath,...e}))}};function k(e){return new O(e)}function Wa(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{typeof window<`u`&&(n=void 0,o.preload=void 0),r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if($e(i)&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(aa)aa(a());else throw a()}return E.createElement(r,e)};return o.preload=a,o}function Ga(e){let t=x();if(t.isServer){let n=`not-found-${t.stores.location.get().pathname}-${t.stores.status.get()}`;return(0,D.jsx)(da,{getResetKey:()=>n,onCatch:(t,n)=>{if(sn(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(sn(t))return e.fallback?.(t);throw t},children:e.children})}let n=`not-found-${h(t.stores.location,e=>e.pathname)}-${h(t.stores.status)}`;return(0,D.jsx)(da,{getResetKey:()=>n,onCatch:(t,n)=>{if(sn(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(sn(t))return e.fallback?.(t);throw t},children:e.children})}function Ka(){return(0,D.jsx)(`p`,{children:`Not Found`})}function qa({children:e}){let t=x();return t.isServer?(0,D.jsx)(`script`,{nonce:t.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:e+`;document.currentScript.remove()`}}):null}function Ja(e){return(0,D.jsx)(D.Fragment,{children:e.children})}function Ya(e,t,n){return t.options.notFoundComponent?ua((0,D.jsx)(t.options.notFoundComponent,{...n}),`notFoundComponent`):e.options.defaultNotFoundComponent?ua((0,D.jsx)(e.options.defaultNotFoundComponent,{...n}),`notFoundComponent`):(t.options.notFoundComponent||console.warn(`Warning: A notFoundError was encountered on the route with ID "${t.id}", but a notFoundComponent option was not configured, nor was a router level defaultNotFoundComponent configured. Consider configuring at least one of these to avoid TanStack Router's overly generic defaultNotFoundComponent (<p>Not Found</p>)`),(0,D.jsx)(Ka,{}))}function Xa(e){return null}function Za(){let e=Xa(x());return e?(0,D.jsx)(qa,{children:e}):null}function Qa(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?ua((0,D.jsx)(n,{}),`pendingComponent`):null}var $a=(e,t)=>e[0]===t[0]&&e[1]===t[1],eo=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!(e.isServer||e.ssr),to=E.memo(function({routeId:e}){let t=x();return t.isServer?(0,D.jsx)(A,{router:t,match:t.stores.byRoute.get(e).get()}):(0,D.jsx)(A,{router:t,match:h(t.stores.getMatchStore(e))})});function A({router:e,match:t}){let n=e.routesById[t.routeId],r=Qa(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=eo(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s))?E.Suspense:Ja,l=i?da:Ja,u=o?Ga:Ja;return(0,D.jsxs)(n.isRoot?n.options.shellComponent??Ja:Ja,{children:[(0,D.jsx)(pa.Provider,{value:t.routeId,children:(0,D.jsx)(c,{fallback:r,children:(0,D.jsx)(l,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(sn(e))throw e.routeId??=t.routeId,e;console.warn(`Warning: Error in route match: ${t.id}`),a?.(e,n)},children:(0,D.jsx)(u,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return ua(E.createElement(o,e),`notFoundComponent`)},children:s?(0,D.jsx)(he,{fallback:r,children:(0,D.jsx)(no,{match:t})}):(0,D.jsx)(no,{match:t})})})})}),e.isServer&&n.parentRoute?.id===`__root__`&&e.options.scrollRestoration?(0,D.jsx)(Za,{}):null]})}var no=E.memo(function({match:e}){let t=x(),n=e.routeId,r=t.routesById[n],i=E.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=E.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,D.jsx)(e,{},i):(0,D.jsx)(ro,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!eo(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Qa(t,r)}if(e.status===`notFound`)return Ya(t,r,e.error);if(e.status===`error`){if(t.isServer)return ua((0,D.jsx)((r.options.errorComponent??t.options.defaultErrorComponent)||fa,{error:e.error,reset:void 0,info:{componentStack:``}}),`errorComponent`);throw e.error}return a}),ro=E.memo(function(){{let e=E.useContext(la);e&&console.warn(`Warning: An <Outlet /> was rendered inside a ${e}. <Outlet /> should only be rendered inside a route component.`)}let e=x(),t=E.useContext(pa),n,r,i;if(e.isServer){let a=e.stores.matches.get(),o=a.findIndex(e=>e.routeId===t),s=a[o];n=!!s._notFound,r=s.error,i=a[o+1]?.routeId}else{let a=e.stores.getMatchStore(t);[n,r]=h(a,e=>[!!e._notFound,e.error],{compare:$a}),i=h(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Ya(e,e.routesById[t],r);if(!i)return null;let a=(0,D.jsx)(to,{routeId:i});return t===`__root__`?(0,D.jsx)(E.Suspense,{fallback:Qa(e),children:a}):a});function io(e,t){let n=e[1];e.length=0,n?.(t)}function ao({t:e}){let t=x(),n=t._rendered??=[],r=E.useRef(!1);return t.startTransition=(r,i)=>new Promise(a=>{io(n,!1),n.push(i,a),e(t),E.startTransition(r)}),oa(()=>{let e=t.history.subscribe(t.load);if(r?.current)return e;r&&(r.current=!0),t.updateLatestLocation();let i=t.latestLocation,a=t.buildLocation({to:i.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(_(i.publicHref)!==_(a.publicHref))return t.commitLocation({...a,replace:!0,ignoreBlocker:!0}),e;let o=t.stores.resolvedLocation.get();return o?.href===i.href&&o.state.__TSR_key===i.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...br(o,o)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function oo(){let e=x(),t=e.routesById[cn],n=Qa(e,t),r=e.isServer||e.ssr?Ja:E.Suspense,i=(0,D.jsxs)(D.Fragment,{children:[!e.isServer&&(0,D.jsx)(ao,{t:E.useState()[1]}),(0,D.jsx)(r,{fallback:n,children:(0,D.jsx)(so,{})})]});return e.options.InnerWrap?(0,D.jsx)(e.options.InnerWrap,{children:i}):i}function so(){let e=x(),t=e._rendered,n=e.isServer?e.stores.matches.get():h(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;oa(()=>{t[0]===n&&io(t,!0)},[t,n]);let a=i?(0,D.jsx)(to,{routeId:i}):null;return(0,D.jsx)(pa.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,D.jsx)(da,{getResetKey:()=>r,onCatch:e=>{console.warn(`Warning: The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!`),console.warn(`Warning:`,e)},children:a})})}var co=e=>e.isServer?{createMutableStore:rr,createReadonlyStore:ir,batch:e=>e()}:{createMutableStore:ja,createReadonlyStore:ja,batch:Oa},lo=e=>new uo(e),uo=class extends wr{constructor(e){super(e,co)}};function fo({router:e,children:t,...n}){Dt(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,D.jsx)(ae.Provider,{value:e,children:t});return e.options.Wrap?(0,D.jsx)(e.options.Wrap,{children:r}):r}function po({router:e,...t}){return(0,D.jsx)(fo,{router:e,...t,children:(0,D.jsx)(oo,{})})}function mo(e){let t=x({warn:e?.router===void 0}),n=e?.router||t;if(n.isServer){let t=n.stores.__store.get();return e?.select?e.select(t):t}return h(n.stores.__store,Pa(e,n))}var ho=on(),go=`stellaris.token`;function _o(){return localStorage.getItem(go)}function vo(e){localStorage.setItem(go,e)}function yo(){localStorage.removeItem(go)}var bo=class extends Error{status;constructor(e,t){super(t),this.status=e}},xo=i({name:Ft,role:Ft}),So=Ot.extend({profile:S()}).array(),Co=i({paused:ue(),running:u(S()),pending:u(S()),resident:u(S()),signals:u(S())});function wo(e){return e.flatMap(e=>{let t=a(e);return t===null?[]:[t]})}var To=ft.extend({body:S()}),Eo=To.array(),Do=i({ref:c,project:Ft.nullable(),name:Ft,messages:ot().int(),lastMessageId:be.nullable(),lastAt:S().nullable()}),Oo=Ze.extend({body:S()}),ko=Oo.extend({messages:ot().int(),lastMessageId:be.nullable(),lastAuthor:Ft.nullable().default(null)}),Ao=i({thread:Oo,messages:Eo}),jo=i({message:To,thread:Oo.nullable()}),Mo=lt.extend({body:S()}),No=Ie.extend({body:S()}),Po=e.extend({body:S()}),Fo=i({body:S()}),Io=i({data:rt(S(),se()),body:S()});function Lo(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}async function j(e,t,n){let r;try{r=await fetch(e,{headers:{authorization:`Bearer ${t}`}})}catch{throw new bo(0,`The board server is not reachable.`)}if(!r.ok)throw new bo(r.status,`${e} answered ${r.status}`);return n.parse(await r.json())}var Ro=i({message:S()});async function zo(e,t,n,r,i){let a;try{a=await fetch(t,{method:e,headers:{authorization:`Bearer ${n}`,"content-type":`application/json`},body:JSON.stringify(r)})}catch{throw new bo(0,`The board server is not reachable.`)}if(!a.ok){let e=Ro.safeParse(await a.json().catch(()=>null));throw new bo(a.status,e.success?e.data.message:`${t} answered ${a.status}`)}return i.parse(await a.json())}function Bo(e,t,n,r){return zo(`POST`,`/api/verbs/${e}`,t,n,r)}var Vo=i({paused:ue()}),Ho=i({id:be,ts:S(),signal:ie}),Uo=ne.omit({tokenHash:!0});function Wo(e){return{me:()=>j(`/api/me`,e,xo),society:()=>j(`/api/society`,e,vt),members:()=>j(`/api/members`,e,So),projects:()=>j(`/api/projects`,e,et.array()),roles:()=>j(`/api/roles`,e,ze.array()),scheduler:()=>j(`/api/scheduler`,e,Co),signals:t=>j(`/api/signals?limit=${t}`,e,Ho.array()),metrics:t=>j(`/api/metrics?window=${t}`,e,m),channels:()=>j(`/api/channels`,e,Do.array()),channel:t=>j(`/api/channels/${Lo(t)}`,e,Eo),threads:()=>j(`/api/threads`,e,ko.array()),requests:()=>j(`/api/requests`,e,jo.array()),thread:t=>j(`/api/threads/${encodeURIComponent(t)}`,e,Ao),tasks:t=>j(`/api/projects/${encodeURIComponent(t)}/tasks`,e,Mo.array()),task:t=>j(`/api/tasks/${encodeURIComponent(t)}`,e,Mo),proposals:()=>j(`/api/proposals`,e,No.array()),proposal:t=>j(`/api/proposals/${encodeURIComponent(t)}`,e,No),skills:()=>j(`/api/skills`,e,qe.array()),turns:(t,n)=>j(`/api/agents/${encodeURIComponent(t)}/turns?limit=${n}`,e,zt.array()),transcript:(t,n)=>j(`/api/agents/${encodeURIComponent(t)}/turns/${encodeURIComponent(n)}`,e,Te.array()),memory:t=>j(`/api/agents/${encodeURIComponent(t)}/memory`,e,Fo),agentSkills:t=>j(`/api/agents/${encodeURIComponent(t)}/skills`,e,qe.array()),history:(t,n)=>j(`/api/agents/${encodeURIComponent(t)}/history?limit=${n}`,e,pe),change:(t,n)=>j(`/api/agents/${encodeURIComponent(t)}/history/${encodeURIComponent(n)}`,e,je.array()),conflicts:t=>j(`/api/agents/${encodeURIComponent(t)}/conflicts`,e,De.array()),dashboard:t=>j(`/api/projects/${encodeURIComponent(t)}/dashboard`,e,Io),knowledge:t=>j(t===`society`?`/api/society/knowledge`:`/api/projects/${encodeURIComponent(t)}/knowledge`,e,Po.array()),sendMessage:t=>Bo(`post_message`,e,t,To),openThread:t=>Bo(`open_thread`,e,t,Oo),closeThread:t=>Bo(`close_thread`,e,t,To),approve:t=>Bo(`approve`,e,t,ke),reject:t=>Bo(`reject`,e,t,ke),wake:t=>zo(`POST`,`/api/wake`,e,t,v),setPaused:t=>zo(`POST`,t?`/api/pause`:`/api/resume`,e,{},Vo),models:t=>j(`/api/models/${t}`,e,Ct.array()),runners:()=>j(`/api/runners`,e,st.array()),setRunner:(t,n)=>zo(`PUT`,`/api/agents/${encodeURIComponent(t)}/runner`,e,{runner:n},Uo),setModel:(t,n)=>zo(`PUT`,`/api/agents/${encodeURIComponent(t)}/model`,e,{model:n},Uo)}}var M=de(),Go=`/home/climage/projects/stellaris/apps/web/src/components/TokenGate.tsx`;function Ko(e){return e instanceof bo&&e.status===401?`This board does not recognize that token.`:e instanceof bo&&e.status===0?`The board server is not reachable. Is it running?`:`The board server answered unexpectedly.`}function qo({onEnter:e}){let[t,n]=(0,E.useState)(``),[r,i]=(0,E.useState)(null),[a,o]=(0,E.useState)(!1);async function s(n){n.preventDefault();let r=t.trim();o(!0),i(null);try{await Wo(r).me(),e(r)}catch(e){i(Ko(e))}finally{o(!1)}}return(0,M.jsxDEV)(`main`,{className:`relative grid h-full place-items-center overflow-hidden bg-[radial-gradient(ellipse_at_center,rgba(255,255,255,0.04),transparent_60%)]`,children:(0,M.jsxDEV)(`form`,{onSubmit:e=>void s(e),className:`card w-[380px] p-6`,children:[(0,M.jsxDEV)(`h1`,{className:`text-display`,children:`Stellaris`},void 0,!1,{fileName:Go,lineNumber:38,columnNumber:9},this),(0,M.jsxDEV)(`p`,{className:`mt-1 text-meta`,children:`A society of autonomous agents on one board.`},void 0,!1,{fileName:Go,lineNumber:39,columnNumber:9},this),(0,M.jsxDEV)(`label`,{className:`mt-6 block`,children:[(0,M.jsxDEV)(`span`,{className:`mb-1.5 block text-caps`,children:`Board token`},void 0,!1,{fileName:Go,lineNumber:41,columnNumber:11},this),(0,M.jsxDEV)(`input`,{type:`password`,name:`token`,autoComplete:`off`,spellCheck:!1,placeholder:`stl_…`,value:t,onChange:e=>n(e.target.value),className:`w-full rounded-md border border-line bg-transparent px-3 py-2 font-mono text-sm text-fg-primary outline-none transition-colors placeholder:text-fg-muted focus:border-line-strong`},void 0,!1,{fileName:Go,lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:Go,lineNumber:40,columnNumber:9},this),(0,M.jsxDEV)(`p`,{className:`mt-2 text-meta`,children:[`The user token `,(0,M.jsxDEV)(`code`,{className:`font-mono text-fg-secondary`,children:`stellaris init`},void 0,!1,{fileName:Go,lineNumber:54,columnNumber:26},this),` printed once.`]},void 0,!0,{fileName:Go,lineNumber:53,columnNumber:9},this),r===null?null:(0,M.jsxDEV)(`p`,{role:`alert`,className:`mt-3 text-xs text-red-400`,children:r},void 0,!1,{fileName:Go,lineNumber:58,columnNumber:11},this),(0,M.jsxDEV)(`button`,{type:`submit`,disabled:a||t.trim()===``,className:`mt-5 inline-flex h-9 w-full items-center justify-center rounded-md bg-fg-primary text-sm font-medium tracking-tight text-surface-0 transition-colors hover:bg-white focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-40`,children:a?`Checking…`:`Enter the playground`},void 0,!1,{fileName:Go,lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:Go,lineNumber:37,columnNumber:7},this)},void 0,!1,{fileName:Go,lineNumber:36,columnNumber:5},this)}var Jo=80;function Yo(e){return e.filter(e=>e.channel===`asks`&&e.subject===void 0&&e.openedBy===`user`).toSorted((e,t)=>t.id.localeCompare(e.id))}function Xo(e){let t=e.trim().split(`
|
|
228
|
-
`)[0]?.replace(/^(#+|>)\s*/,``).replaceAll(/\s+/g,` `).trim()??``;if(t===``)return`Ask`;if(t.length<=Jo)return t;let n=t.slice(0,79),r=n.lastIndexOf(` `);return`${r>Jo/2?n.slice(0,r):n}…`}function Zo(e,t,n){if(e.state===`closed`)return{kind:`closed`,by:e.closedBy};let r=t=>[...new Set(t.filter(t=>t.thread===e.id).map(e=>e.agent))],i=r(t);if(i.length>0)return{kind:`answering`,who:i};let a=r(n);return a.length>0?{kind:`queued`,who:a}:e.lastAuthor===null||e.lastAuthor===`user`?{kind:`waiting`}:{kind:`answered`,by:e.lastAuthor}}function Qo(e,t){return e.state===`open`&&e.lastAuthor!==null&&e.lastAuthor!==`user`&&e.lastMessageId!==null&&e.lastMessageId>(t?.[e.id]??``)}var $o=`/home/climage/projects/stellaris/apps/web/src/components/Island.tsx`,es=`rounded-2xl bg-surface-1/80 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.07),0_24px_48px_-16px_rgba(0,0,0,0.8)] backdrop-blur-xl`;function ts({label:e,className:t,style:n,children:r}){return(0,M.jsxDEV)(`section`,{"aria-label":e,style:n,className:`absolute flex flex-col overflow-hidden ${es} ${t}`,children:r},void 0,!1,{fileName:$o,lineNumber:23,columnNumber:5},this)}var ns=`stellaris.seen`,rs=`*`,is=new Set;function as(){try{let e=typeof localStorage>`u`?null:localStorage.getItem(ns);return e===null?null:rt(S(),S()).parse(JSON.parse(e))}catch{return null}}var os=as();function ss(e){os=e,localStorage.setItem(ns,JSON.stringify(e));for(let e of is)e()}function cs(e){return is.add(e),()=>is.delete(e)}function ls(){return(0,E.useSyncExternalStore)(cs,()=>os)}function us(e){os?.[rs]===void 0&&ss({...Object.fromEntries(e.map(([e,t])=>[e,t??``])),...os,[rs]:`1`})}function ds(e,t){t!==null&&t>(os?.[e]??``)&&ss({...os,[e]:t})}function fs(e,t,n){return e!==null&&n!==null&&n>(e[t]??``)}var ps=[{group:`yours`,label:`Waiting on you`},{group:`others`,label:`Waiting on others`},{group:`decided`,label:`Decided`}];function ms(e){let t=Pe(e.kind,e.charter);return t.charAt(0).toUpperCase()+t.slice(1)}function hs(e){return e.status===`proposed`&&e.proposedBy!==`user`&&ht[e.kind].includes(`user`)}function gs(e){return e.status===`proposed`?hs(e)?`yours`:`others`:`decided`}function _s(e){return ps.map(({group:t})=>{let n=e.filter(e=>gs(e)===t);return{group:t,proposals:t===`decided`?n.toSorted((e,t)=>(t.decidedAt??t.createdAt).localeCompare(e.decidedAt??e.createdAt)):n.toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}}).filter(e=>e.proposals.length>0)}var vs=new Intl.ListFormat(`en`,{type:`disjunction`});function ys(e,t){let n=ht[e.kind].flatMap(n=>n===`user`?e.proposedBy===`user`?[]:[`you`]:[n===t?`another ${n}`:`the ${n}`]);return n.length===0?`nobody`:vs.format(n)}function bs(e){let t=ze.safeParse(e.charter);return e.kind===`role`&&t.success?t.data:null}function xs(e){return e===void 0?`unset`:typeof e==`boolean`?e?`yes`:`no`:Array.isArray(e)?e.length===0?`none`:e.join(`, `):typeof e==`string`||typeof e==`number`?String(e):JSON.stringify(e)}var Ss=[[`wakeTriggers`,`wake triggers`],[`maxReplicas`,`replicas per project`],[`backlogThreshold`,`backlog per member before scaling`],[`resident`,`warm session`],[`societyScope`,`society role`],[`reflects`,`reflects`],[`reviewDate`,`review date`]];function Cs(e,t){return{verbsAdded:t.verbs.filter(t=>!e.verbs.includes(t)),verbsRemoved:e.verbs.filter(e=>!t.verbs.includes(e)),purposeChanged:e.purpose.trim()!==t.purpose.trim(),changes:Ss.flatMap(([n,r])=>{let i=xs(e[n]),a=xs(t[n]);return i===a?[]:[{field:r,from:i,to:a}]})}}function ws(e){return e.replace(/^\s*---\n[\s\S]*?\n---[ \t]*\n?/,``).trim()}function Ts(e,t){switch(e.kind){case`member`:{let t=Ge.safeParse(e.charter);if(!t.success)break;let{name:n,role:r,cli:i,memberships:a}=t.data;return`Creates the citizen ${n} (${r}, ${i})${a.length===0?``:` in ${a.join(`, `)}`} and starts its first turn.`}case`role`:{let n=bs(e);if(n===null)break;if(!t.roles.some(e=>e.name===n.name))return`Adds the role ${n.name}; nobody holds it until a member proposal is approved.`;let r=t.members.filter(e=>e.role===n.name&&e.status===`active`).length;return r===0?`Rewrites the ${n.name} charter; no active member holds the role.`:`Rewrites the ${n.name} charter for ${r===1?`its member`:`its ${r} members`}, from their next turn.`}case`channel`:{let t=ee.safeParse(e.charter);if(!t.success)break;return`Creates #${p(t.data.project,t.data.name)}.`}case`retirement`:{let t=Ve.safeParse(e.charter);if(!t.success)break;return`Retires ${t.data.agent}: its stages go back to open and its home is archived, not deleted.`}case`skill`:{let n=Ue.safeParse(e.charter);if(!n.success)break;return t.skills.some(e=>e.name===n.data.name)?`Replaces the society's ${n.data.name} skill with this text.`:`Publishes ${n.data.name} to the society's skills, which every citizen's instructions list.`}case`archive`:{let t=yt.safeParse(e.charter);if(!t.success)break;return`Archives ${t.data.project}: its members leave, its open threads close, and it takes no more work; its channels, tasks, and history stay readable.`}case`reallocation`:return`Records the decision; the board carries out nothing for a reallocation.`}return`The charter does not parse as its kind; approving it will fail.`}function Es(e){let t=Wt(e);if(t===`landing`||t===`done`||t===`abandoned`)return null;let n=e.stages.find(t=>t.id===e.stage);return n===void 0||n.agent!==`user`&&n.role!==`user`?null:e.status===`open`||e.claimedBy===`user`?n:null}function Ds(e){let t=(e,t)=>e.since.localeCompare(t.since),n=e.proposals.filter(hs).map(e=>({kind:`proposal`,since:e.createdAt,proposal:e})),r=e.tasks.flatMap(e=>{let t=Es(e);return t===null?[]:[{kind:`stage`,since:e.stageSince,task:e,stage:t}]}),i=e.requests.map(({message:e,thread:t})=>({kind:`request`,since:e.ts,message:e,thread:t}));return[...n.toSorted(t),...r.toSorted(t),...i.toSorted(t)]}function Os(){let e=Le(),t=pt(),n=It();return Ds({proposals:e.data??[],tasks:t,requests:n.data??[]})}var ks={claude:{label:`Claude Code`,path:`M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z`,fill:`#D97757`,accent:`#fb923c`},codex:{label:`Codex`,path:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`,fill:`#f5f5f5`,accent:`#10b981`}},As=`/home/climage/projects/stellaris/apps/web/src/components/CliIcon.tsx`;function js({cli:e,size:t=16}){let n=ks[e];return(0,M.jsxDEV)(`svg`,{viewBox:`0 0 24 24`,width:t,height:t,"aria-hidden":`true`,className:`shrink-0`,children:(0,M.jsxDEV)(`path`,{d:n.path,fill:n.fill,fillRule:`evenodd`,clipRule:`evenodd`},void 0,!1,{fileName:As,lineNumber:9,columnNumber:7},this)},void 0,!1,{fileName:As,lineNumber:8,columnNumber:5},this)}var Ms=new Map,Ns=/(?<![\w/.-])[0-9A-HJKMNP-TV-Z]{26}(?![\w/-]|\.\w)/g;function Ps(e,t,n){let r=new Map;for(let t of e){let e=t.subject?.kind===`task`?`task`:t.subject?.kind===`proposal`?`proposal`:`thread`;r.set(t.id,{kind:e,id:t.id,title:t.title})}for(let e of t)r.set(e.id,{kind:`task`,id:e.id,title:e.title});for(let e of n)r.set(e.id,{kind:`proposal`,id:e.id,title:Pe(e.kind,e.charter)});return r}function Fs(e,t){if(t.size===0)return[e];let n=[],r=0;for(let i of e.matchAll(Ns)){let a=i.index??0,o=t.get(i[0]);if(o===void 0||a<r)continue;a>r&&n.push(e.slice(r,a)),n.push(o),r=a+i[0].length;let s=[` "${o.title}"`,`: ${o.title}`].find(t=>e.startsWith(t,r));r+=s?.length??0}return r<e.length&&n.push(e.slice(r)),n}function Is(e,t){return Fs(e,t).map(e=>typeof e==`string`?e:e.title).join(``)}function Ls(e){return`/${e.kind}/${e.id}`}var Rs=/^\/(task|proposal|thread)\/([0-9A-HJKMNP-TV-Z]{26})$/;function zs(e){let t=e===void 0?null:Rs.exec(e),n=t?.[1],r=t?.[2];return n===`task`||n===`proposal`||n===`thread`?r===void 0?null:{kind:n,id:r}:null}var Bs=new Set([`code`,`inlineCode`,`link`,`linkReference`,`html`]);function Vs(e){return{type:`link`,url:Ls(e),title:`${e.kind} ${e.id}`,children:[{type:`text`,value:e.title}]}}function Hs(e,t){e.children!==void 0&&(e.children=e.children.flatMap(e=>{if(e.type===`text`&&e.value!==void 0)return Fs(e.value,t).map(e=>typeof e==`string`?{type:`text`,value:e}:Vs(e));let n=e.type===`inlineCode`?t.get(e.value?.trim()??``):void 0;return n===void 0?(Bs.has(e.type)||Hs(e,t),[e]):[Vs(n)]}))}function Us(e){return t=>Hs(t,e.index)}var Ws=`/home/climage/projects/stellaris/apps/web/src/components/Entities.tsx`,Gs=(0,E.createContext)(Ms);function Ks(){return(0,E.useContext)(Gs)}var qs=`text-fg-primary underline decoration-fg-muted underline-offset-2 hover:decoration-fg-primary`;function Js({kind:e,id:t,className:n=qs,children:r}){let i=`${e} ${t}`;return e===`task`?(0,M.jsxDEV)(C,{to:`/task/$taskId`,params:{taskId:t},title:i,className:n,children:r},void 0,!1,{fileName:Ws,lineNumber:30,columnNumber:7},this):e===`proposal`?(0,M.jsxDEV)(C,{to:`/proposal/$proposalId`,params:{proposalId:t},title:i,className:n,children:r},void 0,!1,{fileName:Ws,lineNumber:37,columnNumber:7},this):(0,M.jsxDEV)(C,{to:`/thread/$threadId`,params:{threadId:t},title:i,className:n,children:r},void 0,!1,{fileName:Ws,lineNumber:48,columnNumber:5},this)}function Ys({text:e,links:t=!0}){let n=Ks();return(0,M.jsxDEV)(M.Fragment,{children:Fs(e,n).map((e,n)=>typeof e==`string`?e:t?(0,M.jsxDEV)(Js,{kind:e.kind,id:e.id,children:e.title},`${e.id}-${n}`,!1,{fileName:Ws,lineNumber:67,columnNumber:11},this):(0,M.jsxDEV)(`span`,{title:`${e.kind} ${e.id}`,children:e.title},`${e.id}-${n}`,!1,{fileName:Ws,lineNumber:71,columnNumber:11},this))},void 0,!1,{fileName:Ws,lineNumber:61,columnNumber:5},this)}function Xs(e,t){return new Promise(n=>{let r=setTimeout(n,e);t.addEventListener(`abort`,()=>{clearTimeout(r),n()})})}function Zs(e){return e.split(`
|
|
229
|
-
`).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(`
|
|
230
|
-
`)}function Qs(e){let t=new AbortController,{signal:n}=t,r=1e3,i=!1;return(async()=>{for(;!n.aborted;){try{let t=await fetch(e.url(),{headers:{authorization:`Bearer ${e.token}`},signal:n});if(!t.ok||t.body===null)throw Error(`the stream answered ${t.status}`);e.onOpen?.(i),r=1e3;let a=t.body.pipeThrough(new TextDecoderStream).getReader(),o=``;for(;;){let{value:t,done:n}=await a.read();if(n)break;o+=t.replaceAll(`\r
|
|
231
|
-
`,`
|
|
232
|
-
`);for(let t=o.indexOf(`
|
|
233
|
-
|
|
234
|
-
`);t>=0;t=o.indexOf(`
|
|
235
|
-
|
|
236
|
-
`)){let n=Zs(o.slice(0,t));o=o.slice(t+2),n!==``&&e.onData(n)}e.onBatch?.()}}catch{if(n.aborted)return}i=!0,await Xs(r,n),r=Math.min(r*2,15e3)}})(),()=>t.abort()}function $s(e,t,n){return Ce(e,t,n)}function ec(e){return e.thread===void 0?e.scope:`${e.scope}/${e.thread}`}function tc(e,t){return[...e.values()].filter(e=>e.agent===t).toSorted((e,t)=>t.lastAt.localeCompare(e.lastAt))}var nc=400,rc=400,ic=4e3;function ac(e){let t=/^mcp__(.+?)__(.+)$/.exec(e);return t===null?e:t[1]===`board`?t[2]??e:`${t[1]}:${t[2]}`}function oc(e,t){return e.length<=t?e:`${e.slice(0,t-1)}…`}function sc(e){return e.replaceAll(/\s+/g,` `).trim()}function cc(e){return e.split(`
|
|
237
|
-
`).map(e=>e.trim()).find(e=>e.length>0)??``}function lc(e){return/^\/bin\/(?:ba)?sh -lc (["'])([\s\S]*)\1$/.exec(e.trim())?.[2]??e}function uc(e){return typeof e==`object`&&e&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}var dc=[`file_path`,`path`,`url`,`query`,`pattern`,`description`,`prompt`];function fc(e){let t=uc(e),n=t.command;if(typeof n==`string`){let e=lc(n);return{summary:oc(sc(e),rc),detail:oc(e,ic)}}let r=oc(JSON.stringify(e??null,null,2),ic),i=t.changes;if(Array.isArray(i))return{summary:oc(i.map(e=>uc(e).path).filter(e=>typeof e==`string`).join(`, `),rc),detail:r};let a=dc.map(e=>t[e]).find(e=>typeof e==`string`&&e.trim()!==``),o=Object.values(t).filter(e=>typeof e==`string`||typeof e==`number`);return{summary:oc(sc(a??o.slice(0,3).join(` · `)),rc),detail:r}}var pc=`StructuredOutput`;function mc(e,t){try{return uc(JSON.parse(e)).summary===t}catch{return!1}}function hc(e,t,n){let r=[...e.steps,t],i=r.length-n;return{...e,steps:i>0?r.slice(i):r,fromStart:e.fromStart&&i<=0,lastAt:t.at}}function gc(e,t,{maxSteps:n}={maxSteps:nc}){let{event:r}=t,i=$s(t.agent,t.project,t.thread),a=e.get(i),o=new Map(e),s={agent:t.agent,scope:t.project,...t.thread===void 0?{}:{thread:t.thread}};if(r.type===`turn_started`)return o.set(i,{...s,startedAt:t.ts,fromStart:!0,model:r.model??null,steps:[],lastAt:t.ts,end:null}),o;let c=a!==void 0&&a.end===null?a:{...s,startedAt:t.ts,fromStart:!1,model:null,steps:[],lastAt:t.ts,end:null};switch(r.type){case`text`:o.set(i,hc(c,{kind:`say`,seq:t.seq,at:t.ts,text:r.delta},n));break;case`tool_call`:if(r.name===pc)break;o.set(i,hc(c,{kind:`tool`,seq:t.seq,at:t.ts,name:r.name,...fc(r.input),ok:null,output:null},n));break;case`tool_result`:{let e=c.steps.findIndex(e=>e.kind===`tool`&&e.name===r.name&&e.ok===null),n=c.steps[e];if(n?.kind===`tool`){let a=c.steps.with(e,{...n,ok:r.ok,output:r.output??null});o.set(i,{...c,steps:a,lastAt:t.ts})}break}case`error`:o.set(i,hc(c,{kind:`error`,seq:t.seq,at:t.ts,message:r.message},n));break;case`turn_completed`:{let e=r.status?.summary??null,n=c.steps.at(-1),a=n?.kind===`say`&&e!==null&&mc(n.text,e);o.set(i,{...c,steps:a?c.steps.slice(0,-1):c.steps,lastAt:t.ts,end:{at:t.ts,exitReason:r.exitReason,costUsd:r.costUsd,summary:e}});break}}return o}function _c(e,t,n,r){let i=new Map;for(let[a,o]of e.entries())i=gc(i,{seq:a+1,ts:o.ts,agent:t,project:n,...r===void 0?{}:{thread:r},event:o.event},{maxSteps:1/0});return i.get($s(t,n,r))}function vc(e,t){if(ac(e)!==`post_message`)return null;let n=uc(t).body,r=typeof n==`string`?cc(n).replace(/^[#>*\-\s]+/,``):``;return r===``?null:oc(r,rc)}function yc(e){let t=e.steps.at(-1);return t===void 0?null:t.kind===`tool`?`${ac(t.name)} · ${t.summary}`:oc(cc(t.kind===`say`?t.text:t.message),rc)}function bc(e,t){return xt(t-Date.parse(e))}var xc=class{turns=new Map;listeners=new Set;eventListeners=new Set;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});snapshot=()=>this.turns;listen=e=>(this.eventListeners.add(e),()=>{this.eventListeners.delete(e)});follow(e){return Qs({token:e,url:()=>`/api/turns/stream?since=0`,onOpen:()=>{this.turns=new Map,this.emit()},onData:e=>{let t=xe.safeParse(JSON.parse(e));if(t.success){this.turns=gc(this.turns,t.data);for(let e of this.eventListeners)e(t.data)}},onBatch:()=>this.emit()})}emit(){for(let e of this.listeners)e()}},Sc=(0,E.createContext)(null);function Cc(){let e=(0,E.useContext)(Sc);if(e===null)throw Error(`useLiveTurns needs a LiveContext`);return(0,E.useSyncExternalStore)(e.subscribe,e.snapshot)}var wc=`/home/climage/projects/stellaris/apps/web/src/board/WorkingNow.tsx`;function Tc({activeCitizen:e,activeScope:t}){let n=Nt(),r=gt(),i=Cc(),a=Ks(),o=Ne(5e3),s=wo(n.data?.running??[]),c=n.data?.pending.length??0;return(0,M.jsxDEV)(`section`,{"aria-label":`Working now`,className:`mt-3`,children:[(0,M.jsxDEV)(`h3`,{className:`flex items-center justify-between px-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:[(0,M.jsxDEV)(`span`,{children:`Working now`},void 0,!1,{fileName:wc,lineNumber:32,columnNumber:9},this),c>0?(0,M.jsxDEV)(`span`,{className:`font-normal tracking-normal normal-case`,children:[c,` queued`]},void 0,!0,{fileName:wc,lineNumber:34,columnNumber:11},this):null]},void 0,!0,{fileName:wc,lineNumber:31,columnNumber:7},this),s.length===0?(0,M.jsxDEV)(`p`,{className:`px-2 py-1 text-xs text-fg-muted`,children:`Nobody is in a turn.`},void 0,!1,{fileName:wc,lineNumber:38,columnNumber:9},this):(0,M.jsxDEV)(`ul`,{children:s.map(({agent:n,scope:s,thread:c})=>{let l=i.get($s(n,s,c)),u=l!==void 0&&l.end===null,d=r.data?.find(e=>e.name===n)?.cli??null,f=u?yc(l):null,p=ec({scope:s,thread:c}),m=n===e&&(t===null||t===p||t===s),h=s===`society`?`society`:s,g=c===void 0?null:a.get(c)?.title??`a thread`;return(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(C,{to:`/citizen/$name`,params:{name:n},search:{scope:p},className:`block rounded-lg px-2 py-1.5 transition-colors ${m?`bg-surface-2/80 text-fg-primary`:`text-fg-secondary hover:bg-surface-2/50 hover:text-fg-primary`}`,children:[(0,M.jsxDEV)(`span`,{className:`flex items-center gap-1.5 text-sm`,children:[(0,M.jsxDEV)(`span`,{className:`relative grid size-4 shrink-0 place-items-center`,children:[d===null?null:(0,M.jsxDEV)(js,{cli:d,size:13},void 0,!1,{fileName:wc,lineNumber:66,columnNumber:46},this),(0,M.jsxDEV)(`span`,{className:`absolute -right-0.5 -bottom-0.5 size-1.5 animate-pulse rounded-full bg-emerald-400`},void 0,!1,{fileName:wc,lineNumber:67,columnNumber:23},this)]},void 0,!0,{fileName:wc,lineNumber:65,columnNumber:21},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 truncate`,children:n},void 0,!1,{fileName:wc,lineNumber:69,columnNumber:21},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-xs text-fg-muted`,children:g===null?h:`${h} · ${g}`},void 0,!1,{fileName:wc,lineNumber:70,columnNumber:21},this),u?(0,M.jsxDEV)(`span`,{className:`shrink-0 font-mono text-[11px] text-fg-tertiary`,children:[l.fromStart?``:`≥ `,bc(l.startedAt,o)]},void 0,!0,{fileName:wc,lineNumber:74,columnNumber:23},this):null]},void 0,!0,{fileName:wc,lineNumber:64,columnNumber:19},this),(0,M.jsxDEV)(`span`,{className:`mt-0.5 block truncate pl-5.5 text-[11px] text-fg-muted`,children:f===null?`Starting…`:(0,M.jsxDEV)(Ys,{text:f,links:!1},void 0,!1,{fileName:wc,lineNumber:81,columnNumber:52},this)},void 0,!1,{fileName:wc,lineNumber:80,columnNumber:19},this)]},void 0,!0,{fileName:wc,lineNumber:54,columnNumber:17},this)},$s(n,s,c),!1,{fileName:wc,lineNumber:53,columnNumber:15},this)})},void 0,!1,{fileName:wc,lineNumber:40,columnNumber:9},this)]},void 0,!0,{fileName:wc,lineNumber:30,columnNumber:5},this)}var N=`/home/climage/projects/stellaris/apps/web/src/board/Navigator.tsx`,Ec=`flex items-center gap-1.5 rounded-lg px-2 py-1.5 text-sm transition-colors`;function Dc(e){return`block truncate rounded-md px-2 text-[11px] font-semibold tracking-wider uppercase transition-colors ${e?`text-fg-primary`:`text-fg-muted hover:text-fg-primary`}`}var Oc=`bg-surface-2/80 text-fg-primary`,kc=`text-fg-secondary hover:bg-surface-2/50 hover:text-fg-primary`;function Ac({slug:e,active:t}){let r=(n(e).data??[]).filter(Vt).length;return(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(C,{to:`/p/$slug/tasks`,params:{slug:e},className:`${Ec} ${t?Oc:kc}`,children:[(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,className:`text-fg-muted`,children:`◇`},void 0,!1,{fileName:N,lineNumber:45,columnNumber:9},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate`,children:`tasks`},void 0,!1,{fileName:N,lineNumber:48,columnNumber:9},this),r>0?(0,M.jsxDEV)(`span`,{title:`${r} tasks in play`,className:`rounded-md bg-surface-2/70 px-1.5 text-[11px] text-fg-tertiary`,children:r},void 0,!1,{fileName:N,lineNumber:50,columnNumber:11},this):null]},void 0,!0,{fileName:N,lineNumber:40,columnNumber:7},this)},void 0,!1,{fileName:N,lineNumber:39,columnNumber:5},this)}function jc({value:e,title:t}){return e===0?null:(0,M.jsxDEV)(`span`,{title:t,className:`rounded-md bg-amber-500/15 px-1.5 text-[11px] text-amber-300`,children:e},void 0,!1,{fileName:N,lineNumber:64,columnNumber:5},this)}function Mc({active:e}){let t=(Le().data??[]).filter(hs).length,n=Os().length;return(0,M.jsxDEV)(`section`,{"aria-label":`Governance`,className:`mt-3`,children:[(0,M.jsxDEV)(`h3`,{className:`px-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:`Governance`},void 0,!1,{fileName:N,lineNumber:77,columnNumber:7},this),(0,M.jsxDEV)(`ul`,{children:[(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(C,{to:`/needs-you`,className:`${Ec} ${e===`needs-you`?Oc:kc}`,children:[(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,className:`text-fg-muted`,children:`◉`},void 0,!1,{fileName:N,lineNumber:86,columnNumber:13},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate`,children:`needs you`},void 0,!1,{fileName:N,lineNumber:89,columnNumber:13},this),(0,M.jsxDEV)(jc,{value:n,title:`${n} waiting on you`},void 0,!1,{fileName:N,lineNumber:90,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:82,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:81,columnNumber:9},this),(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(C,{to:`/proposals`,className:`${Ec} ${e===`proposals`?Oc:kc}`,children:[(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,className:`text-fg-muted`,children:`◈`},void 0,!1,{fileName:N,lineNumber:98,columnNumber:13},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate`,children:`proposals`},void 0,!1,{fileName:N,lineNumber:101,columnNumber:13},this),(0,M.jsxDEV)(jc,{value:t,title:`${t} waiting on you`},void 0,!1,{fileName:N,lineNumber:102,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:94,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:93,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:80,columnNumber:7},this)]},void 0,!0,{fileName:N,lineNumber:76,columnNumber:5},this)}function Nc({activeChannel:e,activeTasks:t,activeCitizen:n,activeScope:r,activeGovernance:i,activeOverview:a}){let o=wt(),s=jt(),c=tt(),l=ls();(0,E.useEffect)(()=>{o.data!==void 0&&us(o.data.map(e=>[e.ref,e.lastMessageId]))},[o.data]);let u=(0,E.useMemo)(()=>(s.data??[]).toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.slug.localeCompare(t.slug)),[s.data]),d=u.filter(e=>e.archived!==void 0),f=(0,E.useMemo)(()=>{let e=o.data??[];return[{key:`society`,label:`Society`,project:null,channels:e.filter(e=>e.project===null)},...u.filter(e=>e.archived===void 0).map(t=>({key:t.slug,label:t.name,project:t.slug,channels:e.filter(e=>e.project===t.slug)}))]},[o.data,u]),p=(0,E.useMemo)(()=>{let e=new Map;for(let t of c.data??[])t.state===`open`&&e.set(t.channel,(e.get(t.channel)??0)+1);return e},[c.data]);return(0,M.jsxDEV)(ts,{label:`Board navigator`,className:`top-[72px] bottom-4 left-4 w-64`,children:[(0,M.jsxDEV)(`header`,{className:`flex items-center justify-between px-4 pt-4 pb-1`,children:[(0,M.jsxDEV)(`span`,{className:`text-caps`,children:`Board`},void 0,!1,{fileName:N,lineNumber:186,columnNumber:9},this),(0,M.jsxDEV)(C,{to:`/`,"aria-label":`Close the board`,className:`grid size-7 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`✕`},void 0,!1,{fileName:N,lineNumber:187,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:185,columnNumber:7},this),(0,M.jsxDEV)(`nav`,{className:`flex-1 overflow-y-auto px-2 pb-3`,children:[(0,M.jsxDEV)(Tc,{activeCitizen:n,activeScope:r},void 0,!1,{fileName:N,lineNumber:196,columnNumber:9},this),(0,M.jsxDEV)(Mc,{active:i},void 0,!1,{fileName:N,lineNumber:197,columnNumber:9},this),f.map(n=>(0,M.jsxDEV)(`section`,{className:`mt-3`,children:[(0,M.jsxDEV)(`h3`,{className:`pb-1`,children:n.project===null?(0,M.jsxDEV)(C,{to:`/society`,className:Dc(a===n.key),children:n.label},void 0,!1,{fileName:N,lineNumber:202,columnNumber:17},this):(0,M.jsxDEV)(C,{to:`/p/$slug`,params:{slug:n.project},className:Dc(a===n.key),children:n.label},void 0,!1,{fileName:N,lineNumber:206,columnNumber:17},this)},void 0,!1,{fileName:N,lineNumber:200,columnNumber:13},this),(0,M.jsxDEV)(`ul`,{children:[n.channels.map(t=>{let n=t.ref===e,r=p.get(t.ref)??0,i=!n&&fs(l,t.ref,t.lastMessageId);return(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(C,{to:`/c/$`,params:{_splat:t.ref},className:`${Ec} ${n?Oc:kc}`,children:[(0,M.jsxDEV)(`span`,{className:`text-fg-muted`,children:`#`},void 0,!1,{fileName:N,lineNumber:227,columnNumber:23},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate ${i?`font-semibold`:``}`,children:t.name},void 0,!1,{fileName:N,lineNumber:228,columnNumber:23},this),r>0?(0,M.jsxDEV)(`span`,{title:`${r} open threads`,className:`rounded-md bg-surface-2/70 px-1.5 text-[11px] text-fg-tertiary`,children:r},void 0,!1,{fileName:N,lineNumber:232,columnNumber:25},this):null,i?(0,M.jsxDEV)(`span`,{"aria-label":`new messages`,className:`size-1.5 rounded-full bg-emerald-400`},void 0,!1,{fileName:N,lineNumber:240,columnNumber:25},this):null]},void 0,!0,{fileName:N,lineNumber:222,columnNumber:21},this)},t.ref,!1,{fileName:N,lineNumber:221,columnNumber:19},this)}),n.project===null?null:(0,M.jsxDEV)(Ac,{slug:n.project,active:n.project===t},void 0,!1,{fileName:N,lineNumber:250,columnNumber:17},this)]},void 0,!0,{fileName:N,lineNumber:215,columnNumber:13},this)]},n.key,!0,{fileName:N,lineNumber:199,columnNumber:11},this)),d.length===0?null:(0,M.jsxDEV)(`section`,{"aria-label":`Archived projects`,className:`mt-3`,children:[(0,M.jsxDEV)(`h3`,{className:`px-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:`Archived`},void 0,!1,{fileName:N,lineNumber:257,columnNumber:13},this),(0,M.jsxDEV)(`ul`,{children:d.map(e=>(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(C,{to:`/p/$slug`,params:{slug:e.slug},className:`${Ec} ${a===e.slug?Oc:kc}`,children:[(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,className:`text-fg-muted`,children:`▫`},void 0,!1,{fileName:N,lineNumber:268,columnNumber:21},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name},void 0,!1,{fileName:N,lineNumber:271,columnNumber:21},this)]},void 0,!0,{fileName:N,lineNumber:263,columnNumber:19},this)},e.slug,!1,{fileName:N,lineNumber:262,columnNumber:17},this))},void 0,!1,{fileName:N,lineNumber:260,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:256,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:195,columnNumber:7},this)]},void 0,!0,{fileName:N,lineNumber:184,columnNumber:5},this)}var Pc=`/home/climage/projects/stellaris/apps/web/src/board/Avatar.tsx`;function Fc({name:e,members:t}){let n=t?.find(t=>t.name===e)?.cli??null;return n===null?e===`user`?(0,M.jsxDEV)(`span`,{className:`grid size-7 shrink-0 place-items-center rounded-lg bg-fg-primary/90 text-[10px] font-semibold text-surface-0`,children:`you`},void 0,!1,{fileName:Pc,lineNumber:22,columnNumber:7},this):(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,className:`grid size-7 shrink-0 place-items-center rounded-lg bg-surface-2/50 text-xs text-fg-muted`,children:`✦`},void 0,!1,{fileName:Pc,lineNumber:28,columnNumber:5},this):(0,M.jsxDEV)(`span`,{className:`grid size-7 shrink-0 place-items-center rounded-lg bg-surface-2/80`,children:(0,M.jsxDEV)(js,{cli:n,size:16},void 0,!1,{fileName:Pc,lineNumber:16,columnNumber:9},this)},void 0,!1,{fileName:Pc,lineNumber:15,columnNumber:7},this)}function Ic({name:e,members:t}){let n=t?.find(t=>t.name===e)?.cli??null;return(0,M.jsxDEV)(`span`,{className:`inline-flex items-center gap-1 align-middle`,children:[n===null?null:(0,M.jsxDEV)(js,{cli:n,size:12},void 0,!1,{fileName:Pc,lineNumber:48,columnNumber:30},this),(0,M.jsxDEV)(`span`,{className:`text-fg-secondary`,children:e},void 0,!1,{fileName:Pc,lineNumber:49,columnNumber:7},this)]},void 0,!0,{fileName:Pc,lineNumber:47,columnNumber:5},this)}function Lc(e){return e===`user`?`you`:e}var Rc=`/home/climage/projects/stellaris/apps/web/src/components/Button.tsx`,zc={primary:`bg-fg-primary font-medium text-surface-0 hover:bg-white`,ghost:`text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`};function Bc({variant:e=`ghost`,className:t=``,...n}){return(0,M.jsxDEV)(`button`,{type:`button`,...n,className:`inline-flex h-7 shrink-0 items-center rounded-md px-3 text-xs transition-colors focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-40 ${zc[e]} ${t}`},void 0,!1,{fileName:Rc,lineNumber:15,columnNumber:5},this)}var Vc=/(^|[^\w@])@([a-z0-9][a-z0-9-]{0,31})(?![\w-])/g,Hc=new Set([`code`,`inlineCode`,`link`,`linkReference`,`html`]);function Uc(e){let t=[],n=0;for(let r of e.matchAll(Vc)){let i=(r.index??0)+(r[1]?.length??0);i>n&&t.push({type:`text`,value:e.slice(n,i)});let a=r[2]??``;t.push({type:`mention`,data:{hName:`span`,hProperties:{className:[`mention`]},hChildren:[{type:`text`,value:`@${a}`}]}}),n=i+a.length+1}return n<e.length&&t.push({type:`text`,value:e.slice(n)}),t}function Wc(e){e.children!==void 0&&(e.children=e.children.flatMap(e=>e.type===`text`&&e.value!==void 0?Uc(e.value):(Hc.has(e.type)||Wc(e),[e])))}function Gc(e){return[...new Set([...e.matchAll(Vc)].map(e=>e[2]??``))].filter(e=>e!==``)}function Kc(){return e=>Wc(e)}function qc(e,t){let n=/(^|[^\w@])@([a-z0-9-]*)$/.exec(e.slice(0,t))?.[2];return n===void 0?null:{start:t-n.length-1,prefix:n}}function Jc(e,t,n,r){let i=`@${r} `;return{text:e.slice(0,n)+i+e.slice(t),caret:n+i.length}}function Yc(e,t,n){let r=t.filter(e=>e.status===`active`&&e.cli!==null),i=r.filter(e=>n.find(t=>t.name===e.role)?.wakeTriggers.includes(`user_post`)).map(e=>e.name),a=Gc(e).filter(e=>r.some(t=>t.name===e));return[...new Set([...i,...a])]}var Xc=new Intl.ListFormat(`en`,{type:`conjunction`});function Zc(e){return Xc.format(e)}var Qc=`/home/climage/projects/stellaris/apps/web/src/board/Composer.tsx`,$c=6;function el({target:e,placeholder:t,oneLine:n=!1,className:r=`border-t border-line p-3`,focusOnOpen:i=!1,onPosted:a,onEmptyEscape:o}){let{api:s}=ve(),c=at(),l=gt(),u=ge(),[d,f]=(0,E.useState)(``),[p,m]=(0,E.useState)(0),[h,_]=(0,E.useState)(0),[v,y]=(0,E.useState)(!1),b=(0,E.useRef)(null),x=(0,E.useRef)(null),ee=$t({mutationFn:async t=>{if(`channel`in e)return s.sendMessage({channel:e.channel,body:t});if(`threadId`in e)return s.sendMessage({thread_id:e.threadId,body:t});let n=await s.openThread({channel:g,title:Xo(t)});return s.sendMessage({thread_id:n.id,body:t})},onSuccess:t=>{f(``),c.invalidateQueries({queryKey:t.thread===void 0?[`channel`,t.channel]:[`thread`,t.thread]}),`ask`in e&&c.invalidateQueries({queryKey:[`threads`]}),c.invalidateQueries({queryKey:[`requests`]}),a?.(t)}});(0,E.useEffect)(()=>{i&&b.current?.focus()},[i]),(0,E.useLayoutEffect)(()=>{let e=b.current;e!==null&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`,x.current!==null&&(e.setSelectionRange(x.current,x.current),x.current=null))});let te=v?null:qc(d,p),ne=(l.data??[]).filter(e=>e.status===`active`&&e.cli!==null),re=te===null?[]:ne.filter(e=>e.name.startsWith(te.prefix)).slice(0,$c),ie=Yc(d,l.data??[],u.data??[]),ae=e=>{if(te===null)return;let t=Jc(d,p,te.start,e);x.current=t.caret,f(t.text),m(t.caret)},oe=()=>{d.trim()!==``&&!ee.isPending&&ee.mutate(d.trim())},S=e=>{if(re.length>0){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:re.length-1;_((h+t)%re.length);return}if(e.key===`Enter`||e.key===`Tab`){e.preventDefault(),ae(re[Math.min(h,re.length-1)]?.name??``);return}if(e.key===`Escape`){e.preventDefault(),y(!0);return}}if(e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing){e.preventDefault(),oe();return}e.key===`Escape`&&d===``&&o!==void 0&&(e.preventDefault(),o())},se=(0,M.jsxDEV)(Bc,{variant:`primary`,type:`submit`,disabled:d.trim()===``||ee.isPending,children:ee.isPending?`Sending…`:`Send`},void 0,!1,{fileName:Qc,lineNumber:165,columnNumber:5},this);return(0,M.jsxDEV)(`form`,{className:r,onSubmit:e=>{e.preventDefault(),oe()},children:[(0,M.jsxDEV)(`div`,{className:`relative rounded-xl bg-surface-2/50 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)] focus-within:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.16)] ${n?`flex items-end gap-2 pr-1.5`:``}`,children:[re.length>0?(0,M.jsxDEV)(`ul`,{"aria-label":`Citizens to mention`,className:`card absolute bottom-full left-2 mb-2 w-60 overflow-hidden py-1`,children:re.map((e,t)=>(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(`button`,{type:`button`,onMouseDown:t=>{t.preventDefault(),ae(e.name)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm ${t===h?`bg-surface-2 text-fg-primary`:`text-fg-secondary`}`,children:[e.cli===null?null:(0,M.jsxDEV)(js,{cli:e.cli,size:14},void 0,!1,{fileName:Qc,lineNumber:199,columnNumber:49},this),(0,M.jsxDEV)(`span`,{className:`flex-1 truncate`,children:e.name},void 0,!1,{fileName:Qc,lineNumber:200,columnNumber:19},this),(0,M.jsxDEV)(`span`,{className:`truncate font-mono text-[11px] text-fg-muted`,children:e.role},void 0,!1,{fileName:Qc,lineNumber:201,columnNumber:19},this)]},void 0,!0,{fileName:Qc,lineNumber:189,columnNumber:17},this)},e.name,!1,{fileName:Qc,lineNumber:188,columnNumber:15},this))},void 0,!1,{fileName:Qc,lineNumber:183,columnNumber:11},this):null,(0,M.jsxDEV)(`textarea`,{ref:b,rows:1,value:d,placeholder:t,"aria-label":t,onChange:e=>{f(e.target.value),m(e.target.selectionStart),_(0),y(!1)},onSelect:e=>m(e.currentTarget.selectionStart),onKeyDown:S,className:`block max-h-48 w-full resize-none bg-transparent px-3 text-sm text-fg-primary outline-none placeholder:text-fg-muted ${n?`py-2.5`:`pt-2.5 pb-1`}`},void 0,!1,{fileName:Qc,lineNumber:209,columnNumber:9},this),n?(0,M.jsxDEV)(`div`,{className:`shrink-0 pb-1.5`,children:se},void 0,!1,{fileName:Qc,lineNumber:228,columnNumber:11},this):(0,M.jsxDEV)(`div`,{className:`flex items-center gap-2 px-3 pb-2`,children:[(0,M.jsxDEV)(`p`,{className:`min-w-0 flex-1 truncate text-[11px] text-fg-muted`,children:ie.length>0?`Sending wakes ${Zc(ie)}: a turn each.`:`Enter to send · Shift+Enter for a new line`},void 0,!1,{fileName:Qc,lineNumber:231,columnNumber:13},this),se]},void 0,!0,{fileName:Qc,lineNumber:230,columnNumber:11},this)]},void 0,!0,{fileName:Qc,lineNumber:177,columnNumber:7},this),ee.error===null?null:(0,M.jsxDEV)(`p`,{role:`alert`,className:`mt-2 text-xs text-red-400`,children:ee.error instanceof bo?ee.error.message:`The message was not sent.`},void 0,!1,{fileName:Qc,lineNumber:241,columnNumber:9},this)]},void 0,!0,{fileName:Qc,lineNumber:170,columnNumber:5},this)}var tl=`/home/climage/projects/stellaris/apps/web/src/components/AskBox.tsx`,nl=5;function rl(e,t){switch(e.kind){case`answering`:return{text:`${Zc(e.who)} ${e.who.length===1?`is`:`are`} answering…`,tone:`text-emerald-300`};case`queued`:return{text:`${Zc(e.who)} will answer next`,tone:`text-amber-300`};case`waiting`:return{text:`waiting for an answer`,tone:`text-fg-muted`};case`answered`:return{text:`answered by ${Lc(e.by)}`,tone:`text-fg-secondary`}}let n=ut(t.body,160);return{text:`closed by ${Lc(e.by??`board`)}${n===``?``:` · ${n}`}`,tone:`text-fg-muted`}}function il({left:e,width:t,onClose:n}){let r=tt(),i=Nt(),a=ls(),o=Ne(3e4),s=(0,E.useRef)(null),c=Yo(r.data??[]).slice(0,nl),l=wo(i.data?.running??[]),u=wo(i.data?.pending??[]);return(0,E.useEffect)(()=>{let e=e=>{e.target instanceof Node&&s.current?.contains(e.target)===!1&&n()};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[n]),(0,M.jsxDEV)(`section`,{ref:s,"aria-label":`Ask`,className:`absolute top-[26%] z-30 flex flex-col gap-2`,style:{left:e,width:t},children:[(0,M.jsxDEV)(`div`,{className:es,children:(0,M.jsxDEV)(el,{target:{ask:!0},placeholder:`Ask the front desk`,oneLine:!0,className:`p-2`,focusOnOpen:!0,onEmptyEscape:n},void 0,!1,{fileName:tl,lineNumber:78,columnNumber:9},this)},void 0,!1,{fileName:tl,lineNumber:77,columnNumber:7},this),c.length===0?null:(0,M.jsxDEV)(`ol`,{"aria-label":`Your asks`,className:`${es} max-h-[40vh] overflow-y-auto py-1`,children:c.map(e=>{let t=rl(Zo(e,l,u),e),n=Qo(e,a);return(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(C,{to:`/thread/$threadId`,params:{threadId:e.id},className:`block px-4 py-2 transition-colors hover:bg-surface-2/50`,children:[(0,M.jsxDEV)(`span`,{className:`flex items-center gap-2`,children:[(0,M.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg-primary ${n?`font-semibold`:``}`,children:e.title},void 0,!1,{fileName:tl,lineNumber:103,columnNumber:21},this),n?(0,M.jsxDEV)(`span`,{"aria-label":`new answer`,className:`size-1.5 shrink-0 rounded-full bg-emerald-400`},void 0,!1,{fileName:tl,lineNumber:109,columnNumber:23},this):null,(0,M.jsxDEV)(`time`,{dateTime:e.openedAt,className:`shrink-0 text-meta`,children:Et(e.openedAt,o)},void 0,!1,{fileName:tl,lineNumber:114,columnNumber:21},this)]},void 0,!0,{fileName:tl,lineNumber:102,columnNumber:19},this),(0,M.jsxDEV)(`span`,{className:`mt-0.5 block truncate text-xs ${t.tone}`,children:t.text},void 0,!1,{fileName:tl,lineNumber:118,columnNumber:19},this)]},void 0,!0,{fileName:tl,lineNumber:97,columnNumber:17},this)},e.id,!1,{fileName:tl,lineNumber:96,columnNumber:15},this)})},void 0,!1,{fileName:tl,lineNumber:88,columnNumber:9},this)]},void 0,!0,{fileName:tl,lineNumber:71,columnNumber:5},this)}function al({unread:e,onOpen:t}){let[n]=e,r=n===void 0?null:e.length===1?`${Lc(n.lastAuthor??`board`)} answered “${n.title}”`:`${e.length} new answers`;return(0,M.jsxDEV)(`button`,{type:`button`,onClick:t,className:`pointer-events-auto flex max-w-full min-w-0 items-center gap-2 rounded-full px-3 py-1.5 text-meta transition-colors hover:text-fg-secondary`,children:[r===null?null:(0,M.jsxDEV)(M.Fragment,{children:[(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,className:`size-1.5 shrink-0 rounded-full bg-emerald-400`},void 0,!1,{fileName:tl,lineNumber:157,columnNumber:11},this),(0,M.jsxDEV)(`span`,{className:`min-w-0 truncate text-fg-secondary`,children:r},void 0,!1,{fileName:tl,lineNumber:158,columnNumber:11},this),(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:tl,lineNumber:159,columnNumber:11},this)]},void 0,!0,{fileName:tl,lineNumber:156,columnNumber:9},this),(0,M.jsxDEV)(`kbd`,{className:`shrink-0 rounded border border-line px-1.5 font-sans text-[11px] text-fg-secondary`,children:`Space`},void 0,!1,{fileName:tl,lineNumber:162,columnNumber:7},this),(0,M.jsxDEV)(`span`,{className:`shrink-0`,children:`to ask`},void 0,!1,{fileName:tl,lineNumber:165,columnNumber:7},this)]},void 0,!0,{fileName:tl,lineNumber:150,columnNumber:5},this)}var ol=`/home/climage/projects/stellaris/apps/web/src/components/CitizenCard.tsx`,sl={working:{label:`working`,style:`bg-emerald-500/15 text-emerald-300`},queued:{label:`queued`,style:`bg-amber-500/15 text-amber-300`},idle:{label:`resting`,style:`bg-surface-2 text-fg-tertiary`}};function cl(e,t,n,r){return t.state===`working`?`In a turn at ${n}`:t.state===`queued`?`Queued for ${n}`:e.lastTurnAt===void 0?`No turns yet`:`Last turn ${Et(e.lastTurnAt,r)}`}function ll({member:e,star:t,place:n,now:r}){let i=e.lastModel??e.model,a=sl[t.state];return(0,M.jsxDEV)(`article`,{className:`card w-72 p-3.5`,"aria-label":`${e.name}, ${e.role}`,children:[(0,M.jsxDEV)(`header`,{className:`flex items-center gap-3`,children:[(0,M.jsxDEV)(`span`,{className:`grid size-8 shrink-0 place-items-center rounded-md bg-surface-2/70`,children:(0,M.jsxDEV)(js,{cli:t.cli,size:18},void 0,!1,{fileName:ol,lineNumber:43,columnNumber:11},this)},void 0,!1,{fileName:ol,lineNumber:42,columnNumber:9},this),(0,M.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[(0,M.jsxDEV)(`h2`,{className:`text-title truncate`,children:e.name},void 0,!1,{fileName:ol,lineNumber:46,columnNumber:11},this),(0,M.jsxDEV)(`p`,{className:`truncate text-meta`,children:[e.role,i===void 0?``:` · ${i}`]},void 0,!0,{fileName:ol,lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:ol,lineNumber:45,columnNumber:9},this),(0,M.jsxDEV)(`span`,{className:`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium ${a.style}`,children:a.label},void 0,!1,{fileName:ol,lineNumber:52,columnNumber:9},this)]},void 0,!0,{fileName:ol,lineNumber:41,columnNumber:7},this),(0,M.jsxDEV)(`p`,{className:`mt-2.5 text-sm text-fg-secondary`,children:cl(e,t,n,r)},void 0,!1,{fileName:ol,lineNumber:58,columnNumber:7},this)]},void 0,!0,{fileName:ol,lineNumber:40,columnNumber:5},this)}var ul=`/home/climage/projects/stellaris/apps/web/src/components/Hud.tsx`;function dl({society:e,citizens:t,citizensOpen:n,onToggleCitizens:r,attention:i,onOpenAttention:a,paused:o,onTogglePause:s,pauseBusy:c,boardOpen:l,onToggleBoard:u,metricsOpen:d,onToggleMetrics:f,logsOpen:p,onToggleLogs:m,onSignOut:h}){return(0,M.jsxDEV)(`header`,{className:`pointer-events-none absolute inset-x-0 top-0 flex items-start justify-between p-5`,children:[(0,M.jsxDEV)(`div`,{className:`flex items-center gap-2.5`,children:[(0,M.jsxDEV)(`span`,{className:`text-display`,children:`Stellaris`},void 0,!1,{fileName:ul,lineNumber:47,columnNumber:9},this),e===void 0?null:(0,M.jsxDEV)(`span`,{className:`text-meta`,children:e},void 0,!1,{fileName:ul,lineNumber:48,columnNumber:41},this)]},void 0,!0,{fileName:ul,lineNumber:46,columnNumber:7},this),(0,M.jsxDEV)(`div`,{className:`pointer-events-auto flex items-center gap-2`,children:[i===0?null:(0,M.jsxDEV)(`button`,{type:`button`,onClick:a,className:`card inline-flex h-7 items-center gap-1.5 rounded-md px-2.5 text-xs text-amber-300 transition-colors hover:text-amber-200 focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`,children:[(0,M.jsxDEV)(`span`,{"aria-hidden":`true`,className:`size-1.5 rounded-full bg-amber-300`},void 0,!1,{fileName:ul,lineNumber:57,columnNumber:13},this),i,` `,i===1?`needs`:`need`,` you`]},void 0,!0,{fileName:ul,lineNumber:52,columnNumber:11},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-pressed":o,disabled:c,onClick:s,title:o?`Nobody takes a turn until you resume; wakes wait in the queue.`:`Stop dispatching turns. Running turns finish; new wakes wait.`,className:`card inline-flex h-7 items-center rounded-md px-2.5 text-xs transition-colors focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none disabled:opacity-50 ${o?`text-amber-300 hover:text-amber-200`:`text-fg-tertiary hover:text-fg-primary`}`,children:o?`Paused · resume`:`Pause`},void 0,!1,{fileName:ul,lineNumber:61,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-pressed":n,onClick:r,className:`card inline-flex h-7 items-center rounded-md px-2.5 text-xs transition-colors focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none ${n?`text-fg-primary`:`text-fg-tertiary hover:text-fg-primary`}`,children:t===1?`1 citizen`:`${t} citizens`},void 0,!1,{fileName:ul,lineNumber:79,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-pressed":l,onClick:u,className:`card inline-flex h-7 items-center rounded-md px-2.5 text-xs transition-colors focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none ${l?`text-fg-primary`:`text-fg-secondary hover:text-fg-primary`}`,children:`Board`},void 0,!1,{fileName:ul,lineNumber:89,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-pressed":d,onClick:f,className:`card inline-flex h-7 items-center rounded-md px-2.5 text-xs transition-colors focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none ${d?`text-fg-primary`:`text-fg-secondary hover:text-fg-primary`}`,children:`Metrics`},void 0,!1,{fileName:ul,lineNumber:99,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-expanded":p,onClick:m,className:`card inline-flex h-7 items-center rounded-md px-2.5 text-xs transition-colors focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none ${p?`text-fg-primary`:`text-fg-secondary hover:text-fg-primary`}`,children:`Logs`},void 0,!1,{fileName:ul,lineNumber:109,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,onClick:h,className:`h-7 rounded-md px-2.5 text-xs text-fg-tertiary transition-colors hover:bg-surface-2/60 hover:text-fg-primary focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`,children:`Sign out`},void 0,!1,{fileName:ul,lineNumber:119,columnNumber:9},this)]},void 0,!0,{fileName:ul,lineNumber:50,columnNumber:7},this)]},void 0,!0,{fileName:ul,lineNumber:45,columnNumber:5},this)}var fl=new Set(me),pl={waiting_stage:`stage waiting`,backlog:`backlog`,role_gap:`role gap`,churn:`churn`,stale_thread:`stale thread`,idle_member:`idle member`,blocked_capability:`missing capability`,turn_cost:`spend`,scaled:`replica added`,runner:`runner`,home_conflict:`edits to reconcile`};function ml(e){return fl.has(e)}function hl(e,t){let n=new Set(t),r=new Map;for(let t of e)n.has(t.signal.key)&&r.set(t.signal.key,t.id);return new Set(r.values())}function gl(e){return[e.project??``,e.agent??``,e.role===void 0?``:`role ${e.role}`,ml(e.kind)?`wakes the steward`:``].filter(e=>e.length>0)}var _l=`/home/climage/projects/stellaris/apps/web/src/components/LogsIsland.tsx`;function vl({onClose:e}){let t=d(!0),n=Nt(),r=Ne(3e4),i=t.data??[],a=hl(i,n.data?.signals??[]);return(0,M.jsxDEV)(ts,{label:`Operations log`,className:`top-[72px] right-4 z-20 max-h-[min(70vh,640px)]`,style:{width:400},children:[(0,M.jsxDEV)(`header`,{className:`flex items-start gap-3 border-b border-line px-4 py-3`,children:[(0,M.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[(0,M.jsxDEV)(`h2`,{className:`text-heading`,children:`Operations log`},void 0,!1,{fileName:_l,lineNumber:26,columnNumber:11},this),(0,M.jsxDEV)(`p`,{className:`mt-0.5 text-meta`,children:`What the scheduler measured. Only kinds that wake the steward start a turn; it reads the rest at its next one.`},void 0,!1,{fileName:_l,lineNumber:27,columnNumber:11},this)]},void 0,!0,{fileName:_l,lineNumber:25,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-label":`Close the log`,onClick:e,className:`grid size-7 shrink-0 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`,children:`×`},void 0,!1,{fileName:_l,lineNumber:32,columnNumber:9},this)]},void 0,!0,{fileName:_l,lineNumber:24,columnNumber:7},this),i.length===0?(0,M.jsxDEV)(`p`,{className:`px-4 py-4 text-meta`,children:t.data===void 0?`Reading the log…`:`Nothing measured yet.`},void 0,!1,{fileName:_l,lineNumber:42,columnNumber:9},this):(0,M.jsxDEV)(`ol`,{className:`flex-1 overflow-y-auto`,children:i.toReversed().map(({id:e,ts:t,signal:n})=>{let i=ml(n.kind),o=gl(n);return(0,M.jsxDEV)(`li`,{className:`border-b border-line/60 px-4 py-2.5 last:border-b-0`,children:[(0,M.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,M.jsxDEV)(`span`,{className:`rounded-md px-1.5 py-px text-[11px] ${i?`bg-amber-500/15 text-amber-300`:`bg-surface-2 text-fg-tertiary`}`,children:pl[n.kind]},void 0,!1,{fileName:_l,lineNumber:53,columnNumber:19},this),a.has(e)?(0,M.jsxDEV)(`span`,{className:`text-[11px] text-emerald-300`,children:`holds now`},void 0,!1,{fileName:_l,lineNumber:61,columnNumber:21},this):null,(0,M.jsxDEV)(`time`,{dateTime:t,title:t,className:`ml-auto shrink-0 text-meta`,children:Et(t,r)},void 0,!1,{fileName:_l,lineNumber:63,columnNumber:19},this)]},void 0,!0,{fileName:_l,lineNumber:52,columnNumber:17},this),(0,M.jsxDEV)(`p`,{className:`mt-1 text-sm text-fg-secondary`,children:(0,M.jsxDEV)(Ys,{text:n.summary},void 0,!1,{fileName:_l,lineNumber:68,columnNumber:19},this)},void 0,!1,{fileName:_l,lineNumber:67,columnNumber:17},this),o.length===0&&n.taskId===void 0?null:(0,M.jsxDEV)(`p`,{className:`mt-0.5 text-meta`,children:[o.join(` · `),n.taskId===void 0?null:(0,M.jsxDEV)(M.Fragment,{children:[o.length===0?``:` · `,(0,M.jsxDEV)(C,{to:`/task/$taskId`,params:{taskId:n.taskId},className:`text-fg-tertiary underline-offset-2 hover:text-fg-primary hover:underline`,children:`the task`},void 0,!1,{fileName:_l,lineNumber:76,columnNumber:25},this)]},void 0,!0,{fileName:_l,lineNumber:74,columnNumber:23},this)]},void 0,!0,{fileName:_l,lineNumber:71,columnNumber:19},this)]},e,!0,{fileName:_l,lineNumber:51,columnNumber:15},this)})},void 0,!1,{fileName:_l,lineNumber:46,columnNumber:9},this)]},void 0,!0,{fileName:_l,lineNumber:19,columnNumber:5},this)}var yl=`/home/climage/projects/stellaris/apps/web/src/components/TaskCard.tsx`;function bl({mark:e,project:t,members:n}){let r=n?.find(t=>t.name===e.holder)?.cli??null,i=Gt.find(t=>t.phase===e.phase)?.label??e.phase;return(0,M.jsxDEV)(`article`,{className:`card w-72 p-4`,"aria-label":`Task ${e.title}`,children:[(0,M.jsxDEV)(`header`,{className:`flex items-start gap-3`,children:[(0,M.jsxDEV)(`h2`,{className:`text-title min-w-0 flex-1`,children:e.title},void 0,!1,{fileName:yl,lineNumber:22,columnNumber:9},this),(0,M.jsxDEV)(`span`,{className:`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium ${Ht[e.phase]}`,children:i.toLowerCase()},void 0,!1,{fileName:yl,lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:yl,lineNumber:21,columnNumber:7},this),(0,M.jsxDEV)(`dl`,{className:`mt-3 grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs`,children:[(0,M.jsxDEV)(`dt`,{className:`text-fg-muted`,children:`Project`},void 0,!1,{fileName:yl,lineNumber:30,columnNumber:9},this),(0,M.jsxDEV)(`dd`,{className:`min-w-0 truncate text-fg-secondary`,children:t},void 0,!1,{fileName:yl,lineNumber:31,columnNumber:9},this),(0,M.jsxDEV)(`dt`,{className:`text-fg-muted`,children:`Stage`},void 0,!1,{fileName:yl,lineNumber:32,columnNumber:9},this),(0,M.jsxDEV)(`dd`,{className:`min-w-0 truncate text-fg-secondary`,children:e.stage},void 0,!1,{fileName:yl,lineNumber:33,columnNumber:9},this),e.holder===null?e.waitingFor===null?null:(0,M.jsxDEV)(M.Fragment,{children:[(0,M.jsxDEV)(`dt`,{className:`text-fg-muted`,children:`Waiting for`},void 0,!1,{fileName:yl,lineNumber:45,columnNumber:13},this),(0,M.jsxDEV)(`dd`,{className:`min-w-0 truncate text-fg-secondary`,children:e.waitingFor},void 0,!1,{fileName:yl,lineNumber:46,columnNumber:13},this)]},void 0,!0,{fileName:yl,lineNumber:44,columnNumber:11},this):(0,M.jsxDEV)(M.Fragment,{children:[(0,M.jsxDEV)(`dt`,{className:`text-fg-muted`,children:`Held by`},void 0,!1,{fileName:yl,lineNumber:36,columnNumber:13},this),(0,M.jsxDEV)(`dd`,{className:`flex min-w-0 items-center gap-1 text-fg-secondary`,children:[r===null?null:(0,M.jsxDEV)(js,{cli:r,size:12},void 0,!1,{fileName:yl,lineNumber:38,columnNumber:38},this),e.holder,e.linked===null?` · resting`:` · in a turn on it`]},void 0,!0,{fileName:yl,lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:yl,lineNumber:35,columnNumber:11},this)]},void 0,!0,{fileName:yl,lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:yl,lineNumber:20,columnNumber:5},this)}function xl(e,t){let n=`latest`;return Qs({token:e,url:()=>`/api/events/stream?since=${n}`,onData:e=>{let r=v.parse(JSON.parse(e));n=r.id,t.onEvent(r)},onOpen:e=>{e&&t.onResume()}})}function Sl(e){return typeof e==`string`?e:void 0}function Cl(e){let{type:t,payload:n,actor:r}=e;if(t===`message.posted`){let e=Sl(n.thread);return e===void 0?[[`channels`],[`channel`,Sl(n.channel)],[`requests`]]:[[`threads`],[`thread`,e],[`requests`]]}return t.startsWith(`thread.`)?[[`threads`],[`thread`,Sl(n.threadId)],[`channel`],[`requests`]]:t.startsWith(`task.`)||t.startsWith(`merge.`)||t===`lease.expired`?[[`tasks`],[`task`,Sl(n.taskId)],[`members`],[`metrics`]]:t===`turn.completed`||t===`turn.failed`?[[`scheduler`],[`members`],[`turns`,r],[`memory`,r],[`agent-skills`,r],[`conflicts`,r],[`history`,r],[`metrics`]]:t===`turn.started`?[[`scheduler`],[`members`],[`metrics`]]:t.startsWith(`turn.`)||t===`wake.requested`||t===`paused.changed`?[[`scheduler`],[`members`]]:t===`knowledge.written`?[[`knowledge`,Sl(n.project)??`society`]]:t.startsWith(`agent.`)||t===`subscription.changed`?[[`members`]]:t.startsWith(`project.`)||t===`channel.added`?[[`projects`],[`channels`],[`society`]]:t===`role.added`?[[`roles`]]:t.startsWith(`runner.`)?[[`runners`]]:t.startsWith(`proposal.`)?[[`proposals`],[`proposal`,Sl(n.proposalId)],[`metrics`]]:t===`skill.promoted`?[[`skills`]]:t===`ops.signal`?[[`signals`],[`scheduler`],[`metrics`]]:[]}function wl(e,t){for(let n of Cl(t)){let t=n.filter(e=>e!==void 0);e.invalidateQueries({queryKey:t})}}function Tl(e,t){let n=Gt.find(t=>t.phase===e.phase)?.label.toLowerCase(),r=e.holder===null?e.waitingFor===null?null:`for ${e.waitingFor}`:`held by ${e.holder}${e.linked===null?``:`, in a turn there`}`;return[`Task ${e.title} at ${t}`,`stage ${e.stage}`,n,r].filter(e=>e!=null).join(`, `)}var El=Math.PI*(3-Math.sqrt(5)),Dl=68,Ol=44,kl=58,Al=26,jl=13,Ml=.3,Nl=1.5*Math.PI,Pl=28,Fl=280,Il=8,Ll=40;function Rl(e){return Math.max(kl,Dl*Math.sqrt(Math.max(0,e-1))+Ol)}function zl(e){return e+Al}function Bl(e){let t=new Map;for(let n of e.toSorted()){let e=a(n);if(e!==null){let n=t.get(e.agent)??[];n.includes(e.scope)||t.set(e.agent,[...n,e.scope])}}return t}function Vl(e){let t=e.projects.filter(e=>e.archived===void 0).toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.slug.localeCompare(t.slug)),n=new Set(t.map(e=>e.slug)),r=e=>n.has(e)?e:At,i=Bl(e.scheduler.running),a=Bl(e.scheduler.pending),o=new Set(e.scheduler.resident.map(e=>e.split(`/`)[0])),s=e.members.filter(e=>e.cli!==null).filter(e=>e.status===`active`).toSorted((e,t)=>e.name.localeCompare(t.name)),c=s.flatMap(e=>{let t=[...new Set((i.get(e.name)??[]).map(r))];if(t.length>0)return t.map(t=>({id:t===`society`?e.name:`${e.name}/${t}`,member:e,state:`working`,scope:t,queuedFor:null}));let n=a.get(e.name)?.[0];return[{id:e.name,member:e,state:n===void 0?`idle`:`queued`,scope:At,queuedFor:n===void 0?null:r(n)}]}),l=new Map([[At,new Map(s.map((e,t)=>[e.name,t]))]]);for(let e of t){let t=s.filter(t=>t.memberships.includes(e.slug)),n=c.filter(t=>t.scope===e.slug).map(e=>e.member).filter(t=>!t.memberships.includes(e.slug));l.set(e.slug,new Map([...t,...n].map((e,t)=>[e.name,t])))}let u=new Map([...l].map(([e,t])=>[e,t.size])),d={id:At,label:`society`,kind:`society`,x:0,y:0,radius:Rl(u.get(`society`)??0)},f=[d,...Wl(t,u,d)],p=new Map(f.map(e=>[e.id,e])),m=c.map(({id:e,member:t,state:n,scope:r,queuedFor:i})=>{let a=p.get(r)??d,s=l.get(a.id)?.get(t.name)??0,c=Dl*Math.sqrt(s),u=s*El-Math.PI/2;return{id:e,name:t.name,cli:t.cli,state:n,resident:o.has(t.name),anchor:a.id,queuedFor:i,x:Math.round(a.x+c*Math.cos(u)),y:Math.round(a.y+c*Math.sin(u))}}),h=Hl(e.tasks??[],f,m),g=Math.max(...f.map(e=>Math.hypot(e.x,e.y)+zl(e.radius)));return{anchors:f,stars:m,tasks:h,radius:Math.round(g+Ll)}}function Hl(e,t,n){let r=[];for(let i of t){if(i.kind!==`project`)continue;let t=e.filter(e=>e.project===i.id).flatMap(e=>{let t=Wt(e);return t===`done`||t===`abandoned`?[]:[{task:e,phase:t}]}).toSorted((e,t)=>e.task.id.localeCompare(t.task.id)),a=Math.min(Ml,Nl/Math.max(1,t.length)),o=i.radius+jl;t.forEach(({task:e,phase:t},s)=>{let c=s%2==0?1:-1,l=-Math.PI/2+c*Math.ceil(s/2)*a,u=t===`landing`?null:e.claimedBy??null,d=Ye(e),f=u===null?null:n.find(e=>e.name===u&&e.anchor===i.id)?.id??null;r.push({id:e.id,title:e.title,project:i.id,phase:t,stage:d?.name??e.stage,holder:u,waitingFor:u===null&&t!==`landing`&&d!==void 0?Ut(d):null,linked:f,x:Math.round(i.x+o*Math.cos(l)),y:Math.round(i.y+o*Math.sin(l))})})}return r}function Ul(e,t,n){let r=e.stars.filter(e=>e.name===t);return(r.find(e=>e.anchor===n)??r[0])?.id??null}function Wl(e,t,n){let r=[],i=zl(n.radius),a=Il;for(let n=0,o=0;n<e.length;o+=1){let s=e.slice(n,n+a);n+=a,a+=4;let c=s.map(e=>Rl(t.get(e.slug)??0)),l=c.map(zl),u=l.map(e=>2*e+Pl),d=u.reduce((e,t)=>e+t,0),f=u.map(e=>2*Math.PI*e/d),p=-Math.PI/2-(f[0]??0)/2+(o===0?0:Math.PI/s.length),m=f.map(e=>{let t=p+e/2;return p+=e,t}),h=Math.max(o===0?Fl:0,i+Math.max(...l)+Pl);if(s.length>1)for(let e=0;e<s.length;e+=1){let t=(e+1)%s.length,n=((f[e]??0)+(f[t]??0))/2,r=((l[e]??0)+(l[t]??0)+Pl)/(2*Math.sin(n/2));h=Math.max(h,r)}s.forEach((e,t)=>{let n=m[t]??0;r.push({id:e.slug,label:e.name,kind:`project`,x:Math.round(h*Math.cos(n)),y:Math.round(h*Math.sin(n)),radius:Math.round(c[t]??kl)})}),i=h+Math.max(...l)}return r}var Gl=.15,Kl=.45,ql=1.35,Jl=64,Yl=1.15;function Xl(e,t,n){return Math.min(n,Math.max(t,e))}function Zl(e){return Math.max(240,e.width-e.left-e.right)}function Ql(e){return{x:e.left+Zl(e)/2,y:e.height/2}}function $l(e,t){return{x:0,y:0,scale:Xl(Math.min(Zl(e),e.height)/(2*t),Kl,ql)}}function eu(e,t,n,r){let i=Xl(e.scale*n,Gl,3),a=Ql(t),o=e.x+(r.x-a.x)/e.scale,s=e.y+(r.y-a.y)/e.scale;return{x:o-(r.x-a.x)/i,y:s-(r.y-a.y)/i,scale:i}}function tu(e,t,n){return{...e,x:e.x-t/e.scale,y:e.y-n/e.scale}}function nu(e,t,n){let r=Ql(t),i=r.x+(n.x-e.x)*e.scale,a=r.y+(n.y-e.y)*e.scale,o=n.reach*e.scale;if(i-o>=t.left&&i+o<=t.width-t.right&&a-o>=Jl&&a+o<=t.height)return null;let s=Math.min(Zl(t),t.height-Jl)/(2*n.reach*Yl);return{x:n.x,y:n.y,scale:Math.min(e.scale,Xl(s,Gl,3))}}var ru=`#0a0a0a`,iu=`#171717`,au=`212, 212, 212`,ou=`163, 163, 163`,su=`115, 115, 115`,cu=`"Instrument Sans Variable", ui-sans-serif, sans-serif`,lu=`500 12px "Onest Variable", ui-sans-serif, sans-serif`,uu=`600 10px "Onest Variable", ui-sans-serif, sans-serif`,du={waiting:`#fcd34d`,working:`#6ee7b7`,returned:`#fdba74`,landing:`#7dd3fc`},fu=`500 11px ${cu}`,pu=5,mu=240,hu=34,gu=.06,_u=15,vu=5,yu=4.2,bu=280;function xu(e){let t=e;return()=>{t=t+1831565813|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function Su(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t=Math.imul(t^e.charCodeAt(n),16777619);return(t>>>0)/4294967296*Math.PI*2}function Cu(e,t){return(e%t+t)%t}function wu(e){let t=Number.parseInt(e.slice(1),16);return`${t>>16&255}, ${t>>8&255}, ${t&255}`}function Tu(e){let t=document.createElement(`canvas`);t.width=256,t.height=256;let n=t.getContext(`2d`);if(n!==null){let t=wu(e),r=n.createRadialGradient(128,128,0,128,128,128);r.addColorStop(0,`rgba(${t}, 0.55)`),r.addColorStop(.22,`rgba(${t}, 0.2)`),r.addColorStop(.55,`rgba(${t}, 0.05)`),r.addColorStop(1,`rgba(${t}, 0)`),n.fillStyle=r,n.fillRect(0,0,256,256)}return t}var Eu=class{canvas;options;ctx;glyphs;glows=new Map;bodies=new Map;marks=new Map;bubbles=new Map;clock=0;specks;spheres=new Map;radius=400;scale=1;camX=0;camY=0;target={x:0,y:0,scale:1};mode=`home`;focusPending=!1;width=0;height=0;dpr=1;hovered=null;focus=null;paused=!1;insetLeft=0;insetRight=0;centerX=0;frameId=null;last=0;constructor(e,t){this.canvas=e,this.options=t;let n=e.getContext(`2d`);if(n===null)throw Error(`the sky needs a 2D canvas context`);this.ctx=n,this.glyphs={claude:new Path2D(ks.claude.path),codex:new Path2D(ks.codex.path)};let r=xu(7);this.specks=Array.from({length:bu},()=>({x:r(),y:r(),size:.5+r()*1.1,alpha:.12+r()*.45,rate:.2+r()*.8,phase:r()*Math.PI*2}))}setModel(e){this.radius=e.radius;for(let t of e.anchors){let e=this.spheres.get(t.id);e===void 0?this.spheres.set(t.id,{anchor:t,x:t.x,y:t.y,radius:t.radius}):e.anchor=t}for(let t of this.spheres.keys())e.anchors.some(e=>e.id===t)||this.spheres.delete(t);let t=new Set(e.stars.map(e=>e.id)),n=[...this.bodies.entries()].filter(([e])=>!t.has(e));for(let r of e.stars){let i=this.bodies.get(r.id);if(i!==void 0){i.star=r,i.leaving=!1;continue}let a=n.findIndex(([,e])=>e.star.name===r.name),o=n[a];if(o!==void 0){n.splice(a,1),this.bodies.delete(o[0]),this.bodies.set(r.id,{...o[1],star:r,leaving:!1});continue}let s=[...this.bodies.values()].find(e=>e.star.name===r.name&&t.has(e.star.id)),c=e.anchors.find(e=>e.id===r.anchor),l=s??c??r;this.bodies.set(r.id,{star:r,x:this.options.reducedMotion?r.x:l.x,y:this.options.reducedMotion?r.y:l.y,vx:0,vy:0,phase:Su(r.name),presence:+!!this.options.reducedMotion,leaving:!1,screen:{x:0,y:0},flash:0})}for(let[,t]of n){let n=e.stars.find(e=>e.name===t.star.name);t.leaving=!0,n!==void 0&&(t.star={...t.star,x:n.x,y:n.y})}let r=new Set(e.tasks.map(e=>e.id));for(let t of e.tasks){let e=this.marks.get(t.id);e===void 0?this.marks.set(t.id,{mark:t,x:t.x,y:t.y,presence:+!!this.options.reducedMotion,leaving:!1,screen:{x:0,y:0}}):(e.mark=t,e.leaving=!1)}for(let[e,t]of this.marks)r.has(e)||(t.leaving=!0)}flash(e){let t=this.bodies.get(e);t!==void 0&&!this.options.reducedMotion&&(t.flash=1)}say(e,t){this.bodies.has(e)&&this.bubbles.set(e,{text:t,born:this.clock})}setHovered(e){this.hovered=e}setPaused(e){this.paused=e}setFocus(e){this.focus=e,this.focusPending=!0}zoomBy(e,t){let n=this.view();this.target=eu(this.target,n,e,t??Ql(n)),this.mode=`manual`}panBy(e,t){this.target=tu(this.target,e,t),this.camX-=e/this.scale,this.camY-=t/this.scale,this.mode=`manual`}home(){this.mode=`home`}view(){return{width:this.width,height:this.height,left:this.insetLeft,right:this.insetRight}}frameFocus(e){let t=this.focus===null?void 0:this.spheres.get(this.focus);if(t===void 0||t.anchor.kind===`society`){this.mode===`focus`&&(this.mode=`home`);return}let n=nu(this.target,e,{x:t.anchor.x,y:t.anchor.y,reach:t.anchor.radius+hu});n!==null&&(this.target=n,this.mode=`focus`)}setInsets(e,t){this.insetLeft=e,this.insetRight=t}hitTestAnchor(e,t){let n=null,r=1/0;for(let i of this.spheres.values()){let a=this.toScreen(i.x,i.y),o=Math.hypot(a.x-e,a.y-t);o<=i.radius*this.scale&&o<r&&(n=i.anchor.id,r=o)}return n}resize(e,t,n){this.width=e,this.height=t,this.dpr=n,this.canvas.width=Math.round(e*n),this.canvas.height=Math.round(t*n)}hitTestMark(e,t){let n=null,r=10;for(let[i,a]of this.marks){let o=Math.hypot(a.screen.x-e,a.screen.y-t);!a.leaving&&o<r&&(n=i,r=o)}return n}hitTest(e,t){let n=null,r=Math.max(_u*this.scale+8,18);for(let[i,a]of this.bodies){if(a.leaving)continue;let o=Math.hypot(a.screen.x-e,a.screen.y-t);o<r&&(n=i,r=o)}return n}start(){this.frameId===null&&(this.last=performance.now()/1e3,this.frameId=requestAnimationFrame(this.frame))}stop(){this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null)}frame=e=>{let t=e/1e3;this.clock=t;let n=Math.min(.05,Math.max(0,t-this.last));this.last=t,this.step(n),this.draw(this.options.reducedMotion?0:t),this.frameId=requestAnimationFrame(this.frame)};step(e){let t=this.view();this.mode===`home`&&(this.target=$l(t,this.radius)),this.focusPending&&this.width>0&&(this.focusPending=!1,this.frameFocus(t));let n=this.options.reducedMotion?1:Math.min(1,e*3);this.scale+=(this.target.scale-this.scale)*n,this.camX+=(this.target.x-this.camX)*n,this.camY+=(this.target.y-this.camY)*n;let r=Ql(t).x;this.centerX=this.centerX===0?r:this.centerX+(r-this.centerX)*n;for(let e of this.spheres.values())e.x+=(e.anchor.x-e.x)*n,e.y+=(e.anchor.y-e.y)*n,e.radius+=(e.anchor.radius-e.radius)*n;for(let[t,n]of this.bodies){if(this.options.reducedMotion)n.x=n.star.x,n.y=n.star.y,n.presence=+!n.leaving;else{n.vx+=(vu*(n.star.x-n.x)-yu*n.vx)*e,n.vy+=(vu*(n.star.y-n.y)-yu*n.vy)*e,n.x+=n.vx*e,n.y+=n.vy*e;let t=+!n.leaving;n.presence+=(t-n.presence)*Math.min(1,e*2.5)}n.flash=Math.max(0,n.flash-e*2.2),n.leaving&&n.presence<.02&&this.bodies.delete(t)}for(let[t,r]of this.marks){r.x+=(r.mark.x-r.x)*n,r.y+=(r.mark.y-r.y)*n;let i=+!r.leaving;r.presence+=(i-r.presence)*(this.options.reducedMotion?1:Math.min(1,e*2.5)),r.leaving&&r.presence<.02&&this.marks.delete(t)}for(let[e,t]of this.bubbles)(this.clock-t.born>pu||this.bodies.get(e)?.leaving!==!1)&&this.bubbles.delete(e)}toScreen(e,t){return{x:this.centerX+(e-this.camX)*this.scale,y:this.height/2+(t-this.camY)*this.scale}}glow(e){let t=this.glows.get(e);return t===void 0&&(t=Tu(e),this.glows.set(e,t)),t}draw(e){let{ctx:t}=this;t.setTransform(this.dpr,0,0,this.dpr,0,0),t.fillStyle=ru,t.fillRect(0,0,this.width,this.height),this.drawSpecks(e),this.drawAnchors(),this.drawTasks(e);let n=[...this.bodies.values()].toSorted((e,t)=>Number(e.star.id===this.hovered)-Number(t.star.id===this.hovered));for(let t of n)this.drawBody(t,e);this.drawBubbles();let r=this.hovered?.startsWith(`task:`)===!0?this.hovered.slice(5):null,i=r===null?this.hovered===null?void 0:this.bodies.get(this.hovered):this.marks.get(r);this.options.onHoverPosition(i===void 0||i.leaving?null:i.screen)}drawTasks(e){let{ctx:t}=this;for(let e of this.marks.values())e.screen=this.toScreen(e.x,e.y);t.save(),t.lineWidth=1;for(let n of this.marks.values()){let r=n.mark.linked===null?void 0:this.bodies.get(n.mark.linked);if(r===void 0||r.leaving)continue;let i=wu(du[n.mark.phase]),a=Math.min(n.presence,r.presence),o=n.screen,s=r.screen,c=t.createLinearGradient(o.x,o.y,s.x,s.y);if(c.addColorStop(0,`rgba(${i}, ${(.55*a).toFixed(3)})`),c.addColorStop(1,`rgba(${i}, ${(.12*a).toFixed(3)})`),t.strokeStyle=c,t.beginPath(),t.moveTo(o.x,o.y),t.lineTo(s.x,s.y),t.stroke(),e!==0){let n=(e*.45+r.phase)%1;t.beginPath(),t.arc(s.x+(o.x-s.x)*n,s.y+(o.y-s.y)*n,1.4,0,Math.PI*2),t.fillStyle=`rgba(${i}, ${(.85*a).toFixed(3)})`,t.fill()}}t.restore();for(let[n,r]of this.marks){let{mark:i,screen:a}=r,o=this.hovered===`task:${n}`,s=du[i.phase],c=i.phase===`waiting`&&e!==0?.65+.35*Math.sin(e*1.6+a.x):1,l=Math.max(3,4*this.scale)*(o?1.5:1);t.save(),t.globalAlpha=r.presence*c*(this.paused?.7:1),t.globalCompositeOperation=`lighter`;let u=l*7;t.drawImage(this.glow(s),a.x-u/2,a.y-u/2,u,u),t.globalCompositeOperation=`source-over`,t.translate(a.x,a.y),t.rotate(Math.PI/4),t.fillStyle=s,t.fillRect(-l/2,-l/2,l,l),o&&(t.strokeStyle=`rgba(255, 255, 255, 0.8)`,t.lineWidth=1,t.strokeRect(-l/2-2,-l/2-2,l+4,l+4)),t.restore()}}drawBubbles(){let{ctx:e}=this;e.save(),e.font=fu,e.textAlign=`left`,e.textBaseline=`middle`;for(let[t,n]of this.bubbles){let r=this.bodies.get(t);if(r===void 0)continue;let i=this.clock-n.born,a=Math.min(1,i/.25,(pu-i)/1.2)*r.presence;if(a<=0)continue;let o=n.text;if(e.measureText(o).width>mu){for(;o.length>1&&e.measureText(`${o}…`).width>mu;)o=o.slice(0,-1);o=`${o.trimEnd()}…`}let s=e.measureText(o).width+16,c=this.options.reducedMotion?0:i*7,l=Math.max(10,_u*this.scale),u=r.screen.x-s/2,d=r.screen.y-l-14-22-c;e.globalAlpha=a,e.beginPath(),e.roundRect(u,d,s,22,7),e.fillStyle=`rgba(23, 23, 23, 0.92)`,e.fill(),e.strokeStyle=`rgba(255, 255, 255, 0.1)`,e.lineWidth=1,e.stroke(),e.fillStyle=`rgba(${au}, 1)`,e.fillText(o,u+8,d+11+.5)}e.restore()}drawSpecks(e){let{ctx:t}=this,n=-this.camX*this.scale*gu,r=-this.camY*this.scale*gu;for(let i of this.specks){let a=e===0?1:.6+.4*Math.sin(e*i.rate+i.phase);t.fillStyle=`rgba(255, 255, 255, ${(i.alpha*a*(this.paused?.6:1)).toFixed(3)})`,t.fillRect(Cu(i.x*this.width+n,this.width),Cu(i.y*this.height+r,this.height),i.size,i.size)}let i=this.toScreen(0,0),a=t.createRadialGradient(i.x,i.y,0,i.x,i.y,320*this.scale);a.addColorStop(0,`rgba(255, 255, 255, 0.035)`),a.addColorStop(1,`rgba(255, 255, 255, 0)`),t.fillStyle=a,t.fillRect(0,0,this.width,this.height)}drawAnchors(){let{ctx:e}=this,t=this.toScreen(0,0);e.save(),e.setLineDash([2,7]),e.lineWidth=1,e.strokeStyle=`rgba(255, 255, 255, 0.07)`;for(let n of this.spheres.values())if(n.anchor.kind===`project`){let r=this.toScreen(n.x,n.y);e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(r.x,r.y),e.stroke()}e.restore();for(let{anchor:t,x:n,y:r,radius:i}of this.spheres.values()){let a=this.toScreen(n,r),o=i*this.scale,s=t.id===this.focus;if(t.kind===`project`){let t=e.createRadialGradient(a.x,a.y,0,a.x,a.y,o*1.8);t.addColorStop(0,`rgba(160, 170, 255, ${s?.1:.05})`),t.addColorStop(1,`rgba(160, 170, 255, 0)`),e.fillStyle=t,e.fillRect(a.x-o*1.8,a.y-o*1.8,o*3.6,o*3.6)}e.beginPath(),e.arc(a.x,a.y,o,0,Math.PI*2),e.lineWidth=s?1.5:1,e.strokeStyle=s?`rgba(255, 255, 255, 0.28)`:t.kind===`society`?`rgba(255, 255, 255, 0.09)`:`rgba(255, 255, 255, 0.06)`,e.stroke(),e.textAlign=`center`,e.textBaseline=`top`,t.kind===`society`?(e.font=uu,e.letterSpacing=`2px`,e.fillStyle=`rgba(${su}, 0.9)`,e.fillText(t.label.toUpperCase(),a.x,a.y+o+10),e.letterSpacing=`0px`):(e.font=lu,e.fillStyle=s?`rgba(245, 245, 245, 1)`:`rgba(${ou}, 0.95)`,e.fillText(t.label,a.x,a.y+o+10))}}drawBody(e,t){let{ctx:n}=this,{star:r}=e,i=ks[r.cli],a=r.id===this.hovered,o=r.state===`working`,s=o?2.5:5,c=s*(Math.sin(t*.29+e.phase)+.6*Math.sin(t*.17+e.phase*2.1)),l=s*(Math.cos(t*.23+e.phase*1.3)+.6*Math.cos(t*.11+e.phase)),u=this.toScreen(e.x+c,e.y+l);e.screen=u;let d=o?2.4:r.state===`queued`?1.4:.7,f=t===0?.5:.5+.5*Math.sin(t*d+e.phase),p=((o?.95+.35*f:r.state===`queued`?.7+.2*f:.5+.2*f)+(a?.25:0)+.8*e.flash)*e.presence*(this.paused?.7:1),m=Math.max(10,_u*this.scale),h=(o?170:130)*this.scale*(.9+.15*f);n.save(),n.globalCompositeOperation=`lighter`,n.globalAlpha=Math.min(1,p),n.drawImage(this.glow(i.accent),u.x-h/2,u.y-h/2,h,h),n.restore(),n.save(),n.globalAlpha=e.presence;let g=wu(i.accent);if(o&&t!==0){let r=(t+e.phase)%1.8/1.8;n.beginPath(),n.arc(u.x,u.y,m+(6+30*r)*this.scale,0,Math.PI*2),n.strokeStyle=`rgba(${g}, ${(.4*(1-r)).toFixed(3)})`,n.lineWidth=1.25,n.stroke()}e.flash>0&&(n.beginPath(),n.arc(u.x,u.y,m+(3+12*(1-e.flash))*this.scale,0,Math.PI*2),n.strokeStyle=`rgba(255, 255, 255, ${(.55*e.flash).toFixed(3)})`,n.lineWidth=1.25,n.stroke()),r.resident&&(n.beginPath(),n.arc(u.x,u.y,m+5*this.scale,0,Math.PI*2),n.strokeStyle=`rgba(${g}, 0.3)`,n.lineWidth=1,n.stroke()),r.state===`queued`&&(n.beginPath(),n.arc(u.x,u.y,m+8*this.scale,0,Math.PI*2),n.setLineDash([3,4]),n.lineDashOffset=-t*8,n.strokeStyle=`rgba(${au}, 0.55)`,n.lineWidth=1,n.stroke(),n.setLineDash([])),n.beginPath(),n.arc(u.x,u.y,m,0,Math.PI*2),n.fillStyle=iu,n.fill(),n.strokeStyle=`rgba(${g}, ${a?.95:.6})`,n.lineWidth=a?1.75:1.25,n.stroke(),n.save();let _=m*1.2/24;if(n.translate(u.x,u.y),n.scale(_,_),n.translate(-12,-12),n.fillStyle=i.fill,n.fill(this.glyphs[r.cli],`evenodd`),n.restore(),o)for(let r=0;r<3;r+=1){let i=t*1.8+r*Math.PI*2/3+e.phase,a=m+9*this.scale;n.beginPath(),n.arc(u.x+a*Math.cos(i),u.y+a*Math.sin(i),1.6,0,Math.PI*2),n.fillStyle=`rgba(${g}, 0.9)`,n.fill()}n.font=`500 ${Math.max(9,Math.min(11,11*this.scale)).toFixed(1)}px ${cu}`,n.textAlign=`center`,n.textBaseline=`top`,n.fillStyle=`rgba(${au}, ${a||o?1:.7})`,n.fillText(r.name,u.x,u.y+m+8*this.scale+3),n.restore()}},Du=`/home/climage/projects/stellaris/apps/web/src/sky/Sky.tsx`,Ou=15e3,ku=26,Au=12,ju=4,Mu=.0015,Nu=.01,Pu=1.3,Fu=`grid size-7 place-items-center rounded-md text-sm text-fg-tertiary transition-colors hover:bg-surface-2/70 hover:text-fg-primary focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`;function Iu(e,t,n,r){if(e===null)return;if(t===null){e.style.visibility=`hidden`;return}let i=e.offsetWidth,a=e.offsetHeight,o=r.left+Au,s=n.width-r.right-Au,c=t.x+ku+i<=s?t.x+ku:t.x-ku-i,l=Math.min(Math.max(Au,t.y-a/3),n.height-a-Au);e.style.transform=`translate(${Math.round(Math.max(o,c))}px, ${Math.round(l)}px)`,e.style.visibility=`visible`}function Lu({model:e,paused:t,hovered:n,onHover:r,insets:i,focus:a,onSelectAnchor:o,onSelectStar:s,onSelectTask:c,live:l,card:u}){let d=(0,E.useRef)(null),f=(0,E.useRef)(null),p=(0,E.useRef)(null),m=(0,E.useRef)(i);(0,E.useLayoutEffect)(()=>{m.current=i},[i]);let h=(0,E.useRef)(e);(0,E.useLayoutEffect)(()=>{h.current=e},[e]);let g=Ks(),_=(0,E.useRef)(g);(0,E.useLayoutEffect)(()=>{_.current=g},[g]);let v=(0,E.useRef)(null),y=(0,E.useRef)(!1);return(0,E.useEffect)(()=>{let e=d.current;if(e===null)throw Error(`the sky's canvas is not mounted`);let t=e.getBoundingClientRect(),n=new Eu(e,{reducedMotion:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,onHoverPosition:e=>Iu(f.current,e,t,m.current)});p.current=n;let r=new ResizeObserver(()=>{t=e.getBoundingClientRect(),n.resize(t.width,t.height,window.devicePixelRatio)});r.observe(e);let i=e=>{e.preventDefault();let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*16:e.deltaY;n.zoomBy(Math.exp(-t*(e.ctrlKey?Nu:Mu)),{x:e.offsetX,y:e.offsetY})};return e.addEventListener(`wheel`,i,{passive:!1}),n.start(),()=>{e.removeEventListener(`wheel`,i),r.disconnect(),n.stop(),p.current=null}},[]),(0,E.useEffect)(()=>{p.current?.setModel(e)},[e]),(0,E.useEffect)(()=>l.listen(e=>{let t=p.current;if(t===null||e.event.type!==`tool_call`||Date.now()-Date.parse(e.ts)>Ou)return;let n=Ul(h.current,e.agent,e.project);if(n===null)return;t.flash(n);let r=vc(e.event.name,e.event.input);r!==null&&t.say(n,Is(r,_.current))}),[l]),(0,E.useEffect)(()=>{p.current?.setPaused(t)},[t]),(0,E.useEffect)(()=>{p.current?.setHovered(n)},[n]),(0,E.useEffect)(()=>{p.current?.setFocus(a)},[a]),(0,E.useEffect)(()=>{p.current?.setInsets(i.left,i.right)},[i.left,i.right]),(0,M.jsxDEV)(`div`,{className:`absolute inset-0`,children:[(0,M.jsxDEV)(`canvas`,{ref:d,className:`size-full touch-none`,"aria-hidden":`true`,onPointerDown:e=>{e.button===0&&(v.current={x:e.clientX,y:e.clientY,dragging:!1},y.current=!1)},onPointerUp:e=>{v.current?.dragging===!0&&(e.currentTarget.releasePointerCapture(e.pointerId),e.currentTarget.style.cursor=`grab`),v.current=null},onPointerMove:e=>{let t=p.current,i=v.current;if(i!==null&&t!==null){let n=e.clientX-i.x,a=e.clientY-i.y;if(!i.dragging&&Math.hypot(n,a)>ju&&(i.dragging=!0,y.current=!0,e.currentTarget.setPointerCapture(e.pointerId),r(null)),i.dragging){t.panBy(n,a),i.x=e.clientX,i.y=e.clientY,e.currentTarget.style.cursor=`grabbing`;return}}let{offsetX:a,offsetY:o}=e.nativeEvent,s=t?.hitTest(a,o)??null,c=s===null?t?.hitTestMark(a,o)??null:null,l=s??(c===null?null:`task:${c}`),u=l===null?t?.hitTestAnchor(a,o)??null:null;e.currentTarget.style.cursor=l!==null||u!==null?`pointer`:`grab`,l!==n&&r(l)},onPointerLeave:()=>r(null),onClick:e=>{let t=p.current,{offsetX:n,offsetY:r}=e.nativeEvent;if(t===null||y.current){y.current=!1;return}let i=t.hitTest(n,r),a=i===null?t.hitTestMark(n,r):null,l=i===null&&a===null?t.hitTestAnchor(n,r):null;i===null?a===null?l!==null&&o(l):c(a):s(i)}},void 0,!1,{fileName:Du,lineNumber:190,columnNumber:7},this),(0,M.jsxDEV)(`fieldset`,{className:`card absolute bottom-4 flex flex-col gap-0.5 p-1`,style:{right:i.right+16},children:[(0,M.jsxDEV)(`legend`,{className:`sr-only`,children:`Camera`},void 0,!1,{fileName:Du,lineNumber:263,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-label":`Zoom in`,className:Fu,onClick:()=>p.current?.zoomBy(Pu),children:`+`},void 0,!1,{fileName:Du,lineNumber:264,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-label":`Zoom out`,className:Fu,onClick:()=>p.current?.zoomBy(1/Pu),children:`−`},void 0,!1,{fileName:Du,lineNumber:272,columnNumber:9},this),(0,M.jsxDEV)(`button`,{type:`button`,"aria-label":`Fit the whole sky`,title:`Fit the whole sky`,className:Fu,onClick:()=>p.current?.home(),children:`⤢`},void 0,!1,{fileName:Du,lineNumber:280,columnNumber:9},this)]},void 0,!0,{fileName:Du,lineNumber:259,columnNumber:7},this),(0,M.jsxDEV)(`div`,{ref:f,className:`pointer-events-none absolute top-0 left-0 will-change-transform`,style:{visibility:`hidden`},children:u},void 0,!1,{fileName:Du,lineNumber:290,columnNumber:7},this)]},void 0,!0,{fileName:Du,lineNumber:189,columnNumber:5},this)}var Ru=`/home/climage/projects/stellaris/apps/web/src/Playground.tsx`,zu={left:0,right:0};function Bu(){let[e,t]=(0,E.useState)(()=>window.innerWidth);return(0,E.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function Vu(e,t){return e.startsWith(t)?decodeURIComponent(e.slice(t.length)):null}function Hu(){let{api:e,token:t,signOut:n}=ve(),r=at();(0,E.useEffect)(()=>xl(t,{onEvent:e=>wl(r,e),onResume:()=>void r.invalidateQueries()}),[t,r]);let[i]=(0,E.useState)(()=>new xc);(0,E.useEffect)(()=>i.follow(t),[i,t]);let a=ce(),o=gt(),s=jt(),c=Nt(),l=tt(),u=pt(),d=Le(),f=(0,E.useMemo)(()=>Ps(l.data??[],u,d.data??[]),[l.data,u,d.data]),p=Ba(),m=$t({mutationFn:t=>e.setPaused(t),onSuccess:()=>void r.invalidateQueries({queryKey:[`scheduler`]})}),h=mo({select:e=>e.location.pathname}),[g,_]=(0,E.useState)(!1),[v,y]=(0,E.useState)(null),b=v===h,x=(0,E.useCallback)(()=>y(null),[]),ee=(0,E.useRef)(!0),te=ls(),ne=za({strict:!1}),[re,ie]=(0,E.useState)(null),ae=Ne(3e4),oe=Bu(),S=h!==`/`,se=Math.round(Math.min(680,Math.max(420,oe*.4))),le=(0,E.useMemo)(()=>S?{left:288,right:se+32}:zu,[S,se]),ue=Vu(h,`/thread/`),de=it(Vu(h,`/task/`)),fe=Vu(h,`/c/`)??(ue===null?null:l.data?.find(e=>e.id===ue)?.channel??null),C=/^\/p\/([^/]+)\/tasks$/.exec(h)?.[1]??de.data?.project??null,pe=Vu(h,`/citizen/`),w=pe===null?null:ne.scope??null,me=w?.split(`/`)[0]??null,he=h===`/needs-you`?`needs-you`:h===`/proposals`||h.startsWith(`/proposal/`)?`proposals`:null,ge=Os().length,_e=h===`/society`?At:/^\/p\/([^/]+)$/.exec(h)?.[1]??/^\/knowledge\/([^/]+)\//.exec(h)?.[1]??null;(0,E.useEffect)(()=>{let e=()=>{ee.current=!0},t=e=>{e.key===`Tab`&&(ee.current=!1);let t=e.target instanceof HTMLElement?e.target:null;if(!(t?.closest(`input, textarea, select, [contenteditable]`)!=null||e.metaKey||e.ctrlKey||e.altKey)){if(e.key===` `){if(t?.closest(`button, a, summary, [role='button']`)!=null&&!ee.current)return;e.preventDefault(),y(h);return}e.key===`Escape`&&(b?y(null):g?_(!1):S&&p({to:`/`}))}};return window.addEventListener(`keydown`,t),window.addEventListener(`pointerdown`,e),()=>{window.removeEventListener(`keydown`,t),window.removeEventListener(`pointerdown`,e)}},[S,g,b,h,p]);let ye=[a,o,s,c].some(e=>e.error instanceof bo&&e.error.status===401);(0,E.useEffect)(()=>{ye&&n()},[ye,n]);let be=(0,E.useMemo)(()=>o.data===void 0||s.data===void 0||c.data===void 0?null:Vl({members:o.data,projects:s.data,scheduler:c.data,tasks:u}),[o.data,s.data,c.data,u]);if(be===null){let e=[o,s,c].some(e=>e.error!==null);return(0,M.jsxDEV)(`main`,{className:`grid h-full place-items-center`,children:(0,M.jsxDEV)(`p`,{className:`text-meta`,"aria-live":`polite`,children:e?`The board server is not answering. Retrying…`:`Reading the board…`},void 0,!1,{fileName:Ru,lineNumber:213,columnNumber:9},this)},void 0,!1,{fileName:Ru,lineNumber:212,columnNumber:7},this)}let xe=(he===null&&h!==`/metrics`?null:`society`)??_e??C??(fe===null?pe===null?null:me??be.stars.find(e=>e.name===pe)?.anchor??null:fe.includes(`/`)?fe.split(`/`)[0]??null:`society`),Se=oe-le.left-le.right,Ce=Se>=460,we=Math.min(560,(Ce?Se:oe)-32),Te={left:(Ce?le.left:0)+((Ce?Se:oe)-we)/2,width:we},Ee=Yo(l.data??[]).filter(e=>Qo(e,te)),De=e=>e===`society`?`the society`:s.data?.find(t=>t.slug===e)?.name??e,Oe=be.stars.find(e=>e.id===re),ke=be.tasks.find(e=>`task:${e.id}`===re),Ae=o.data?.find(e=>e.name===Oe?.name),je=Oe===void 0?`the society`:De(Oe.queuedFor??Oe.anchor),Me=e=>{let t=be.stars.find(t=>t.id===e);t!==void 0&&p({to:`/citizen/$name`,params:{name:t.name},search:t.state===`working`?{scope:t.anchor}:{}})},T=e=>{p({to:`/task/$taskId`,params:{taskId:e}})};return(0,M.jsxDEV)(Sc,{value:i,children:(0,M.jsxDEV)(Gs,{value:f,children:(0,M.jsxDEV)(`main`,{className:`relative h-full overflow-hidden`,children:[(0,M.jsxDEV)(Lu,{model:be,paused:c.data?.paused??!1,hovered:re,onHover:ie,insets:le,focus:xe,onSelectAnchor:e=>{p(e===`society`?{to:`/society`}:{to:`/p/$slug`,params:{slug:e}})},onSelectStar:Me,onSelectTask:T,live:i,card:ke===void 0?Oe===void 0||Ae===void 0?null:(0,M.jsxDEV)(ll,{member:Ae,star:Oe,place:je,now:ae},void 0,!1,{fileName:Ru,lineNumber:290,columnNumber:17},this):(0,M.jsxDEV)(bl,{mark:ke,project:De(ke.project),members:o.data},void 0,!1,{fileName:Ru,lineNumber:288,columnNumber:17},this)},void 0,!1,{fileName:Ru,lineNumber:275,columnNumber:11},this),(0,M.jsxDEV)(dl,{society:a.data?.name,citizens:new Set(be.stars.map(e=>e.name)).size,citizensOpen:h===`/citizens`,onToggleCitizens:()=>void p(h===`/citizens`?{to:`/`}:{to:`/citizens`}),attention:ge,onOpenAttention:()=>void p({to:`/needs-you`}),paused:c.data?.paused??!1,onTogglePause:()=>m.mutate(!(c.data?.paused??!1)),pauseBusy:m.isPending,boardOpen:S,onToggleBoard:()=>void p(S?{to:`/`}:{to:`/c/$`,params:{_splat:`general`}}),logsOpen:g,metricsOpen:h===`/metrics`,onToggleMetrics:()=>void p(h===`/metrics`?{to:`/`}:{to:`/metrics`}),onToggleLogs:()=>_(!g),onSignOut:n},void 0,!1,{fileName:Ru,lineNumber:294,columnNumber:11},this),S?(0,M.jsxDEV)(Nc,{activeChannel:fe,activeTasks:C,activeCitizen:pe,activeScope:w,activeGovernance:he,activeOverview:_e},void 0,!1,{fileName:Ru,lineNumber:319,columnNumber:13},this):null,S?(0,M.jsxDEV)(ts,{label:`Board content`,className:`top-[72px] right-4 bottom-4`,style:{width:se},children:(0,M.jsxDEV)(ro,{},void 0,!1,{fileName:Ru,lineNumber:334,columnNumber:15},this)},void 0,!1,{fileName:Ru,lineNumber:329,columnNumber:13},this):null,g?(0,M.jsxDEV)(vl,{onClose:()=>_(!1)},void 0,!1,{fileName:Ru,lineNumber:337,columnNumber:23},this):null,b?(0,M.jsxDEV)(il,{left:Te.left,width:Te.width,onClose:x},void 0,!1,{fileName:Ru,lineNumber:339,columnNumber:13},this):(0,M.jsxDEV)(`div`,{className:`pointer-events-none absolute bottom-5 flex justify-center px-16`,style:{left:le.left,right:le.right},children:(0,M.jsxDEV)(al,{unread:Ee,onOpen:()=>y(h)},void 0,!1,{fileName:Ru,lineNumber:345,columnNumber:15},this)},void 0,!1,{fileName:Ru,lineNumber:341,columnNumber:13},this),be.stars.length===0&&!S?(0,M.jsxDEV)(`p`,{className:`pointer-events-none absolute inset-x-0 top-1/2 mt-24 text-center text-meta`,children:[`No citizens yet. Ask the concierge for one, or add one with`,` `,(0,M.jsxDEV)(`code`,{className:`font-mono text-fg-secondary`,children:`stellaris agent add`},void 0,!1,{fileName:Ru,lineNumber:351,columnNumber:15},this),`.`]},void 0,!0,{fileName:Ru,lineNumber:349,columnNumber:13},this):null,(0,M.jsxDEV)(`ul`,{className:`sr-only`,"aria-label":`Tasks in play`,children:be.tasks.map(e=>(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(`button`,{type:`button`,onFocus:()=>ie(`task:${e.id}`),onBlur:()=>ie(null),onClick:()=>T(e.id),children:Tl(e,De(e.project))},void 0,!1,{fileName:Ru,lineNumber:358,columnNumber:17},this)},e.id,!1,{fileName:Ru,lineNumber:357,columnNumber:15},this))},void 0,!1,{fileName:Ru,lineNumber:355,columnNumber:11},this),(0,M.jsxDEV)(`ul`,{className:`sr-only`,"aria-label":`Citizens`,children:be.stars.map(e=>(0,M.jsxDEV)(`li`,{children:(0,M.jsxDEV)(`button`,{type:`button`,onFocus:()=>ie(e.id),onBlur:()=>ie(null),onClick:()=>Me(e.id),children:[e.name,`, `,e.state,e.state===`working`?` at ${De(e.anchor)}`:``]},void 0,!0,{fileName:Ru,lineNumber:372,columnNumber:17},this)},e.id,!1,{fileName:Ru,lineNumber:371,columnNumber:15},this))},void 0,!1,{fileName:Ru,lineNumber:369,columnNumber:11},this)]},void 0,!0,{fileName:Ru,lineNumber:274,columnNumber:9},this)},void 0,!1,{fileName:Ru,lineNumber:273,columnNumber:7},this)},void 0,!1,{fileName:Ru,lineNumber:272,columnNumber:5},this)}var Uu=`modulepreload`,P=function(e){return`/`+e},Wu={},Gu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=P(t,n),t=s(t),t in Wu)return;Wu[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Uu,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Ku(){return null}var qu=k({component:Hu}),Ju=lo({routeTree:qu.addChildren([Ua({getParentRoute:()=>qu,path:`/`,component:Ku}),Ua({getParentRoute:()=>qu,path:`/c/$`,component:Wa(()=>Gu(()=>import(`./ChannelView-B8BZLsf1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),`ChannelView`)}),Ua({getParentRoute:()=>qu,path:`/thread/$threadId`,component:Wa(()=>Gu(()=>import(`./ThreadView-FsNOTyVC.js`),__vite__mapDeps([9,1,4,2,3,5,6,7,8])),`ThreadView`)}),Ua({getParentRoute:()=>qu,path:`/society`,component:Wa(()=>Gu(()=>import(`./SocietyView-Dya97szC.js`),__vite__mapDeps([10,1,5,11,12])),`SocietyView`)}),Ua({getParentRoute:()=>qu,path:`/p/$slug`,component:Wa(()=>Gu(()=>import(`./ProjectView-CuACZj4L.js`),__vite__mapDeps([13,1,3,4,5,11,12])),`ProjectView`)}),Ua({getParentRoute:()=>qu,path:`/knowledge/$scope/$topic`,component:Wa(()=>Gu(()=>import(`./KnowledgeView--jxofSSN.js`),__vite__mapDeps([14,1,4,5])),`KnowledgeView`)}),Ua({getParentRoute:()=>qu,path:`/p/$slug/tasks`,component:Wa(()=>Gu(()=>import(`./TasksView-BUvHntvK.js`),__vite__mapDeps([15,1,3,5])),`TasksView`)}),Ua({getParentRoute:()=>qu,path:`/task/$taskId`,component:Wa(()=>Gu(()=>import(`./TaskView-CcJr7xnH.js`),__vite__mapDeps([16,1,3,4,5,17,2])),`TaskView`)}),Ua({getParentRoute:()=>qu,path:`/metrics`,validateSearch:e=>{let t=b.safeParse(e.window);return t.success?{window:t.data}:{}},component:Wa(()=>Gu(()=>import(`./MetricsView-CcqLr6S1.js`),__vite__mapDeps([18,1,5,11,12])),`MetricsView`)}),Ua({getParentRoute:()=>qu,path:`/citizens`,component:Wa(()=>Gu(()=>import(`./CitizensView-yNv8WtND.js`),__vite__mapDeps([19,1,5,12])),`CitizensView`)}),Ua({getParentRoute:()=>qu,path:`/needs-you`,component:Wa(()=>Gu(()=>import(`./NeedsYouView-r7gJGgVG.js`),__vite__mapDeps([20,1,5])),`NeedsYouView`)}),Ua({getParentRoute:()=>qu,path:`/proposals`,component:Wa(()=>Gu(()=>import(`./ProposalsView-BIdkOfZO.js`),__vite__mapDeps([21,1,5])),`ProposalsView`)}),Ua({getParentRoute:()=>qu,path:`/proposal/$proposalId`,component:Wa(()=>Gu(()=>import(`./ProposalView-BiVcNEDL.js`),__vite__mapDeps([22,1,3,4,5,7,21,17,2])),`ProposalView`)}),Ua({getParentRoute:()=>qu,path:`/citizen/$name`,validateSearch:e=>({...typeof e.scope==`string`?{scope:e.scope}:{},...e.tab===`turns`||e.tab===`memory`||e.tab===`history`?{tab:e.tab}:{},...typeof e.turn==`string`?{turn:e.turn}:{}}),component:Wa(()=>Gu(()=>import(`./CitizenView-GomLDcrr.js`),__vite__mapDeps([23,1,4,5,7,8,12])),`CitizenView`)})])}),Yu=`/home/climage/projects/stellaris/apps/web/src/App.tsx`;function Xu(){let e=at(),[t,n]=(0,E.useState)(_o),r=(0,E.useCallback)(()=>{yo(),e.clear(),n(null),Ju.navigate({to:`/`})},[e]),i=(0,E.useMemo)(()=>t===null?null:{api:Wo(t),token:t,signOut:r},[t,r]);return i===null?(0,M.jsxDEV)(qo,{onEnter:e=>{vo(e),n(e)}},void 0,!1,{fileName:Yu,lineNumber:25,columnNumber:7},this):(0,M.jsxDEV)(Qe,{value:i,children:(0,M.jsxDEV)(po,{router:Ju},void 0,!1,{fileName:Yu,lineNumber:35,columnNumber:7},this)},void 0,!1,{fileName:Yu,lineNumber:34,columnNumber:5},this)}var Zu=`/home/climage/projects/stellaris/apps/web/src/main.tsx`,Qu=new Qt({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}}),$u=document.getElementById(`root`);if($u===null)throw Error(`missing #root element`);(0,ho.createRoot)($u).render((0,M.jsxDEV)(E.StrictMode,{children:(0,M.jsxDEV)(le,{client:Qu,children:(0,M.jsxDEV)(Xu,{},void 0,!1,{fileName:Zu,lineNumber:19,columnNumber:7},void 0)},void 0,!1,{fileName:Zu,lineNumber:18,columnNumber:5},void 0)},void 0,!1,{fileName:Zu,lineNumber:17,columnNumber:3},void 0));export{ws as A,ps as C,ms as D,_s as E,Ba as F,za as I,Ra as L,ds as M,bo as N,bs as O,wo as P,$t as R,Os as S,ys as T,Ys as _,Bc as a,Us as b,Lc as c,$s as d,ac as f,Js as g,Cc as h,Kc as i,hs as j,Cs as k,ec as l,tc as m,Zc as n,Fc as o,_c as p,Yc as r,Ic as s,el as t,bc as u,Ks as v,Ts as w,js as x,zs as y};
|