import{g as jh,u as nE}from"./base64-BbJB1hmJ.js";import{p as wn}from"./product-api.service-DR0CE0o9.js";import{a as rE,r as aE}from"./app-C7VSS-q9.js";function sE(t,r){for(var s=0;si[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var kd={exports:{}},fo={};/** * @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 gy;function iE(){if(gy)return fo;gy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(i,l,c){var f=null;if(c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:t,type:i,key:f,ref:l!==void 0?l:null,props:c}}return fo.Fragment=r,fo.jsx=s,fo.jsxs=s,fo}var yy;function oE(){return yy||(yy=1,kd.exports=iE()),kd.exports}var g=oE(),oi=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(){}},Za=typeof window>"u"||"Deno"in globalThis;function It(){}function lE(t,r){return typeof t=="function"?t(r):t}function nh(t){return typeof t=="number"&&t>=0&&t!==1/0}function Bb(t,r){return Math.max(t+(r||0)-Date.now(),0)}function ca(t,r){return typeof t=="function"?t(r):t}function En(t,r){return typeof t=="function"?t(r):t}function by(t,r){const{type:s="all",exact:i,fetchStatus:l,predicate:c,queryKey:f,stale:h}=t;if(f){if(i){if(r.queryHash!==kh(f,r.options))return!1}else if(!So(r.queryKey,f))return!1}if(s!=="all"){const m=r.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof h=="boolean"&&r.isStale()!==h||l&&l!==r.state.fetchStatus||c&&!c(r))}function xy(t,r){const{exact:s,status:i,predicate:l,mutationKey:c}=t;if(c){if(!r.options.mutationKey)return!1;if(s){if(Ya(r.options.mutationKey)!==Ya(c))return!1}else if(!So(r.options.mutationKey,c))return!1}return!(i&&r.state.status!==i||l&&!l(r))}function kh(t,r){return(r?.queryKeyHashFn||Ya)(t)}function Ya(t){return JSON.stringify(t,(r,s)=>rh(s)?Object.keys(s).sort().reduce((i,l)=>(i[l]=s[l],i),{}):s)}function So(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(s=>So(t[s],r[s])):!1}function Hb(t,r){if(t===r)return t;const s=Sy(t)&&Sy(r);if(s||rh(t)&&rh(r)){const i=s?t:Object.keys(t),l=i.length,c=s?r:Object.keys(r),f=c.length,h=s?[]:{},m=new Set(i);let p=0;for(let v=0;v{setTimeout(r,t)})}function ah(t,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,r):s.structuralSharing!==!1?Hb(t,r):r}function uE(t,r,s=0){const i=[...t,r];return s&&i.length>s?i.slice(1):i}function fE(t,r,s=0){const i=[r,...t];return s&&i.length>s?i.slice(0,-1):i}var zh=Symbol();function qb(t,r){return!t.queryFn&&r?.initialPromise?()=>r.initialPromise:!t.queryFn||t.queryFn===zh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Gb(t,r){return typeof t=="function"?t(...r):!!t}var dE=class extends oi{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!Za&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Uh=new dE,hE=class extends oi{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!Za&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#t}},Ac=new hE;function sh(){let t,r;const s=new Promise((l,c)=>{t=l,r=c});s.status="pending",s.catch(()=>{});function i(l){Object.assign(s,l),delete s.resolve,delete s.reject}return s.resolve=l=>{i({status:"fulfilled",value:l}),t(l)},s.reject=l=>{i({status:"rejected",reason:l}),r(l)},s}function mE(t){return Math.min(1e3*2**t,3e4)}function Fb(t){return(t??"online")==="online"?Ac.isOnline():!0}var Ib=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Zb(t){let r=!1,s=0,i;const l=sh(),c=()=>l.status!=="pending",f=w=>{c()||(_(new Ib(w)),t.abort?.())},h=()=>{r=!0},m=()=>{r=!1},p=()=>Uh.isFocused()&&(t.networkMode==="always"||Ac.isOnline())&&t.canRun(),v=()=>Fb(t.networkMode)&&t.canRun(),x=w=>{c()||(i?.(),l.resolve(w))},_=w=>{c()||(i?.(),l.reject(w))},E=()=>new Promise(w=>{i=C=>{(c()||p())&&w(C)},t.onPause?.()}).then(()=>{i=void 0,c()||t.onContinue?.()}),R=()=>{if(c())return;let w;const C=s===0?t.initialPromise:void 0;try{w=C??t.fn()}catch(z){w=Promise.reject(z)}Promise.resolve(w).then(x).catch(z=>{if(c())return;const O=t.retry??(Za?0:3),U=t.retryDelay??mE,k=typeof U=="function"?U(s,z):U,M=O===!0||typeof O=="number"&&sp()?void 0:E()).then(()=>{r?_(z):R()})})};return{promise:l,status:()=>l.status,cancel:f,continue:()=>(i?.(),l),cancelRetry:h,continueRetry:m,canStart:v,start:()=>(v()?R():E().then(R),l)}}var pE=t=>setTimeout(t,0);function vE(){let t=[],r=0,s=h=>{h()},i=h=>{h()},l=pE;const c=h=>{r?t.push(h):l(()=>{s(h)})},f=()=>{const h=t;t=[],h.length&&l(()=>{i(()=>{h.forEach(m=>{s(m)})})})};return{batch:h=>{let m;r++;try{m=h()}finally{r--,r||f()}return m},batchCalls:h=>(...m)=>{c(()=>{h(...m)})},schedule:c,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{l=h}}}var Tt=vE(),Yb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nh(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Za?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},gE=class extends Yb{#t;#e;#n;#r;#a;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=yE(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,r){const s=ah(this.state.data,t,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(t,r){this.#s({type:"setState",state:t,setStateOptions:r})}cancel(t){const r=this.#a?.promise;return this.#a?.cancel(t),r?r.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>En(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ca(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:!Bb(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},l=()=>{const h=qb(this.options,r),p=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(v),v})();return this.#o=!1,this.options.persister?this.options.persister(h,p,this):h(p)},f=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return i(h),h})();this.options.behavior?.onFetch(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=Zb({initialPromise:r?.initialPromise,fn:f.fetchFn,abort:s.abort.bind(s),onFail:(h,m)=>{this.#s({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Ib){if(h.silent)return this.#a.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(t){const r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Qb(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?i:void 0,i;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),Tt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Qb(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fb(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function yE(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,s=r!==void 0,i=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var bE=class extends oi{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,r,s){const i=r.queryKey,l=r.queryHash??kh(i,r);let c=this.get(l);return c||(c=new gE({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=this.#t.get(t.queryHash);r&&(t.destroy(),r===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>by(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>by(t,s)):r}notify(t){Tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xE=class extends Yb{#t;#e;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#t=[],this.state=t.state||Xb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(r=>r!==t),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const r=()=>{this.#r({type:"continue"})};this.#n=Zb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#n.canStart();try{if(s)r();else{this.#r({type:"pending",variables:t,isPaused:i}),await this.#e.config.onMutate?.(t,this);const c=await this.options.onMutate?.(t);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:i})}const l=await this.#n.start();return await this.#e.config.onSuccess?.(l,t,this.state.context,this),await this.options.onSuccess?.(l,t,this.state.context),await this.#e.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,t,this.state.context),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#e.config.onError?.(l,t,this.state.context,this),await this.options.onError?.(l,t,this.state.context),await this.#e.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,t,this.state.context),l}finally{this.#r({type:"error",error:l})}}finally{this.#e.runNext(this)}}#r(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Tt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function Xb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var SE=class extends oi{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,r,s){const i=new xE({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){this.#t.add(t);const r=uc(t);if(typeof r=="string"){const s=this.#e.get(r);s?s.push(t):this.#e.set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const r=uc(t);if(typeof r=="string"){const s=this.#e.get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&this.#e.delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=uc(t);if(typeof r=="string"){const i=this.#e.get(r)?.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){const r=uc(t);return typeof r=="string"?this.#e.get(r)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Tt.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const r={exact:!0,...t};return this.getAll().find(s=>xy(r,s))}findAll(t={}){return this.getAll().filter(r=>xy(t,r))}notify(t){Tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Tt.batch(()=>Promise.all(t.map(r=>r.continue().catch(It))))}};function uc(t){return t.options.scope?.id}function wy(t){return{onFetch:(r,s)=>{const i=r.options,l=r.fetchOptions?.meta?.fetchMore?.direction,c=r.state.data?.pages||[],f=r.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const p=async()=>{let v=!1;const x=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(r.signal.aborted?v=!0:r.signal.addEventListener("abort",()=>{v=!0}),r.signal)})},_=qb(r.options,r.fetchOptions),E=async(R,w,C)=>{if(v)return Promise.reject();if(w==null&&R.pages.length)return Promise.resolve(R);const O=(()=>{const Z={client:r.client,queryKey:r.queryKey,pageParam:w,direction:C?"backward":"forward",meta:r.options.meta};return x(Z),Z})(),U=await _(O),{maxPages:k}=r.options,M=C?fE:uE;return{pages:M(R.pages,U,k),pageParams:M(R.pageParams,w,k)}};if(l&&c.length){const R=l==="backward",w=R?_E:Ey,C={pages:c,pageParams:f},z=w(i,C);h=await E(C,z,R)}else{const R=t??c.length;do{const w=m===0?f[0]??i.initialPageParam:Ey(i,h);if(m>0&&w==null)break;h=await E(h,w),m++}while(mr.options.persister?.(p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=p}}}function Ey(t,{pages:r,pageParams:s}){const i=r.length-1;return r.length>0?t.getNextPageParam(r[i],r,s[i],s):void 0}function _E(t,{pages:r,pageParams:s}){return r.length>0?t.getPreviousPageParam?.(r[0],r,s[0],s):void 0}var wE=class{#t;#e;#n;#r;#a;#i;#o;#s;constructor(t={}){this.#t=t.queryCache||new bE,this.#e=t.mutationCache||new SE,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Uh.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Ac.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),s=this.#t.build(this,r),i=s.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(ca(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:r,state:s})=>{const i=s.data;return[r,i]})}setQueryData(t,r,s){const i=this.defaultQueryOptions({queryKey:t}),c=this.#t.get(i.queryHash)?.state.data,f=lE(r,c);if(f!==void 0)return this.#t.build(this,i).setData(f,{...s,manual:!0})}setQueriesData(t,r,s){return Tt.batch(()=>this.#t.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,s)]))}getQueryState(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state}removeQueries(t){const r=this.#t;Tt.batch(()=>{r.findAll(t).forEach(s=>{r.remove(s)})})}resetQueries(t,r){const s=this.#t;return Tt.batch(()=>(s.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const s={revert:!0,...r},i=Tt.batch(()=>this.#t.findAll(t).map(l=>l.cancel(s)));return Promise.all(i).then(It).catch(It)}invalidateQueries(t,r={}){return Tt.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},r)))}refetchQueries(t,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},i=Tt.batch(()=>this.#t.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,s);return s.throwOnError||(c=c.catch(It)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(It)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const s=this.#t.build(this,r);return s.isStaleByTime(ca(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(It).catch(It)}fetchInfiniteQuery(t){return t.behavior=wy(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(It).catch(It)}ensureInfiniteQueryData(t){return t.behavior=wy(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ac.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,r){this.#r.set(Ya(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...this.#r.values()],s={};return r.forEach(i=>{So(t,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(t,r){this.#a.set(Ya(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...this.#a.values()],s={};return r.forEach(i=>{So(t,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const r={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=kh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===zh&&(r.enabled=!1),r}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},EE=class extends oi{constructor(t,r){super(),this.options=r,this.#t=t,this.#s=null,this.#o=sh(),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#o;#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),Cy(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ih(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ih(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const r=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof En(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),r._defaulted&&!Tc(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&Ty(this.#e,s,this.options,r)&&this.#f(),this.updateResult(),i&&(this.#e!==s||En(this.options.enabled,this.#e)!==En(r.enabled,this.#e)||ca(this.options.staleTime,this.#e)!==ca(r.staleTime,this.#e))&&this.#v();const l=this.#g();i&&(this.#e!==s||En(this.options.enabled,this.#e)!==En(r.enabled,this.#e)||l!==this.#l)&&this.#y(l)}getOptimisticResult(t){const r=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(r,t);return TE(this,s)&&(this.#r=s,this.#i=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(t,r){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),r?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=this.#t.defaultQueryOptions(t),s=this.#t.getQueryCache().build(this.#t,r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(t){this.#_();let r=this.#e.fetch(this.options,t);return t?.throwOnError||(r=r.catch(It)),r}#v(){this.#x();const t=ca(this.options.staleTime,this.#e);if(Za||this.#r.isStale||!nh(t))return;const s=Bb(this.#r.dataUpdatedAt,t)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#l=t,!(Za||En(this.options.enabled,this.#e)===!1||!nh(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Uh.isFocused())&&this.#f()},this.#l))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(t,r){const s=this.#e,i=this.options,l=this.#r,c=this.#a,f=this.#i,m=t!==s?t.state:this.#n,{state:p}=t;let v={...p},x=!1,_;if(r._optimisticResults){const I=this.hasListeners(),te=!I&&Cy(t,r),ie=I&&Ty(t,s,r,i);(te||ie)&&(v={...v,...Qb(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:E,errorUpdatedAt:R,status:w}=v;_=v.data;let C=!1;if(r.placeholderData!==void 0&&_===void 0&&w==="pending"){let I;l?.isPlaceholderData&&r.placeholderData===f?.placeholderData?(I=l.data,C=!0):I=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,I!==void 0&&(w="success",_=ah(l?.data,I,r),x=!0)}if(r.select&&_!==void 0&&!C)if(l&&_===c?.data&&r.select===this.#p)_=this.#d;else try{this.#p=r.select,_=r.select(_),_=ah(l?.data,_,r),this.#d=_,this.#s=null}catch(I){this.#s=I}this.#s&&(E=this.#s,_=this.#d,R=Date.now(),w="error");const z=v.fetchStatus==="fetching",O=w==="pending",U=w==="error",k=O&&z,M=_!==void 0,F={status:w,fetchStatus:v.fetchStatus,isPending:O,isSuccess:w==="success",isError:U,isInitialLoading:k,isLoading:k,data:_,dataUpdatedAt:v.dataUpdatedAt,error:E,errorUpdatedAt:R,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:z,isRefetching:z&&!O,isLoadingError:U&&!M,isPaused:v.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:U&&M,isStale:Ph(t,r),refetch:this.refetch,promise:this.#o,isEnabled:En(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const I=ge=>{F.status==="error"?ge.reject(F.error):F.data!==void 0&&ge.resolve(F.data)},te=()=>{const ge=this.#o=F.promise=sh();I(ge)},ie=this.#o;switch(ie.status){case"pending":t.queryHash===s.queryHash&&I(ie);break;case"fulfilled":(F.status==="error"||F.data!==ie.value)&&te();break;case"rejected":(F.status!=="error"||F.error!==ie.reason)&&te();break}}return F}updateResult(){const t=this.#r,r=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),Tc(r,t))return;this.#r=r;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#m.size)return!0;const c=new Set(l??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(f=>{const h=f;return this.#r[h]!==t[h]&&c.has(h)})};this.#w({listeners:s()})}#_(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const r=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(t){Tt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function CE(t,r){return En(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function Cy(t,r){return CE(t,r)||t.state.data!==void 0&&ih(t,r,r.refetchOnMount)}function ih(t,r,s){if(En(r.enabled,t)!==!1&&ca(r.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ph(t,r)}return!1}function Ty(t,r,s,i){return(t!==r||En(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ph(t,s)}function Ph(t,r){return En(r.enabled,t)!==!1&&t.isStaleByTime(ca(r.staleTime,t))}function TE(t,r){return!Tc(t.getCurrentResult(),r)}var AE=class extends oi{#t;#e=void 0;#n;#r;constructor(r,s){super(),this.#t=r,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const s=this.options;this.options=this.#t.defaultMutationOptions(r),Tc(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&Ya(s.mutationKey)!==Ya(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#a(),this.#i(r)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(r,s){return this.#r=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(r)}#a(){const r=this.#n?.state??Xb();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#i(r){Tt.batch(()=>{if(this.#r&&this.hasListeners()){const s=this.#e.variables,i=this.#e.context;r?.type==="success"?(this.#r.onSuccess?.(r.data,s,i),this.#r.onSettled?.(r.data,null,s,i)):r?.type==="error"&&(this.#r.onError?.(r.error,s,i),this.#r.onSettled?.(void 0,r.error,s,i))}this.listeners.forEach(s=>{s(this.#e)})})}},zd={exports:{}},Pe={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ay;function RE(){if(Ay)return Pe;Ay=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.iterator;function _(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,w={};function C(A,Y,oe){this.props=A,this.context=Y,this.refs=w,this.updater=oe||E}C.prototype.isReactComponent={},C.prototype.setState=function(A,Y){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,Y,"setState")},C.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function z(){}z.prototype=C.prototype;function O(A,Y,oe){this.props=A,this.context=Y,this.refs=w,this.updater=oe||E}var U=O.prototype=new z;U.constructor=O,R(U,C.prototype),U.isPureReactComponent=!0;var k=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function F(A,Y,oe,ee,ue,Oe){return oe=Oe.ref,{$$typeof:t,type:A,key:Y,ref:oe!==void 0?oe:null,props:Oe}}function I(A,Y){return F(A.type,Y,void 0,void 0,void 0,A.props)}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function ie(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(oe){return Y[oe]})}var ge=/\/+/g;function ae(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?ie(""+A.key):Y.toString(36)}function se(){}function ce(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(se,se):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function pe(A,Y,oe,ee,ue){var Oe=typeof A;(Oe==="undefined"||Oe==="boolean")&&(A=null);var _e=!1;if(A===null)_e=!0;else switch(Oe){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(A.$$typeof){case t:case r:_e=!0;break;case v:return _e=A._init,pe(_e(A._payload),Y,oe,ee,ue)}}if(_e)return ue=ue(A),_e=ee===""?"."+ae(A,0):ee,k(ue)?(oe="",_e!=null&&(oe=_e.replace(ge,"$&/")+"/"),pe(ue,Y,oe,"",function($e){return $e})):ue!=null&&(te(ue)&&(ue=I(ue,oe+(ue.key==null||A&&A.key===ue.key?"":(""+ue.key).replace(ge,"$&/")+"/")+_e)),Y.push(ue)),1;_e=0;var ne=ee===""?".":ee+":";if(k(A))for(var Te=0;Te{const r=y.useContext($b);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},qj=({client:t,children:r})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),g.jsx($b.Provider,{value:t,children:r})),Jb=y.createContext(!1),OE=()=>y.useContext(Jb);Jb.Provider;function ME(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var NE=y.createContext(ME()),DE=()=>y.useContext(NE),jE=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},kE=t=>{y.useEffect(()=>{t.clearReset()},[t])},zE=({result:t,errorResetBoundary:r,throwOnError:s,query:i,suspense:l})=>t.isError&&!r.isReset()&&!t.isFetching&&i&&(l&&t.data===void 0||Gb(s,[t.error,i])),UE=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},PE=(t,r)=>t.isLoading&&t.isFetching&&!r,LE=(t,r)=>t?.suspense&&r.isPending,Oy=(t,r,s)=>r.fetchOptimistic(t).catch(()=>{s.clearReset()});function VE(t,r,s){const i=OE(),l=DE(),c=Wb(),f=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=i?"isRestoring":"optimistic",UE(f),jE(f,l),kE(l);const h=!c.getQueryCache().get(f.queryHash),[m]=y.useState(()=>new r(c,f)),p=m.getOptimisticResult(f),v=!i&&t.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(x=>{const _=v?m.subscribe(Tt.batchCalls(x)):It;return m.updateResult(),_},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),y.useEffect(()=>{m.setOptions(f)},[f,m]),LE(f,p))throw Oy(f,m,l);if(zE({result:p,errorResetBoundary:l,throwOnError:f.throwOnError,query:c.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(f,p),f.experimental_prefetchInRender&&!Za&&PE(p,i)&&(h?Oy(f,m,l):c.getQueryCache().get(f.queryHash)?.promise)?.catch(It).finally(()=>{m.updateResult()}),f.notifyOnChangeProps?p:m.trackResult(p)}function oh(t,r){return VE(t,EE)}function ex(t,r){const s=Wb(),[i]=y.useState(()=>new AE(s,t));y.useEffect(()=>{i.setOptions(t)},[i,t]);const l=y.useSyncExternalStore(y.useCallback(f=>i.subscribe(Tt.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=y.useCallback((f,h)=>{i.mutate(f,h).catch(It)},[i]);if(l.error&&Gb(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}const Gj=new wE({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var Ud={exports:{}},ho={},Pd={exports:{}},Ld={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var My;function BE(){return My||(My=1,(function(t){function r(j,Q){var H=j.length;j.push(Q);e:for(;0>>1,A=j[J];if(0>>1;Jl(ee,H))uel(Oe,ee)?(j[J]=Oe,j[ue]=H,J=ue):(j[J]=ee,j[oe]=H,J=oe);else if(uel(Oe,H))j[J]=Oe,j[ue]=H,J=ue;else break e}}return Q}function l(j,Q){var H=j.sortIndex-Q.sortIndex;return H!==0?H:j.id-Q.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,h=f.now();t.unstable_now=function(){return f.now()-h}}var m=[],p=[],v=1,x=null,_=3,E=!1,R=!1,w=!1,C=!1,z=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var Q=s(p);Q!==null;){if(Q.callback===null)i(p);else if(Q.startTime<=j)i(p),Q.sortIndex=Q.expirationTime,r(m,Q);else break;Q=s(p)}}function M(j){if(w=!1,k(j),!R)if(s(m)!==null)R=!0,Z||(Z=!0,ae());else{var Q=s(p);Q!==null&&pe(M,Q.startTime-j)}}var Z=!1,F=-1,I=5,te=-1;function ie(){return C?!0:!(t.unstable_now()-tej&&ie());){var J=x.callback;if(typeof J=="function"){x.callback=null,_=x.priorityLevel;var A=J(x.expirationTime<=j);if(j=t.unstable_now(),typeof A=="function"){x.callback=A,k(j),Q=!0;break t}x===s(m)&&i(m),k(j)}else i(m);x=s(m)}if(x!==null)Q=!0;else{var Y=s(p);Y!==null&&pe(M,Y.startTime-j),Q=!1}}break e}finally{x=null,_=H,E=!1}Q=void 0}}finally{Q?ae():Z=!1}}}var ae;if(typeof U=="function")ae=function(){U(ge)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ge,ae=function(){ce.postMessage(null)}}else ae=function(){z(ge,0)};function pe(j,Q){F=z(function(){j(t.unstable_now())},Q)}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(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125J?(j.sortIndex=H,r(p,j),s(m)===null&&j===s(p)&&(w?(O(F),F=-1):w=!0,pe(M,H-J))):(j.sortIndex=A,r(m,j),R||E||(R=!0,Z||(Z=!0,ae()))),j},t.unstable_shouldYield=ie,t.unstable_wrapCallback=function(j){var Q=_;return function(){var H=_;_=Q;try{return j.apply(this,arguments)}finally{_=H}}}})(Ld)),Ld}var Ny;function HE(){return Ny||(Ny=1,Pd.exports=BE()),Pd.exports}var Vd={exports:{}},Bt={};/** * @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 qE(){if(Dy)return Bt;Dy=1;var t=Lh();function r(m){var p="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Vd.exports=qE(),Vd.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ky;function GE(){if(ky)return ho;ky=1;var t=HE(),r=Lh(),s=tx();function i(e){var n="https://react.dev/errors/"+e;if(1A||(e.current=J[A],J[A]=null,A--)}function ee(e,n){A++,J[A]=e.current,e.current=n}var ue=Y(null),Oe=Y(null),_e=Y(null),ne=Y(null);function Te(e,n){switch(ee(_e,n),ee(Oe,e),ee(ue,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Ig(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Ig(n),e=Zg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}oe(ue),ee(ue,e)}function $e(){oe(ue),oe(Oe),oe(_e)}function He(e){e.memoizedState!==null&&ee(ne,e);var n=ue.current,a=Zg(n,e.type);n!==a&&(ee(Oe,e),ee(ue,a))}function Ye(e){Oe.current===e&&(oe(ue),oe(Oe)),ne.current===e&&(oe(ne),io._currentValue=H)}var We=Object.prototype.hasOwnProperty,At=t.unstable_scheduleCallback,Xt=t.unstable_cancelCallback,kr=t.unstable_shouldYield,_a=t.unstable_requestPaint,Pt=t.unstable_now,Am=t.unstable_getCurrentPriorityLevel,pi=t.unstable_ImmediatePriority,N=t.unstable_UserBlockingPriority,B=t.unstable_NormalPriority,K=t.unstable_LowPriority,ve=t.unstable_IdlePriority,fe=t.log,le=t.unstable_setDisableYieldValue,we=null,ze=null;function Qe(e){if(typeof fe=="function"&&le(e),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(we,e)}catch{}}var lt=Math.clz32?Math.clz32:Su,rs=Math.log,qn=Math.LN2;function Su(e){return e>>>=0,e===0?32:31-(rs(e)/qn|0)|0}var zr=256,Ur=4194304;function or(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wa(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var u=0,d=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~d,o!==0?u=or(o):(b&=S,b!==0?u=or(b):a||(a=S&~e,a!==0&&(u=or(a))))):(S=o&~d,S!==0?u=or(S):b!==0?u=or(b):a||(a=o&~e,a!==0&&(u=or(a)))),u===0?0:n!==0&&n!==u&&(n&d)===0&&(d=u&-u,a=n&-n,d>=a||d===32&&(a&4194048)!==0)?n:u}function Ea(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Jo(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rm(){var e=zr;return zr<<=1,(zr&4194048)===0&&(zr=256),e}function Om(){var e=Ur;return Ur<<=1,(Ur&62914560)===0&&(Ur=4194304),e}function _u(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function vi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F_(e,n,a,o,u,d){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,T=e.expirationTimes,V=e.hiddenUpdates;for(a=b&~a;0)":-1u||T[o]!==V[u]){var X=` `+T[o].replace(" at new "," at ");return e.displayName&&X.includes("")&&(X=X.replace("",e.displayName)),X}while(1<=o&&0<=u);break}}}finally{Ru=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?cs(a):""}function K_(e){switch(e.tag){case 26:case 27:case 5:return cs(e.type);case 16:return cs("Lazy");case 13:return cs("Suspense");case 19:return cs("SuspenseList");case 0:case 15:return Ou(e.type,!1);case 11:return Ou(e.type.render,!1);case 1:return Ou(e.type,!0);case 31:return cs("Activity");default:return""}}function Vm(e){try{var n="";do n+=K_(e),e=e.return;while(e);return n}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function $_(e){var n=Bm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,d=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(b){o=""+b,d.call(this,b)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function nl(e){e._valueTracker||(e._valueTracker=$_(e))}function Hm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=Bm(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function 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 W_=/[\n"\\]/g;function pn(e){return e.replace(W_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Mu(e,n,a,o,u,d,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+mn(n)):e.value!==""+mn(n)&&(e.value=""+mn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Nu(e,b,mn(n)):a!=null?Nu(e,b,mn(a)):o!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+mn(S):e.removeAttribute("name")}function qm(e,n,a,o,u,d,b,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;a=a!=null?""+mn(a):"",n=n!=null?""+mn(n):a,S||n===e.value||(e.value=n),e.defaultValue=n}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function Nu(e,n,a){n==="number"&&rl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function us(e,n,a,o){if(e=e.options,n){n={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=!1;if(cr)try{var xi={};Object.defineProperty(xi,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",xi,xi),window.removeEventListener("test",xi,xi)}catch{Uu=!1}var Lr=null,Pu=null,sl=null;function Xm(){if(sl)return sl;var e,n=Pu,a=n.length,o,u="value"in Lr?Lr.value:Lr.textContent,d=u.length;for(e=0;e=wi),tp=" ",np=!1;function rp(e,n){switch(e){case"keyup":return Tw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ap(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ms=!1;function Rw(e,n){switch(e){case"compositionend":return ap(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return e=n.data,e===tp&&np?null:e;default:return null}}function Ow(e,n){if(ms)return e==="compositionend"||!qu&&rp(e,n)?(e=Xm(),sl=Pu=Lr=null,ms=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=dp(a)}}function mp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function pp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=rl(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=rl(e.document)}return n}function Iu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Pw=cr&&"documentMode"in document&&11>=document.documentMode,ps=null,Zu=null,Ai=null,Yu=!1;function vp(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Yu||ps==null||ps!==rl(o)||(o=ps,"selectionStart"in o&&Iu(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&&Ti(Ai,o)||(Ai=o,o=Xl(Zu,"onSelect"),0>=b,u-=b,fr=1<<32-lt(n)+u|a<d?d:8;var b=j.T,S={};j.T=S,jf(e,!1,n,a);try{var T=u(),V=j.S;if(V!==null&&V(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=Zw(T,o);qi(e,n,X,ln(e))}else qi(e,n,o,ln(e))}catch(W){qi(e,n,{then:function(){},status:"rejected",reason:W},ln())}finally{Q.p=d,j.T=b}}function $w(){}function Nf(e,n,a,o){if(e.tag!==5)throw Error(i(476));var u=gv(e).queue;vv(e,u,n,H,a===null?$w:function(){return yv(e),a(o)})}function gv(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:H},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function yv(e){var n=gv(e).next.queue;qi(e,n,{},ln())}function Df(){return Vt(io)}function bv(){return xt().memoizedState}function xv(){return xt().memoizedState}function Ww(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=ln();e=Hr(a);var o=qr(n,e,a);o!==null&&(cn(o,n,a),Ui(o,n,a)),n={cache:lf()},e.payload=n;return}n=n.return}}function Jw(e,n,a){var o=ln();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ol(e)?_v(n,a):(a=$u(e,n,a,o),a!==null&&(cn(a,e,o),wv(a,n,o)))}function Sv(e,n,a){var o=ln();qi(e,n,a,o)}function qi(e,n,a,o){var u={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ol(e))_v(n,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var b=n.lastRenderedState,S=d(b,a);if(u.hasEagerState=!0,u.eagerState=S,nn(S,b))return dl(e,n,u,0),ct===null&&fl(),!1}catch{}finally{}if(a=$u(e,n,u,o),a!==null)return cn(a,e,o),wv(a,n,o),!0}return!1}function jf(e,n,a,o){if(o={lane:2,revertLane:fd(),action:o,hasEagerState:!1,eagerState:null,next:null},Ol(e)){if(n)throw Error(i(479))}else n=$u(e,a,o,2),n!==null&&cn(n,e,2)}function Ol(e){var n=e.alternate;return e===Ve||n!==null&&n===Ve}function _v(e,n){Cs=wl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function wv(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Nm(e,a)}}var Ml={readContext:Vt,use:Cl,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt},Ev={readContext:Vt,use:Cl,useCallback:function(e,n){return Wt().memoizedState=[e,n===void 0?null:n],e},useContext:Vt,useEffect:ov,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Rl(4194308,4,fv.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Rl(4194308,4,e,n)},useInsertionEffect:function(e,n){Rl(4,2,e,n)},useMemo:function(e,n){var a=Wt();n=n===void 0?null:n;var o=e();if(Pa){Qe(!0);try{e()}finally{Qe(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=Wt();if(a!==void 0){var u=a(n);if(Pa){Qe(!0);try{a(n)}finally{Qe(!1)}}}else u=n;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=Jw.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var n=Wt();return e={current:e},n.memoizedState=e},useState:function(e){e=Af(e);var n=e.queue,a=Sv.bind(null,Ve,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Of,useDeferredValue:function(e,n){var a=Wt();return Mf(a,e,n)},useTransition:function(){var e=Af(!1);return e=vv.bind(null,Ve,e.queue,!0,!1),Wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=Ve,u=Wt();if(et){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),ct===null)throw Error(i(349));(Xe&124)!==0||Ip(o,n,a)}u.memoizedState=a;var d={value:a,getSnapshot:n};return u.queue=d,ov(Yp.bind(null,o,d,e),[e]),o.flags|=2048,As(9,Al(),Zp.bind(null,o,d,a,n),null),a},useId:function(){var e=Wt(),n=ct.identifierPrefix;if(et){var a=dr,o=fr;a=(o&~(1<<32-lt(o)-1)).toString(32)+a,n="«"+n+"R"+a,a=El++,0Me?(Nt=Ce,Ce=null):Nt=Ce.sibling;var Je=q(P,Ce,L[Me],$);if(Je===null){Ce===null&&(Ce=Nt);break}e&&Ce&&Je.alternate===null&&n(P,Ce),D=d(Je,D,Me),qe===null?be=Je:qe.sibling=Je,qe=Je,Ce=Nt}if(Me===L.length)return a(P,Ce),et&&Na(P,Me),be;if(Ce===null){for(;MeMe?(Nt=Ce,Ce=null):Nt=Ce.sibling;var sa=q(P,Ce,Je.value,$);if(sa===null){Ce===null&&(Ce=Nt);break}e&&Ce&&sa.alternate===null&&n(P,Ce),D=d(sa,D,Me),qe===null?be=sa:qe.sibling=sa,qe=sa,Ce=Nt}if(Je.done)return a(P,Ce),et&&Na(P,Me),be;if(Ce===null){for(;!Je.done;Me++,Je=L.next())Je=W(P,Je.value,$),Je!==null&&(D=d(Je,D,Me),qe===null?be=Je:qe.sibling=Je,qe=Je);return et&&Na(P,Me),be}for(Ce=o(Ce);!Je.done;Me++,Je=L.next())Je=G(Ce,P,Me,Je.value,$),Je!==null&&(e&&Je.alternate!==null&&Ce.delete(Je.key===null?Me:Je.key),D=d(Je,D,Me),qe===null?be=Je:qe.sibling=Je,qe=Je);return e&&Ce.forEach(function(tE){return n(P,tE)}),et&&Na(P,Me),be}function it(P,D,L,$){if(typeof L=="object"&&L!==null&&L.type===R&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case _:e:{for(var be=L.key;D!==null;){if(D.key===be){if(be=L.type,be===R){if(D.tag===7){a(P,D.sibling),$=u(D,L.props.children),$.return=P,P=$;break e}}else if(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===I&&Tv(be)===D.type){a(P,D.sibling),$=u(D,L.props),Fi($,L),$.return=P,P=$;break e}a(P,D);break}else n(P,D);D=D.sibling}L.type===R?($=Oa(L.props.children,P.mode,$,L.key),$.return=P,P=$):($=ml(L.type,L.key,L.props,null,P.mode,$),Fi($,L),$.return=P,P=$)}return b(P);case E:e:{for(be=L.key;D!==null;){if(D.key===be)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){a(P,D.sibling),$=u(D,L.children||[]),$.return=P,P=$;break e}else{a(P,D);break}else n(P,D);D=D.sibling}$=ef(L,P.mode,$),$.return=P,P=$}return b(P);case I:return be=L._init,L=be(L._payload),it(P,D,L,$)}if(pe(L))return je(P,D,L,$);if(ae(L)){if(be=ae(L),typeof be!="function")throw Error(i(150));return L=be.call(L),Re(P,D,L,$)}if(typeof L.then=="function")return it(P,D,Nl(L),$);if(L.$$typeof===U)return it(P,D,yl(P,L),$);Dl(P,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(a(P,D.sibling),$=u(D,L),$.return=P,P=$):(a(P,D),$=Ju(L,P.mode,$),$.return=P,P=$),b(P)):a(P,D)}return function(P,D,L,$){try{Gi=0;var be=it(P,D,L,$);return Rs=null,be}catch(Ce){if(Ce===ki||Ce===xl)throw Ce;var qe=rn(29,Ce,null,P.mode);return qe.lanes=$,qe.return=P,qe}finally{}}}var Os=Av(!0),Rv=Av(!1),xn=Y(null),Fn=null;function Fr(e){var n=e.alternate;ee(wt,wt.current&1),ee(xn,e),Fn===null&&(n===null||Es.current!==null||n.memoizedState!==null)&&(Fn=e)}function Ov(e){if(e.tag===22){if(ee(wt,wt.current),ee(xn,e),Fn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Fn=e)}}else Ir()}function Ir(){ee(wt,wt.current),ee(xn,xn.current)}function vr(e){oe(xn),Fn===e&&(Fn=null),oe(wt)}var wt=Y(0);function jl(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||wd(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function kf(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:v({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var zf={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=ln(),u=Hr(o);u.payload=n,a!=null&&(u.callback=a),n=qr(e,u,o),n!==null&&(cn(n,e,o),Ui(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=ln(),u=Hr(o);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=qr(e,u,o),n!==null&&(cn(n,e,o),Ui(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=ln(),o=Hr(a);o.tag=2,n!=null&&(o.callback=n),n=qr(e,o,a),n!==null&&(cn(n,e,a),Ui(n,e,a))}};function Mv(e,n,a,o,u,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,b):n.prototype&&n.prototype.isPureReactComponent?!Ti(a,o)||!Ti(u,d):!0}function Nv(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&zf.enqueueReplaceState(n,n.state,null)}function La(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var kl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Dv(e){kl(e)}function jv(e){console.error(e)}function kv(e){kl(e)}function zl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function zv(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Uf(e,n,a){return a=Hr(a),a.tag=3,a.payload={element:null},a.callback=function(){zl(e,n)},a}function Uv(e){return e=Hr(e),e.tag=3,e}function Pv(e,n,a,o){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var d=o.value;e.payload=function(){return u(d)},e.callback=function(){zv(n,a,o)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){zv(n,a,o),typeof u!="function"&&($r===null?$r=new Set([this]):$r.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function t1(e,n,a,o,u){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&Ni(n,a,u,!0),a=xn.current,a!==null){switch(a.tag){case 13:return Fn===null?id():a.alternate===null&&mt===0&&(mt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,o===ff?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),ld(e,o,u)),!1;case 22:return a.flags|=65536,o===ff?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),ld(e,o,u)),!1}throw Error(i(435,a.tag))}return ld(e,o,u),id(),!1}if(et)return n=xn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,o!==rf&&(e=Error(i(422),{cause:o}),Mi(vn(e,a)))):(o!==rf&&(n=Error(i(423),{cause:o}),Mi(vn(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=vn(o,a),u=Uf(e.stateNode,o,u),mf(e,u),mt!==4&&(mt=2)),!1;var d=Error(i(520),{cause:o});if(d=vn(d,a),$i===null?$i=[d]:$i.push(d),mt!==4&&(mt=2),n===null)return!0;o=vn(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Uf(a.stateNode,o,e),mf(a,e),!1;case 1:if(n=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&($r===null||!$r.has(d))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Uv(u),Pv(u,e,a,o),mf(a,u),!1}a=a.return}while(a!==null);return!1}var Lv=Error(i(461)),Ot=!1;function Dt(e,n,a,o){n.child=e===null?Rv(n,null,a,o):Os(n,e.child,a,o)}function Vv(e,n,a,o,u){a=a.render;var d=n.ref;if("ref"in o){var b={};for(var S in o)S!=="ref"&&(b[S]=o[S])}else b=o;return za(n),o=bf(e,n,a,b,d,u),S=xf(),e!==null&&!Ot?(Sf(e,n,u),gr(e,n,u)):(et&&S&&tf(n),n.flags|=1,Dt(e,n,o,u),n.child)}function Bv(e,n,a,o,u){if(e===null){var d=a.type;return typeof d=="function"&&!Wu(d)&&d.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=d,Hv(e,n,d,o,u)):(e=ml(a.type,null,o,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Ff(e,u)){var b=d.memoizedProps;if(a=a.compare,a=a!==null?a:Ti,a(b,o)&&e.ref===n.ref)return gr(e,n,u)}return n.flags|=1,e=ur(d,o),e.ref=n.ref,e.return=n,n.child=e}function Hv(e,n,a,o,u){if(e!==null){var d=e.memoizedProps;if(Ti(d,o)&&e.ref===n.ref)if(Ot=!1,n.pendingProps=o=d,Ff(e,u))(e.flags&131072)!==0&&(Ot=!0);else return n.lanes=e.lanes,gr(e,n,u)}return Pf(e,n,a,o,u)}function qv(e,n,a){var o=n.pendingProps,u=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=d!==null?d.baseLanes|a:a,e!==null){for(u=n.child=e.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;n.childLanes=d&~o}else n.childLanes=0,n.child=null;return Gv(e,n,o,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&bl(n,d!==null?d.cachePool:null),d!==null?Hp(n,d):vf(),Ov(n);else return n.lanes=n.childLanes=536870912,Gv(e,n,d!==null?d.baseLanes|a:a,a)}else d!==null?(bl(n,d.cachePool),Hp(n,d),Ir(),n.memoizedState=null):(e!==null&&bl(n,null),vf(),Ir());return Dt(e,n,u,a),n.child}function Gv(e,n,a,o){var u=uf();return u=u===null?null:{parent:_t._currentValue,pool:u},n.memoizedState={baseLanes:a,cachePool:u},e!==null&&bl(n,null),vf(),Ov(n),e!==null&&Ni(e,n,o,!0),null}function Ul(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Pf(e,n,a,o,u){return za(n),a=bf(e,n,a,o,void 0,u),o=xf(),e!==null&&!Ot?(Sf(e,n,u),gr(e,n,u)):(et&&o&&tf(n),n.flags|=1,Dt(e,n,a,u),n.child)}function Fv(e,n,a,o,u,d){return za(n),n.updateQueue=null,a=Gp(n,o,a,u),qp(e),o=xf(),e!==null&&!Ot?(Sf(e,n,d),gr(e,n,d)):(et&&o&&tf(n),n.flags|=1,Dt(e,n,a,d),n.child)}function Iv(e,n,a,o,u){if(za(n),n.stateNode===null){var d=bs,b=a.contextType;typeof b=="object"&&b!==null&&(d=Vt(b)),d=new a(o,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=zf,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=o,d.state=n.memoizedState,d.refs={},df(n),b=a.contextType,d.context=typeof b=="object"&&b!==null?Vt(b):bs,d.state=n.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(kf(n,a,b,o),d.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(b=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),b!==d.state&&zf.enqueueReplaceState(d,d.state,null),Li(n,o,d,u),Pi(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){d=n.stateNode;var S=n.memoizedProps,T=La(a,S);d.props=T;var V=d.context,X=a.contextType;b=bs,typeof X=="object"&&X!==null&&(b=Vt(X));var W=a.getDerivedStateFromProps;X=typeof W=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,X||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||V!==b)&&Nv(n,d,o,b),Br=!1;var q=n.memoizedState;d.state=q,Li(n,o,d,u),Pi(),V=n.memoizedState,S||q!==V||Br?(typeof W=="function"&&(kf(n,a,W,o),V=n.memoizedState),(T=Br||Mv(n,a,T,o,q,V,b))?(X||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=V),d.props=o,d.state=V,d.context=b,o=T):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{d=n.stateNode,hf(e,n),b=n.memoizedProps,X=La(a,b),d.props=X,W=n.pendingProps,q=d.context,V=a.contextType,T=bs,typeof V=="object"&&V!==null&&(T=Vt(V)),S=a.getDerivedStateFromProps,(V=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==W||q!==T)&&Nv(n,d,o,T),Br=!1,q=n.memoizedState,d.state=q,Li(n,o,d,u),Pi();var G=n.memoizedState;b!==W||q!==G||Br||e!==null&&e.dependencies!==null&&gl(e.dependencies)?(typeof S=="function"&&(kf(n,a,S,o),G=n.memoizedState),(X=Br||Mv(n,a,X,o,q,G,T)||e!==null&&e.dependencies!==null&&gl(e.dependencies))?(V||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,G,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,G,T)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=G),d.props=o,d.state=G,d.context=T,o=X):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=1024),o=!1)}return d=o,Ul(e,n),o=(n.flags&128)!==0,d||o?(d=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&o?(n.child=Os(n,e.child,null,u),n.child=Os(n,null,a,u)):Dt(e,n,a,u),n.memoizedState=d.state,e=n.child):e=gr(e,n,u),e}function Zv(e,n,a,o){return Oi(),n.flags|=256,Dt(e,n,a,o),n.child}var Lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vf(e){return{baseLanes:e,cachePool:jp()}}function Bf(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Sn),e}function Yv(e,n,a){var o=n.pendingProps,u=!1,d=(n.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(et){if(u?Fr(n):Ir(),et){var S=ht,T;if(T=S){e:{for(T=S,S=Gn;T.nodeType!==8;){if(!S){S=null;break e}if(T=Mn(T.nextSibling),T===null){S=null;break e}}S=T}S!==null?(n.memoizedState={dehydrated:S,treeContext:Ma!==null?{id:fr,overflow:dr}:null,retryLane:536870912,hydrationErrors:null},T=rn(18,null,null,0),T.stateNode=S,T.return=n,n.child=T,Gt=n,ht=null,T=!0):T=!1}T||ja(n)}if(S=n.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return wd(S)?n.lanes=32:n.lanes=536870912,null;vr(n)}return S=o.children,o=o.fallback,u?(Ir(),u=n.mode,S=Pl({mode:"hidden",children:S},u),o=Oa(o,u,a,null),S.return=n,o.return=n,S.sibling=o,n.child=S,u=n.child,u.memoizedState=Vf(a),u.childLanes=Bf(e,b,a),n.memoizedState=Lf,o):(Fr(n),Hf(n,S))}if(T=e.memoizedState,T!==null&&(S=T.dehydrated,S!==null)){if(d)n.flags&256?(Fr(n),n.flags&=-257,n=qf(e,n,a)):n.memoizedState!==null?(Ir(),n.child=e.child,n.flags|=128,n=null):(Ir(),u=o.fallback,S=n.mode,o=Pl({mode:"visible",children:o.children},S),u=Oa(u,S,a,null),u.flags|=2,o.return=n,u.return=n,o.sibling=u,n.child=o,Os(n,e.child,null,a),o=n.child,o.memoizedState=Vf(a),o.childLanes=Bf(e,b,a),n.memoizedState=Lf,n=u);else if(Fr(n),wd(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var V=b.dgst;b=V,o=Error(i(419)),o.stack="",o.digest=b,Mi({value:o,source:null,stack:null}),n=qf(e,n,a)}else if(Ot||Ni(e,n,a,!1),b=(a&e.childLanes)!==0,Ot||b){if(b=ct,b!==null&&(o=a&-a,o=(o&42)!==0?1:wu(o),o=(o&(b.suspendedLanes|a))!==0?0:o,o!==0&&o!==T.retryLane))throw T.retryLane=o,ys(e,o),cn(b,e,o),Lv;S.data==="$?"||id(),n=qf(e,n,a)}else S.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,ht=Mn(S.nextSibling),Gt=n,et=!0,Da=null,Gn=!1,e!==null&&(yn[bn++]=fr,yn[bn++]=dr,yn[bn++]=Ma,fr=e.id,dr=e.overflow,Ma=n),n=Hf(n,o.children),n.flags|=4096);return n}return u?(Ir(),u=o.fallback,S=n.mode,T=e.child,V=T.sibling,o=ur(T,{mode:"hidden",children:o.children}),o.subtreeFlags=T.subtreeFlags&65011712,V!==null?u=ur(V,u):(u=Oa(u,S,a,null),u.flags|=2),u.return=n,o.return=n,o.sibling=u,n.child=o,o=u,u=n.child,S=e.child.memoizedState,S===null?S=Vf(a):(T=S.cachePool,T!==null?(V=_t._currentValue,T=T.parent!==V?{parent:V,pool:V}:T):T=jp(),S={baseLanes:S.baseLanes|a,cachePool:T}),u.memoizedState=S,u.childLanes=Bf(e,b,a),n.memoizedState=Lf,o):(Fr(n),a=e.child,e=a.sibling,a=ur(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=a,n.memoizedState=null,a)}function Hf(e,n){return n=Pl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Pl(e,n){return e=rn(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function qf(e,n,a){return Os(n,e.child,null,a),e=Hf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Qv(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),sf(e.return,n,a)}function Gf(e,n,a,o,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:u}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=a,d.tailMode=u)}function Xv(e,n,a){var o=n.pendingProps,u=o.revealOrder,d=o.tail;if(Dt(e,n,o.children,a),o=wt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qv(e,a,n);else if(e.tag===19)Qv(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(ee(wt,o),u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&jl(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Gf(n,!1,u,a,d);break;case"backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&jl(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Gf(n,!0,a,null,d);break;case"together":Gf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Kr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ni(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=ur(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ur(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Ff(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&gl(e)))}function n1(e,n,a){switch(n.tag){case 3:Te(n,n.stateNode.containerInfo),Vr(n,_t,e.memoizedState.cache),Oi();break;case 27:case 5:He(n);break;case 4:Te(n,n.stateNode.containerInfo);break;case 10:Vr(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Fr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Yv(e,n,a):(Fr(n),e=gr(e,n,a),e!==null?e.sibling:null);Fr(n);break;case 19:var u=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(Ni(e,n,a,!1),o=(a&n.childLanes)!==0),u){if(o)return Xv(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(wt,wt.current),o)break;return null;case 22:case 23:return n.lanes=0,qv(e,n,a);case 24:Vr(n,_t,e.memoizedState.cache)}return gr(e,n,a)}function Kv(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Ot=!0;else{if(!Ff(e,a)&&(n.flags&128)===0)return Ot=!1,n1(e,n,a);Ot=(e.flags&131072)!==0}else Ot=!1,et&&(n.flags&1048576)!==0&&Tp(n,vl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,u=o._init;if(o=u(o._payload),n.type=o,typeof o=="function")Wu(o)?(e=La(o,e),n.tag=1,n=Iv(null,n,o,e,a)):(n.tag=0,n=Pf(null,n,o,e,a));else{if(o!=null){if(u=o.$$typeof,u===k){n.tag=11,n=Vv(null,n,o,e,a);break e}else if(u===F){n.tag=14,n=Bv(null,n,o,e,a);break e}}throw n=ce(o)||o,Error(i(306,n,""))}}return n;case 0:return Pf(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,u=La(o,n.pendingProps),Iv(e,n,o,u,a);case 3:e:{if(Te(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var d=n.memoizedState;u=d.element,hf(e,n),Li(n,o,null,a);var b=n.memoizedState;if(o=b.cache,Vr(n,_t,o),o!==d.cache&&of(n,[_t],a,!0),Pi(),o=b.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Zv(e,n,o,a);break e}else if(o!==u){u=vn(Error(i(424)),n),Mi(u),n=Zv(e,n,o,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=Mn(e.firstChild),Gt=n,et=!0,Da=null,Gn=!0,a=Rv(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Oi(),o===u){n=gr(e,n,a);break e}Dt(e,n,o,a)}n=n.child}return n;case 26:return Ul(e,n),e===null?(a=ey(n.type,null,n.pendingProps,null))?n.memoizedState=a:et||(a=n.type,e=n.pendingProps,o=$l(_e.current).createElement(a),o[Lt]=n,o[Kt]=e,kt(o,a,e),Rt(o),n.stateNode=o):n.memoizedState=ey(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return He(n),e===null&&et&&(o=n.stateNode=$g(n.type,n.pendingProps,_e.current),Gt=n,Gn=!0,u=ht,ea(n.type)?(Ed=u,ht=Mn(o.firstChild)):ht=u),Dt(e,n,n.pendingProps.children,a),Ul(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&et&&((u=o=ht)&&(o=M1(o,n.type,n.pendingProps,Gn),o!==null?(n.stateNode=o,Gt=n,ht=Mn(o.firstChild),Gn=!1,u=!0):u=!1),u||ja(n)),He(n),u=n.type,d=n.pendingProps,b=e!==null?e.memoizedProps:null,o=d.children,xd(u,d)?o=null:b!==null&&xd(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=bf(e,n,Qw,null,null,a),io._currentValue=u),Ul(e,n),Dt(e,n,o,a),n.child;case 6:return e===null&&et&&((e=a=ht)&&(a=N1(a,n.pendingProps,Gn),a!==null?(n.stateNode=a,Gt=n,ht=null,e=!0):e=!1),e||ja(n)),null;case 13:return Yv(e,n,a);case 4:return Te(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Os(n,null,o,a):Dt(e,n,o,a),n.child;case 11:return Vv(e,n,n.type,n.pendingProps,a);case 7:return Dt(e,n,n.pendingProps,a),n.child;case 8:return Dt(e,n,n.pendingProps.children,a),n.child;case 12:return Dt(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,Vr(n,n.type,o.value),Dt(e,n,o.children,a),n.child;case 9:return u=n.type._context,o=n.pendingProps.children,za(n),u=Vt(u),o=o(u),n.flags|=1,Dt(e,n,o,a),n.child;case 14:return Bv(e,n,n.type,n.pendingProps,a);case 15:return Hv(e,n,n.type,n.pendingProps,a);case 19:return Xv(e,n,a);case 31:return o=n.pendingProps,a=n.mode,o={mode:o.mode,children:o.children},e===null?(a=Pl(o,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=ur(e.child,o),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return qv(e,n,a);case 24:return za(n),o=Vt(_t),e===null?(u=uf(),u===null&&(u=ct,d=lf(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=a),u=d),n.memoizedState={parent:o,cache:u},df(n),Vr(n,_t,u)):((e.lanes&a)!==0&&(hf(e,n),Li(n,null,null,a),Pi()),u=e.memoizedState,d=n.memoizedState,u.parent!==o?(u={parent:o,cache:o},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Vr(n,_t,o)):(o=d.cache,Vr(n,_t,o),o!==u.cache&&of(n,[_t],a,!0))),Dt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function yr(e){e.flags|=4}function $v(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sy(n)){if(n=xn.current,n!==null&&((Xe&4194048)===Xe?Fn!==null:(Xe&62914560)!==Xe&&(Xe&536870912)===0||n!==Fn))throw zi=ff,kp;e.flags|=8192}}function Ll(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Om():536870912,e.lanes|=n,js|=n)}function Ii(e,n){if(!et)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ft(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function r1(e,n,a){var o=n.pendingProps;switch(nf(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(n),null;case 1:return ft(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),mr(_t),$e(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ri(n)?yr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Op())),ft(n),null;case 26:return a=n.memoizedState,e===null?(yr(n),a!==null?(ft(n),$v(n,a)):(ft(n),n.flags&=-16777217)):a?a!==e.memoizedState?(yr(n),ft(n),$v(n,a)):(ft(n),n.flags&=-16777217):(e.memoizedProps!==o&&yr(n),ft(n),n.flags&=-16777217),null;case 27:Ye(n),a=_e.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&yr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ft(n),null}e=ue.current,Ri(n)?Ap(n):(e=$g(u,o,a),n.stateNode=e,yr(n))}return ft(n),null;case 5:if(Ye(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&yr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ft(n),null}if(e=ue.current,Ri(n))Ap(n);else{switch(u=$l(_e.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="