import{g as Sm,a as gT,u as vT,r as yT}from"./app-DrgD6EWn.js";function bT(t,n){for(var a=0;ao[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var ph={exports:{}},Pi={};/** * @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 sb;function xT(){if(sb)return Pi;sb=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(o,l,c){var f=null;if(c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),"key"in l){c={};for(var d in l)d!=="key"&&(c[d]=l[d])}else c=l;return l=c.ref,{$$typeof:t,type:o,key:f,ref:l!==void 0?l:null,props:c}}return Pi.Fragment=n,Pi.jsx=a,Pi.jsxs=a,Pi}var ob;function wT(){return ob||(ob=1,ph.exports=xT()),ph.exports}var y=wT(),Do=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(){}},vs=typeof window>"u"||"Deno"in globalThis;function an(){}function ST(t,n){return typeof t=="function"?t(n):t}function Vh(t){return typeof t=="number"&&t>=0&&t!==1/0}function I0(t,n){return Math.max(t+(n||0)-Date.now(),0)}function za(t,n){return typeof t=="function"?t(n):t}function Fn(t,n){return typeof t=="function"?t(n):t}function ib(t,n){const{type:a="all",exact:o,fetchStatus:l,predicate:c,queryKey:f,stale:d}=t;if(f){if(o){if(n.queryHash!==_m(f,n.options))return!1}else if(!Zi(n.queryKey,f))return!1}if(a!=="all"){const p=n.isActive();if(a==="active"&&!p||a==="inactive"&&p)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||l&&l!==n.state.fetchStatus||c&&!c(n))}function lb(t,n){const{exact:a,status:o,predicate:l,mutationKey:c}=t;if(c){if(!n.options.mutationKey)return!1;if(a){if(ys(n.options.mutationKey)!==ys(c))return!1}else if(!Zi(n.options.mutationKey,c))return!1}return!(o&&n.state.status!==o||l&&!l(n))}function _m(t,n){return(n?.queryKeyHashFn||ys)(t)}function ys(t){return JSON.stringify(t,(n,a)=>Hh(a)?Object.keys(a).sort().reduce((o,l)=>(o[l]=a[l],o),{}):a)}function Zi(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?Object.keys(n).every(a=>Zi(t[a],n[a])):!1}function q0(t,n){if(t===n)return t;const a=cb(t)&&cb(n);if(a||Hh(t)&&Hh(n)){const o=a?t:Object.keys(t),l=o.length,c=a?n:Object.keys(n),f=c.length,d=a?[]:{},p=new Set(o);let m=0;for(let g=0;g{setTimeout(n,t)})}function Fh(t,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(t,n):a.structuralSharing!==!1?q0(t,n):n}function ET(t,n,a=0){const o=[...t,n];return a&&o.length>a?o.slice(1):o}function TT(t,n,a=0){const o=[n,...t];return a&&o.length>a?o.slice(0,-1):o}var Em=Symbol();function G0(t,n){return!t.queryFn&&n?.initialPromise?()=>n.initialPromise:!t.queryFn||t.queryFn===Em?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Y0(t,n){return typeof t=="function"?t(...n):!!t}var RT=class extends Do{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!vs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}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(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Tm=new RT,CT=class extends Do{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!vs&&window.addEventListener){const n=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}}}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(a=>{a(t)}))}isOnline(){return this.#t}},cu=new CT;function Ih(){let t,n;const a=new Promise((l,c)=>{t=l,n=c});a.status="pending",a.catch(()=>{});function o(l){Object.assign(a,l),delete a.resolve,delete a.reject}return a.resolve=l=>{o({status:"fulfilled",value:l}),t(l)},a.reject=l=>{o({status:"rejected",reason:l}),n(l)},a}function AT(t){return Math.min(1e3*2**t,3e4)}function Z0(t){return(t??"online")==="online"?cu.isOnline():!0}var Q0=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function $0(t){let n=!1,a=0,o;const l=Ih(),c=()=>l.status!=="pending",f=_=>{c()||(w(new Q0(_)),t.abort?.())},d=()=>{n=!0},p=()=>{n=!1},m=()=>Tm.isFocused()&&(t.networkMode==="always"||cu.isOnline())&&t.canRun(),g=()=>Z0(t.networkMode)&&t.canRun(),v=_=>{c()||(o?.(),l.resolve(_))},w=_=>{c()||(o?.(),l.reject(_))},R=()=>new Promise(_=>{o=T=>{(c()||m())&&_(T)},t.onPause?.()}).then(()=>{o=void 0,c()||t.onContinue?.()}),E=()=>{if(c())return;let _;const T=a===0?t.initialPromise:void 0;try{_=T??t.fn()}catch(O){_=Promise.reject(O)}Promise.resolve(_).then(v).catch(O=>{if(c())return;const N=t.retry??(vs?0:3),z=t.retryDelay??AT,L=typeof z=="function"?z(a,O):z,C=N===!0||typeof N=="number"&&am()?void 0:R()).then(()=>{n?w(O):E()})})};return{promise:l,status:()=>l.status,cancel:f,continue:()=>(o?.(),l),cancelRetry:d,continueRetry:p,canStart:g,start:()=>(g()?E():R().then(E),l)}}var OT=t=>setTimeout(t,0);function MT(){let t=[],n=0,a=d=>{d()},o=d=>{d()},l=OT;const c=d=>{n?t.push(d):l(()=>{a(d)})},f=()=>{const d=t;t=[],d.length&&l(()=>{o(()=>{d.forEach(p=>{a(p)})})})};return{batch:d=>{let p;n++;try{p=d()}finally{n--,n||f()}return p},batchCalls:d=>(...p)=>{c(()=>{d(...p)})},schedule:c,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{o=d},setScheduler:d=>{l=d}}}var Lt=MT(),X0=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vh(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(vs?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},NT=class extends X0{#t;#e;#n;#r;#a;#o;#i;constructor(t){super(),this.#i=!1,this.#o=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=DT(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.#o,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,n){const a=Fh(this.state.data,t,this.options);return this.#s({data:a,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),a}setState(t,n){this.#s({type:"setState",state:t,setStateOptions:n})}cancel(t){const n=this.#a?.promise;return this.#a?.cancel(t),n?n.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>Fn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Em||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>za(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:!I0(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(n=>n.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(n=>n!==t),this.observers.length||(this.#a&&(this.#i?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,n){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&n?.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 d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#i=!0,a.signal)})},l=()=>{const d=G0(this.options,n),m=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#i=!1,this.options.persister?this.options.persister(d,m,this):d(m)},f=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return o(d),d})();this.options.behavior?.onFetch(f,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#s({type:"fetch",meta:f.fetchOptions?.meta}),this.#a=$0({initialPromise:n?.initialPromise,fn:f.fetchFn,abort:a.abort.bind(a),onFail:(d,p)=>{this.#s({type:"failed",failureCount:d,error:p})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Q0){if(d.silent)return this.#a.promise;if(d.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw d;return this.state.data}}throw this.#s({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#s(t){const n=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...K0(a.data,this.options),fetchMeta:t.meta??null};case"success":const o={...a,data:t.data,dataUpdateCount:a.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?o:void 0,o;case"error":const l=t.error;return{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=n(this.state),Lt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function K0(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Z0(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function DT(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,a=n!==void 0,o=a?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var kT=class extends Do{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,n,a){const o=n.queryKey,l=n.queryHash??_m(o,n);let c=this.get(l);return c||(c=new NT({client:t,queryKey:o,queryHash:l,options:t.defaultQueryOptions(n),state:a,defaultOptions:t.getQueryDefaults(o)}),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 n=this.#t.get(t.queryHash);n&&(t.destroy(),n===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Lt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(a=>ib(n,a))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(a=>ib(t,a)):n}notify(t){Lt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},jT=class extends X0{#t;#e;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#t=[],this.state=t.state||W0(),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(n=>n!==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 n=()=>{this.#r({type:"continue"})};this.#n=$0({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:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const a=this.state.status==="pending",o=!this.#n.canStart();try{if(a)n();else{this.#r({type:"pending",variables:t,isPaused:o}),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:o})}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 n=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Lt.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function W0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zT=class extends Do{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,n,a){const o=new jT({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:a});return this.add(o),o}add(t){this.#t.add(t);const n=Hc(t);if(typeof n=="string"){const a=this.#e.get(n);a?a.push(t):this.#e.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const n=Hc(t);if(typeof n=="string"){const a=this.#e.get(n);if(a)if(a.length>1){const o=a.indexOf(t);o!==-1&&a.splice(o,1)}else a[0]===t&&this.#e.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Hc(t);if(typeof n=="string"){const o=this.#e.get(n)?.find(l=>l.state.status==="pending");return!o||o===t}else return!0}runNext(t){const n=Hc(t);return typeof n=="string"?this.#e.get(n)?.find(o=>o!==t&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Lt.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 n={exact:!0,...t};return this.getAll().find(a=>lb(n,a))}findAll(t={}){return this.getAll().filter(n=>lb(t,n))}notify(t){Lt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Lt.batch(()=>Promise.all(t.map(n=>n.continue().catch(an))))}};function Hc(t){return t.options.scope?.id}function fb(t){return{onFetch:(n,a)=>{const o=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,c=n.state.data?.pages||[],f=n.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const v=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(n.signal.aborted?g=!0:n.signal.addEventListener("abort",()=>{g=!0}),n.signal)})},w=G0(n.options,n.fetchOptions),R=async(E,_,T)=>{if(g)return Promise.reject();if(_==null&&E.pages.length)return Promise.resolve(E);const N=(()=>{const I={client:n.client,queryKey:n.queryKey,pageParam:_,direction:T?"backward":"forward",meta:n.options.meta};return v(I),I})(),z=await w(N),{maxPages:L}=n.options,C=T?TT:ET;return{pages:C(E.pages,z,L),pageParams:C(E.pageParams,_,L)}};if(l&&c.length){const E=l==="backward",_=E?UT:db,T={pages:c,pageParams:f},O=_(o,T);d=await R(T,O,E)}else{const E=t??c.length;do{const _=p===0?f[0]??o.initialPageParam:db(o,d);if(p>0&&_==null)break;d=await R(d,_),p++}while(pn.options.persister?.(m,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a):n.fetchFn=m}}}function db(t,{pages:n,pageParams:a}){const o=n.length-1;return n.length>0?t.getNextPageParam(n[o],n,a[o],a):void 0}function UT(t,{pages:n,pageParams:a}){return n.length>0?t.getPreviousPageParam?.(n[0],n,a[0],a):void 0}var PT=class{#t;#e;#n;#r;#a;#o;#i;#s;constructor(t={}){this.#t=t.queryCache||new kT,this.#e=t.mutationCache||new zT,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#i=Tm.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=cu.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#i?.(),this.#i=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 n=this.defaultQueryOptions({queryKey:t});return this.#t.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),a=this.#t.build(this,n),o=a.state.data;return o===void 0?this.fetchQuery(t):(t.revalidateIfStale&&a.isStaleByTime(za(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(o))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:n,state:a})=>{const o=a.data;return[n,o]})}setQueryData(t,n,a){const o=this.defaultQueryOptions({queryKey:t}),c=this.#t.get(o.queryHash)?.state.data,f=ST(n,c);if(f!==void 0)return this.#t.build(this,o).setData(f,{...a,manual:!0})}setQueriesData(t,n,a){return Lt.batch(()=>this.#t.findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,a)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#t.get(n.queryHash)?.state}removeQueries(t){const n=this.#t;Lt.batch(()=>{n.findAll(t).forEach(a=>{n.remove(a)})})}resetQueries(t,n){const a=this.#t;return Lt.batch(()=>(a.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const a={revert:!0,...n},o=Lt.batch(()=>this.#t.findAll(t).map(l=>l.cancel(a)));return Promise.all(o).then(an).catch(an)}invalidateQueries(t,n={}){return Lt.batch(()=>(this.#t.findAll(t).forEach(a=>{a.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},o=Lt.batch(()=>this.#t.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,a);return a.throwOnError||(c=c.catch(an)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(o).then(an)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const a=this.#t.build(this,n);return a.isStaleByTime(za(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(an).catch(an)}fetchInfiniteQuery(t){return t.behavior=fb(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(an).catch(an)}ensureInfiniteQueryData(t){return t.behavior=fb(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return cu.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,n){this.#r.set(ys(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#r.values()],a={};return n.forEach(o=>{Zi(t,o.queryKey)&&Object.assign(a,o.defaultOptions)}),a}setMutationDefaults(t,n){this.#a.set(ys(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#a.values()],a={};return n.forEach(o=>{Zi(t,o.mutationKey)&&Object.assign(a,o.defaultOptions)}),a}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=_m(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Em&&(n.enabled=!1),n}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()}},LT=class extends Do{constructor(t,n){super(),this.options=n,this.#t=t,this.#s=null,this.#i=Ih(),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#o;#i;#s;#p;#d;#h;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),hb(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#e.removeObserver(this)}setOptions(t){const n=this.options,a=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 Fn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),n._defaulted&&!lu(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&mb(this.#e,a,this.options,n)&&this.#f(),this.updateResult(),o&&(this.#e!==a||Fn(this.options.enabled,this.#e)!==Fn(n.enabled,this.#e)||za(this.options.staleTime,this.#e)!==za(n.staleTime,this.#e))&&this.#g();const l=this.#v();o&&(this.#e!==a||Fn(this.options.enabled,this.#e)!==Fn(n.enabled,this.#e)||l!==this.#l)&&this.#y(l)}getOptimisticResult(t){const n=this.#t.getQueryCache().build(this.#t,t),a=this.createResult(n,t);return VT(this,a)&&(this.#r=a,this.#o=this.options,this.#a=this.#e.state),a}getCurrentResult(){return this.#r}trackResult(t,n){return new Proxy(t,{get:(a,o)=>(this.trackProp(o),n?.(o),o==="promise"&&!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(a,o))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=this.#t.defaultQueryOptions(t),a=this.#t.getQueryCache().build(this.#t,n);return a.fetch().then(()=>this.createResult(a,n))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(t){this.#S();let n=this.#e.fetch(this.options,t);return t?.throwOnError||(n=n.catch(an)),n}#g(){this.#x();const t=za(this.options.staleTime,this.#e);if(vs||this.#r.isStale||!Vh(t))return;const a=I0(this.#r.dataUpdatedAt,t)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},a)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#w(),this.#l=t,!(vs||Fn(this.options.enabled,this.#e)===!1||!Vh(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Tm.isFocused())&&this.#f()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(t,n){const a=this.#e,o=this.options,l=this.#r,c=this.#a,f=this.#o,p=t!==a?t.state:this.#n,{state:m}=t;let g={...m},v=!1,w;if(n._optimisticResults){const q=this.hasListeners(),re=!q&&hb(t,n),ce=q&&mb(t,a,n,o);(re||ce)&&(g={...g,...K0(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:R,errorUpdatedAt:E,status:_}=g;w=g.data;let T=!1;if(n.placeholderData!==void 0&&w===void 0&&_==="pending"){let q;l?.isPlaceholderData&&n.placeholderData===f?.placeholderData?(q=l.data,T=!0):q=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,q!==void 0&&(_="success",w=Fh(l?.data,q,n),v=!0)}if(n.select&&w!==void 0&&!T)if(l&&w===c?.data&&n.select===this.#p)w=this.#d;else try{this.#p=n.select,w=n.select(w),w=Fh(l?.data,w,n),this.#d=w,this.#s=null}catch(q){this.#s=q}this.#s&&(R=this.#s,w=this.#d,E=Date.now(),_="error");const O=g.fetchStatus==="fetching",N=_==="pending",z=_==="error",L=N&&O,C=w!==void 0,P={status:_,fetchStatus:g.fetchStatus,isPending:N,isSuccess:_==="success",isError:z,isInitialLoading:L,isLoading:L,data:w,dataUpdatedAt:g.dataUpdatedAt,error:R,errorUpdatedAt:E,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:O,isRefetching:O&&!N,isLoadingError:z&&!C,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:z&&C,isStale:Rm(t,n),refetch:this.refetch,promise:this.#i,isEnabled:Fn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const q=xe=>{P.status==="error"?xe.reject(P.error):P.data!==void 0&&xe.resolve(P.data)},re=()=>{const xe=this.#i=P.promise=Ih();q(xe)},ce=this.#i;switch(ce.status){case"pending":t.queryHash===a.queryHash&&q(ce);break;case"fulfilled":(P.status==="error"||P.data!==ce.value)&&re();break;case"rejected":(P.status!=="error"||P.error!==ce.reason)&&re();break}}return P}updateResult(){const t=this.#r,n=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#o=this.options,this.#a.data!==void 0&&(this.#h=this.#e),lu(n,t))return;this.#r=n;const a=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;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(f=>{const d=f;return this.#r[d]!==t[d]&&c.has(d)})};this.#_({listeners:a()})}#S(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const n=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(t){Lt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function BT(t,n){return Fn(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&n.retryOnMount===!1)}function hb(t,n){return BT(t,n)||t.state.data!==void 0&&qh(t,n,n.refetchOnMount)}function qh(t,n,a){if(Fn(n.enabled,t)!==!1&&za(n.staleTime,t)!=="static"){const o=typeof a=="function"?a(t):a;return o==="always"||o!==!1&&Rm(t,n)}return!1}function mb(t,n,a,o){return(t!==n||Fn(o.enabled,t)===!1)&&(!a.suspense||t.state.status!=="error")&&Rm(t,a)}function Rm(t,n){return Fn(n.enabled,t)!==!1&&t.isStaleByTime(za(n.staleTime,t))}function VT(t,n){return!lu(t.getCurrentResult(),n)}var HT=class extends Do{#t;#e=void 0;#n;#r;constructor(n,a){super(),this.#t=n,this.setOptions(a),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const a=this.options;this.options=this.#t.defaultMutationOptions(n),lu(this.options,a)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&ys(a.mutationKey)!==ys(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#o(n)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#o()}mutate(n,a){return this.#r=a,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(n)}#a(){const n=this.#n?.state??W0();this.#e={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#o(n){Lt.batch(()=>{if(this.#r&&this.hasListeners()){const a=this.#e.variables,o=this.#e.context;n?.type==="success"?(this.#r.onSuccess?.(n.data,a,o),this.#r.onSettled?.(n.data,null,a,o)):n?.type==="error"&&(this.#r.onError?.(n.error,a,o),this.#r.onSettled?.(void 0,n.error,a,o))}this.listeners.forEach(a=>{a(this.#e)})})}},gh={exports:{}},He={};/** * @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 pb;function FT(){if(pb)return He;pb=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=v&&A[v]||A["@@iterator"],typeof A=="function"?A:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,_={};function T(A,W,ue){this.props=A,this.context=W,this.refs=_,this.updater=ue||R}T.prototype.isReactComponent={},T.prototype.setState=function(A,W){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,W,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function O(){}O.prototype=T.prototype;function N(A,W,ue){this.props=A,this.context=W,this.refs=_,this.updater=ue||R}var z=N.prototype=new O;z.constructor=N,E(z,T.prototype),z.isPureReactComponent=!0;var L=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function P(A,W,ue,X,se,we){return ue=we.ref,{$$typeof:t,type:A,key:W,ref:ue!==void 0?ue:null,props:we}}function q(A,W){return P(A.type,W,void 0,void 0,void 0,A.props)}function re(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function ce(A){var W={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ue){return W[ue]})}var xe=/\/+/g;function oe(A,W){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):W.toString(36)}function ie(){}function fe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ie,ie):(A.status="pending",A.then(function(W){A.status==="pending"&&(A.status="fulfilled",A.value=W)},function(W){A.status==="pending"&&(A.status="rejected",A.reason=W)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function ge(A,W,ue,X,se){var we=typeof A;(we==="undefined"||we==="boolean")&&(A=null);var ve=!1;if(A===null)ve=!0;else switch(we){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(A.$$typeof){case t:case n:ve=!0;break;case g:return ve=A._init,ge(ve(A._payload),W,ue,X,se)}}if(ve)return se=se(A),ve=X===""?"."+oe(A,0):X,L(se)?(ue="",ve!=null&&(ue=ve.replace(xe,"$&/")+"/"),ge(se,W,ue,"",function(Fe){return Fe})):se!=null&&(re(se)&&(se=q(se,ue+(se.key==null||A&&A.key===se.key?"":(""+se.key).replace(xe,"$&/")+"/")+ve)),W.push(se)),1;ve=0;var ae=X===""?".":X+":";if(L(A))for(var he=0;he{const n=x.useContext(ex);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},j3=({client:t,children:n})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),y.jsx(ex.Provider,{value:t,children:n})),nx=x.createContext(!1),IT=()=>x.useContext(nx);nx.Provider;function qT(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var GT=x.createContext(qT()),YT=()=>x.useContext(GT),ZT=(t,n)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(n.isReset()||(t.retryOnMount=!1))},QT=t=>{x.useEffect(()=>{t.clearReset()},[t])},$T=({result:t,errorResetBoundary:n,throwOnError:a,query:o,suspense:l})=>t.isError&&!n.isReset()&&!t.isFetching&&o&&(l&&t.data===void 0||Y0(a,[t.error,o])),XT=t=>{if(t.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...o)=>n(a(...o)):n(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},KT=(t,n)=>t.isLoading&&t.isFetching&&!n,WT=(t,n)=>t?.suspense&&n.isPending,vb=(t,n,a)=>n.fetchOptimistic(t).catch(()=>{a.clearReset()});function JT(t,n,a){const o=IT(),l=YT(),c=tx(),f=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=o?"isRestoring":"optimistic",XT(f),ZT(f,l),QT(l);const d=!c.getQueryCache().get(f.queryHash),[p]=x.useState(()=>new n(c,f)),m=p.getOptimisticResult(f),g=!o&&t.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(v=>{const w=g?p.subscribe(Lt.batchCalls(v)):an;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x.useEffect(()=>{p.setOptions(f)},[f,p]),WT(f,m))throw vb(f,p,l);if($T({result:m,errorResetBoundary:l,throwOnError:f.throwOnError,query:c.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(f,m),f.experimental_prefetchInRender&&!vs&&KT(m,o)&&(d?vb(f,p,l):c.getQueryCache().get(f.queryHash)?.promise)?.catch(an).finally(()=>{p.updateResult()}),f.notifyOnChangeProps?m:p.trackResult(m)}function Gh(t,n){return JT(t,LT)}function rx(t,n){const a=tx(),[o]=x.useState(()=>new HT(a,t));x.useEffect(()=>{o.setOptions(t)},[o,t]);const l=x.useSyncExternalStore(x.useCallback(f=>o.subscribe(Lt.batchCalls(f)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=x.useCallback((f,d)=>{o.mutate(f,d).catch(an)},[o]);if(l.error&&Y0(o.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}const z3=new PT({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var vh={exports:{}},Li={},yh={exports:{}},bh={};/** * @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 yb;function eR(){return yb||(yb=1,(function(t){function n(D,Z){var B=D.length;D.push(Z);e:for(;0>>1,A=D[te];if(0>>1;tel(X,B))sel(we,X)?(D[te]=we,D[se]=B,te=se):(D[te]=X,D[ue]=B,te=ue);else if(sel(we,B))D[te]=we,D[se]=B,te=se;else break e}}return Z}function l(D,Z){var B=D.sortIndex-Z.sortIndex;return B!==0?B:D.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 f=Date,d=f.now();t.unstable_now=function(){return f.now()-d}}var p=[],m=[],g=1,v=null,w=3,R=!1,E=!1,_=!1,T=!1,O=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function L(D){for(var Z=a(m);Z!==null;){if(Z.callback===null)o(m);else if(Z.startTime<=D)o(m),Z.sortIndex=Z.expirationTime,n(p,Z);else break;Z=a(m)}}function C(D){if(_=!1,L(D),!E)if(a(p)!==null)E=!0,I||(I=!0,oe());else{var Z=a(m);Z!==null&&ge(C,Z.startTime-D)}}var I=!1,P=-1,q=5,re=-1;function ce(){return T?!0:!(t.unstable_now()-reD&&ce());){var te=v.callback;if(typeof te=="function"){v.callback=null,w=v.priorityLevel;var A=te(v.expirationTime<=D);if(D=t.unstable_now(),typeof A=="function"){v.callback=A,L(D),Z=!0;break t}v===a(p)&&o(p),L(D)}else o(p);v=a(p)}if(v!==null)Z=!0;else{var W=a(m);W!==null&&ge(C,W.startTime-D),Z=!1}}break e}finally{v=null,w=B,R=!1}Z=void 0}}finally{Z?oe():I=!1}}}var oe;if(typeof z=="function")oe=function(){z(xe)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,fe=ie.port2;ie.port1.onmessage=xe,oe=function(){fe.postMessage(null)}}else oe=function(){O(xe,0)};function ge(D,Z){P=O(function(){D(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(D){D.callback=null},t.unstable_forceFrameRate=function(D){0>D||125te?(D.sortIndex=B,n(m,D),a(p)===null&&D===a(m)&&(_?(N(P),P=-1):_=!0,ge(C,B-te))):(D.sortIndex=A,n(p,D),E||R||(E=!0,I||(I=!0,oe()))),D},t.unstable_shouldYield=ce,t.unstable_wrapCallback=function(D){var Z=w;return function(){var B=w;w=Z;try{return D.apply(this,arguments)}finally{w=B}}}})(bh)),bh}var bb;function tR(){return bb||(bb=1,yh.exports=eR()),yh.exports}var xh={exports:{}},Wt={};/** * @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 xb;function nR(){if(xb)return Wt;xb=1;var t=Cm();function n(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),xh.exports=nR(),xh.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 Sb;function rR(){if(Sb)return Li;Sb=1;var t=tR(),n=Cm(),a=ax();function o(e){var r="https://react.dev/errors/"+e;if(1A||(e.current=te[A],te[A]=null,A--)}function X(e,r){A++,te[A]=e.current,e.current=r}var se=W(null),we=W(null),ve=W(null),ae=W(null);function he(e,r){switch(X(ve,r),X(we,e),X(se,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)&&(e=e.namespaceURI)?ky(e):0;break;default:if(e=r.tagName,r=r.namespaceURI)r=ky(r),e=jy(r,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ue(se),X(se,e)}function Fe(){ue(se),ue(we),ue(ve)}function Le(e){e.memoizedState!==null&&X(ae,e);var r=se.current,s=jy(r,e.type);r!==s&&(X(we,e),X(se,s))}function Ie(e){we.current===e&&(ue(se),ue(we)),ae.current===e&&(ue(ae),Di._currentValue=B)}var Ge=Object.prototype.hasOwnProperty,At=t.unstable_scheduleCallback,Bt=t.unstable_cancelCallback,or=t.unstable_shouldYield,ir=t.unstable_requestPaint,vt=t.unstable_now,Ho=t.unstable_getCurrentPriorityLevel,tn=t.unstable_ImmediatePriority,k=t.unstable_UserBlockingPriority,F=t.unstable_NormalPriority,K=t.unstable_LowPriority,pe=t.unstable_IdlePriority,me=t.log,de=t.unstable_setDisableYieldValue,Ee=null,ze=null;function Qe(e){if(typeof me=="function"&&de(e),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(Ee,e)}catch{}}var at=Math.clz32?Math.clz32:lr,yn=Math.log,bn=Math.LN2;function lr(e){return e>>>=0,e===0?32:31-(yn(e)/bn|0)|0}var cr=256,ur=4194304;function Dn(e){var r=e&42;if(r!==0)return r;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 fr(e,r,s){var i=e.pendingLanes;if(i===0)return 0;var u=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~h,i!==0?u=Dn(i):(b&=S,b!==0?u=Dn(b):s||(s=S&~e,s!==0&&(u=Dn(s))))):(S=i&~h,S!==0?u=Dn(S):b!==0?u=Dn(b):s||(s=i&~e,s!==0&&(u=Dn(s)))),u===0?0:r!==0&&r!==u&&(r&h)===0&&(h=u&-u,s=r&-r,h>=s||h===32&&(s&4194048)!==0)?r:u}function kr(e,r){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)===0}function la(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 Yn(){var e=cr;return cr<<=1,(cr&4194048)===0&&(cr=256),e}function Ol(){var e=ur;return ur<<=1,(ur&62914560)===0&&(ur=4194304),e}function Fo(e){for(var r=[],s=0;31>s;s++)r.push(e);return r}function ca(e,r){e.pendingLanes|=r,r!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ml(e,r,s,i,u,h){var b=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var S=e.entanglements,M=e.expirationTimes,H=e.hiddenUpdates;for(s=b&~s;0)":-1u||M[i]!==H[u]){var J=` `+M[i].replace(" at new "," at ");return e.displayName&&J.includes("")&&(J=J.replace("",e.displayName)),J}while(1<=i&&0<=u);break}}}finally{uf=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?js(s):""}function u1(e){switch(e.tag){case 26:case 27:case 5:return js(e.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 15:return ff(e.type,!1);case 11:return ff(e.type.render,!1);case 1:return ff(e.type,!0);case 31:return js("Activity");default:return""}}function Cp(e){try{var r="";do r+=u1(e),e=e.return;while(e);return r}catch(s){return` Error generating stack: `+s.message+` `+s.stack}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ap(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function f1(e){var r=Ap(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+e[r];if(!e.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,h=s.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return u.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,r,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function kl(e){e._valueTracker||(e._valueTracker=f1(e))}function Op(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var s=r.getValue(),i="";return e&&(i=Ap(e)?e.checked?"true":"false":e.value),e=i,e!==s?(r.setValue(e),!0):!1}function jl(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 d1=/[\n"\\]/g;function jn(e){return e.replace(d1,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function df(e,r,s,i,u,h,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),r!=null?b==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+kn(r)):e.value!==""+kn(r)&&(e.value=""+kn(r)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),r!=null?hf(e,b,kn(r)):s!=null?hf(e,b,kn(s)):i!=null&&e.removeAttribute("value"),u==null&&h!=null&&(e.defaultChecked=!!h),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+kn(S):e.removeAttribute("name")}function Mp(e,r,s,i,u,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),r!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||r!=null))return;s=s!=null?""+kn(s):"",r=r!=null?""+kn(r):s,S||r===e.value||(e.value=r),e.defaultValue=r}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function hf(e,r,s){r==="number"&&jl(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function zs(e,r,s,i){if(e=e.options,r){r={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yf=!1;if(Ur)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){yf=!0}}),window.addEventListener("test",Yo,Yo),window.removeEventListener("test",Yo,Yo)}catch{yf=!1}var ua=null,bf=null,Ul=null;function Pp(){if(Ul)return Ul;var e,r=bf,s=r.length,i,u="value"in ua?ua.value:ua.textContent,h=u.length;for(e=0;e=$o),Ip=" ",qp=!1;function Gp(e,r){switch(e){case"keyup":return V1.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bs=!1;function F1(e,r){switch(e){case"compositionend":return Yp(r);case"keypress":return r.which!==32?null:(qp=!0,Ip);case"textInput":return e=r.data,e===Ip&&qp?null:e;default:return null}}function I1(e,r){if(Bs)return e==="compositionend"||!Ef&&Gp(e,r)?(e=Pp(),Ul=bf=ua=null,Bs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:s,offset:r-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=eg(s)}}function ng(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?ng(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function rg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var r=jl(e.document);r instanceof e.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)e=r.contentWindow;else break;r=jl(e.document)}return r}function Cf(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}var K1=Ur&&"documentMode"in document&&11>=document.documentMode,Vs=null,Af=null,Jo=null,Of=!1;function ag(e,r,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Of||Vs==null||Vs!==jl(i)||(i=Vs,"selectionStart"in i&&Cf(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Jo&&Wo(Jo,i)||(Jo=i,i=Rc(Af,"onSelect"),0>=b,u-=b,Lr=1<<32-at(r)+u|s<h?h:8;var b=D.T,S={};D.T=S,md(e,!1,r,s);try{var M=u(),H=D.S;if(H!==null&&H(S,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var J=oE(M,i);mi(e,r,J,Tn(e))}else mi(e,r,i,Tn(e))}catch(ne){mi(e,r,{then:function(){},status:"rejected",reason:ne},Tn())}finally{Z.p=h,D.T=b}}function fE(){}function dd(e,r,s,i){if(e.tag!==5)throw Error(o(476));var u=sv(e).queue;av(e,u,r,B,s===null?fE:function(){return ov(e),s(i)})}function sv(e){var r=e.memoizedState;if(r!==null)return r;r={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:B},next:null};var s={};return r.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:s},next:null},e.memoizedState=r,e=e.alternate,e!==null&&(e.memoizedState=r),r}function ov(e){var r=sv(e).next.queue;mi(e,r,{},Tn())}function hd(){return Kt(Di)}function iv(){return Nt().memoizedState}function lv(){return Nt().memoizedState}function dE(e){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var s=Tn();e=ha(s);var i=ma(r,e,s);i!==null&&(Rn(i,r,s),li(i,r,s)),r={cache:If()},e.payload=r;return}r=r.return}}function hE(e,r,s){var i=Tn();s={lane:i,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},oc(e)?uv(r,s):(s=kf(e,r,s,i),s!==null&&(Rn(s,e,i),fv(s,r,i)))}function cv(e,r,s){var i=Tn();mi(e,r,s,i)}function mi(e,r,s,i){var u={lane:i,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(oc(e))uv(r,u);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var b=r.lastRenderedState,S=h(b,s);if(u.hasEagerState=!0,u.eagerState=S,xn(S,b))return Il(e,r,u,0),ht===null&&Fl(),!1}catch{}finally{}if(s=kf(e,r,u,i),s!==null)return Rn(s,e,i),fv(s,r,i),!0}return!1}function md(e,r,s,i){if(i={lane:2,revertLane:Yd(),action:i,hasEagerState:!1,eagerState:null,next:null},oc(e)){if(r)throw Error(o(479))}else r=kf(e,s,i,2),r!==null&&Rn(r,e,2)}function oc(e){var r=e.alternate;return e===Ye||r!==null&&r===Ye}function uv(e,r){Xs=ec=!0;var s=e.pending;s===null?r.next=r:(r.next=s.next,s.next=r),e.pending=r}function fv(e,r,s){if((s&4194048)!==0){var i=r.lanes;i&=e.pendingLanes,s|=i,r.lanes=s,xt(e,s)}}var ic={readContext:Kt,use:nc,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t},dv={readContext:Kt,use:nc,useCallback:function(e,r){return un().memoizedState=[e,r===void 0?null:r],e},useContext:Kt,useEffect:$g,useImperativeHandle:function(e,r,s){s=s!=null?s.concat([e]):null,sc(4194308,4,Jg.bind(null,r,e),s)},useLayoutEffect:function(e,r){return sc(4194308,4,e,r)},useInsertionEffect:function(e,r){sc(4,2,e,r)},useMemo:function(e,r){var s=un();r=r===void 0?null:r;var i=e();if(os){Qe(!0);try{e()}finally{Qe(!1)}}return s.memoizedState=[i,r],i},useReducer:function(e,r,s){var i=un();if(s!==void 0){var u=s(r);if(os){Qe(!0);try{s(r)}finally{Qe(!1)}}}else u=r;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=hE.bind(null,Ye,e),[i.memoizedState,e]},useRef:function(e){var r=un();return e={current:e},r.memoizedState=e},useState:function(e){e=ld(e);var r=e.queue,s=cv.bind(null,Ye,r);return r.dispatch=s,[e.memoizedState,s]},useDebugValue:ud,useDeferredValue:function(e,r){var s=un();return fd(s,e,r)},useTransition:function(){var e=ld(!1);return e=av.bind(null,Ye,e.queue,!0,!1),un().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,s){var i=Ye,u=un();if(rt){if(s===void 0)throw Error(o(407));s=s()}else{if(s=r(),ht===null)throw Error(o(349));(et&124)!==0||kg(i,r,s)}u.memoizedState=s;var h={value:s,getSnapshot:r};return u.queue=h,$g(zg.bind(null,i,h,e),[e]),i.flags|=2048,Ws(9,ac(),jg.bind(null,i,h,s,r),null),s},useId:function(){var e=un(),r=ht.identifierPrefix;if(rt){var s=Br,i=Lr;s=(i&~(1<<32-at(i)-1)).toString(32)+s,r="«"+r+"R"+s,s=tc++,0Ne?(qt=Oe,Oe=null):qt=Oe.sibling;var nt=G(U,Oe,V[Ne],ee);if(nt===null){Oe===null&&(Oe=qt);break}e&&Oe&&nt.alternate===null&&r(U,Oe),j=h(nt,j,Ne),$e===null?Te=nt:$e.sibling=nt,$e=nt,Oe=qt}if(Ne===V.length)return s(U,Oe),rt&&es(U,Ne),Te;if(Oe===null){for(;NeNe?(qt=Oe,Oe=null):qt=Oe.sibling;var Na=G(U,Oe,nt.value,ee);if(Na===null){Oe===null&&(Oe=qt);break}e&&Oe&&Na.alternate===null&&r(U,Oe),j=h(Na,j,Ne),$e===null?Te=Na:$e.sibling=Na,$e=Na,Oe=qt}if(nt.done)return s(U,Oe),rt&&es(U,Ne),Te;if(Oe===null){for(;!nt.done;Ne++,nt=V.next())nt=ne(U,nt.value,ee),nt!==null&&(j=h(nt,j,Ne),$e===null?Te=nt:$e.sibling=nt,$e=nt);return rt&&es(U,Ne),Te}for(Oe=i(Oe);!nt.done;Ne++,nt=V.next())nt=Y(Oe,U,Ne,nt.value,ee),nt!==null&&(e&&nt.alternate!==null&&Oe.delete(nt.key===null?Ne:nt.key),j=h(nt,j,Ne),$e===null?Te=nt:$e.sibling=nt,$e=nt);return e&&Oe.forEach(function(pT){return r(U,pT)}),rt&&es(U,Ne),Te}function ut(U,j,V,ee){if(typeof V=="object"&&V!==null&&V.type===E&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case w:e:{for(var Te=V.key;j!==null;){if(j.key===Te){if(Te=V.type,Te===E){if(j.tag===7){s(U,j.sibling),ee=u(j,V.props.children),ee.return=U,U=ee;break e}}else if(j.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===q&&mv(Te)===j.type){s(U,j.sibling),ee=u(j,V.props),gi(ee,V),ee.return=U,U=ee;break e}s(U,j);break}else r(U,j);j=j.sibling}V.type===E?(ee=Wa(V.props.children,U.mode,ee,V.key),ee.return=U,U=ee):(ee=Gl(V.type,V.key,V.props,null,U.mode,ee),gi(ee,V),ee.return=U,U=ee)}return b(U);case R:e:{for(Te=V.key;j!==null;){if(j.key===Te)if(j.tag===4&&j.stateNode.containerInfo===V.containerInfo&&j.stateNode.implementation===V.implementation){s(U,j.sibling),ee=u(j,V.children||[]),ee.return=U,U=ee;break e}else{s(U,j);break}else r(U,j);j=j.sibling}ee=Uf(V,U.mode,ee),ee.return=U,U=ee}return b(U);case q:return Te=V._init,V=Te(V._payload),ut(U,j,V,ee)}if(ge(V))return je(U,j,V,ee);if(oe(V)){if(Te=oe(V),typeof Te!="function")throw Error(o(150));return V=Te.call(V),Me(U,j,V,ee)}if(typeof V.then=="function")return ut(U,j,lc(V),ee);if(V.$$typeof===z)return ut(U,j,$l(U,V),ee);cc(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,j!==null&&j.tag===6?(s(U,j.sibling),ee=u(j,V),ee.return=U,U=ee):(s(U,j),ee=zf(V,U.mode,ee),ee.return=U,U=ee),b(U)):s(U,j)}return function(U,j,V,ee){try{pi=0;var Te=ut(U,j,V,ee);return Js=null,Te}catch(Oe){if(Oe===oi||Oe===Kl)throw Oe;var $e=wn(29,Oe,null,U.mode);return $e.lanes=ee,$e.return=U,$e}finally{}}}var eo=pv(!0),gv=pv(!1),Bn=W(null),hr=null;function ga(e){var r=e.alternate;X(zt,zt.current&1),X(Bn,e),hr===null&&(r===null||$s.current!==null||r.memoizedState!==null)&&(hr=e)}function vv(e){if(e.tag===22){if(X(zt,zt.current),X(Bn,e),hr===null){var r=e.alternate;r!==null&&r.memoizedState!==null&&(hr=e)}}else va()}function va(){X(zt,zt.current),X(Bn,Bn.current)}function Ir(e){ue(Bn),hr===e&&(hr=null),ue(zt)}var zt=W(0);function uc(e){for(var r=e;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||ah(s)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function pd(e,r,s,i){r=e.memoizedState,s=s(i,r),s=s==null?r:g({},r,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var gd={enqueueSetState:function(e,r,s){e=e._reactInternals;var i=Tn(),u=ha(i);u.payload=r,s!=null&&(u.callback=s),r=ma(e,u,i),r!==null&&(Rn(r,e,i),li(r,e,i))},enqueueReplaceState:function(e,r,s){e=e._reactInternals;var i=Tn(),u=ha(i);u.tag=1,u.payload=r,s!=null&&(u.callback=s),r=ma(e,u,i),r!==null&&(Rn(r,e,i),li(r,e,i))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var s=Tn(),i=ha(s);i.tag=2,r!=null&&(i.callback=r),r=ma(e,i,s),r!==null&&(Rn(r,e,s),li(r,e,s))}};function yv(e,r,s,i,u,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,h,b):r.prototype&&r.prototype.isPureReactComponent?!Wo(s,i)||!Wo(u,h):!0}function bv(e,r,s,i){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,i),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,i),r.state!==e&&gd.enqueueReplaceState(r,r.state,null)}function is(e,r){var s=r;if("ref"in r){s={};for(var i in r)i!=="ref"&&(s[i]=r[i])}if(e=e.defaultProps){s===r&&(s=g({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}var fc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function xv(e){fc(e)}function wv(e){console.error(e)}function Sv(e){fc(e)}function dc(e,r){try{var s=e.onUncaughtError;s(r.value,{componentStack:r.stack})}catch(i){setTimeout(function(){throw i})}}function _v(e,r,s){try{var i=e.onCaughtError;i(s.value,{componentStack:s.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function vd(e,r,s){return s=ha(s),s.tag=3,s.payload={element:null},s.callback=function(){dc(e,r)},s}function Ev(e){return e=ha(e),e.tag=3,e}function Tv(e,r,s,i){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var h=i.value;e.payload=function(){return u(h)},e.callback=function(){_v(r,s,i)}}var b=s.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){_v(r,s,i),typeof u!="function"&&(_a===null?_a=new Set([this]):_a.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function pE(e,r,s,i,u){if(s.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(r=s.alternate,r!==null&&ri(r,s,u,!0),s=Bn.current,s!==null){switch(s.tag){case 13:return hr===null?Hd():s.alternate===null&&bt===0&&(bt=3),s.flags&=-257,s.flags|=65536,s.lanes=u,i===Yf?s.flags|=16384:(r=s.updateQueue,r===null?s.updateQueue=new Set([i]):r.add(i),Id(e,i,u)),!1;case 22:return s.flags|=65536,i===Yf?s.flags|=16384:(r=s.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([i])},s.updateQueue=r):(s=r.retryQueue,s===null?r.retryQueue=new Set([i]):s.add(i)),Id(e,i,u)),!1}throw Error(o(435,s.tag))}return Id(e,i,u),Hd(),!1}if(rt)return r=Bn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=u,i!==Bf&&(e=Error(o(422),{cause:i}),ni(zn(e,s)))):(i!==Bf&&(r=Error(o(423),{cause:i}),ni(zn(r,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=zn(i,s),u=vd(e.stateNode,i,u),$f(e,u),bt!==4&&(bt=2)),!1;var h=Error(o(520),{cause:i});if(h=zn(h,s),_i===null?_i=[h]:_i.push(h),bt!==4&&(bt=2),r===null)return!0;i=zn(i,s),s=r;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=vd(s.stateNode,i,e),$f(s,e),!1;case 1:if(r=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(_a===null||!_a.has(h))))return s.flags|=65536,u&=-u,s.lanes|=u,u=Ev(u),Tv(u,e,s,i),$f(s,u),!1}s=s.return}while(s!==null);return!1}var Rv=Error(o(461)),Ft=!1;function Yt(e,r,s,i){r.child=e===null?gv(r,null,s,i):eo(r,e.child,s,i)}function Cv(e,r,s,i,u){s=s.render;var h=r.ref;if("ref"in i){var b={};for(var S in i)S!=="ref"&&(b[S]=i[S])}else b=i;return as(r),i=ed(e,r,s,b,h,u),S=td(),e!==null&&!Ft?(nd(e,r,u),qr(e,r,u)):(rt&&S&&Pf(r),r.flags|=1,Yt(e,r,i,u),r.child)}function Av(e,r,s,i,u){if(e===null){var h=s.type;return typeof h=="function"&&!jf(h)&&h.defaultProps===void 0&&s.compare===null?(r.tag=15,r.type=h,Ov(e,r,h,i,u)):(e=Gl(s.type,null,i,r,r.mode,u),e.ref=r.ref,e.return=r,r.child=e)}if(h=e.child,!Td(e,u)){var b=h.memoizedProps;if(s=s.compare,s=s!==null?s:Wo,s(b,i)&&e.ref===r.ref)return qr(e,r,u)}return r.flags|=1,e=Pr(h,i),e.ref=r.ref,e.return=r,r.child=e}function Ov(e,r,s,i,u){if(e!==null){var h=e.memoizedProps;if(Wo(h,i)&&e.ref===r.ref)if(Ft=!1,r.pendingProps=i=h,Td(e,u))(e.flags&131072)!==0&&(Ft=!0);else return r.lanes=e.lanes,qr(e,r,u)}return yd(e,r,s,i,u)}function Mv(e,r,s){var i=r.pendingProps,u=i.children,h=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((r.flags&128)!==0){if(i=h!==null?h.baseLanes|s:s,e!==null){for(u=r.child=e.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;r.childLanes=h&~i}else r.childLanes=0,r.child=null;return Nv(e,r,i,s)}if((s&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xl(r,h!==null?h.cachePool:null),h!==null?Og(r,h):Kf(),vv(r);else return r.lanes=r.childLanes=536870912,Nv(e,r,h!==null?h.baseLanes|s:s,s)}else h!==null?(Xl(r,h.cachePool),Og(r,h),va(),r.memoizedState=null):(e!==null&&Xl(r,null),Kf(),va());return Yt(e,r,u,s),r.child}function Nv(e,r,s,i){var u=Gf();return u=u===null?null:{parent:jt._currentValue,pool:u},r.memoizedState={baseLanes:s,cachePool:u},e!==null&&Xl(r,null),Kf(),vv(r),e!==null&&ri(e,r,i,!0),null}function hc(e,r){var s=r.ref;if(s===null)e!==null&&e.ref!==null&&(r.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(e===null||e.ref!==s)&&(r.flags|=4194816)}}function yd(e,r,s,i,u){return as(r),s=ed(e,r,s,i,void 0,u),i=td(),e!==null&&!Ft?(nd(e,r,u),qr(e,r,u)):(rt&&i&&Pf(r),r.flags|=1,Yt(e,r,s,u),r.child)}function Dv(e,r,s,i,u,h){return as(r),r.updateQueue=null,s=Ng(r,i,s,u),Mg(e),i=td(),e!==null&&!Ft?(nd(e,r,h),qr(e,r,h)):(rt&&i&&Pf(r),r.flags|=1,Yt(e,r,s,h),r.child)}function kv(e,r,s,i,u){if(as(r),r.stateNode===null){var h=qs,b=s.contextType;typeof b=="object"&&b!==null&&(h=Kt(b)),h=new s(i,h),r.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=gd,r.stateNode=h,h._reactInternals=r,h=r.stateNode,h.props=i,h.state=r.memoizedState,h.refs={},Zf(r),b=s.contextType,h.context=typeof b=="object"&&b!==null?Kt(b):qs,h.state=r.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(pd(r,s,b,i),h.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&gd.enqueueReplaceState(h,h.state,null),ui(r,i,h,u),ci(),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308),i=!0}else if(e===null){h=r.stateNode;var S=r.memoizedProps,M=is(s,S);h.props=M;var H=h.context,J=s.contextType;b=qs,typeof J=="object"&&J!==null&&(b=Kt(J));var ne=s.getDerivedStateFromProps;J=typeof ne=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=r.pendingProps!==S,J||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||H!==b)&&bv(r,h,i,b),da=!1;var G=r.memoizedState;h.state=G,ui(r,i,h,u),ci(),H=r.memoizedState,S||G!==H||da?(typeof ne=="function"&&(pd(r,s,ne,i),H=r.memoizedState),(M=da||yv(r,s,M,i,G,H,b))?(J||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(r.flags|=4194308)):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=i,r.memoizedState=H),h.props=i,h.state=H,h.context=b,i=M):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),i=!1)}else{h=r.stateNode,Qf(e,r),b=r.memoizedProps,J=is(s,b),h.props=J,ne=r.pendingProps,G=h.context,H=s.contextType,M=qs,typeof H=="object"&&H!==null&&(M=Kt(H)),S=s.getDerivedStateFromProps,(H=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==ne||G!==M)&&bv(r,h,i,M),da=!1,G=r.memoizedState,h.state=G,ui(r,i,h,u),ci();var Y=r.memoizedState;b!==ne||G!==Y||da||e!==null&&e.dependencies!==null&&Ql(e.dependencies)?(typeof S=="function"&&(pd(r,s,S,i),Y=r.memoizedState),(J=da||yv(r,s,J,i,G,Y,M)||e!==null&&e.dependencies!==null&&Ql(e.dependencies))?(H||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(i,Y,M),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(i,Y,M)),typeof h.componentDidUpdate=="function"&&(r.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(r.flags|=1024),r.memoizedProps=i,r.memoizedState=Y),h.props=i,h.state=Y,h.context=M,i=J):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(r.flags|=1024),i=!1)}return h=i,hc(e,r),i=(r.flags&128)!==0,h||i?(h=r.stateNode,s=i&&typeof s.getDerivedStateFromError!="function"?null:h.render(),r.flags|=1,e!==null&&i?(r.child=eo(r,e.child,null,u),r.child=eo(r,null,s,u)):Yt(e,r,s,u),r.memoizedState=h.state,e=r.child):e=qr(e,r,u),e}function jv(e,r,s,i){return ti(),r.flags|=256,Yt(e,r,s,i),r.child}var bd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xd(e){return{baseLanes:e,cachePool:wg()}}function wd(e,r,s){return e=e!==null?e.childLanes&~s:0,r&&(e|=Vn),e}function zv(e,r,s){var i=r.pendingProps,u=!1,h=(r.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(zt.current&2)!==0),b&&(u=!0,r.flags&=-129),b=(r.flags&32)!==0,r.flags&=-33,e===null){if(rt){if(u?ga(r):va(),rt){var S=yt,M;if(M=S){e:{for(M=S,S=dr;M.nodeType!==8;){if(!S){S=null;break e}if(M=$n(M.nextSibling),M===null){S=null;break e}}S=M}S!==null?(r.memoizedState={dehydrated:S,treeContext:Ja!==null?{id:Lr,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},M=wn(18,null,null,0),M.stateNode=S,M.return=r,r.child=M,nn=r,yt=null,M=!0):M=!1}M||ns(r)}if(S=r.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return ah(S)?r.lanes=32:r.lanes=536870912,null;Ir(r)}return S=i.children,i=i.fallback,u?(va(),u=r.mode,S=mc({mode:"hidden",children:S},u),i=Wa(i,u,s,null),S.return=r,i.return=r,S.sibling=i,r.child=S,u=r.child,u.memoizedState=xd(s),u.childLanes=wd(e,b,s),r.memoizedState=bd,i):(ga(r),Sd(r,S))}if(M=e.memoizedState,M!==null&&(S=M.dehydrated,S!==null)){if(h)r.flags&256?(ga(r),r.flags&=-257,r=_d(e,r,s)):r.memoizedState!==null?(va(),r.child=e.child,r.flags|=128,r=null):(va(),u=i.fallback,S=r.mode,i=mc({mode:"visible",children:i.children},S),u=Wa(u,S,s,null),u.flags|=2,i.return=r,u.return=r,i.sibling=u,r.child=i,eo(r,e.child,null,s),i=r.child,i.memoizedState=xd(s),i.childLanes=wd(e,b,s),r.memoizedState=bd,r=u);else if(ga(r),ah(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var H=b.dgst;b=H,i=Error(o(419)),i.stack="",i.digest=b,ni({value:i,source:null,stack:null}),r=_d(e,r,s)}else if(Ft||ri(e,r,s,!1),b=(s&e.childLanes)!==0,Ft||b){if(b=ht,b!==null&&(i=s&-s,i=(i&42)!==0?1:Ot(i),i=(i&(b.suspendedLanes|s))!==0?0:i,i!==0&&i!==M.retryLane))throw M.retryLane=i,Is(e,i),Rn(b,e,i),Rv;S.data==="$?"||Hd(),r=_d(e,r,s)}else S.data==="$?"?(r.flags|=192,r.child=e.child,r=null):(e=M.treeContext,yt=$n(S.nextSibling),nn=r,rt=!0,ts=null,dr=!1,e!==null&&(Pn[Ln++]=Lr,Pn[Ln++]=Br,Pn[Ln++]=Ja,Lr=e.id,Br=e.overflow,Ja=r),r=Sd(r,i.children),r.flags|=4096);return r}return u?(va(),u=i.fallback,S=r.mode,M=e.child,H=M.sibling,i=Pr(M,{mode:"hidden",children:i.children}),i.subtreeFlags=M.subtreeFlags&65011712,H!==null?u=Pr(H,u):(u=Wa(u,S,s,null),u.flags|=2),u.return=r,i.return=r,i.sibling=u,r.child=i,i=u,u=r.child,S=e.child.memoizedState,S===null?S=xd(s):(M=S.cachePool,M!==null?(H=jt._currentValue,M=M.parent!==H?{parent:H,pool:H}:M):M=wg(),S={baseLanes:S.baseLanes|s,cachePool:M}),u.memoizedState=S,u.childLanes=wd(e,b,s),r.memoizedState=bd,i):(ga(r),s=e.child,e=s.sibling,s=Pr(s,{mode:"visible",children:i.children}),s.return=r,s.sibling=null,e!==null&&(b=r.deletions,b===null?(r.deletions=[e],r.flags|=16):b.push(e)),r.child=s,r.memoizedState=null,s)}function Sd(e,r){return r=mc({mode:"visible",children:r},e.mode),r.return=e,e.child=r}function mc(e,r){return e=wn(22,e,null,r),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function _d(e,r,s){return eo(r,e.child,null,s),e=Sd(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function Uv(e,r,s){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r),Hf(e.return,r,s)}function Ed(e,r,s,i,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:i,tail:s,tailMode:u}:(h.isBackwards=r,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=s,h.tailMode=u)}function Pv(e,r,s){var i=r.pendingProps,u=i.revealOrder,h=i.tail;if(Yt(e,r,i.children,s),i=zt.current,(i&2)!==0)i=i&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uv(e,s,r);else if(e.tag===19)Uv(e,s,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(X(zt,i),u){case"forwards":for(s=r.child,u=null;s!==null;)e=s.alternate,e!==null&&uc(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=r.child,r.child=null):(u=s.sibling,s.sibling=null),Ed(r,!1,u,s,h);break;case"backwards":for(s=null,u=r.child,r.child=null;u!==null;){if(e=u.alternate,e!==null&&uc(e)===null){r.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Ed(r,!0,s,null,h);break;case"together":Ed(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function qr(e,r,s){if(e!==null&&(r.dependencies=e.dependencies),Sa|=r.lanes,(s&r.childLanes)===0)if(e!==null){if(ri(e,r,s,!1),(s&r.childLanes)===0)return null}else return null;if(e!==null&&r.child!==e.child)throw Error(o(153));if(r.child!==null){for(e=r.child,s=Pr(e,e.pendingProps),r.child=s,s.return=r;e.sibling!==null;)e=e.sibling,s=s.sibling=Pr(e,e.pendingProps),s.return=r;s.sibling=null}return r.child}function Td(e,r){return(e.lanes&r)!==0?!0:(e=e.dependencies,!!(e!==null&&Ql(e)))}function gE(e,r,s){switch(r.tag){case 3:he(r,r.stateNode.containerInfo),fa(r,jt,e.memoizedState.cache),ti();break;case 27:case 5:Le(r);break;case 4:he(r,r.stateNode.containerInfo);break;case 10:fa(r,r.type,r.memoizedProps.value);break;case 13:var i=r.memoizedState;if(i!==null)return i.dehydrated!==null?(ga(r),r.flags|=128,null):(s&r.child.childLanes)!==0?zv(e,r,s):(ga(r),e=qr(e,r,s),e!==null?e.sibling:null);ga(r);break;case 19:var u=(e.flags&128)!==0;if(i=(s&r.childLanes)!==0,i||(ri(e,r,s,!1),i=(s&r.childLanes)!==0),u){if(i)return Pv(e,r,s);r.flags|=128}if(u=r.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),X(zt,zt.current),i)break;return null;case 22:case 23:return r.lanes=0,Mv(e,r,s);case 24:fa(r,jt,e.memoizedState.cache)}return qr(e,r,s)}function Lv(e,r,s){if(e!==null)if(e.memoizedProps!==r.pendingProps)Ft=!0;else{if(!Td(e,s)&&(r.flags&128)===0)return Ft=!1,gE(e,r,s);Ft=(e.flags&131072)!==0}else Ft=!1,rt&&(r.flags&1048576)!==0&&mg(r,Zl,r.index);switch(r.lanes=0,r.tag){case 16:e:{e=r.pendingProps;var i=r.elementType,u=i._init;if(i=u(i._payload),r.type=i,typeof i=="function")jf(i)?(e=is(i,e),r.tag=1,r=kv(null,r,i,e,s)):(r.tag=0,r=yd(null,r,i,e,s));else{if(i!=null){if(u=i.$$typeof,u===L){r.tag=11,r=Cv(null,r,i,e,s);break e}else if(u===P){r.tag=14,r=Av(null,r,i,e,s);break e}}throw r=fe(i)||i,Error(o(306,r,""))}}return r;case 0:return yd(e,r,r.type,r.pendingProps,s);case 1:return i=r.type,u=is(i,r.pendingProps),kv(e,r,i,u,s);case 3:e:{if(he(r,r.stateNode.containerInfo),e===null)throw Error(o(387));i=r.pendingProps;var h=r.memoizedState;u=h.element,Qf(e,r),ui(r,i,null,s);var b=r.memoizedState;if(i=b.cache,fa(r,jt,i),i!==h.cache&&Ff(r,[jt],s,!0),ci(),i=b.element,h.isDehydrated)if(h={element:i,isDehydrated:!1,cache:b.cache},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){r=jv(e,r,i,s);break e}else if(i!==u){u=zn(Error(o(424)),r),ni(u),r=jv(e,r,i,s);break e}else{switch(e=r.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(yt=$n(e.firstChild),nn=r,rt=!0,ts=null,dr=!0,s=gv(r,null,i,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(ti(),i===u){r=qr(e,r,s);break e}Yt(e,r,i,s)}r=r.child}return r;case 26:return hc(e,r),e===null?(s=Fy(r.type,null,r.pendingProps,null))?r.memoizedState=s:rt||(s=r.type,e=r.pendingProps,i=Ac(ve.current).createElement(s),i[St]=r,i[dt]=e,Qt(i,s,e),Ht(i),r.stateNode=i):r.memoizedState=Fy(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return Le(r),e===null&&rt&&(i=r.stateNode=By(r.type,r.pendingProps,ve.current),nn=r,dr=!0,u=yt,Ra(r.type)?(sh=u,yt=$n(i.firstChild)):yt=u),Yt(e,r,r.pendingProps.children,s),hc(e,r),e===null&&(r.flags|=4194304),r.child;case 5:return e===null&&rt&&((u=i=yt)&&(i=qE(i,r.type,r.pendingProps,dr),i!==null?(r.stateNode=i,nn=r,yt=$n(i.firstChild),dr=!1,u=!0):u=!1),u||ns(r)),Le(r),u=r.type,h=r.pendingProps,b=e!==null?e.memoizedProps:null,i=h.children,th(u,h)?i=null:b!==null&&th(u,b)&&(r.flags|=32),r.memoizedState!==null&&(u=ed(e,r,lE,null,null,s),Di._currentValue=u),hc(e,r),Yt(e,r,i,s),r.child;case 6:return e===null&&rt&&((e=s=yt)&&(s=GE(s,r.pendingProps,dr),s!==null?(r.stateNode=s,nn=r,yt=null,e=!0):e=!1),e||ns(r)),null;case 13:return zv(e,r,s);case 4:return he(r,r.stateNode.containerInfo),i=r.pendingProps,e===null?r.child=eo(r,null,i,s):Yt(e,r,i,s),r.child;case 11:return Cv(e,r,r.type,r.pendingProps,s);case 7:return Yt(e,r,r.pendingProps,s),r.child;case 8:return Yt(e,r,r.pendingProps.children,s),r.child;case 12:return Yt(e,r,r.pendingProps.children,s),r.child;case 10:return i=r.pendingProps,fa(r,r.type,i.value),Yt(e,r,i.children,s),r.child;case 9:return u=r.type._context,i=r.pendingProps.children,as(r),u=Kt(u),i=i(u),r.flags|=1,Yt(e,r,i,s),r.child;case 14:return Av(e,r,r.type,r.pendingProps,s);case 15:return Ov(e,r,r.type,r.pendingProps,s);case 19:return Pv(e,r,s);case 31:return i=r.pendingProps,s=r.mode,i={mode:i.mode,children:i.children},e===null?(s=mc(i,s),s.ref=r.ref,r.child=s,s.return=r,r=s):(s=Pr(e.child,i),s.ref=r.ref,r.child=s,s.return=r,r=s),r;case 22:return Mv(e,r,s);case 24:return as(r),i=Kt(jt),e===null?(u=Gf(),u===null&&(u=ht,h=If(),u.pooledCache=h,h.refCount++,h!==null&&(u.pooledCacheLanes|=s),u=h),r.memoizedState={parent:i,cache:u},Zf(r),fa(r,jt,u)):((e.lanes&s)!==0&&(Qf(e,r),ui(r,null,null,s),ci()),u=e.memoizedState,h=r.memoizedState,u.parent!==i?(u={parent:i,cache:i},r.memoizedState=u,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=u),fa(r,jt,i)):(i=h.cache,fa(r,jt,i),i!==u.cache&&Ff(r,[jt],s,!0))),Yt(e,r,r.pendingProps.children,s),r.child;case 29:throw r.pendingProps}throw Error(o(156,r.tag))}function Gr(e){e.flags|=4}function Bv(e,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zy(r)){if(r=Bn.current,r!==null&&((et&4194048)===et?hr!==null:(et&62914560)!==et&&(et&536870912)===0||r!==hr))throw ii=Yf,Sg;e.flags|=8192}}function pc(e,r){r!==null&&(e.flags|=4),e.flags&16384&&(r=e.tag!==22?Ol():536870912,e.lanes|=r,ao|=r)}function vi(e,r){if(!rt)switch(e.tailMode){case"hidden":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function pt(e){var r=e.alternate!==null&&e.alternate.child===e.child,s=0,i=0;if(r)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=s,r}function vE(e,r,s){var i=r.pendingProps;switch(Lf(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(r),null;case 1:return pt(r),null;case 3:return s=r.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),Hr(jt),Fe(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ei(r)?Gr(r):e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,vg())),pt(r),null;case 26:return s=r.memoizedState,e===null?(Gr(r),s!==null?(pt(r),Bv(r,s)):(pt(r),r.flags&=-16777217)):s?s!==e.memoizedState?(Gr(r),pt(r),Bv(r,s)):(pt(r),r.flags&=-16777217):(e.memoizedProps!==i&&Gr(r),pt(r),r.flags&=-16777217),null;case 27:Ie(r),s=ve.current;var u=r.type;if(e!==null&&r.stateNode!=null)e.memoizedProps!==i&&Gr(r);else{if(!i){if(r.stateNode===null)throw Error(o(166));return pt(r),null}e=se.current,ei(r)?pg(r):(e=By(u,i,s),r.stateNode=e,Gr(r))}return pt(r),null;case 5:if(Ie(r),s=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==i&&Gr(r);else{if(!i){if(r.stateNode===null)throw Error(o(166));return pt(r),null}if(e=se.current,ei(r))pg(r);else{switch(u=Ac(ve.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":e=u.createElement("div"),e.innerHTML="