import{g as Uh}from"./_commonjsHelpers-CqkleIqs.js";import{p as fr,a as Gb,r as X1}from"./app-CYrma8Io.js";import{C as K1}from"./contants-Cf0CQNSY.js";function $1(t,r){for(var s=0;si[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Lf={exports:{}},_o={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var vy;function W1(){if(vy)return _o;vy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(i,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:t,type:i,key:d,ref:l!==void 0?l:null,props:c}}return _o.Fragment=r,_o.jsx=s,_o.jsxs=s,_o}var yy;function J1(){return yy||(yy=1,Lf.exports=W1()),Lf.exports}var y=J1(),bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},os=typeof window>"u"||"Deno"in globalThis;function en(){}function eE(t,r){return typeof t=="function"?t(r):t}function oh(t){return typeof t=="number"&&t>=0&&t!==1/0}function Yb(t,r){return Math.max(t+(r||0)-Date.now(),0)}function Aa(t,r){return typeof t=="function"?t(r):t}function Ln(t,r){return typeof t=="function"?t(r):t}function by(t,r){const{type:s="all",exact:i,fetchStatus:l,predicate:c,queryKey:d,stale:h}=t;if(d){if(i){if(r.queryHash!==Lh(d,r.options))return!1}else if(!jo(r.queryKey,d))return!1}if(s!=="all"){const m=r.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof h=="boolean"&&r.isStale()!==h||l&&l!==r.state.fetchStatus||c&&!c(r))}function xy(t,r){const{exact:s,status:i,predicate:l,mutationKey:c}=t;if(c){if(!r.options.mutationKey)return!1;if(s){if(ls(r.options.mutationKey)!==ls(c))return!1}else if(!jo(r.options.mutationKey,c))return!1}return!(i&&r.state.status!==i||l&&!l(r))}function Lh(t,r){return(r?.queryKeyHashFn||ls)(t)}function ls(t){return JSON.stringify(t,(r,s)=>lh(s)?Object.keys(s).sort().reduce((i,l)=>(i[l]=s[l],i),{}):s)}function jo(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(s=>jo(t[s],r[s])):!1}function Zb(t,r){if(t===r)return t;const s=Sy(t)&&Sy(r);if(s||lh(t)&&lh(r)){const i=s?t:Object.keys(t),l=i.length,c=s?r:Object.keys(r),d=c.length,h=s?[]:{},m=new Set(i);let p=0;for(let v=0;v{setTimeout(r,t)})}function ch(t,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,r):s.structuralSharing!==!1?Zb(t,r):r}function nE(t,r,s=0){const i=[...t,r];return s&&i.length>s?i.slice(1):i}function rE(t,r,s=0){const i=[r,...t];return s&&i.length>s?i.slice(0,-1):i}var Ph=Symbol();function Qb(t,r){return!t.queryFn&&r?.initialPromise?()=>r.initialPromise:!t.queryFn||t.queryFn===Ph?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Xb(t,r){return typeof t=="function"?t(...r):!!t}var aE=class extends bi{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!os&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Vh=new aE,sE=class extends bi{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!os&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#t}},Vc=new sE;function uh(){let t,r;const s=new Promise((l,c)=>{t=l,r=c});s.status="pending",s.catch(()=>{});function i(l){Object.assign(s,l),delete s.resolve,delete s.reject}return s.resolve=l=>{i({status:"fulfilled",value:l}),t(l)},s.reject=l=>{i({status:"rejected",reason:l}),r(l)},s}function iE(t){return Math.min(1e3*2**t,3e4)}function Kb(t){return(t??"online")==="online"?Vc.isOnline():!0}var $b=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Wb(t){let r=!1,s=0,i;const l=uh(),c=()=>l.status!=="pending",d=_=>{c()||(w(new $b(_)),t.abort?.())},h=()=>{r=!0},m=()=>{r=!1},p=()=>Vh.isFocused()&&(t.networkMode==="always"||Vc.isOnline())&&t.canRun(),v=()=>Kb(t.networkMode)&&t.canRun(),g=_=>{c()||(i?.(),l.resolve(_))},w=_=>{c()||(i?.(),l.reject(_))},E=()=>new Promise(_=>{i=R=>{(c()||p())&&_(R)},t.onPause?.()}).then(()=>{i=void 0,c()||t.onContinue?.()}),T=()=>{if(c())return;let _;const R=s===0?t.initialPromise:void 0;try{_=R??t.fn()}catch(D){_=Promise.reject(D)}Promise.resolve(_).then(g).catch(D=>{if(c())return;const N=t.retry??(os?0:3),z=t.retryDelay??iE,j=typeof z=="function"?z(s,D):z,U=N===!0||typeof N=="number"&&sp()?void 0:E()).then(()=>{r?w(D):T()})})};return{promise:l,status:()=>l.status,cancel:d,continue:()=>(i?.(),l),cancelRetry:h,continueRetry:m,canStart:v,start:()=>(v()?T():E().then(T),l)}}var oE=t=>setTimeout(t,0);function lE(){let t=[],r=0,s=h=>{h()},i=h=>{h()},l=oE;const c=h=>{r?t.push(h):l(()=>{s(h)})},d=()=>{const h=t;t=[],h.length&&l(()=>{i(()=>{h.forEach(m=>{s(m)})})})};return{batch:h=>{let m;r++;try{m=h()}finally{r--,r||d()}return m},batchCalls:h=>(...m)=>{c(()=>{h(...m)})},schedule:c,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{l=h}}}var zt=lE(),Jb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oh(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(os?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},cE=class extends Jb{#t;#e;#n;#r;#a;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=uE(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,r){const s=ch(this.state.data,t,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(t,r){this.#s({type:"setState",state:t,setStateOptions:r})}cancel(t){const r=this.#a?.promise;return this.#a?.cancel(t),r?r.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>Ln(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ph||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Aa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Yb(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},l=()=>{const h=Qb(this.options,r),p=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(v),v})();return this.#o=!1,this.options.persister?this.options.persister(h,p,this):h(p)},d=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return i(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=Wb({initialPromise:r?.initialPromise,fn:d.fetchFn,abort:s.abort.bind(s),onFail:(h,m)=>{this.#s({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof $b){if(h.silent)return this.#a.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(t){const r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...e0(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?i:void 0,i;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),zt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function e0(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kb(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function uE(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,s=r!==void 0,i=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var dE=class extends bi{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,r,s){const i=r.queryKey,l=r.queryHash??Lh(i,r);let c=this.get(l);return c||(c=new cE({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=this.#t.get(t.queryHash);r&&(t.destroy(),r===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>by(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>by(t,s)):r}notify(t){zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fE=class extends Jb{#t;#e;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#t=[],this.state=t.state||t0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(r=>r!==t),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const r=()=>{this.#r({type:"continue"})};this.#n=Wb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#n.canStart();try{if(s)r();else{this.#r({type:"pending",variables:t,isPaused:i}),await this.#e.config.onMutate?.(t,this);const c=await this.options.onMutate?.(t);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:i})}const l=await this.#n.start();return await this.#e.config.onSuccess?.(l,t,this.state.context,this),await this.options.onSuccess?.(l,t,this.state.context),await this.#e.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,t,this.state.context),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#e.config.onError?.(l,t,this.state.context,this),await this.options.onError?.(l,t,this.state.context),await this.#e.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,t,this.state.context),l}finally{this.#r({type:"error",error:l})}}finally{this.#e.runNext(this)}}#r(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),zt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function t0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hE=class extends bi{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,r,s){const i=new fE({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){this.#t.add(t);const r=wc(t);if(typeof r=="string"){const s=this.#e.get(r);s?s.push(t):this.#e.set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const r=wc(t);if(typeof r=="string"){const s=this.#e.get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&this.#e.delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=wc(t);if(typeof r=="string"){const i=this.#e.get(r)?.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){const r=wc(t);return typeof r=="string"?this.#e.get(r)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){zt.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const r={exact:!0,...t};return this.getAll().find(s=>xy(r,s))}findAll(t={}){return this.getAll().filter(r=>xy(t,r))}notify(t){zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return zt.batch(()=>Promise.all(t.map(r=>r.continue().catch(en))))}};function wc(t){return t.options.scope?.id}function _y(t){return{onFetch:(r,s)=>{const i=r.options,l=r.fetchOptions?.meta?.fetchMore?.direction,c=r.state.data?.pages||[],d=r.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const p=async()=>{let v=!1;const g=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(r.signal.aborted?v=!0:r.signal.addEventListener("abort",()=>{v=!0}),r.signal)})},w=Qb(r.options,r.fetchOptions),E=async(T,_,R)=>{if(v)return Promise.reject();if(_==null&&T.pages.length)return Promise.resolve(T);const N=(()=>{const I={client:r.client,queryKey:r.queryKey,pageParam:_,direction:R?"backward":"forward",meta:r.options.meta};return g(I),I})(),z=await w(N),{maxPages:j}=r.options,U=R?rE:nE;return{pages:U(T.pages,z,j),pageParams:U(T.pageParams,_,j)}};if(l&&c.length){const T=l==="backward",_=T?mE:Ey,R={pages:c,pageParams:d},D=_(i,R);h=await E(R,D,T)}else{const T=t??c.length;do{const _=m===0?d[0]??i.initialPageParam:Ey(i,h);if(m>0&&_==null)break;h=await E(h,_),m++}while(mr.options.persister?.(p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=p}}}function Ey(t,{pages:r,pageParams:s}){const i=r.length-1;return r.length>0?t.getNextPageParam(r[i],r,s[i],s):void 0}function mE(t,{pages:r,pageParams:s}){return r.length>0?t.getPreviousPageParam?.(r[0],r,s[0],s):void 0}var pE=class{#t;#e;#n;#r;#a;#i;#o;#s;constructor(t={}){this.#t=t.queryCache||new dE,this.#e=t.mutationCache||new hE,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Vh.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Vc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),s=this.#t.build(this,r),i=s.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Aa(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:r,state:s})=>{const i=s.data;return[r,i]})}setQueryData(t,r,s){const i=this.defaultQueryOptions({queryKey:t}),c=this.#t.get(i.queryHash)?.state.data,d=eE(r,c);if(d!==void 0)return this.#t.build(this,i).setData(d,{...s,manual:!0})}setQueriesData(t,r,s){return zt.batch(()=>this.#t.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,s)]))}getQueryState(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state}removeQueries(t){const r=this.#t;zt.batch(()=>{r.findAll(t).forEach(s=>{r.remove(s)})})}resetQueries(t,r){const s=this.#t;return zt.batch(()=>(s.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const s={revert:!0,...r},i=zt.batch(()=>this.#t.findAll(t).map(l=>l.cancel(s)));return Promise.all(i).then(en).catch(en)}invalidateQueries(t,r={}){return zt.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},r)))}refetchQueries(t,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},i=zt.batch(()=>this.#t.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,s);return s.throwOnError||(c=c.catch(en)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(en)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const s=this.#t.build(this,r);return s.isStaleByTime(Aa(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(en).catch(en)}fetchInfiniteQuery(t){return t.behavior=_y(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(en).catch(en)}ensureInfiniteQueryData(t){return t.behavior=_y(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Vc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,r){this.#r.set(ls(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...this.#r.values()],s={};return r.forEach(i=>{jo(t,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(t,r){this.#a.set(ls(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...this.#a.values()],s={};return r.forEach(i=>{jo(t,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const r={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=Lh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Ph&&(r.enabled=!1),r}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},gE=class extends bi{constructor(t,r){super(),this.options=r,this.#t=t,this.#s=null,this.#o=uh(),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#o;#s;#p;#f;#h;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Cy(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const r=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),r._defaulted&&!Pc(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&Ty(this.#e,s,this.options,r)&&this.#d(),this.updateResult(),i&&(this.#e!==s||Ln(this.options.enabled,this.#e)!==Ln(r.enabled,this.#e)||Aa(this.options.staleTime,this.#e)!==Aa(r.staleTime,this.#e))&&this.#g();const l=this.#v();i&&(this.#e!==s||Ln(this.options.enabled,this.#e)!==Ln(r.enabled,this.#e)||l!==this.#l)&&this.#y(l)}getOptimisticResult(t){const r=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(r,t);return yE(this,s)&&(this.#r=s,this.#i=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(t,r){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),r?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=this.#t.defaultQueryOptions(t),s=this.#t.getQueryCache().build(this.#t,r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(t){this.#w();let r=this.#e.fetch(this.options,t);return t?.throwOnError||(r=r.catch(en)),r}#g(){this.#x();const t=Aa(this.options.staleTime,this.#e);if(os||this.#r.isStale||!oh(t))return;const s=Yb(this.#r.dataUpdatedAt,t)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#l=t,!(os||Ln(this.options.enabled,this.#e)===!1||!oh(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Vh.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(t,r){const s=this.#e,i=this.options,l=this.#r,c=this.#a,d=this.#i,m=t!==s?t.state:this.#n,{state:p}=t;let v={...p},g=!1,w;if(r._optimisticResults){const H=this.hasListeners(),ae=!H&&Cy(t,r),de=H&&Ty(t,s,r,i);(ae||de)&&(v={...v,...e0(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:E,errorUpdatedAt:T,status:_}=v;w=v.data;let R=!1;if(r.placeholderData!==void 0&&w===void 0&&_==="pending"){let H;l?.isPlaceholderData&&r.placeholderData===d?.placeholderData?(H=l.data,R=!0):H=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,H!==void 0&&(_="success",w=ch(l?.data,H,r),g=!0)}if(r.select&&w!==void 0&&!R)if(l&&w===c?.data&&r.select===this.#p)w=this.#f;else try{this.#p=r.select,w=r.select(w),w=ch(l?.data,w,r),this.#f=w,this.#s=null}catch(H){this.#s=H}this.#s&&(E=this.#s,w=this.#f,T=Date.now(),_="error");const D=v.fetchStatus==="fetching",N=_==="pending",z=_==="error",j=N&&D,U=w!==void 0,F={status:_,fetchStatus:v.fetchStatus,isPending:N,isSuccess:_==="success",isError:z,isInitialLoading:j,isLoading:j,data:w,dataUpdatedAt:v.dataUpdatedAt,error:E,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:D,isRefetching:D&&!N,isLoadingError:z&&!U,isPaused:v.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:z&&U,isStale:Bh(t,r),refetch:this.refetch,promise:this.#o,isEnabled:Ln(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const H=be=>{F.status==="error"?be.reject(F.error):F.data!==void 0&&be.resolve(F.data)},ae=()=>{const be=this.#o=F.promise=uh();H(be)},de=this.#o;switch(de.status){case"pending":t.queryHash===s.queryHash&&H(de);break;case"fulfilled":(F.status==="error"||F.data!==de.value)&&ae();break;case"rejected":(F.status!=="error"||F.error!==de.reason)&&ae();break}}return F}updateResult(){const t=this.#r,r=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),Pc(r,t))return;this.#r=r;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#m.size)return!0;const c=new Set(l??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(d=>{const h=d;return this.#r[h]!==t[h]&&c.has(h)})};this.#_({listeners:s()})}#w(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const r=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(t){zt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function vE(t,r){return Ln(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function Cy(t,r){return vE(t,r)||t.state.data!==void 0&&dh(t,r,r.refetchOnMount)}function dh(t,r,s){if(Ln(r.enabled,t)!==!1&&Aa(r.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Bh(t,r)}return!1}function Ty(t,r,s,i){return(t!==r||Ln(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Bh(t,s)}function Bh(t,r){return Ln(r.enabled,t)!==!1&&t.isStaleByTime(Aa(r.staleTime,t))}function yE(t,r){return!Pc(t.getCurrentResult(),r)}var bE=class extends bi{#t;#e=void 0;#n;#r;constructor(r,s){super(),this.#t=r,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const s=this.options;this.options=this.#t.defaultMutationOptions(r),Pc(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&ls(s.mutationKey)!==ls(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#a(),this.#i(r)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(r,s){return this.#r=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(r)}#a(){const r=this.#n?.state??t0();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#i(r){zt.batch(()=>{if(this.#r&&this.hasListeners()){const s=this.#e.variables,i=this.#e.context;r?.type==="success"?(this.#r.onSuccess?.(r.data,s,i),this.#r.onSettled?.(r.data,null,s,i)):r?.type==="error"&&(this.#r.onError?.(r.error,s,i),this.#r.onSettled?.(void 0,r.error,s,i))}this.listeners.forEach(s=>{s(this.#e)})})}},Pf={exports:{}},Ve={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ay;function xE(){if(Ay)return Ve;Ay=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=g&&C[g]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,_={};function R(C,$,le){this.props=C,this.context=$,this.refs=_,this.updater=le||E}R.prototype.isReactComponent={},R.prototype.setState=function(C,$){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,$,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function D(){}D.prototype=R.prototype;function N(C,$,le){this.props=C,this.context=$,this.refs=_,this.updater=le||E}var z=N.prototype=new D;z.constructor=N,T(z,R.prototype),z.isPureReactComponent=!0;var j=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function F(C,$,le,X,re,xe){return le=xe.ref,{$$typeof:t,type:C,key:$,ref:le!==void 0?le:null,props:xe}}function H(C,$){return F(C.type,$,void 0,void 0,void 0,C.props)}function ae(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function de(C){var $={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(le){return $[le]})}var be=/\/+/g;function ie(C,$){return typeof C=="object"&&C!==null&&C.key!=null?de(""+C.key):$.toString(36)}function se(){}function ce(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(se,se):(C.status="pending",C.then(function($){C.status==="pending"&&(C.status="fulfilled",C.value=$)},function($){C.status==="pending"&&(C.status="rejected",C.reason=$)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function pe(C,$,le,X,re){var xe=typeof C;(xe==="undefined"||xe==="boolean")&&(C=null);var ge=!1;if(C===null)ge=!0;else switch(xe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(C.$$typeof){case t:case r:ge=!0;break;case v:return ge=C._init,pe(ge(C._payload),$,le,X,re)}}if(ge)return re=re(C),ge=X===""?"."+ie(C,0):X,j(re)?(le="",ge!=null&&(le=ge.replace(be,"$&/")+"/"),pe(re,$,le,"",function(Be){return Be})):re!=null&&(ae(re)&&(re=H(re,le+(re.key==null||C&&C.key===re.key?"":(""+re.key).replace(be,"$&/")+"/")+ge)),$.push(re)),1;ge=0;var ne=X===""?".":X+":";if(j(C))for(var fe=0;fe{const r=x.useContext(r0);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},kj=({client:t,children:r})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),y.jsx(r0.Provider,{value:t,children:r})),s0=x.createContext(!1),SE=()=>x.useContext(s0);s0.Provider;function wE(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var _E=x.createContext(wE()),EE=()=>x.useContext(_E),CE=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},TE=t=>{x.useEffect(()=>{t.clearReset()},[t])},AE=({result:t,errorResetBoundary:r,throwOnError:s,query:i,suspense:l})=>t.isError&&!r.isReset()&&!t.isFetching&&i&&(l&&t.data===void 0||Xb(s,[t.error,i])),RE=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},OE=(t,r)=>t.isLoading&&t.isFetching&&!r,ME=(t,r)=>t?.suspense&&r.isPending,Oy=(t,r,s)=>r.fetchOptimistic(t).catch(()=>{s.clearReset()});function NE(t,r,s){const i=SE(),l=EE(),c=a0(),d=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=i?"isRestoring":"optimistic",RE(d),CE(d,l),TE(l);const h=!c.getQueryCache().get(d.queryHash),[m]=x.useState(()=>new r(c,d)),p=m.getOptimisticResult(d),v=!i&&t.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(g=>{const w=v?m.subscribe(zt.batchCalls(g)):en;return m.updateResult(),w},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),x.useEffect(()=>{m.setOptions(d)},[d,m]),ME(d,p))throw Oy(d,m,l);if(AE({result:p,errorResetBoundary:l,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,p),d.experimental_prefetchInRender&&!os&&OE(p,i)&&(h?Oy(d,m,l):c.getQueryCache().get(d.queryHash)?.promise)?.catch(en).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?p:m.trackResult(p)}function fh(t,r){return NE(t,gE)}function i0(t,r){const s=a0(),[i]=x.useState(()=>new bE(s,t));x.useEffect(()=>{i.setOptions(t)},[i,t]);const l=x.useSyncExternalStore(x.useCallback(d=>i.subscribe(zt.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=x.useCallback((d,h)=>{i.mutate(d,h).catch(en)},[i]);if(l.error&&Xb(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}const zj=new pE({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var Vf={exports:{}},Eo={},Bf={exports:{}},Hf={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var My;function DE(){return My||(My=1,(function(t){function r(O,Z){var P=O.length;O.push(Z);e:for(;0>>1,C=O[ee];if(0>>1;ee<$;){var le=2*(ee+1)-1,X=O[le],re=le+1,xe=O[re];if(0>l(X,P))rel(xe,X)?(O[ee]=xe,O[re]=P,ee=re):(O[ee]=X,O[le]=P,ee=le);else if(rel(xe,P))O[ee]=xe,O[re]=P,ee=re;else break e}}return Z}function l(O,Z){var P=O.sortIndex-Z.sortIndex;return P!==0?P:O.id-Z.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var m=[],p=[],v=1,g=null,w=3,E=!1,T=!1,_=!1,R=!1,D=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function j(O){for(var Z=s(p);Z!==null;){if(Z.callback===null)i(p);else if(Z.startTime<=O)i(p),Z.sortIndex=Z.expirationTime,r(m,Z);else break;Z=s(p)}}function U(O){if(_=!1,j(O),!T)if(s(m)!==null)T=!0,I||(I=!0,ie());else{var Z=s(p);Z!==null&&pe(U,Z.startTime-O)}}var I=!1,F=-1,H=5,ae=-1;function de(){return R?!0:!(t.unstable_now()-aeO&&de());){var ee=g.callback;if(typeof ee=="function"){g.callback=null,w=g.priorityLevel;var C=ee(g.expirationTime<=O);if(O=t.unstable_now(),typeof C=="function"){g.callback=C,j(O),Z=!0;break t}g===s(m)&&i(m),j(O)}else i(m);g=s(m)}if(g!==null)Z=!0;else{var $=s(p);$!==null&&pe(U,$.startTime-O),Z=!1}}break e}finally{g=null,w=P,E=!1}Z=void 0}}finally{Z?ie():I=!1}}}var ie;if(typeof z=="function")ie=function(){z(be)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=be,ie=function(){ce.postMessage(null)}}else ie=function(){D(be,0)};function pe(O,Z){F=D(function(){O(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125ee?(O.sortIndex=P,r(p,O),s(m)===null&&O===s(p)&&(_?(N(F),F=-1):_=!0,pe(U,P-ee))):(O.sortIndex=C,r(m,O),T||E||(T=!0,I||(I=!0,ie()))),O},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(O){var Z=w;return function(){var P=w;w=Z;try{return O.apply(this,arguments)}finally{w=P}}}})(Hf)),Hf}var Ny;function jE(){return Ny||(Ny=1,Bf.exports=DE()),Bf.exports}var qf={exports:{}},Xt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Dy;function kE(){if(Dy)return Xt;Dy=1;var t=Hh();function r(m){var p="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),qf.exports=kE(),qf.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ky;function zE(){if(ky)return Eo;ky=1;var t=jE(),r=Hh(),s=o0();function i(e){var n="https://react.dev/errors/"+e;if(1C||(e.current=ee[C],ee[C]=null,C--)}function X(e,n){C++,ee[C]=e.current,e.current=n}var re=$(null),xe=$(null),ge=$(null),ne=$(null);function fe(e,n){switch(X(ge,n),X(xe,e),X(re,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Gv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Gv(n),e=Yv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(re),X(re,e)}function Be(){le(re),le(xe),le(ge)}function Le(e){e.memoizedState!==null&&X(ne,e);var n=re.current,a=Yv(n,e.type);n!==a&&(X(xe,e),X(re,a))}function He(e){xe.current===e&&(le(re),le(xe)),ne.current===e&&(le(ne),yo._currentValue=P)}var Ie=Object.prototype.hasOwnProperty,Ct=t.unstable_scheduleCallback,Ut=t.unstable_cancelCallback,Jn=t.unstable_shouldYield,er=t.unstable_requestPaint,pt=t.unstable_now,Ti=t.unstable_getCurrentPriorityLevel,$t=t.unstable_ImmediatePriority,M=t.unstable_UserBlockingPriority,q=t.unstable_NormalPriority,K=t.unstable_LowPriority,me=t.unstable_IdlePriority,he=t.log,ue=t.unstable_setDisableYieldValue,_e=null,ke=null;function Ye(e){if(typeof he=="function"&&ue(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var nt=Math.clz32?Math.clz32:tr,fn=Math.log,hn=Math.LN2;function tr(e){return e>>>=0,e===0?32:31-(fn(e)/hn|0)|0}var nr=256,rr=4194304;function Tn(e){var n=e&42;if(n!==0)return n;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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 e}}function ar(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~f,o!==0?u=Tn(o):(b&=S,b!==0?u=Tn(b):a||(a=S&~e,a!==0&&(u=Tn(a))))):(S=o&~f,S!==0?u=Tn(S):b!==0?u=Tn(b):a||(a=o&~e,a!==0&&(u=Tn(a)))),u===0?0:n!==0&&n!==u&&(n&f)===0&&(f=u&-u,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:u}function Cr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ea(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bn(){var e=nr;return nr<<=1,(nr&4194048)===0&&(nr=256),e}function ul(){var e=rr;return rr<<=1,(rr&62914560)===0&&(rr=4194304),e}function Ai(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function ta(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dl(e,n,a,o,u,f){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(a=b&~a;0)":-1u||A[o]!==B[u]){var W=` `+A[o].replace(" at new "," at ");return e.displayName&&W.includes("")&&(W=W.replace("",e.displayName)),W}while(1<=o&&0<=u);break}}}finally{Nu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?_s(a):""}function Iw(e){switch(e.tag){case 26:case 27:case 5:return _s(e.type);case 16:return _s("Lazy");case 13:return _s("Suspense");case 19:return _s("SuspenseList");case 0:case 15:return Du(e.type,!1);case 11:return Du(e.type.render,!1);case 1:return Du(e.type,!0);case 31:return _s("Activity");default:return""}}function Vm(e){try{var n="";do n+=Iw(e),e=e.return;while(e);return n}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}function An(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Fw(e){var n=Bm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(b){o=""+b,f.call(this,b)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ml(e){e._valueTracker||(e._valueTracker=Fw(e))}function Hm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=Bm(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function pl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Gw=/[\n"\\]/g;function Rn(e){return e.replace(Gw,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ju(e,n,a,o,u,f,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+An(n)):e.value!==""+An(n)&&(e.value=""+An(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?ku(e,b,An(n)):a!=null?ku(e,b,An(a)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+An(S):e.removeAttribute("name")}function qm(e,n,a,o,u,f,b,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+An(a):"",n=n!=null?""+An(n):a,S||n===e.value||(e.value=n),e.defaultValue=n}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function ku(e,n,a){n==="number"&&pl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Es(e,n,a,o){if(e=e.options,n){n={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(Rr)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Vu=!1}var na=null,Bu=null,vl=null;function Xm(){if(vl)return vl;var e,n=Bu,a=n.length,o,u="value"in na?na.value:na.textContent,f=u.length;for(e=0;e=ki),tp=" ",np=!1;function rp(e,n){switch(e){case"keyup":return b_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ap(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rs=!1;function S_(e,n){switch(e){case"compositionend":return ap(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return e=n.data,e===tp&&np?null:e;default:return null}}function w_(e,n){if(Rs)return e==="compositionend"||!Gu&&rp(e,n)?(e=Xm(),vl=Bu=na=null,Rs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=fp(a)}}function mp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function pp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=pl(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=pl(e.document)}return n}function Qu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var M_=Rr&&"documentMode"in document&&11>=document.documentMode,Os=null,Xu=null,Pi=null,Ku=!1;function gp(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ku||Os==null||Os!==pl(o)||(o=Os,"selectionStart"in o&&Qu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Pi&&Li(Pi,o)||(Pi=o,o=oc(Xu,"onSelect"),0>=b,u-=b,Mr=1<<32-nt(n)+u|a<f?f:8;var b=O.T,S={};O.T=S,zd(e,!1,n,a);try{var A=u(),B=O.S;if(B!==null&&B(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var W=V_(A,o);Ji(e,n,W,bn(e))}else Ji(e,n,o,bn(e))}catch(te){Ji(e,n,{then:function(){},status:"rejected",reason:te},bn())}finally{Z.p=f,O.T=b}}function F_(){}function jd(e,n,a,o){if(e.tag!==5)throw Error(i(476));var u=vg(e).queue;gg(e,u,n,P,a===null?F_:function(){return yg(e),a(o)})}function vg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kr,lastRenderedState:P},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function yg(e){var n=vg(e).next.queue;Ji(e,n,{},bn())}function kd(){return Qt(yo)}function bg(){return Rt().memoizedState}function xg(){return Rt().memoizedState}function G_(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=bn();e=sa(a);var o=ia(n,e,a);o!==null&&(xn(o,n,a),Zi(o,n,a)),n={cache:ud()},e.payload=n;return}n=n.return}}function Y_(e,n,a){var o=bn();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Hl(e)?wg(n,a):(a=ed(e,n,a,o),a!==null&&(xn(a,e,o),_g(a,n,o)))}function Sg(e,n,a){var o=bn();Ji(e,n,a,o)}function Ji(e,n,a,o){var u={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Hl(e))wg(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var b=n.lastRenderedState,S=f(b,a);if(u.hasEagerState=!0,u.eagerState=S,mn(S,b))return El(e,n,u,0),dt===null&&_l(),!1}catch{}finally{}if(a=ed(e,n,u,o),a!==null)return xn(a,e,o),_g(a,n,o),!0}return!1}function zd(e,n,a,o){if(o={lane:2,revertLane:mf(),action:o,hasEagerState:!1,eagerState:null,next:null},Hl(e)){if(n)throw Error(i(479))}else n=ed(e,a,o,2),n!==null&&xn(n,e,2)}function Hl(e){var n=e.alternate;return e===Fe||n!==null&&n===Fe}function wg(e,n){Vs=zl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function _g(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,yt(e,a)}}var ql={readContext:Qt,use:Ll,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St},Eg={readContext:Qt,use:Ll,useCallback:function(e,n){return sn().memoizedState=[e,n===void 0?null:n],e},useContext:Qt,useEffect:og,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Bl(4194308,4,dg.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Bl(4194308,4,e,n)},useInsertionEffect:function(e,n){Bl(4,2,e,n)},useMemo:function(e,n){var a=sn();n=n===void 0?null:n;var o=e();if(Wa){Ye(!0);try{e()}finally{Ye(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=sn();if(a!==void 0){var u=a(n);if(Wa){Ye(!0);try{a(n)}finally{Ye(!1)}}}else u=n;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=Y_.bind(null,Fe,e),[o.memoizedState,e]},useRef:function(e){var n=sn();return e={current:e},n.memoizedState=e},useState:function(e){e=Od(e);var n=e.queue,a=Sg.bind(null,Fe,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Nd,useDeferredValue:function(e,n){var a=sn();return Dd(a,e,n)},useTransition:function(){var e=Od(!1);return e=gg.bind(null,Fe,e.queue,!0,!1),sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=Fe,u=sn();if(tt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),dt===null)throw Error(i(349));(We&124)!==0||Gp(o,n,a)}u.memoizedState=a;var f={value:a,getSnapshot:n};return u.queue=f,og(Zp.bind(null,o,f,e),[e]),o.flags|=2048,Hs(9,Vl(),Yp.bind(null,o,f,a,n),null),a},useId:function(){var e=sn(),n=dt.identifierPrefix;if(tt){var a=Nr,o=Mr;a=(o&~(1<<32-nt(o)-1)).toString(32)+a,n="«"+n+"R"+a,a=Ul++,0Me?(Ht=Re,Re=null):Ht=Re.sibling;var et=G(L,Re,V[Me],J);if(et===null){Re===null&&(Re=Ht);break}e&&Re&&et.alternate===null&&n(L,Re),k=f(et,k,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et,Re=Ht}if(Me===V.length)return a(L,Re),tt&&Ya(L,Me),Ee;if(Re===null){for(;MeMe?(Ht=Re,Re=null):Ht=Re.sibling;var _a=G(L,Re,et.value,J);if(_a===null){Re===null&&(Re=Ht);break}e&&Re&&_a.alternate===null&&n(L,Re),k=f(_a,k,Me),Ze===null?Ee=_a:Ze.sibling=_a,Ze=_a,Re=Ht}if(et.done)return a(L,Re),tt&&Ya(L,Me),Ee;if(Re===null){for(;!et.done;Me++,et=V.next())et=te(L,et.value,J),et!==null&&(k=f(et,k,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et);return tt&&Ya(L,Me),Ee}for(Re=o(Re);!et.done;Me++,et=V.next())et=Y(Re,L,Me,et.value,J),et!==null&&(e&&et.alternate!==null&&Re.delete(et.key===null?Me:et.key),k=f(et,k,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et);return e&&Re.forEach(function(Q1){return n(L,Q1)}),tt&&Ya(L,Me),Ee}function lt(L,k,V,J){if(typeof V=="object"&&V!==null&&V.type===T&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case w:e:{for(var Ee=V.key;k!==null;){if(k.key===Ee){if(Ee=V.type,Ee===T){if(k.tag===7){a(L,k.sibling),J=u(k,V.props.children),J.return=L,L=J;break e}}else if(k.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===H&&Tg(Ee)===k.type){a(L,k.sibling),J=u(k,V.props),to(J,V),J.return=L,L=J;break e}a(L,k);break}else n(L,k);k=k.sibling}V.type===T?(J=Fa(V.props.children,L.mode,J,V.key),J.return=L,L=J):(J=Tl(V.type,V.key,V.props,null,L.mode,J),to(J,V),J.return=L,L=J)}return b(L);case E:e:{for(Ee=V.key;k!==null;){if(k.key===Ee)if(k.tag===4&&k.stateNode.containerInfo===V.containerInfo&&k.stateNode.implementation===V.implementation){a(L,k.sibling),J=u(k,V.children||[]),J.return=L,L=J;break e}else{a(L,k);break}else n(L,k);k=k.sibling}J=rd(V,L.mode,J),J.return=L,L=J}return b(L);case H:return Ee=V._init,V=Ee(V._payload),lt(L,k,V,J)}if(pe(V))return je(L,k,V,J);if(ie(V)){if(Ee=ie(V),typeof Ee!="function")throw Error(i(150));return V=Ee.call(V),Oe(L,k,V,J)}if(typeof V.then=="function")return lt(L,k,Il(V),J);if(V.$$typeof===z)return lt(L,k,Ml(L,V),J);Fl(L,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,k!==null&&k.tag===6?(a(L,k.sibling),J=u(k,V),J.return=L,L=J):(a(L,k),J=nd(V,L.mode,J),J.return=L,L=J),b(L)):a(L,k)}return function(L,k,V,J){try{eo=0;var Ee=lt(L,k,V,J);return qs=null,Ee}catch(Re){if(Re===Gi||Re===Dl)throw Re;var Ze=pn(29,Re,null,L.mode);return Ze.lanes=J,Ze.return=L,Ze}finally{}}}var Is=Ag(!0),Rg=Ag(!1),jn=$(null),ir=null;function la(e){var n=e.alternate;X(Dt,Dt.current&1),X(jn,e),ir===null&&(n===null||Ps.current!==null||n.memoizedState!==null)&&(ir=e)}function Og(e){if(e.tag===22){if(X(Dt,Dt.current),X(jn,e),ir===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(ir=e)}}else ca()}function ca(){X(Dt,Dt.current),X(jn,jn.current)}function zr(e){le(jn),ir===e&&(ir=null),le(Dt)}var Dt=$(0);function Gl(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Tf(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Ud(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:v({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ld={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=bn(),u=sa(o);u.payload=n,a!=null&&(u.callback=a),n=ia(e,u,o),n!==null&&(xn(n,e,o),Zi(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=bn(),u=sa(o);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=ia(e,u,o),n!==null&&(xn(n,e,o),Zi(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=bn(),o=sa(a);o.tag=2,n!=null&&(o.callback=n),n=ia(e,o,a),n!==null&&(xn(n,e,a),Zi(n,e,a))}};function Mg(e,n,a,o,u,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,b):n.prototype&&n.prototype.isPureReactComponent?!Li(a,o)||!Li(u,f):!0}function Ng(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&Ld.enqueueReplaceState(n,n.state,null)}function Ja(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var Yl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Dg(e){Yl(e)}function jg(e){console.error(e)}function kg(e){Yl(e)}function Zl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function zg(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Pd(e,n,a){return a=sa(a),a.tag=3,a.payload={element:null},a.callback=function(){Zl(e,n)},a}function Ug(e){return e=sa(e),e.tag=3,e}function Lg(e,n,a,o){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){zg(n,a,o)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){zg(n,a,o),typeof u!="function"&&(pa===null?pa=new Set([this]):pa.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function Q_(e,n,a,o,u){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&qi(n,a,u,!0),a=jn.current,a!==null){switch(a.tag){case 13:return ir===null?cf():a.alternate===null&&vt===0&&(vt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,o===hd?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),df(e,o,u)),!1;case 22:return a.flags|=65536,o===hd?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),df(e,o,u)),!1}throw Error(i(435,a.tag))}return df(e,o,u),cf(),!1}if(tt)return n=jn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,o!==id&&(e=Error(i(422),{cause:o}),Hi(On(e,a)))):(o!==id&&(n=Error(i(423),{cause:o}),Hi(On(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=On(o,a),u=Pd(e.stateNode,o,u),gd(e,u),vt!==4&&(vt=2)),!1;var f=Error(i(520),{cause:o});if(f=On(f,a),lo===null?lo=[f]:lo.push(f),vt!==4&&(vt=2),n===null)return!0;o=On(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Pd(a.stateNode,o,e),gd(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(pa===null||!pa.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Ug(u),Lg(u,e,a,o),gd(a,u),!1}a=a.return}while(a!==null);return!1}var Pg=Error(i(461)),Vt=!1;function It(e,n,a,o){n.child=e===null?Rg(n,null,a,o):Is(n,e.child,a,o)}function Vg(e,n,a,o,u){a=a.render;var f=n.ref;if("ref"in o){var b={};for(var S in o)S!=="ref"&&(b[S]=o[S])}else b=o;return Ka(n),o=Sd(e,n,a,b,f,u),S=wd(),e!==null&&!Vt?(_d(e,n,u),Ur(e,n,u)):(tt&&S&&ad(n),n.flags|=1,It(e,n,o,u),n.child)}function Bg(e,n,a,o,u){if(e===null){var f=a.type;return typeof f=="function"&&!td(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,Hg(e,n,f,o,u)):(e=Tl(a.type,null,o,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Yd(e,u)){var b=f.memoizedProps;if(a=a.compare,a=a!==null?a:Li,a(b,o)&&e.ref===n.ref)return Ur(e,n,u)}return n.flags|=1,e=Or(f,o),e.ref=n.ref,e.return=n,n.child=e}function Hg(e,n,a,o,u){if(e!==null){var f=e.memoizedProps;if(Li(f,o)&&e.ref===n.ref)if(Vt=!1,n.pendingProps=o=f,Yd(e,u))(e.flags&131072)!==0&&(Vt=!0);else return n.lanes=e.lanes,Ur(e,n,u)}return Vd(e,n,a,o,u)}function qg(e,n,a){var o=n.pendingProps,u=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=f!==null?f.baseLanes|a:a,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;n.childLanes=f&~o}else n.childLanes=0,n.child=null;return Ig(e,n,o,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nl(n,f!==null?f.cachePool:null),f!==null?Hp(n,f):yd(),Og(n);else return n.lanes=n.childLanes=536870912,Ig(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(Nl(n,f.cachePool),Hp(n,f),ca(),n.memoizedState=null):(e!==null&&Nl(n,null),yd(),ca());return It(e,n,u,a),n.child}function Ig(e,n,a,o){var u=fd();return u=u===null?null:{parent:Nt._currentValue,pool:u},n.memoizedState={baseLanes:a,cachePool:u},e!==null&&Nl(n,null),yd(),Og(n),e!==null&&qi(e,n,o,!0),null}function Ql(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Vd(e,n,a,o,u){return Ka(n),a=Sd(e,n,a,o,void 0,u),o=wd(),e!==null&&!Vt?(_d(e,n,u),Ur(e,n,u)):(tt&&o&&ad(n),n.flags|=1,It(e,n,a,u),n.child)}function Fg(e,n,a,o,u,f){return Ka(n),n.updateQueue=null,a=Ip(n,o,a,u),qp(e),o=wd(),e!==null&&!Vt?(_d(e,n,f),Ur(e,n,f)):(tt&&o&&ad(n),n.flags|=1,It(e,n,a,f),n.child)}function Gg(e,n,a,o,u){if(Ka(n),n.stateNode===null){var f=js,b=a.contextType;typeof b=="object"&&b!==null&&(f=Qt(b)),f=new a(o,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Ld,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=o,f.state=n.memoizedState,f.refs={},md(n),b=a.contextType,f.context=typeof b=="object"&&b!==null?Qt(b):js,f.state=n.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Ud(n,a,b,o),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&Ld.enqueueReplaceState(f,f.state,null),Xi(n,o,f,u),Qi(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){f=n.stateNode;var S=n.memoizedProps,A=Ja(a,S);f.props=A;var B=f.context,W=a.contextType;b=js,typeof W=="object"&&W!==null&&(b=Qt(W));var te=a.getDerivedStateFromProps;W=typeof te=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,W||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||B!==b)&&Ng(n,f,o,b),aa=!1;var G=n.memoizedState;f.state=G,Xi(n,o,f,u),Qi(),B=n.memoizedState,S||G!==B||aa?(typeof te=="function"&&(Ud(n,a,te,o),B=n.memoizedState),(A=aa||Mg(n,a,A,o,G,B,b))?(W||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=B),f.props=o,f.state=B,f.context=b,o=A):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{f=n.stateNode,pd(e,n),b=n.memoizedProps,W=Ja(a,b),f.props=W,te=n.pendingProps,G=f.context,B=a.contextType,A=js,typeof B=="object"&&B!==null&&(A=Qt(B)),S=a.getDerivedStateFromProps,(B=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==te||G!==A)&&Ng(n,f,o,A),aa=!1,G=n.memoizedState,f.state=G,Xi(n,o,f,u),Qi();var Y=n.memoizedState;b!==te||G!==Y||aa||e!==null&&e.dependencies!==null&&Ol(e.dependencies)?(typeof S=="function"&&(Ud(n,a,S,o),Y=n.memoizedState),(W=aa||Mg(n,a,W,o,G,Y,A)||e!==null&&e.dependencies!==null&&Ol(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,Y,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,Y,A)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=Y),f.props=o,f.state=Y,f.context=A,o=W):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),o=!1)}return f=o,Ql(e,n),o=(n.flags&128)!==0,f||o?(f=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&o?(n.child=Is(n,e.child,null,u),n.child=Is(n,null,a,u)):It(e,n,a,u),n.memoizedState=f.state,e=n.child):e=Ur(e,n,u),e}function Yg(e,n,a,o){return Bi(),n.flags|=256,It(e,n,a,o),n.child}var Bd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hd(e){return{baseLanes:e,cachePool:jp()}}function qd(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=kn),e}function Zg(e,n,a){var o=n.pendingProps,u=!1,f=(n.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(Dt.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(tt){if(u?la(n):ca(),tt){var S=gt,A;if(A=S){e:{for(A=S,S=sr;A.nodeType!==8;){if(!S){S=null;break e}if(A=In(A.nextSibling),A===null){S=null;break e}}S=A}S!==null?(n.memoizedState={dehydrated:S,treeContext:Ga!==null?{id:Mr,overflow:Nr}:null,retryLane:536870912,hydrationErrors:null},A=pn(18,null,null,0),A.stateNode=S,A.return=n,n.child=A,Wt=n,gt=null,A=!0):A=!1}A||Qa(n)}if(S=n.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return Tf(S)?n.lanes=32:n.lanes=536870912,null;zr(n)}return S=o.children,o=o.fallback,u?(ca(),u=n.mode,S=Xl({mode:"hidden",children:S},u),o=Fa(o,u,a,null),S.return=n,o.return=n,S.sibling=o,n.child=S,u=n.child,u.memoizedState=Hd(a),u.childLanes=qd(e,b,a),n.memoizedState=Bd,o):(la(n),Id(n,S))}if(A=e.memoizedState,A!==null&&(S=A.dehydrated,S!==null)){if(f)n.flags&256?(la(n),n.flags&=-257,n=Fd(e,n,a)):n.memoizedState!==null?(ca(),n.child=e.child,n.flags|=128,n=null):(ca(),u=o.fallback,S=n.mode,o=Xl({mode:"visible",children:o.children},S),u=Fa(u,S,a,null),u.flags|=2,o.return=n,u.return=n,o.sibling=u,n.child=o,Is(n,e.child,null,a),o=n.child,o.memoizedState=Hd(a),o.childLanes=qd(e,b,a),n.memoizedState=Bd,n=u);else if(la(n),Tf(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var B=b.dgst;b=B,o=Error(i(419)),o.stack="",o.digest=b,Hi({value:o,source:null,stack:null}),n=Fd(e,n,a)}else if(Vt||qi(e,n,a,!1),b=(a&e.childLanes)!==0,Vt||b){if(b=dt,b!==null&&(o=a&-a,o=(o&42)!==0?1:Tt(o),o=(o&(b.suspendedLanes|a))!==0?0:o,o!==0&&o!==A.retryLane))throw A.retryLane=o,Ds(e,o),xn(b,e,o),Pg;S.data==="$?"||cf(),n=Fd(e,n,a)}else S.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,gt=In(S.nextSibling),Wt=n,tt=!0,Za=null,sr=!1,e!==null&&(Nn[Dn++]=Mr,Nn[Dn++]=Nr,Nn[Dn++]=Ga,Mr=e.id,Nr=e.overflow,Ga=n),n=Id(n,o.children),n.flags|=4096);return n}return u?(ca(),u=o.fallback,S=n.mode,A=e.child,B=A.sibling,o=Or(A,{mode:"hidden",children:o.children}),o.subtreeFlags=A.subtreeFlags&65011712,B!==null?u=Or(B,u):(u=Fa(u,S,a,null),u.flags|=2),u.return=n,o.return=n,o.sibling=u,n.child=o,o=u,u=n.child,S=e.child.memoizedState,S===null?S=Hd(a):(A=S.cachePool,A!==null?(B=Nt._currentValue,A=A.parent!==B?{parent:B,pool:B}:A):A=jp(),S={baseLanes:S.baseLanes|a,cachePool:A}),u.memoizedState=S,u.childLanes=qd(e,b,a),n.memoizedState=Bd,o):(la(n),a=e.child,e=a.sibling,a=Or(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=a,n.memoizedState=null,a)}function Id(e,n){return n=Xl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Xl(e,n){return e=pn(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Fd(e,n,a){return Is(n,e.child,null,a),e=Id(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Qg(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),ld(e.return,n,a)}function Gd(e,n,a,o,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:u}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=a,f.tailMode=u)}function Xg(e,n,a){var o=n.pendingProps,u=o.revealOrder,f=o.tail;if(It(e,n,o.children,a),o=Dt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qg(e,a,n);else if(e.tag===19)Qg(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(X(Dt,o),u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&Gl(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Gd(n,!1,u,a,f);break;case"backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Gl(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Gd(n,!0,a,null,f);break;case"together":Gd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ur(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),ma|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(qi(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=Or(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Or(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Yd(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ol(e)))}function X_(e,n,a){switch(n.tag){case 3:fe(n,n.stateNode.containerInfo),ra(n,Nt,e.memoizedState.cache),Bi();break;case 27:case 5:Le(n);break;case 4:fe(n,n.stateNode.containerInfo);break;case 10:ra(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(la(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Zg(e,n,a):(la(n),e=Ur(e,n,a),e!==null?e.sibling:null);la(n);break;case 19:var u=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(qi(e,n,a,!1),o=(a&n.childLanes)!==0),u){if(o)return Xg(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),X(Dt,Dt.current),o)break;return null;case 22:case 23:return n.lanes=0,qg(e,n,a);case 24:ra(n,Nt,e.memoizedState.cache)}return Ur(e,n,a)}function Kg(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Vt=!0;else{if(!Yd(e,a)&&(n.flags&128)===0)return Vt=!1,X_(e,n,a);Vt=(e.flags&131072)!==0}else Vt=!1,tt&&(n.flags&1048576)!==0&&Tp(n,Rl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,u=o._init;if(o=u(o._payload),n.type=o,typeof o=="function")td(o)?(e=Ja(o,e),n.tag=1,n=Gg(null,n,o,e,a)):(n.tag=0,n=Vd(null,n,o,e,a));else{if(o!=null){if(u=o.$$typeof,u===j){n.tag=11,n=Vg(null,n,o,e,a);break e}else if(u===F){n.tag=14,n=Bg(null,n,o,e,a);break e}}throw n=ce(o)||o,Error(i(306,n,""))}}return n;case 0:return Vd(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,u=Ja(o,n.pendingProps),Gg(e,n,o,u,a);case 3:e:{if(fe(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var f=n.memoizedState;u=f.element,pd(e,n),Xi(n,o,null,a);var b=n.memoizedState;if(o=b.cache,ra(n,Nt,o),o!==f.cache&&cd(n,[Nt],a,!0),Qi(),o=b.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=Yg(e,n,o,a);break e}else if(o!==u){u=On(Error(i(424)),n),Hi(u),n=Yg(e,n,o,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(gt=In(e.firstChild),Wt=n,tt=!0,Za=null,sr=!0,a=Rg(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Bi(),o===u){n=Ur(e,n,a);break e}It(e,n,o,a)}n=n.child}return n;case 26:return Ql(e,n),e===null?(a=ey(n.type,null,n.pendingProps,null))?n.memoizedState=a:tt||(a=n.type,e=n.pendingProps,o=cc(ge.current).createElement(a),o[xt]=n,o[ut]=e,Gt(o,a,e),Pt(o),n.stateNode=o):n.memoizedState=ey(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Le(n),e===null&&tt&&(o=n.stateNode=$v(n.type,n.pendingProps,ge.current),Wt=n,sr=!0,u=gt,ya(n.type)?(Af=u,gt=In(o.firstChild)):gt=u),It(e,n,n.pendingProps.children,a),Ql(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&tt&&((u=o=gt)&&(o=_1(o,n.type,n.pendingProps,sr),o!==null?(n.stateNode=o,Wt=n,gt=In(o.firstChild),sr=!1,u=!0):u=!1),u||Qa(n)),Le(n),u=n.type,f=n.pendingProps,b=e!==null?e.memoizedProps:null,o=f.children,_f(u,f)?o=null:b!==null&&_f(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=Sd(e,n,H_,null,null,a),yo._currentValue=u),Ql(e,n),It(e,n,o,a),n.child;case 6:return e===null&&tt&&((e=a=gt)&&(a=E1(a,n.pendingProps,sr),a!==null?(n.stateNode=a,Wt=n,gt=null,e=!0):e=!1),e||Qa(n)),null;case 13:return Zg(e,n,a);case 4:return fe(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Is(n,null,o,a):It(e,n,o,a),n.child;case 11:return Vg(e,n,n.type,n.pendingProps,a);case 7:return It(e,n,n.pendingProps,a),n.child;case 8:return It(e,n,n.pendingProps.children,a),n.child;case 12:return It(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,ra(n,n.type,o.value),It(e,n,o.children,a),n.child;case 9:return u=n.type._context,o=n.pendingProps.children,Ka(n),u=Qt(u),o=o(u),n.flags|=1,It(e,n,o,a),n.child;case 14:return Bg(e,n,n.type,n.pendingProps,a);case 15:return Hg(e,n,n.type,n.pendingProps,a);case 19:return Xg(e,n,a);case 31:return o=n.pendingProps,a=n.mode,o={mode:o.mode,children:o.children},e===null?(a=Xl(o,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=Or(e.child,o),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return qg(e,n,a);case 24:return Ka(n),o=Qt(Nt),e===null?(u=fd(),u===null&&(u=dt,f=ud(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),n.memoizedState={parent:o,cache:u},md(n),ra(n,Nt,u)):((e.lanes&a)!==0&&(pd(e,n),Xi(n,null,null,a),Qi()),u=e.memoizedState,f=n.memoizedState,u.parent!==o?(u={parent:o,cache:o},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),ra(n,Nt,o)):(o=f.cache,ra(n,Nt,o),o!==u.cache&&cd(n,[Nt],a,!0))),It(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Lr(e){e.flags|=4}function $g(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sy(n)){if(n=jn.current,n!==null&&((We&4194048)===We?ir!==null:(We&62914560)!==We&&(We&536870912)===0||n!==ir))throw Yi=hd,kp;e.flags|=8192}}function Kl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ul():536870912,e.lanes|=n,Zs|=n)}function no(e,n){if(!tt)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ht(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function K_(e,n,a){var o=n.pendingProps;switch(sd(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(n),null;case 1:return ht(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),jr(Nt),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Vi(n)?Lr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Op())),ht(n),null;case 26:return a=n.memoizedState,e===null?(Lr(n),a!==null?(ht(n),$g(n,a)):(ht(n),n.flags&=-16777217)):a?a!==e.memoizedState?(Lr(n),ht(n),$g(n,a)):(ht(n),n.flags&=-16777217):(e.memoizedProps!==o&&Lr(n),ht(n),n.flags&=-16777217),null;case 27:He(n),a=ge.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Lr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ht(n),null}e=re.current,Vi(n)?Ap(n):(e=$v(u,o,a),n.stateNode=e,Lr(n))}return ht(n),null;case 5:if(He(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Lr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ht(n),null}if(e=re.current,Vi(n))Ap(n);else{switch(u=cc(ge.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="