import{g as gh}from"./_commonjsHelpers-CqkleIqs.js";import{p as Ga,a as S0,r as m1}from"./app-QKuSVWpw.js";import{c as p1,a as Ye,m as yh,C as v1}from"./contants-Ds_B-epI.js";function g1(n,a){for(var s=0;si[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var Ed={exports:{}},ho={};/** * @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 $g;function y1(){if($g)return ho;$g=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(i,l,u){var d=null;if(u!==void 0&&(d=""+u),l.key!==void 0&&(d=""+l.key),"key"in l){u={};for(var h in l)h!=="key"&&(u[h]=l[h])}else u=l;return l=u.ref,{$$typeof:n,type:i,key:d,ref:l!==void 0?l:null,props:u}}return ho.Fragment=a,ho.jsx=s,ho.jsxs=s,ho}var Wg;function b1(){return Wg||(Wg=1,Ed.exports=y1()),Ed.exports}var g=b1(),fi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},es=typeof window>"u"||"Deno"in globalThis;function Kt(){}function x1(n,a){return typeof n=="function"?n(a):n}function Yd(n){return typeof n=="number"&&n>=0&&n!==1/0}function _0(n,a){return Math.max(n+(a||0)-Date.now(),0)}function Sr(n,a){return typeof n=="function"?n(a):n}function jn(n,a){return typeof n=="function"?n(a):n}function Jg(n,a){const{type:s="all",exact:i,fetchStatus:l,predicate:u,queryKey:d,stale:h}=n;if(d){if(i){if(a.queryHash!==bh(d,a.options))return!1}else if(!_o(a.queryKey,d))return!1}if(s!=="all"){const p=a.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||l&&l!==a.state.fetchStatus||u&&!u(a))}function ey(n,a){const{exact:s,status:i,predicate:l,mutationKey:u}=n;if(u){if(!a.options.mutationKey)return!1;if(s){if(ts(a.options.mutationKey)!==ts(u))return!1}else if(!_o(a.options.mutationKey,u))return!1}return!(i&&a.state.status!==i||l&&!l(a))}function bh(n,a){return(a?.queryKeyHashFn||ts)(n)}function ts(n){return JSON.stringify(n,(a,s)=>Zd(s)?Object.keys(s).sort().reduce((i,l)=>(i[l]=s[l],i),{}):s)}function _o(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(s=>_o(n[s],a[s])):!1}function w0(n,a){if(n===a)return n;const s=ty(n)&&ty(a);if(s||Zd(n)&&Zd(a)){const i=s?n:Object.keys(n),l=i.length,u=s?a:Object.keys(a),d=u.length,h=s?[]:{},p=new Set(i);let m=0;for(let y=0;y{setTimeout(a,n)})}function Qd(n,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,a):s.structuralSharing!==!1?w0(n,a):a}function _1(n,a,s=0){const i=[...n,a];return s&&i.length>s?i.slice(1):i}function w1(n,a,s=0){const i=[a,...n];return s&&i.length>s?i.slice(0,-1):i}var xh=Symbol();function E0(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===xh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function T0(n,a){return typeof n=="function"?n(...a):!!n}var E1=class extends fi{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!es&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Sh=new E1,T1=class extends fi{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!es&&window.addEventListener){const a=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#t}},Cu=new T1;function Xd(){let n,a;const s=new Promise((l,u)=>{n=l,a=u});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}),n(l)},s.reject=l=>{i({status:"rejected",reason:l}),a(l)},s}function C1(n){return Math.min(1e3*2**n,3e4)}function C0(n){return(n??"online")==="online"?Cu.isOnline():!0}var R0=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function A0(n){let a=!1,s=0,i;const l=Xd(),u=()=>l.status!=="pending",d=w=>{u()||(_(new R0(w)),n.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>Sh.isFocused()&&(n.networkMode==="always"||Cu.isOnline())&&n.canRun(),y=()=>C0(n.networkMode)&&n.canRun(),v=w=>{u()||(i?.(),l.resolve(w))},_=w=>{u()||(i?.(),l.reject(w))},E=()=>new Promise(w=>{i=A=>{(u()||m())&&w(A)},n.onPause?.()}).then(()=>{i=void 0,u()||n.onContinue?.()}),R=()=>{if(u())return;let w;const A=s===0?n.initialPromise:void 0;try{w=A??n.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(v).catch(k=>{if(u())return;const D=n.retry??(es?0:3),z=n.retryDelay??C1,U=typeof z=="function"?z(s,k):z,M=D===!0||typeof D=="number"&&sm()?void 0:E()).then(()=>{a?_(k):R()})})};return{promise:l,status:()=>l.status,cancel:d,continue:()=>(i?.(),l),cancelRetry:h,continueRetry:p,canStart:y,start:()=>(y()?R():E().then(R),l)}}var R1=n=>setTimeout(n,0);function A1(){let n=[],a=0,s=h=>{h()},i=h=>{h()},l=R1;const u=h=>{a?n.push(h):l(()=>{s(h)})},d=()=>{const h=n;n=[],h.length&&l(()=>{i(()=>{h.forEach(p=>{s(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||d()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{l=h}}}var Nt=A1(),O0=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(es?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},O1=class extends O0{#t;#e;#n;#a;#r;#i;#o;constructor(n){super(),this.#o=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=M1(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const s=Qd(this.state.data,n,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),s}setState(n,a){this.#s({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>jn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Sr(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!_0(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.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=E0(this.options,a),m=(()=>{const y={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(y),y})();return this.#o=!1,this.options.persister?this.options.persister(h,m,this):h(m)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,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.#r=A0({initialPromise:a?.initialPromise,fn:d.fetchFn,abort:s.abort.bind(s),onFail:(h,p)=>{this.#s({type:"failed",failureCount:h,error:p})},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.#r.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 R0){if(h.silent)return this.#r.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(n){const a=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...M0(s.data,this.options),fetchMeta:n.meta??null};case"success":const i={...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?i:void 0,i;case"error":const l=n.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,...n.state}}};this.state=a(this.state),Nt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function M0(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:C0(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function M1(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,s=a!==void 0,i=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,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 N1=class extends fi{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,s){const i=a.queryKey,l=a.queryHash??bh(i,a);let u=this.get(l);return u||(u=new O1({client:n,queryKey:i,queryHash:l,options:n.defaultQueryOptions(a),state:s,defaultOptions:n.getQueryDefaults(i)}),this.add(u)),u}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Nt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Jg(a,s))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(s=>Jg(n,s)):a}notify(n){Nt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},D1=class extends O0{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||N0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(a=>a!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}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(n){const a=()=>{this.#a({type:"continue"})};this.#n=A0({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(l,u)=>{this.#a({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,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)a();else{this.#a({type:"pending",variables:n,isPaused:i}),await this.#e.config.onMutate?.(n,this);const u=await this.options.onMutate?.(n);u!==this.state.context&&this.#a({type:"pending",context:u,variables:n,isPaused:i})}const l=await this.#n.start();return await this.#e.config.onSuccess?.(l,n,this.state.context,this),await this.options.onSuccess?.(l,n,this.state.context),await this.#e.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,n,this.state.context),this.#a({type:"success",data:l}),l}catch(l){try{throw await this.#e.config.onError?.(l,n,this.state.context,this),await this.options.onError?.(l,n,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,n,this.state.context),l}finally{this.#a({type:"error",error:l})}}finally{this.#e.runNext(this)}}#a(n){const a=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Nt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function N0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var j1=class extends fi{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,s){const i=new D1({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:s});return this.add(i),i}add(n){this.#t.add(n);const a=fu(n);if(typeof a=="string"){const s=this.#e.get(a);s?s.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=fu(n);if(typeof a=="string"){const s=this.#e.get(a);if(s)if(s.length>1){const i=s.indexOf(n);i!==-1&&s.splice(i,1)}else s[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=fu(n);if(typeof a=="string"){const i=this.#e.get(a)?.find(l=>l.state.status==="pending");return!i||i===n}else return!0}runNext(n){const a=fu(n);return typeof a=="string"?this.#e.get(a)?.find(i=>i!==n&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Nt.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(s=>ey(a,s))}findAll(n={}){return this.getAll().filter(a=>ey(n,a))}notify(n){Nt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Nt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Kt))))}};function fu(n){return n.options.scope?.id}function ay(n){return{onFetch:(a,s)=>{const i=a.options,l=a.fetchOptions?.meta?.fetchMore?.direction,u=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let y=!1;const v=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(a.signal.aborted?y=!0:a.signal.addEventListener("abort",()=>{y=!0}),a.signal)})},_=E0(a.options,a.fetchOptions),E=async(R,w,A)=>{if(y)return Promise.reject();if(w==null&&R.pages.length)return Promise.resolve(R);const D=(()=>{const Q={client:a.client,queryKey:a.queryKey,pageParam:w,direction:A?"backward":"forward",meta:a.options.meta};return v(Q),Q})(),z=await _(D),{maxPages:U}=a.options,M=A?w1:_1;return{pages:M(R.pages,z,U),pageParams:M(R.pageParams,w,U)}};if(l&&u.length){const R=l==="backward",w=R?k1:ry,A={pages:u,pageParams:d},k=w(i,A);h=await E(A,k,R)}else{const R=n??u.length;do{const w=p===0?d[0]??i.initialPageParam:ry(i,h);if(p>0&&w==null)break;h=await E(h,w),p++}while(pa.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s):a.fetchFn=m}}}function ry(n,{pages:a,pageParams:s}){const i=a.length-1;return a.length>0?n.getNextPageParam(a[i],a,s[i],s):void 0}function k1(n,{pages:a,pageParams:s}){return a.length>0?n.getPreviousPageParam?.(a[0],a,s[0],s):void 0}var z1=class{#t;#e;#n;#a;#r;#i;#o;#s;constructor(n={}){this.#t=n.queryCache||new N1,this.#e=n.mutationCache||new j1,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Sh.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Cu.subscribe(async n=>{n&&(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(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),s=this.#t.build(this,a),i=s.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Sr(a.staleTime,s))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:s})=>{const i=s.data;return[a,i]})}setQueryData(n,a,s){const i=this.defaultQueryOptions({queryKey:n}),u=this.#t.get(i.queryHash)?.state.data,d=x1(a,u);if(d!==void 0)return this.#t.build(this,i).setData(d,{...s,manual:!0})}setQueriesData(n,a,s){return Nt.batch(()=>this.#t.findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,s)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;Nt.batch(()=>{a.findAll(n).forEach(s=>{a.remove(s)})})}resetQueries(n,a){const s=this.#t;return Nt.batch(()=>(s.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const s={revert:!0,...a},i=Nt.batch(()=>this.#t.findAll(n).map(l=>l.cancel(s)));return Promise.all(i).then(Kt).catch(Kt)}invalidateQueries(n,a={}){return Nt.batch(()=>(this.#t.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const s={...a,cancelRefetch:a.cancelRefetch??!0},i=Nt.batch(()=>this.#t.findAll(n).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,s);return s.throwOnError||(u=u.catch(Kt)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(Kt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const s=this.#t.build(this,a);return s.isStaleByTime(Sr(a.staleTime,s))?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Kt).catch(Kt)}fetchInfiniteQuery(n){return n.behavior=ay(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Kt).catch(Kt)}ensureInfiniteQueryData(n){return n.behavior=ay(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Cu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(ts(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],s={};return a.forEach(i=>{_o(n,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(n,a){this.#r.set(ts(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#r.values()],s={};return a.forEach(i=>{_o(n,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=bh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===xh&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},U1=class extends fi{constructor(n,a){super(),this.options=a,this.#t=n,this.#s=null,this.#o=Xd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#o;#s;#p;#d;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),sy(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kd(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kd(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof jn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),a._defaulted&&!Tu(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&iy(this.#e,s,this.options,a)&&this.#f(),this.updateResult(),i&&(this.#e!==s||jn(this.options.enabled,this.#e)!==jn(a.enabled,this.#e)||Sr(this.options.staleTime,this.#e)!==Sr(a.staleTime,this.#e))&&this.#v();const l=this.#g();i&&(this.#e!==s||jn(this.options.enabled,this.#e)!==jn(a.enabled,this.#e)||l!==this.#l)&&this.#y(l)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),s=this.createResult(a,n);return P1(this,s)&&(this.#a=s,this.#i=this.options,this.#r=this.#e.state),s}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(s,i)=>(this.trackProp(i),a?.(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(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),s=this.#t.getQueryCache().build(this.#t,a);return s.fetch().then(()=>this.createResult(s,a))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#_();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Kt)),a}#v(){this.#x();const n=Sr(this.options.staleTime,this.#e);if(es||this.#a.isStale||!Yd(n))return;const s=_0(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#l=n,!(es||jn(this.options.enabled,this.#e)===!1||!Yd(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Sh.isFocused())&&this.#f()},this.#l))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,a){const s=this.#e,i=this.options,l=this.#a,u=this.#r,d=this.#i,p=n!==s?n.state:this.#n,{state:m}=n;let y={...m},v=!1,_;if(a._optimisticResults){const te=this.hasListeners(),se=!te&&sy(n,a),fe=te&&iy(n,s,a,i);(se||fe)&&(y={...y,...M0(m.data,n.options)}),a._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:R,status:w}=y;_=y.data;let A=!1;if(a.placeholderData!==void 0&&_===void 0&&w==="pending"){let te;l?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(te=l.data,A=!0):te=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,te!==void 0&&(w="success",_=Qd(l?.data,te,a),v=!0)}if(a.select&&_!==void 0&&!A)if(l&&_===u?.data&&a.select===this.#p)_=this.#d;else try{this.#p=a.select,_=a.select(_),_=Qd(l?.data,_,a),this.#d=_,this.#s=null}catch(te){this.#s=te}this.#s&&(E=this.#s,_=this.#d,R=Date.now(),w="error");const k=y.fetchStatus==="fetching",D=w==="pending",z=w==="error",U=D&&k,M=_!==void 0,F={status:w,fetchStatus:y.fetchStatus,isPending:D,isSuccess:w==="success",isError:z,isInitialLoading:U,isLoading:U,data:_,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:R,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:k,isRefetching:k&&!D,isLoadingError:z&&!M,isPaused:y.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:z&&M,isStale:_h(n,a),refetch:this.refetch,promise:this.#o,isEnabled:jn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const te=be=>{F.status==="error"?be.reject(F.error):F.data!==void 0&&be.resolve(F.data)},se=()=>{const be=this.#o=F.promise=Xd();te(be)},fe=this.#o;switch(fe.status){case"pending":n.queryHash===s.queryHash&&te(fe);break;case"fulfilled":(F.status==="error"||F.data!==fe.value)&&se();break;case"rejected":(F.status!=="error"||F.error!==fe.reason)&&se();break}}return F}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#e),Tu(a,n))return;this.#a=a;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#m.size)return!0;const u=new Set(l??this.#m);return this.options.throwOnError&&u.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&u.has(h)})};this.#w({listeners:s()})}#_(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Nt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function L1(n,a){return jn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function sy(n,a){return L1(n,a)||n.state.data!==void 0&&Kd(n,a,a.refetchOnMount)}function Kd(n,a,s){if(jn(a.enabled,n)!==!1&&Sr(a.staleTime,n)!=="static"){const i=typeof s=="function"?s(n):s;return i==="always"||i!==!1&&_h(n,a)}return!1}function iy(n,a,s,i){return(n!==a||jn(i.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&_h(n,s)}function _h(n,a){return jn(a.enabled,n)!==!1&&n.isStaleByTime(Sr(a.staleTime,n))}function P1(n,a){return!Tu(n.getCurrentResult(),a)}var V1=class extends fi{#t;#e=void 0;#n;#a;constructor(a,s){super(),this.#t=a,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const s=this.options;this.options=this.#t.defaultMutationOptions(a),Tu(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&ts(s.mutationKey)!==ts(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#r(),this.#i(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(a,s){return this.#a=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#r(){const a=this.#n?.state??N0();this.#e={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#i(a){Nt.batch(()=>{if(this.#a&&this.hasListeners()){const s=this.#e.variables,i=this.#e.context;a?.type==="success"?(this.#a.onSuccess?.(a.data,s,i),this.#a.onSettled?.(a.data,null,s,i)):a?.type==="error"&&(this.#a.onError?.(a.error,s,i),this.#a.onSettled?.(void 0,a.error,s,i))}this.listeners.forEach(s=>{s(this.#e)})})}},Td={exports:{}},Ue={};/** * @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 oy;function B1(){if(oy)return Ue;oy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=v&&T[v]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,w={};function A(T,Z,le){this.props=T,this.context=Z,this.refs=w,this.updater=le||E}A.prototype.isReactComponent={},A.prototype.setState=function(T,Z){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Z,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function k(){}k.prototype=A.prototype;function D(T,Z,le){this.props=T,this.context=Z,this.refs=w,this.updater=le||E}var z=D.prototype=new k;z.constructor=D,R(z,A.prototype),z.isPureReactComponent=!0;var U=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},Q=Object.prototype.hasOwnProperty;function F(T,Z,le,K,ie,_e){return le=_e.ref,{$$typeof:n,type:T,key:Z,ref:le!==void 0?le:null,props:_e}}function te(T,Z){return F(T.type,Z,void 0,void 0,void 0,T.props)}function se(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function fe(T){var Z={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(le){return Z[le]})}var be=/\/+/g;function re(T,Z){return typeof T=="object"&&T!==null&&T.key!=null?fe(""+T.key):Z.toString(36)}function ne(){}function ce(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ne,ne):(T.status="pending",T.then(function(Z){T.status==="pending"&&(T.status="fulfilled",T.value=Z)},function(Z){T.status==="pending"&&(T.status="rejected",T.reason=Z)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function ye(T,Z,le,K,ie){var _e=typeof T;(_e==="undefined"||_e==="boolean")&&(T=null);var ge=!1;if(T===null)ge=!0;else switch(_e){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(T.$$typeof){case n:case a:ge=!0;break;case y:return ge=T._init,ye(ge(T._payload),Z,le,K,ie)}}if(ge)return ie=ie(T),ge=K===""?"."+re(T,0):K,U(ie)?(le="",ge!=null&&(le=ge.replace(be,"$&/")+"/"),ye(ie,Z,le,"",function(Ie){return Ie})):ie!=null&&(se(ie)&&(ie=te(ie,le+(ie.key==null||T&&T.key===ie.key?"":(""+ie.key).replace(be,"$&/")+"/")+ge)),Z.push(ie)),1;ge=0;var ue=K===""?".":K+":";if(U(T))for(var me=0;me{const a=x.useContext(j0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},xD=({client:n,children:a})=>(x.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),g.jsx(j0.Provider,{value:n,children:a})),z0=x.createContext(!1),H1=()=>x.useContext(z0);z0.Provider;function q1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var F1=x.createContext(q1()),G1=()=>x.useContext(F1),I1=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},Y1=n=>{x.useEffect(()=>{n.clearReset()},[n])},Z1=({result:n,errorResetBoundary:a,throwOnError:s,query:i,suspense:l})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(l&&n.data===void 0||T0(s,[n.error,i])),Q1=n=>{if(n.suspense){const a=i=>i==="static"?i:Math.max(i??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...i)=>a(s(...i)):a(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},X1=(n,a)=>n.isLoading&&n.isFetching&&!a,K1=(n,a)=>n?.suspense&&a.isPending,uy=(n,a,s)=>a.fetchOptimistic(n).catch(()=>{s.clearReset()});function $1(n,a,s){const i=H1(),l=G1(),u=k0(),d=u.defaultQueryOptions(n);u.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=i?"isRestoring":"optimistic",Q1(d),I1(d,l),Y1(l);const h=!u.getQueryCache().get(d.queryHash),[p]=x.useState(()=>new a(u,d)),m=p.getOptimisticResult(d),y=!i&&n.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(v=>{const _=y?p.subscribe(Nt.batchCalls(v)):Kt;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x.useEffect(()=>{p.setOptions(d)},[d,p]),K1(d,m))throw uy(d,p,l);if(Z1({result:m,errorResetBoundary:l,throwOnError:d.throwOnError,query:u.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!es&&X1(m,i)&&(h?uy(d,p,l):u.getQueryCache().get(d.queryHash)?.promise)?.catch(Kt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function U0(n,a){return $1(n,U1)}function L0(n,a){const s=k0(),[i]=x.useState(()=>new V1(s,n));x.useEffect(()=>{i.setOptions(n)},[i,n]);const l=x.useSyncExternalStore(x.useCallback(d=>i.subscribe(Nt.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=x.useCallback((d,h)=>{i.mutate(d,h).catch(Kt)},[i]);if(l.error&&T0(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}const SD=new z1({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var Cd={exports:{}},mo={},Rd={exports:{}},Ad={};/** * @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 cy;function W1(){return cy||(cy=1,(function(n){function a(N,Y){var W=N.length;N.push(Y);e:for(;0>>1,T=N[ee];if(0>>1;eel(K,W))iel(_e,K)?(N[ee]=_e,N[ie]=W,ee=ie):(N[ee]=K,N[le]=W,ee=le);else if(iel(_e,W))N[ee]=_e,N[ie]=W,ee=ie;else break e}}return Y}function l(N,Y){var W=N.sortIndex-Y.sortIndex;return W!==0?W:N.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],y=1,v=null,_=3,E=!1,R=!1,w=!1,A=!1,k=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function U(N){for(var Y=s(m);Y!==null;){if(Y.callback===null)i(m);else if(Y.startTime<=N)i(m),Y.sortIndex=Y.expirationTime,a(p,Y);else break;Y=s(m)}}function M(N){if(w=!1,U(N),!R)if(s(p)!==null)R=!0,Q||(Q=!0,re());else{var Y=s(m);Y!==null&&ye(M,Y.startTime-N)}}var Q=!1,F=-1,te=5,se=-1;function fe(){return A?!0:!(n.unstable_now()-seN&&fe());){var ee=v.callback;if(typeof ee=="function"){v.callback=null,_=v.priorityLevel;var T=ee(v.expirationTime<=N);if(N=n.unstable_now(),typeof T=="function"){v.callback=T,U(N),Y=!0;break t}v===s(p)&&i(p),U(N)}else i(p);v=s(p)}if(v!==null)Y=!0;else{var Z=s(m);Z!==null&&ye(M,Z.startTime-N),Y=!1}}break e}finally{v=null,_=W,E=!1}Y=void 0}}finally{Y?re():Q=!1}}}var re;if(typeof z=="function")re=function(){z(be)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ce=ne.port2;ne.port1.onmessage=be,re=function(){ce.postMessage(null)}}else re=function(){k(be,0)};function ye(N,Y){F=k(function(){N(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(N){N.callback=null},n.unstable_forceFrameRate=function(N){0>N||125ee?(N.sortIndex=W,a(m,N),s(p)===null&&N===s(m)&&(w?(D(F),F=-1):w=!0,ye(M,W-ee))):(N.sortIndex=T,a(p,N),R||E||(R=!0,Q||(Q=!0,re()))),N},n.unstable_shouldYield=fe,n.unstable_wrapCallback=function(N){var Y=_;return function(){var W=_;_=Y;try{return N.apply(this,arguments)}finally{_=W}}}})(Ad)),Ad}var fy;function J1(){return fy||(fy=1,Rd.exports=W1()),Rd.exports}var Od={exports:{}},It={};/** * @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 eE(){if(dy)return It;dy=1;var n=wh();function a(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Od.exports=eE(),Od.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 my;function tE(){if(my)return mo;my=1;var n=J1(),a=wh(),s=P0();function i(e){var t="https://react.dev/errors/"+e;if(1T||(e.current=ee[T],ee[T]=null,T--)}function K(e,t){T++,ee[T]=e.current,e.current=t}var ie=Z(null),_e=Z(null),ge=Z(null),ue=Z(null);function me(e,t){switch(K(ge,t),K(_e,e),K(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tg(t),e=Cg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(ie),K(ie,e)}function Ie(){le(ie),le(_e),le(ge)}function Ve(e){e.memoizedState!==null&&K(ue,e);var t=ie.current,r=Cg(t,e.type);t!==r&&(K(_e,e),K(ie,r))}function Ge(e){_e.current===e&&(le(ie),le(_e)),ue.current===e&&(le(ue),oo._currentValue=W)}var Qe=Object.prototype.hasOwnProperty,_t=n.unstable_scheduleCallback,Dt=n.unstable_cancelCallback,Xn=n.unstable_shouldYield,Kn=n.unstable_requestPaint,dt=n.unstable_now,vi=n.unstable_getCurrentPriorityLevel,Zt=n.unstable_ImmediatePriority,O=n.unstable_UserBlockingPriority,B=n.unstable_NormalPriority,I=n.unstable_LowPriority,he=n.unstable_IdlePriority,de=n.log,oe=n.unstable_setDisableYieldValue,we=null,De=null;function Be(e){if(typeof de=="function"&&oe(e),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(we,e)}catch{}}var Je=Math.clz32?Math.clz32:$n,ln=Math.log,un=Math.LN2;function $n(e){return e>>>=0,e===0?32:31-(ln(e)/un|0)|0}var Wn=256,Jn=4194304;function _n(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 ea(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var c=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~f,o!==0?c=_n(o):(b&=S,b!==0?c=_n(b):r||(r=S&~e,r!==0&&(c=_n(r))))):(S=o&~f,S!==0?c=_n(S):b!==0?c=_n(b):r||(r=o&~e,r!==0&&(c=_n(r)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:c}function xa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xa(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Un(){var e=Wn;return Wn<<=1,(Wn&4194048)===0&&(Wn=256),e}function Jo(){var e=Jn;return Jn<<=1,(Jn&62914560)===0&&(Jn=4194304),e}function gi(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function el(e,t,r,o,c,f){var b=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,V=e.hiddenUpdates;for(r=b&~r;0)":-1c||C[o]!==V[c]){var X=` `+C[o].replace(" at new "," at ");return e.displayName&&X.includes("")&&(X=X.replace("",e.displayName)),X}while(1<=o&&0<=c);break}}}finally{yc=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?vs(r):""}function l_(e){switch(e.tag){case 26:case 27:case 5:return vs(e.type);case 16:return vs("Lazy");case 13:return vs("Suspense");case 19:return vs("SuspenseList");case 0:case 15:return bc(e.type,!1);case 11:return bc(e.type.render,!1);case 1:return bc(e.type,!0);case 31:return vs("Activity");default:return""}}function bm(e){try{var t="";do t+=l_(e),e=e.return;while(e);return t}catch(r){return` Error generating stack: `+r.message+` `+r.stack}}function wn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u_(e){var t=xm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(b){o=""+b,f.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function al(e){e._valueTracker||(e._valueTracker=u_(e))}function Sm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=xm(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function rl(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 c_=/[\n"\\]/g;function En(e){return e.replace(c_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xc(e,t,r,o,c,f,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wn(t)):e.value!==""+wn(t)&&(e.value=""+wn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?Sc(e,b,wn(t)):r!=null?Sc(e,b,wn(r)):o!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+wn(S):e.removeAttribute("name")}function _m(e,t,r,o,c,f,b,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;r=r!=null?""+wn(r):"",t=t!=null?""+wn(t):r,S||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,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 Sc(e,t,r){t==="number"&&rl(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function gs(e,t,r,o){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cc=!1;if(wa)try{var Si={};Object.defineProperty(Si,"passive",{get:function(){Cc=!0}}),window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{Cc=!1}var $a=null,Rc=null,il=null;function Om(){if(il)return il;var e,t=Rc,r=t.length,o,c="value"in $a?$a.value:$a.textContent,f=c.length;for(e=0;e=Ei),zm=" ",Um=!1;function Lm(e,t){switch(e){case"keyup":return P_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ss=!1;function B_(e,t){switch(e){case"compositionend":return Pm(t);case"keypress":return t.which!==32?null:(Um=!0,zm);case"textInput":return e=t.data,e===zm&&Um?null:e;default:return null}}function H_(e,t){if(Ss)return e==="compositionend"||!Dc&&Lm(e,t)?(e=Om(),il=Rc=$a=null,Ss=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ym(r)}}function Qm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=rl(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=rl(e.document)}return t}function zc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var X_=wa&&"documentMode"in document&&11>=document.documentMode,_s=null,Uc=null,Ai=null,Lc=!1;function Km(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Lc||_s==null||_s!==rl(o)||(o=_s,"selectionStart"in o&&zc(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}),Ai&&Ri(Ai,o)||(Ai=o,o=Kl(Uc,"onSelect"),0>=b,c-=b,Ta=1<<32-Je(t)+c|r<f?f:8;var b=N.T,S={};N.T=S,wf(e,!1,t,r);try{var C=c(),V=N.S;if(V!==null&&V(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var X=rw(C,o);Fi(e,t,X,pn(e))}else Fi(e,t,o,pn(e))}catch(J){Fi(e,t,{then:function(){},status:"rejected",reason:J},pn())}finally{Y.p=f,N.T=b}}function uw(){}function Sf(e,t,r,o){if(e.tag!==5)throw Error(i(476));var c=$p(e).queue;Kp(e,c,t,W,r===null?uw:function(){return Wp(e),r(o)})}function $p(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:W},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wp(e){var t=$p(e).next.queue;Fi(e,t,{},pn())}function _f(){return Gt(oo)}function Jp(){return Tt().memoizedState}function ev(){return Tt().memoizedState}function cw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=pn();e=er(r);var o=tr(t,e,r);o!==null&&(vn(o,t,r),Li(o,t,r)),t={cache:$c()},e.payload=t;return}t=t.return}}function fw(e,t,r){var o=pn();r={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},Ml(e)?nv(t,r):(r=Hc(e,t,r,o),r!==null&&(vn(r,e,o),av(r,t,o)))}function tv(e,t,r){var o=pn();Fi(e,t,r,o)}function Fi(e,t,r,o){var c={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ml(e))nv(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var b=t.lastRenderedState,S=f(b,r);if(c.hasEagerState=!0,c.eagerState=S,cn(S,b))return hl(e,t,c,0),lt===null&&dl(),!1}catch{}finally{}if(r=Hc(e,t,c,o),r!==null)return vn(r,e,o),av(r,t,o),!0}return!1}function wf(e,t,r,o){if(o={lane:2,revertLane:td(),action:o,hasEagerState:!1,eagerState:null,next:null},Ml(e)){if(t)throw Error(i(479))}else t=Hc(e,r,o,2),t!==null&&vn(t,e,2)}function Ml(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function nv(e,t){Ds=El=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function av(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,pt(e,r)}}var Nl={readContext:Gt,use:Cl,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt},rv={readContext:Gt,use:Cl,useCallback:function(e,t){return tn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Hp,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Ol(4194308,4,Ip.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){Ol(4,2,e,t)},useMemo:function(e,t){var r=tn();t=t===void 0?null:t;var o=e();if(Yr){Be(!0);try{e()}finally{Be(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=tn();if(r!==void 0){var c=r(t);if(Yr){Be(!0);try{r(t)}finally{Be(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=fw.bind(null,Pe,e),[o.memoizedState,e]},useRef:function(e){var t=tn();return e={current:e},t.memoizedState=e},useState:function(e){e=gf(e);var t=e.queue,r=tv.bind(null,Pe,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:bf,useDeferredValue:function(e,t){var r=tn();return xf(r,e,t)},useTransition:function(){var e=gf(!1);return e=Kp.bind(null,Pe,e.queue,!0,!1),tn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=Pe,c=tn();if(We){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),lt===null)throw Error(i(349));(Xe&124)!==0||Tp(o,t,r)}c.memoizedState=r;var f={value:r,getSnapshot:t};return c.queue=f,Hp(Rp.bind(null,o,f,e),[e]),o.flags|=2048,ks(9,Al(),Cp.bind(null,o,f,r,t),null),r},useId:function(){var e=tn(),t=lt.identifierPrefix;if(We){var r=Ca,o=Ta;r=(o&~(1<<32-Je(o)-1)).toString(32)+r,t="«"+t+"R"+r,r=Tl++,0Ae?(Lt=Ce,Ce=null):Lt=Ce.sibling;var $e=H(L,Ce,P[Ae],$);if($e===null){Ce===null&&(Ce=Lt);break}e&&Ce&&$e.alternate===null&&t(L,Ce),j=f($e,j,Ae),He===null?Ee=$e:He.sibling=$e,He=$e,Ce=Lt}if(Ae===P.length)return r(L,Ce),We&&Br(L,Ae),Ee;if(Ce===null){for(;AeAe?(Lt=Ce,Ce=null):Lt=Ce.sibling;var yr=H(L,Ce,$e.value,$);if(yr===null){Ce===null&&(Ce=Lt);break}e&&Ce&&yr.alternate===null&&t(L,Ce),j=f(yr,j,Ae),He===null?Ee=yr:He.sibling=yr,He=yr,Ce=Lt}if($e.done)return r(L,Ce),We&&Br(L,Ae),Ee;if(Ce===null){for(;!$e.done;Ae++,$e=P.next())$e=J(L,$e.value,$),$e!==null&&(j=f($e,j,Ae),He===null?Ee=$e:He.sibling=$e,He=$e);return We&&Br(L,Ae),Ee}for(Ce=o(Ce);!$e.done;Ae++,$e=P.next())$e=q(Ce,L,Ae,$e.value,$),$e!==null&&(e&&$e.alternate!==null&&Ce.delete($e.key===null?Ae:$e.key),j=f($e,j,Ae),He===null?Ee=$e:He.sibling=$e,He=$e);return e&&Ce.forEach(function(h1){return t(L,h1)}),We&&Br(L,Ae),Ee}function st(L,j,P,$){if(typeof P=="object"&&P!==null&&P.type===R&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case _:e:{for(var Ee=P.key;j!==null;){if(j.key===Ee){if(Ee=P.type,Ee===R){if(j.tag===7){r(L,j.sibling),$=c(j,P.props.children),$.return=L,L=$;break e}}else if(j.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===te&&iv(Ee)===j.type){r(L,j.sibling),$=c(j,P.props),Ii($,P),$.return=L,L=$;break e}r(L,j);break}else t(L,j);j=j.sibling}P.type===R?($=Pr(P.props.children,L.mode,$,P.key),$.return=L,L=$):($=pl(P.type,P.key,P.props,null,L.mode,$),Ii($,P),$.return=L,L=$)}return b(L);case E:e:{for(Ee=P.key;j!==null;){if(j.key===Ee)if(j.tag===4&&j.stateNode.containerInfo===P.containerInfo&&j.stateNode.implementation===P.implementation){r(L,j.sibling),$=c(j,P.children||[]),$.return=L,L=$;break e}else{r(L,j);break}else t(L,j);j=j.sibling}$=Gc(P,L.mode,$),$.return=L,L=$}return b(L);case te:return Ee=P._init,P=Ee(P._payload),st(L,j,P,$)}if(ye(P))return Ne(L,j,P,$);if(re(P)){if(Ee=re(P),typeof Ee!="function")throw Error(i(150));return P=Ee.call(P),Re(L,j,P,$)}if(typeof P.then=="function")return st(L,j,Dl(P),$);if(P.$$typeof===z)return st(L,j,bl(L,P),$);jl(L,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,j!==null&&j.tag===6?(r(L,j.sibling),$=c(j,P),$.return=L,L=$):(r(L,j),$=Fc(P,L.mode,$),$.return=L,L=$),b(L)):r(L,j)}return function(L,j,P,$){try{Gi=0;var Ee=st(L,j,P,$);return zs=null,Ee}catch(Ce){if(Ce===zi||Ce===Sl)throw Ce;var He=fn(29,Ce,null,L.mode);return He.lanes=$,He.return=L,He}finally{}}}var Us=ov(!0),lv=ov(!1),On=Z(null),na=null;function ar(e){var t=e.alternate;K(Ot,Ot.current&1),K(On,e),na===null&&(t===null||Ns.current!==null||t.memoizedState!==null)&&(na=e)}function uv(e){if(e.tag===22){if(K(Ot,Ot.current),K(On,e),na===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(na=e)}}else rr()}function rr(){K(Ot,Ot.current),K(On,On.current)}function Ma(e){le(On),na===e&&(na=null),le(Ot)}var Ot=Z(0);function kl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||hd(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ef(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:y({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Tf={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=pn(),c=er(o);c.payload=t,r!=null&&(c.callback=r),t=tr(e,c,o),t!==null&&(vn(t,e,o),Li(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=pn(),c=er(o);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=tr(e,c,o),t!==null&&(vn(t,e,o),Li(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=pn(),o=er(r);o.tag=2,t!=null&&(o.callback=t),t=tr(e,o,r),t!==null&&(vn(t,e,r),Li(t,e,r))}};function cv(e,t,r,o,c,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,b):t.prototype&&t.prototype.isPureReactComponent?!Ri(r,o)||!Ri(c,f):!0}function fv(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Tf.enqueueReplaceState(t,t.state,null)}function Zr(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=y({},r));for(var c in e)r[c]===void 0&&(r[c]=e[c])}return r}var zl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function dv(e){zl(e)}function hv(e){console.error(e)}function mv(e){zl(e)}function Ul(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function pv(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Cf(e,t,r){return r=er(r),r.tag=3,r.payload={element:null},r.callback=function(){Ul(e,t)},r}function vv(e){return e=er(e),e.tag=3,e}function gv(e,t,r,o){var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var f=o.value;e.payload=function(){return c(f)},e.callback=function(){pv(t,r,o)}}var b=r.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){pv(t,r,o),typeof c!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function hw(e,t,r,o,c){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&Di(t,r,c,!0),r=On.current,r!==null){switch(r.tag){case 13:return na===null?Kf():r.alternate===null&&mt===0&&(mt=3),r.flags&=-257,r.flags|=65536,r.lanes=c,o===ef?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),Wf(e,o,c)),!1;case 22:return r.flags|=65536,o===ef?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),Wf(e,o,c)),!1}throw Error(i(435,r.tag))}return Wf(e,o,c),Kf(),!1}if(We)return t=On.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==Zc&&(e=Error(i(422),{cause:o}),Ni(Tn(e,r)))):(o!==Zc&&(t=Error(i(423),{cause:o}),Ni(Tn(t,r))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=Tn(o,r),c=Cf(e.stateNode,o,c),af(e,c),mt!==4&&(mt=2)),!1;var f=Error(i(520),{cause:o});if(f=Tn(f,r),Wi===null?Wi=[f]:Wi.push(f),mt!==4&&(mt=2),t===null)return!0;o=Tn(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=c&-c,r.lanes|=e,e=Cf(r.stateNode,o,e),af(r,e),!1;case 1:if(t=r.type,f=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(cr===null||!cr.has(f))))return r.flags|=65536,c&=-c,r.lanes|=c,c=vv(c),gv(c,e,r,o),af(r,c),!1}r=r.return}while(r!==null);return!1}var yv=Error(i(461)),zt=!1;function Vt(e,t,r,o){t.child=e===null?lv(t,null,r,o):Us(t,e.child,r,o)}function bv(e,t,r,o,c){r=r.render;var f=t.ref;if("ref"in o){var b={};for(var S in o)S!=="ref"&&(b[S]=o[S])}else b=o;return Gr(t),o=uf(e,t,r,b,f,c),S=cf(),e!==null&&!zt?(ff(e,t,c),Na(e,t,c)):(We&&S&&Ic(t),t.flags|=1,Vt(e,t,o,c),t.child)}function xv(e,t,r,o,c){if(e===null){var f=r.type;return typeof f=="function"&&!qc(f)&&f.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=f,Sv(e,t,f,o,c)):(e=pl(r.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!kf(e,c)){var b=f.memoizedProps;if(r=r.compare,r=r!==null?r:Ri,r(b,o)&&e.ref===t.ref)return Na(e,t,c)}return t.flags|=1,e=Ea(f,o),e.ref=t.ref,e.return=t,t.child=e}function Sv(e,t,r,o,c){if(e!==null){var f=e.memoizedProps;if(Ri(f,o)&&e.ref===t.ref)if(zt=!1,t.pendingProps=o=f,kf(e,c))(e.flags&131072)!==0&&(zt=!0);else return t.lanes=e.lanes,Na(e,t,c)}return Rf(e,t,r,o,c)}function _v(e,t,r){var o=t.pendingProps,c=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((t.flags&128)!==0){if(o=f!==null?f.baseLanes|r:r,e!==null){for(c=t.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;t.childLanes=f&~o}else t.childLanes=0,t.child=null;return wv(e,t,o,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xl(t,f!==null?f.cachePool:null),f!==null?Sp(t,f):sf(),uv(t);else return t.lanes=t.childLanes=536870912,wv(e,t,f!==null?f.baseLanes|r:r,r)}else f!==null?(xl(t,f.cachePool),Sp(t,f),rr(),t.memoizedState=null):(e!==null&&xl(t,null),sf(),rr());return Vt(e,t,c,r),t.child}function wv(e,t,r,o){var c=Jc();return c=c===null?null:{parent:At._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&xl(t,null),sf(),uv(t),e!==null&&Di(e,t,o,!0),null}function Ll(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(i(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Rf(e,t,r,o,c){return Gr(t),r=uf(e,t,r,o,void 0,c),o=cf(),e!==null&&!zt?(ff(e,t,c),Na(e,t,c)):(We&&o&&Ic(t),t.flags|=1,Vt(e,t,r,c),t.child)}function Ev(e,t,r,o,c,f){return Gr(t),t.updateQueue=null,r=wp(t,o,r,c),_p(e),o=cf(),e!==null&&!zt?(ff(e,t,f),Na(e,t,f)):(We&&o&&Ic(t),t.flags|=1,Vt(e,t,r,f),t.child)}function Tv(e,t,r,o,c){if(Gr(t),t.stateNode===null){var f=Cs,b=r.contextType;typeof b=="object"&&b!==null&&(f=Gt(b)),f=new r(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Tf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},tf(t),b=r.contextType,f.context=typeof b=="object"&&b!==null?Gt(b):Cs,f.state=t.memoizedState,b=r.getDerivedStateFromProps,typeof b=="function"&&(Ef(t,r,b,o),f.state=t.memoizedState),typeof r.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&&Tf.enqueueReplaceState(f,f.state,null),Vi(t,o,f,c),Pi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var S=t.memoizedProps,C=Zr(r,S);f.props=C;var V=f.context,X=r.contextType;b=Cs,typeof X=="object"&&X!==null&&(b=Gt(X));var J=r.getDerivedStateFromProps;X=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,X||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||V!==b)&&fv(t,f,o,b),Ja=!1;var H=t.memoizedState;f.state=H,Vi(t,o,f,c),Pi(),V=t.memoizedState,S||H!==V||Ja?(typeof J=="function"&&(Ef(t,r,J,o),V=t.memoizedState),(C=Ja||cv(t,r,C,o,H,V,b))?(X||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"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=V),f.props=o,f.state=V,f.context=b,o=C):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,nf(e,t),b=t.memoizedProps,X=Zr(r,b),f.props=X,J=t.pendingProps,H=f.context,V=r.contextType,C=Cs,typeof V=="object"&&V!==null&&(C=Gt(V)),S=r.getDerivedStateFromProps,(V=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==J||H!==C)&&fv(t,f,o,C),Ja=!1,H=t.memoizedState,f.state=H,Vi(t,o,f,c),Pi();var q=t.memoizedState;b!==J||H!==q||Ja||e!==null&&e.dependencies!==null&&yl(e.dependencies)?(typeof S=="function"&&(Ef(t,r,S,o),q=t.memoizedState),(X=Ja||cv(t,r,X,o,H,q,C)||e!==null&&e.dependencies!==null&&yl(e.dependencies))?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,q,C),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,q,C)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=q),f.props=o,f.state=q,f.context=C,o=X):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,Ll(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Us(t,e.child,null,c),t.child=Us(t,null,r,c)):Vt(e,t,r,c),t.memoizedState=f.state,e=t.child):e=Na(e,t,c),e}function Cv(e,t,r,o){return Mi(),t.flags|=256,Vt(e,t,r,o),t.child}var Af={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Of(e){return{baseLanes:e,cachePool:hp()}}function Mf(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Mn),e}function Rv(e,t,r){var o=t.pendingProps,c=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(Ot.current&2)!==0),b&&(c=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(We){if(c?ar(t):rr(),We){var S=ht,C;if(C=S){e:{for(C=S,S=ta;C.nodeType!==8;){if(!S){S=null;break e}if(C=Vn(C.nextSibling),C===null){S=null;break e}}S=C}S!==null?(t.memoizedState={dehydrated:S,treeContext:Vr!==null?{id:Ta,overflow:Ca}:null,retryLane:536870912,hydrationErrors:null},C=fn(18,null,null,0),C.stateNode=S,C.return=t,t.child=C,Qt=t,ht=null,C=!0):C=!1}C||qr(t)}if(S=t.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return hd(S)?t.lanes=32:t.lanes=536870912,null;Ma(t)}return S=o.children,o=o.fallback,c?(rr(),c=t.mode,S=Pl({mode:"hidden",children:S},c),o=Pr(o,c,r,null),S.return=t,o.return=t,S.sibling=o,t.child=S,c=t.child,c.memoizedState=Of(r),c.childLanes=Mf(e,b,r),t.memoizedState=Af,o):(ar(t),Nf(t,S))}if(C=e.memoizedState,C!==null&&(S=C.dehydrated,S!==null)){if(f)t.flags&256?(ar(t),t.flags&=-257,t=Df(e,t,r)):t.memoizedState!==null?(rr(),t.child=e.child,t.flags|=128,t=null):(rr(),c=o.fallback,S=t.mode,o=Pl({mode:"visible",children:o.children},S),c=Pr(c,S,r,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,Us(t,e.child,null,r),o=t.child,o.memoizedState=Of(r),o.childLanes=Mf(e,b,r),t.memoizedState=Af,t=c);else if(ar(t),hd(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var V=b.dgst;b=V,o=Error(i(419)),o.stack="",o.digest=b,Ni({value:o,source:null,stack:null}),t=Df(e,t,r)}else if(zt||Di(e,t,r,!1),b=(r&e.childLanes)!==0,zt||b){if(b=lt,b!==null&&(o=r&-r,o=(o&42)!==0?1:wt(o),o=(o&(b.suspendedLanes|r))!==0?0:o,o!==0&&o!==C.retryLane))throw C.retryLane=o,Ts(e,o),vn(b,e,o),yv;S.data==="$?"||Kf(),t=Df(e,t,r)}else S.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,ht=Vn(S.nextSibling),Qt=t,We=!0,Hr=null,ta=!1,e!==null&&(Rn[An++]=Ta,Rn[An++]=Ca,Rn[An++]=Vr,Ta=e.id,Ca=e.overflow,Vr=t),t=Nf(t,o.children),t.flags|=4096);return t}return c?(rr(),c=o.fallback,S=t.mode,C=e.child,V=C.sibling,o=Ea(C,{mode:"hidden",children:o.children}),o.subtreeFlags=C.subtreeFlags&65011712,V!==null?c=Ea(V,c):(c=Pr(c,S,r,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,S=e.child.memoizedState,S===null?S=Of(r):(C=S.cachePool,C!==null?(V=At._currentValue,C=C.parent!==V?{parent:V,pool:V}:C):C=hp(),S={baseLanes:S.baseLanes|r,cachePool:C}),c.memoizedState=S,c.childLanes=Mf(e,b,r),t.memoizedState=Af,o):(ar(t),r=e.child,e=r.sibling,r=Ea(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=r,t.memoizedState=null,r)}function Nf(e,t){return t=Pl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pl(e,t){return e=fn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Df(e,t,r){return Us(t,e.child,null,r),e=Nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Av(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Xc(e.return,t,r)}function jf(e,t,r,o,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=r,f.tailMode=c)}function Ov(e,t,r){var o=t.pendingProps,c=o.revealOrder,f=o.tail;if(Vt(e,t,o.children,r),o=Ot.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Av(e,r,t);else if(e.tag===19)Av(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(K(Ot,o),c){case"forwards":for(r=t.child,c=null;r!==null;)e=r.alternate,e!==null&&kl(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),jf(t,!1,c,r,f);break;case"backwards":for(r=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&kl(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}jf(t,!0,r,null,f);break;case"together":jf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Na(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ur|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Di(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=Ea(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ea(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function kf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yl(e)))}function mw(e,t,r){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Wa(t,At,e.memoizedState.cache),Mi();break;case 27:case 5:Ve(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Wa(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(ar(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Rv(e,t,r):(ar(t),e=Na(e,t,r),e!==null?e.sibling:null);ar(t);break;case 19:var c=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(Di(e,t,r,!1),o=(r&t.childLanes)!==0),c){if(o)return Ov(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),K(Ot,Ot.current),o)break;return null;case 22:case 23:return t.lanes=0,_v(e,t,r);case 24:Wa(t,At,e.memoizedState.cache)}return Na(e,t,r)}function Mv(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)zt=!0;else{if(!kf(e,r)&&(t.flags&128)===0)return zt=!1,mw(e,t,r);zt=(e.flags&131072)!==0}else zt=!1,We&&(t.flags&1048576)!==0&&ip(t,gl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,c=o._init;if(o=c(o._payload),t.type=o,typeof o=="function")qc(o)?(e=Zr(o,e),t.tag=1,t=Tv(null,t,o,e,r)):(t.tag=0,t=Rf(null,t,o,e,r));else{if(o!=null){if(c=o.$$typeof,c===U){t.tag=11,t=bv(null,t,o,e,r);break e}else if(c===F){t.tag=14,t=xv(null,t,o,e,r);break e}}throw t=ce(o)||o,Error(i(306,t,""))}}return t;case 0:return Rf(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,c=Zr(o,t.pendingProps),Tv(e,t,o,c,r);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;c=f.element,nf(e,t),Vi(t,o,null,r);var b=t.memoizedState;if(o=b.cache,Wa(t,At,o),o!==f.cache&&Kc(t,[At],r,!0),Pi(),o=b.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Cv(e,t,o,r);break e}else if(o!==c){c=Tn(Error(i(424)),t),Ni(c),t=Cv(e,t,o,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=Vn(e.firstChild),Qt=t,We=!0,Hr=null,ta=!0,r=lv(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Mi(),o===c){t=Na(e,t,r);break e}Vt(e,t,o,r)}t=t.child}return t;case 26:return Ll(e,t),e===null?(r=kg(t.type,null,t.pendingProps,null))?t.memoizedState=r:We||(r=t.type,e=t.pendingProps,o=Wl(ge.current).createElement(r),o[gt]=t,o[ot]=e,Ht(o,r,e),kt(o),t.stateNode=o):t.memoizedState=kg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ve(t),e===null&&We&&(o=t.stateNode=Ng(t.type,t.pendingProps,ge.current),Qt=t,ta=!0,c=ht,hr(t.type)?(md=c,ht=Vn(o.firstChild)):ht=c),Vt(e,t,t.pendingProps.children,r),Ll(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&We&&((c=o=ht)&&(o=qw(o,t.type,t.pendingProps,ta),o!==null?(t.stateNode=o,Qt=t,ht=Vn(o.firstChild),ta=!1,c=!0):c=!1),c||qr(t)),Ve(t),c=t.type,f=t.pendingProps,b=e!==null?e.memoizedProps:null,o=f.children,cd(c,f)?o=null:b!==null&&cd(c,b)&&(t.flags|=32),t.memoizedState!==null&&(c=uf(e,t,iw,null,null,r),oo._currentValue=c),Ll(e,t),Vt(e,t,o,r),t.child;case 6:return e===null&&We&&((e=r=ht)&&(r=Fw(r,t.pendingProps,ta),r!==null?(t.stateNode=r,Qt=t,ht=null,e=!0):e=!1),e||qr(t)),null;case 13:return Rv(e,t,r);case 4:return me(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Us(t,null,o,r):Vt(e,t,o,r),t.child;case 11:return bv(e,t,t.type,t.pendingProps,r);case 7:return Vt(e,t,t.pendingProps,r),t.child;case 8:return Vt(e,t,t.pendingProps.children,r),t.child;case 12:return Vt(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,Wa(t,t.type,o.value),Vt(e,t,o.children,r),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,Gr(t),c=Gt(c),o=o(c),t.flags|=1,Vt(e,t,o,r),t.child;case 14:return xv(e,t,t.type,t.pendingProps,r);case 15:return Sv(e,t,t.type,t.pendingProps,r);case 19:return Ov(e,t,r);case 31:return o=t.pendingProps,r=t.mode,o={mode:o.mode,children:o.children},e===null?(r=Pl(o,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=Ea(e.child,o),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return _v(e,t,r);case 24:return Gr(t),o=Gt(At),e===null?(c=Jc(),c===null&&(c=lt,f=$c(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=r),c=f),t.memoizedState={parent:o,cache:c},tf(t),Wa(t,At,c)):((e.lanes&r)!==0&&(nf(e,t),Vi(t,null,null,r),Pi()),c=e.memoizedState,f=t.memoizedState,c.parent!==o?(c={parent:o,cache:o},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Wa(t,At,o)):(o=f.cache,Wa(t,At,o),o!==c.cache&&Kc(t,[At],r,!0))),Vt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Da(e){e.flags|=4}function Nv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vg(t)){if(t=On.current,t!==null&&((Xe&4194048)===Xe?na!==null:(Xe&62914560)!==Xe&&(Xe&536870912)===0||t!==na))throw Ui=ef,mp;e.flags|=8192}}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jo():536870912,e.lanes|=t,Bs|=t)}function Yi(e,t){if(!We)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function pw(e,t,r){var o=t.pendingProps;switch(Yc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return ct(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Aa(At),Ie(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Oi(t)?Da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,up())),ct(t),null;case 26:return r=t.memoizedState,e===null?(Da(t),r!==null?(ct(t),Nv(t,r)):(ct(t),t.flags&=-16777217)):r?r!==e.memoizedState?(Da(t),ct(t),Nv(t,r)):(ct(t),t.flags&=-16777217):(e.memoizedProps!==o&&Da(t),ct(t),t.flags&=-16777217),null;case 27:Ge(t),r=ge.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Da(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return ct(t),null}e=ie.current,Oi(t)?op(t):(e=Ng(c,o,r),t.stateNode=e,Da(t))}return ct(t),null;case 5:if(Ge(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Da(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return ct(t),null}if(e=ie.current,Oi(t))op(t);else{switch(c=Wl(ge.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=c.createElement("div"),e.innerHTML="