import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./product-api.service-BCmn_jbQ.js";import{d as Xw,M as Kw,r as $w}from"./message.service-DcR3euAR.js";function Jw(n,a){for(var i=0;is[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var fd={exports:{}},Ws={};/** * @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 Gg;function Ww(){if(Gg)return Ws;Gg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:c}}return Ws.Fragment=a,Ws.jsx=i,Ws.jsxs=i,Ws}var Fg;function e1(){return Fg||(Fg=1,fd.exports=Ww()),fd.exports}var y=e1(),Rl=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(){}},Hr=typeof window>"u"||"Deno"in globalThis;function Wt(){}function t1(n,a){return typeof n=="function"?n(a):n}function kd(n){return typeof n=="number"&&n>=0&&n!==1/0}function lb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ir(n,a){return typeof n=="function"?n(a):n}function wn(n,a){return typeof n=="function"?n(a):n}function Zg(n,a){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:d,stale:h}=n;if(d){if(s){if(a.queryHash!==fh(d,a.options))return!1}else if(!cl(a.queryKey,d))return!1}if(i!=="all"){const p=a.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||o&&o!==a.state.fetchStatus||c&&!c(a))}function Ig(n,a){const{exact:i,status:s,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(i){if(ul(a.options.mutationKey)!==ul(c))return!1}else if(!cl(a.options.mutationKey,c))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function fh(n,a){return(a?.queryKeyHashFn||ul)(n)}function ul(n){return JSON.stringify(n,(a,i)=>Ud(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function cl(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(i=>cl(n[i],a[i])):!1}function ob(n,a){if(n===a)return n;const i=Yg(n)&&Yg(a);if(i||Ud(n)&&Ud(a)){const s=i?n:Object.keys(n),o=s.length,c=i?a:Object.keys(a),d=c.length,h=i?[]:{},p=new Set(s);let m=0;for(let g=0;g{setTimeout(a,n)})}function Ld(n,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,a):i.structuralSharing!==!1?ob(n,a):a}function a1(n,a,i=0){const s=[...n,a];return i&&s.length>i?s.slice(1):s}function r1(n,a,i=0){const s=[a,...n];return i&&s.length>i?s.slice(0,-1):s}var dh=Symbol();function ub(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===dh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function i1(n,a){return typeof n=="function"?n(...a):!!n}var s1=class extends Rl{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!Hr&&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"}},hh=new s1,l1=class extends Rl{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!Hr&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}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(i=>{i(n)}))}isOnline(){return this.#t}},uu=new l1;function Vd(){let n,a;const i=new Promise((o,c)=>{n=o,a=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),a(o)},i}function o1(n){return Math.min(1e3*2**n,3e4)}function cb(n){return(n??"online")==="online"?uu.isOnline():!0}var fb=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function db(n){let a=!1,i=0,s;const o=Vd(),c=()=>o.status!=="pending",d=_=>{c()||(w(new fb(_)),n.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>hh.isFocused()&&(n.networkMode==="always"||uu.isOnline())&&n.canRun(),g=()=>cb(n.networkMode)&&n.canRun(),S=_=>{c()||(s?.(),o.resolve(_))},w=_=>{c()||(s?.(),o.reject(_))},O=()=>new Promise(_=>{s=T=>{(c()||m())&&_(T)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),A=()=>{if(c())return;let _;const T=i===0?n.initialPromise:void 0;try{_=T??n.fn()}catch(k){_=Promise.reject(k)}Promise.resolve(_).then(S).catch(k=>{if(c())return;const M=n.retry??(Hr?0:3),U=n.retryDelay??o1,G=typeof U=="function"?U(i,k):U,N=M===!0||typeof M=="number"&&im()?void 0:O()).then(()=>{a?w(k):A()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?A():O().then(A),o)}}var u1=n=>setTimeout(n,0);function c1(){let n=[],a=0,i=h=>{h()},s=h=>{h()},o=u1;const c=h=>{a?n.push(h):o(()=>{i(h)})},d=()=>{const h=n;n=[],h.length&&o(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||d()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{o=h}}}var kt=c1(),hb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Hr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},f1=class extends hb{#t;#e;#n;#a;#r;#l;#s;constructor(n){super(),this.#s=!1,this.#l=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=d1(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.#l,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const i=Ld(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(n,a){this.#i({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>wn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ir(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:!lb(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.#s?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.#i({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 i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const h=ub(this.options,a),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#s=!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:o};return s(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=db({initialPromise:a?.initialPromise,fn:d.fetchFn,abort:i.abort.bind(i),onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({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 fb){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.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...mb(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.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?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),kt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function mb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function d1(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,i=a!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var h1=class extends Rl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,i){const s=a.queryKey,o=a.queryHash??fh(s,a);let c=this.get(o);return c||(c=new f1({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}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(){kt.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(i=>Zg(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>Zg(n,i)):a}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},m1=class extends hb{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||p1(),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=db({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#a({type:"failed",failureCount:o,error:c})},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 i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)a();else{this.#a({type:"pending",variables:n,isPaused:s}),await this.#e.config.onMutate?.(n,this);const c=await this.options.onMutate?.(n);c!==this.state.context&&this.#a({type:"pending",context:c,variables:n,isPaused:s})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#e.runNext(this)}}#a(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),kt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function p1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var v1=class extends Rl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,i){const s=new m1({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:i});return this.add(s),s}add(n){this.#t.add(n);const a=Qo(n);if(typeof a=="string"){const i=this.#e.get(a);i?i.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=Qo(n);if(typeof a=="string"){const i=this.#e.get(a);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Qo(n);if(typeof a=="string"){const s=this.#e.get(a)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const a=Qo(n);return typeof a=="string"?this.#e.get(a)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){kt.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(i=>Ig(a,i))}findAll(n={}){return this.getAll().filter(a=>Ig(n,a))}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return kt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Wt))))}};function Qo(n){return n.options.scope?.id}function Xg(n){return{onFetch:(a,i)=>{const s=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const S=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(a.signal.aborted?g=!0:a.signal.addEventListener("abort",()=>{g=!0}),a.signal)})},w=ub(a.options,a.fetchOptions),O=async(A,_,T)=>{if(g)return Promise.reject();if(_==null&&A.pages.length)return Promise.resolve(A);const M=(()=>{const W={client:a.client,queryKey:a.queryKey,pageParam:_,direction:T?"backward":"forward",meta:a.options.meta};return S(W),W})(),U=await w(M),{maxPages:G}=a.options,N=T?r1:a1;return{pages:N(A.pages,U,G),pageParams:N(A.pageParams,_,G)}};if(o&&c.length){const A=o==="backward",_=A?g1:Kg,T={pages:c,pageParams:d},k=_(s,T);h=await O(T,k,A)}else{const A=n??c.length;do{const _=p===0?d[0]??s.initialPageParam:Kg(s,h);if(p>0&&_==null)break;h=await O(h,_),p++}while(pa.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=m}}}function Kg(n,{pages:a,pageParams:i}){const s=a.length-1;return a.length>0?n.getNextPageParam(a[s],a,i[s],i):void 0}function g1(n,{pages:a,pageParams:i}){return a.length>0?n.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var y1=class{#t;#e;#n;#a;#r;#l;#s;#i;constructor(n={}){this.#t=n.queryCache||new h1,this.#e=n.mutationCache||new v1,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=hh.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=uu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=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),i=this.#t.build(this,a),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(ir(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:i})=>{const s=i.data;return[a,s]})}setQueryData(n,a,i){const s=this.defaultQueryOptions({queryKey:n}),c=this.#t.get(s.queryHash)?.state.data,d=t1(a,c);if(d!==void 0)return this.#t.build(this,s).setData(d,{...i,manual:!0})}setQueriesData(n,a,i){return kt.batch(()=>this.#t.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,a,i)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;kt.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(n,a){const i=this.#t;return kt.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const i={revert:!0,...a},s=kt.batch(()=>this.#t.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(Wt).catch(Wt)}invalidateQueries(n,a={}){return kt.batch(()=>(this.#t.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},s=kt.batch(()=>this.#t.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Wt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Wt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const i=this.#t.build(this,a);return i.isStaleByTime(ir(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Wt).catch(Wt)}fetchInfiniteQuery(n){return n.behavior=Xg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Wt).catch(Wt)}ensureInfiniteQueryData(n){return n.behavior=Xg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return uu.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(ul(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],i={};return a.forEach(s=>{cl(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,a){this.#r.set(ul(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#r.values()],i={};return a.forEach(s=>{cl(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=fh(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===dh&&(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()}},b1=class extends Rl{constructor(n,a){super(),this.options=a,this.#t=n,this.#i=null,this.#s=Vd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#l;#s;#i;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),$g(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bd(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bd(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,i=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 wn(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&&!zd(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&Jg(this.#e,i,this.options,a)&&this.#f(),this.updateResult(),s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||ir(this.options.staleTime,this.#e)!==ir(a.staleTime,this.#e))&&this.#v();const o=this.#g();s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||o!==this.#o)&&this.#y(o)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),i=this.createResult(a,n);return S1(this,i)&&(this.#a=i,this.#l=this.options,this.#r=this.#e.state),i}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),a?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),i=this.#t.getQueryCache().build(this.#t,a);return i.fetch().then(()=>this.createResult(i,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(Wt)),a}#v(){this.#x();const n=ir(this.options.staleTime,this.#e);if(Hr||this.#a.isStale||!kd(n))return;const i=lb(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(Hr||wn(this.options.enabled,this.#e)===!1||!kd(this.#o)||this.#o===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||hh.isFocused())&&this.#f()},this.#o))}#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 i=this.#e,s=this.options,o=this.#a,c=this.#r,d=this.#l,p=n!==i?n.state:this.#n,{state:m}=n;let g={...m},S=!1,w;if(a._optimisticResults){const Z=this.hasListeners(),J=!Z&&$g(n,a),le=Z&&Jg(n,i,a,s);(J||le)&&(g={...g,...mb(m.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:O,errorUpdatedAt:A,status:_}=g;w=g.data;let T=!1;if(a.placeholderData!==void 0&&w===void 0&&_==="pending"){let Z;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(Z=o.data,T=!0):Z=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,Z!==void 0&&(_="success",w=Ld(o?.data,Z,a),S=!0)}if(a.select&&w!==void 0&&!T)if(o&&w===c?.data&&a.select===this.#p)w=this.#d;else try{this.#p=a.select,w=a.select(w),w=Ld(o?.data,w,a),this.#d=w,this.#i=null}catch(Z){this.#i=Z}this.#i&&(O=this.#i,w=this.#d,A=Date.now(),_="error");const k=g.fetchStatus==="fetching",M=_==="pending",U=_==="error",G=M&&k,N=w!==void 0,F={status:_,fetchStatus:g.fetchStatus,isPending:M,isSuccess:_==="success",isError:U,isInitialLoading:G,isLoading:G,data:w,dataUpdatedAt:g.dataUpdatedAt,error:O,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:k,isRefetching:k&&!M,isLoadingError:U&&!N,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:U&&N,isStale:mh(n,a),refetch:this.refetch,promise:this.#s,isEnabled:wn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Z=ce=>{F.status==="error"?ce.reject(F.error):F.data!==void 0&&ce.resolve(F.data)},J=()=>{const ce=this.#s=F.promise=Vd();Z(ce)},le=this.#s;switch(le.status){case"pending":n.queryHash===i.queryHash&&Z(le);break;case"fulfilled":(F.status==="error"||F.data!==le.value)&&J();break;case"rejected":(F.status!=="error"||F.error!==le.reason)&&J();break}}return F}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#l=this.options,this.#r.data!==void 0&&(this.#h=this.#e),zd(a,n))return;this.#a=a;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&c.has(h)})};this.#w({listeners:i()})}#_(){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){kt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function x1(n,a){return wn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function $g(n,a){return x1(n,a)||n.state.data!==void 0&&Bd(n,a,a.refetchOnMount)}function Bd(n,a,i){if(wn(a.enabled,n)!==!1&&ir(a.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&mh(n,a)}return!1}function Jg(n,a,i,s){return(n!==a||wn(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&mh(n,i)}function mh(n,a){return wn(a.enabled,n)!==!1&&n.isStaleByTime(ir(a.staleTime,n))}function S1(n,a){return!zd(n.getCurrentResult(),a)}var dd={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 Wg;function _1(){if(Wg)return Ue;Wg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=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"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,_={};function T(C,I,ie){this.props=C,this.context=I,this.refs=_,this.updater=ie||O}T.prototype.isReactComponent={},T.prototype.setState=function(C,I){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,I,"setState")},T.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function k(){}k.prototype=T.prototype;function M(C,I,ie){this.props=C,this.context=I,this.refs=_,this.updater=ie||O}var U=M.prototype=new k;U.constructor=M,A(U,T.prototype),U.isPureReactComponent=!0;var G=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},W=Object.prototype.hasOwnProperty;function F(C,I,ie,te,oe,Re){return ie=Re.ref,{$$typeof:n,type:C,key:I,ref:ie!==void 0?ie:null,props:Re}}function Z(C,I){return F(C.type,I,void 0,void 0,void 0,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function le(C){var I={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ie){return I[ie]})}var ce=/\/+/g;function re(C,I){return typeof C=="object"&&C!==null&&C.key!=null?le(""+C.key):I.toString(36)}function he(){}function pe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(he,he):(C.status="pending",C.then(function(I){C.status==="pending"&&(C.status="fulfilled",C.value=I)},function(I){C.status==="pending"&&(C.status="rejected",C.reason=I)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ge(C,I,ie,te,oe){var Re=typeof C;(Re==="undefined"||Re==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(Re){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case n:case a:Se=!0;break;case g:return Se=C._init,ge(Se(C._payload),I,ie,te,oe)}}if(Se)return oe=oe(C),Se=te===""?"."+re(C,0):te,G(oe)?(ie="",Se!=null&&(ie=Se.replace(ce,"$&/")+"/"),ge(oe,I,ie,"",function(Xe){return Xe})):oe!=null&&(J(oe)&&(oe=Z(oe,ie+(oe.key==null||C&&C.key===oe.key?"":(""+oe.key).replace(ce,"$&/")+"/")+Se)),I.push(oe)),1;Se=0;var ne=te===""?".":te+":";if(G(C))for(var Te=0;Te{const a=b.useContext(vb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},E1=({client:n,children:a})=>(b.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),y.jsx(vb.Provider,{value:n,children:a})),gb=b.createContext(!1),C1=()=>b.useContext(gb);gb.Provider;function T1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var A1=b.createContext(T1()),R1=()=>b.useContext(A1),O1=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},M1=n=>{b.useEffect(()=>{n.clearReset()},[n])},N1=({result:n,errorResetBoundary:a,throwOnError:i,query:s,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||i1(i,[n.error,s])),D1=n=>{if(n.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...s)=>a(i(...s)):a(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},j1=(n,a)=>n.isLoading&&n.isFetching&&!a,k1=(n,a)=>n?.suspense&&a.isPending,ty=(n,a,i)=>a.fetchOptimistic(n).catch(()=>{i.clearReset()});function z1(n,a,i){const s=C1(),o=R1(),c=w1(),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",D1(d),O1(d,o),M1(o);const h=!c.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new a(c,d)),m=p.getOptimisticResult(d),g=!s&&n.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const w=g?p.subscribe(kt.batchCalls(S)):Wt;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),k1(d,m))throw ty(d,p,o);if(N1({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!Hr&&j1(m,s)&&(h?ty(d,p,o):c.getQueryCache().get(d.queryHash)?.promise)?.catch(Wt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Hd(n,a){return z1(n,b1)}const U1=new y1({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var hd={exports:{}},el={},md={exports:{}},pd={};/** * @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 ny;function L1(){return ny||(ny=1,(function(n){function a(j,Y){var H=j.length;j.push(Y);e:for(;0>>1,C=j[ee];if(0>>1;eeo(te,H))oeo(Re,te)?(j[ee]=Re,j[oe]=H,ee=oe):(j[ee]=te,j[ie]=H,ee=ie);else if(oeo(Re,H))j[ee]=Re,j[oe]=H,ee=oe;else break e}}return Y}function o(j,Y){var H=j.sortIndex-Y.sortIndex;return H!==0?H:j.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,S=null,w=3,O=!1,A=!1,_=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(j){for(var Y=i(m);Y!==null;){if(Y.callback===null)s(m);else if(Y.startTime<=j)s(m),Y.sortIndex=Y.expirationTime,a(p,Y);else break;Y=i(m)}}function N(j){if(_=!1,G(j),!A)if(i(p)!==null)A=!0,W||(W=!0,re());else{var Y=i(m);Y!==null&&ge(N,Y.startTime-j)}}var W=!1,F=-1,Z=5,J=-1;function le(){return T?!0:!(n.unstable_now()-Jj&&le());){var ee=S.callback;if(typeof ee=="function"){S.callback=null,w=S.priorityLevel;var C=ee(S.expirationTime<=j);if(j=n.unstable_now(),typeof C=="function"){S.callback=C,G(j),Y=!0;break t}S===i(p)&&s(p),G(j)}else s(p);S=i(p)}if(S!==null)Y=!0;else{var I=i(m);I!==null&&ge(N,I.startTime-j),Y=!1}}break e}finally{S=null,w=H,O=!1}Y=void 0}}finally{Y?re():W=!1}}}var re;if(typeof U=="function")re=function(){U(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,pe=he.port2;he.port1.onmessage=ce,re=function(){pe.postMessage(null)}}else re=function(){k(ce,0)};function ge(j,Y){F=k(function(){j(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(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125ee?(j.sortIndex=H,a(m,j),i(p)===null&&j===i(m)&&(_?(M(F),F=-1):_=!0,ge(N,H-ee))):(j.sortIndex=C,a(p,j),A||O||(A=!0,W||(W=!0,re()))),j},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(j){var Y=w;return function(){var H=w;w=Y;try{return j.apply(this,arguments)}finally{w=H}}}})(pd)),pd}var ay;function V1(){return ay||(ay=1,md.exports=L1()),md.exports}var vd={exports:{}},Vt={};/** * @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 ry;function B1(){if(ry)return Vt;ry=1;var n=ph();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(),vd.exports=B1(),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 sy;function H1(){if(sy)return el;sy=1;var n=V1(),a=ph(),i=yb();function s(e){var t="https://react.dev/errors/"+e;if(1C||(e.current=ee[C],ee[C]=null,C--)}function te(e,t){C++,ee[C]=e.current,e.current=t}var oe=I(null),Re=I(null),Se=I(null),ne=I(null);function Te(e,t){switch(te(Se,t),te(Re,e),te(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gg(t),e=yg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(oe),te(oe,e)}function Xe(){ie(oe),ie(Re),ie(Se)}function He(e){e.memoizedState!==null&&te(ne,e);var t=oe.current,r=yg(t,e.type);t!==r&&(te(Re,e),te(oe,r))}function Ze(e){Re.current===e&&(ie(oe),ie(Re)),ne.current===e&&(ie(ne),Qs._currentValue=H)}var Ke=Object.prototype.hasOwnProperty,Tt=n.unstable_scheduleCallback,It=n.unstable_cancelCallback,Na=n.unstable_shouldYield,vr=n.unstable_requestPaint,zt=n.unstable_now,Wh=n.unstable_getCurrentPriorityLevel,as=n.unstable_ImmediatePriority,R=n.unstable_UserBlockingPriority,B=n.unstable_NormalPriority,X=n.unstable_LowPriority,me=n.unstable_IdlePriority,ue=n.log,se=n.unstable_setDisableYieldValue,_e=null,ke=null;function Ie(e){if(typeof ue=="function"&&se(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var ot=Math.clz32?Math.clz32:Ju,$r=Math.log,Ln=Math.LN2;function Ju(e){return e>>>=0,e===0?32:31-($r(e)/Ln|0)|0}var Da=256,ja=4194304;function aa(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 gr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~f,l!==0?u=aa(l):(v&=x,v!==0?u=aa(v):r||(r=x&~e,r!==0&&(u=aa(r))))):(x=l&~f,x!==0?u=aa(x):v!==0?u=aa(v):r||(r=l&~e,r!==0&&(u=aa(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function yr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ul(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 em(){var e=Da;return Da<<=1,(Da&4194048)===0&&(Da=256),e}function tm(){var e=ja;return ja<<=1,(ja&62914560)===0&&(ja=4194304),e}function Wu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function rs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function LS(e,t,r,l,u,f){var v=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 x=e.entanglements,E=e.expirationTimes,V=e.hiddenUpdates;for(r=v&~r;0)":-1u||E[l]!==V[u]){var Q=` `+E[l].replace(" at new "," at ");return e.displayName&&Q.includes("")&&(Q=Q.replace("",e.displayName)),Q}while(1<=l&&0<=u);break}}}finally{ic=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ai(r):""}function GS(e){switch(e.tag){case 26:case 27:case 5:return ai(e.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 15:return sc(e.type,!1);case 11:return sc(e.type.render,!1);case 1:return sc(e.type,!0);case 31:return ai("Activity");default:return""}}function fm(e){try{var t="";do t+=GS(e),e=e.return;while(e);return t}catch(r){return` Error generating stack: `+r.message+` `+r.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 dm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FS(e){var t=dm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(v){l=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=FS(e))}function hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=dm(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function Hl(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 ZS=/[\n"\\]/g;function pn(e){return e.replace(ZS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lc(e,t,r,l,u,f,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?oc(e,v,mn(t)):r!=null?oc(e,v,mn(r)):l!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+mn(x):e.removeAttribute("name")}function mm(e,t,r,l,u,f,v,x){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?""+mn(r):"",t=t!=null?""+mn(t):r,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function oc(e,t,r){t==="number"&&Hl(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ri(e,t,r,l){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=!1;if(ia)try{var os={};Object.defineProperty(os,"passive",{get:function(){hc=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{hc=!1}var za=null,mc=null,ql=null;function Sm(){if(ql)return ql;var e,t=mc,r=t.length,l,u="value"in za?za.value:za.textContent,f=u.length;for(e=0;e=fs),Am=" ",Rm=!1;function Om(e,t){switch(e){case"keyup":return b_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function S_(e,t){switch(e){case"compositionend":return Mm(t);case"keypress":return t.which!==32?null:(Rm=!0,Am);case"textInput":return e=t.data,e===Am&&Rm?null:e;default:return null}}function __(e,t){if(oi)return e==="compositionend"||!bc&&Om(e,t)?(e=Sm(),ql=mc=za=null,oi=!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=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Vm(r)}}function Hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hl(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=Hl(e.document)}return t}function _c(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 M_=ia&&"documentMode"in document&&11>=document.documentMode,ui=null,wc=null,ps=null,Ec=!1;function qm(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ec||ui==null||ui!==Hl(l)||(l=ui,"selectionStart"in l&&_c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ps&&ms(ps,l)||(ps=l,l=jo(wc,"onSelect"),0>=v,u-=v,la=1<<32-ot(t)+u|r<f?f:8;var v=j.T,x={};j.T=x,cf(e,!1,t,r);try{var E=u(),V=j.S;if(V!==null&&V(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var Q=B_(E,l);Ms(e,t,Q,sn(e))}else Ms(e,t,l,sn(e))}catch($){Ms(e,t,{then:function(){},status:"rejected",reason:$},sn())}finally{Y.p=f,j.T=v}}function F_(){}function of(e,t,r,l){if(e.tag!==5)throw Error(s(476));var u=Gp(e).queue;qp(e,u,t,H,r===null?F_:function(){return Fp(e),r(l)})}function Gp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:H},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fp(e){var t=Gp(e).next.queue;Ms(e,t,{},sn())}function uf(){return Lt(Qs)}function Zp(){return xt().memoizedState}function Ip(){return xt().memoizedState}function Z_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=sn();e=Va(r);var l=Ba(t,e,r);l!==null&&(ln(l,t,r),Es(l,t,r)),t={cache:Vc()},e.payload=t;return}t=t.return}}function I_(e,t,r){var l=sn();r={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)?Qp(t,r):(r=Rc(e,t,r,l),r!==null&&(ln(r,e,l),Xp(r,t,l)))}function Yp(e,t,r){var l=sn();Ms(e,t,r,l)}function Ms(e,t,r,l){var u={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(ho(e))Qp(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,x=f(v,r);if(u.hasEagerState=!0,u.eagerState=x,en(x,v))return Xl(e,t,u,0),ut===null&&Ql(),!1}catch{}finally{}if(r=Rc(e,t,u,l),r!==null)return ln(r,e,l),Xp(r,t,l),!0}return!1}function cf(e,t,r,l){if(l={lane:2,revertLane:qf(),action:l,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(s(479))}else t=Rc(e,r,l,2),t!==null&&ln(t,e,2)}function ho(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Qp(e,t){bi=so=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Xp(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,am(e,r)}}var mo={readContext:Lt,use:oo,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},Kp={readContext:Lt,use:oo,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:jp,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,fo(4194308,4,Lp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fo(4194308,4,e,t)},useInsertionEffect:function(e,t){fo(4,2,e,t)},useMemo:function(e,t){var r=Xt();t=t===void 0?null:t;var l=e();if(Nr){Ie(!0);try{e()}finally{Ie(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Xt();if(r!==void 0){var u=r(t);if(Nr){Ie(!0);try{r(t)}finally{Ie(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=I_.bind(null,Ve,e),[l.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=af(e);var t=e.queue,r=Yp.bind(null,Ve,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:sf,useDeferredValue:function(e,t){var r=Xt();return lf(r,e,t)},useTransition:function(){var e=af(!1);return e=qp.bind(null,Ve,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=Ve,u=Xt();if(Je){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),ut===null)throw Error(s(349));(Ye&124)!==0||gp(l,t,r)}u.memoizedState=r;var f={value:r,getSnapshot:t};return u.queue=f,jp(bp.bind(null,l,f,e),[e]),l.flags|=2048,Si(9,co(),yp.bind(null,l,f,r,t),null),r},useId:function(){var e=Xt(),t=ut.identifierPrefix;if(Je){var r=oa,l=la;r=(l&~(1<<32-ot(l)-1)).toString(32)+r,t="«"+t+"R"+r,r=lo++,0Oe?(Mt=Ce,Ce=null):Mt=Ce.sibling;var $e=P(z,Ce,L[Oe],K);if($e===null){Ce===null&&(Ce=Mt);break}e&&Ce&&$e.alternate===null&&t(z,Ce),D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e,Ce=Mt}if(Oe===L.length)return r(z,Ce),Je&&Cr(z,Oe),ye;if(Ce===null){for(;OeOe?(Mt=Ce,Ce=null):Mt=Ce.sibling;var nr=P(z,Ce,$e.value,K);if(nr===null){Ce===null&&(Ce=Mt);break}e&&Ce&&nr.alternate===null&&t(z,Ce),D=f(nr,D,Oe),Pe===null?ye=nr:Pe.sibling=nr,Pe=nr,Ce=Mt}if($e.done)return r(z,Ce),Je&&Cr(z,Oe),ye;if(Ce===null){for(;!$e.done;Oe++,$e=L.next())$e=$(z,$e.value,K),$e!==null&&(D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e);return Je&&Cr(z,Oe),ye}for(Ce=l(Ce);!$e.done;Oe++,$e=L.next())$e=q(Ce,z,Oe,$e.value,K),$e!==null&&(e&&$e.alternate!==null&&Ce.delete($e.key===null?Oe:$e.key),D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e);return e&&Ce.forEach(function(Qw){return t(z,Qw)}),Je&&Cr(z,Oe),ye}function st(z,D,L,K){if(typeof L=="object"&&L!==null&&L.type===A&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case w:e:{for(var ye=L.key;D!==null;){if(D.key===ye){if(ye=L.type,ye===A){if(D.tag===7){r(z,D.sibling),K=u(D,L.props.children),K.return=z,z=K;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Z&&Jp(ye)===D.type){r(z,D.sibling),K=u(D,L.props),Ds(K,L),K.return=z,z=K;break e}r(z,D);break}else t(z,D);D=D.sibling}L.type===A?(K=wr(L.props.children,z.mode,K,L.key),K.return=z,z=K):(K=$l(L.type,L.key,L.props,null,z.mode,K),Ds(K,L),K.return=z,z=K)}return v(z);case O:e:{for(ye=L.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){r(z,D.sibling),K=u(D,L.children||[]),K.return=z,z=K;break e}else{r(z,D);break}else t(z,D);D=D.sibling}K=Nc(L,z.mode,K),K.return=z,z=K}return v(z);case Z:return ye=L._init,L=ye(L._payload),st(z,D,L,K)}if(ge(L))return De(z,D,L,K);if(re(L)){if(ye=re(L),typeof ye!="function")throw Error(s(150));return L=ye.call(L),Ae(z,D,L,K)}if(typeof L.then=="function")return st(z,D,po(L),K);if(L.$$typeof===U)return st(z,D,to(z,L),K);vo(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(r(z,D.sibling),K=u(D,L),K.return=z,z=K):(r(z,D),K=Mc(L,z.mode,K),K.return=z,z=K),v(z)):r(z,D)}return function(z,D,L,K){try{Ns=0;var ye=st(z,D,L,K);return _i=null,ye}catch(Ce){if(Ce===_s||Ce===ao)throw Ce;var Pe=tn(29,Ce,null,z.mode);return Pe.lanes=K,Pe.return=z,Pe}finally{}}}var wi=Wp(!0),ev=Wp(!1),xn=I(null),Bn=null;function Pa(e){var t=e.alternate;te(wt,wt.current&1),te(xn,e),Bn===null&&(t===null||yi.current!==null||t.memoizedState!==null)&&(Bn=e)}function tv(e){if(e.tag===22){if(te(wt,wt.current),te(xn,e),Bn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Bn=e)}}else qa()}function qa(){te(wt,wt.current),te(xn,xn.current)}function da(e){ie(xn),Bn===e&&(Bn=null),ie(wt)}var wt=I(0);function go(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==="$?"||ed(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 ff(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:g({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var df={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Va(l);u.payload=t,r!=null&&(u.callback=r),t=Ba(e,u,l),t!==null&&(ln(t,e,l),Es(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Va(l);u.tag=1,u.payload=t,r!=null&&(u.callback=r),t=Ba(e,u,l),t!==null&&(ln(t,e,l),Es(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=sn(),l=Va(r);l.tag=2,t!=null&&(l.callback=t),t=Ba(e,l,r),t!==null&&(ln(t,e,r),Es(t,e,r))}};function nv(e,t,r,l,u,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,v):t.prototype&&t.prototype.isPureReactComponent?!ms(r,l)||!ms(u,f):!0}function av(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&df.enqueueReplaceState(t,t.state,null)}function Dr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=g({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}var yo=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 rv(e){yo(e)}function iv(e){console.error(e)}function sv(e){yo(e)}function bo(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function lv(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function hf(e,t,r){return r=Va(r),r.tag=3,r.payload={element:null},r.callback=function(){bo(e,t)},r}function ov(e){return e=Va(e),e.tag=3,e}function uv(e,t,r,l){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var f=l.value;e.payload=function(){return u(f)},e.callback=function(){lv(t,r,l)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){lv(t,r,l),typeof u!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function Q_(e,t,r,l,u){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&bs(t,r,u,!0),r=xn.current,r!==null){switch(r.tag){case 13:return Bn===null?Lf():r.alternate===null&&mt===0&&(mt=3),r.flags&=-257,r.flags|=65536,r.lanes=u,l===Pc?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),Bf(e,l,u)),!1;case 22:return r.flags|=65536,l===Pc?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),Bf(e,l,u)),!1}throw Error(s(435,r.tag))}return Bf(e,l,u),Lf(),!1}if(Je)return t=xn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==kc&&(e=Error(s(422),{cause:l}),ys(vn(e,r)))):(l!==kc&&(t=Error(s(423),{cause:l}),ys(vn(t,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=vn(l,r),u=hf(e.stateNode,l,u),Fc(e,u),mt!==4&&(mt=2)),!1;var f=Error(s(520),{cause:l});if(f=vn(f,r),Bs===null?Bs=[f]:Bs.push(f),mt!==4&&(mt=2),t===null)return!0;l=vn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=hf(r.stateNode,l,e),Fc(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"&&(Qa===null||!Qa.has(f))))return r.flags|=65536,u&=-u,r.lanes|=u,u=ov(u),uv(u,e,r,l),Fc(r,u),!1}r=r.return}while(r!==null);return!1}var cv=Error(s(461)),Rt=!1;function Nt(e,t,r,l){t.child=e===null?ev(t,null,r,l):wi(t,e.child,r,l)}function fv(e,t,r,l,u){r=r.render;var f=t.ref;if("ref"in l){var v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}else v=l;return Or(t),l=Xc(e,t,r,v,f,u),x=Kc(),e!==null&&!Rt?($c(e,t,u),ha(e,t,u)):(Je&&x&&Dc(t),t.flags|=1,Nt(e,t,l,u),t.child)}function dv(e,t,r,l,u){if(e===null){var f=r.type;return typeof f=="function"&&!Oc(f)&&f.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=f,hv(e,t,f,l,u)):(e=$l(r.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Sf(e,u)){var v=f.memoizedProps;if(r=r.compare,r=r!==null?r:ms,r(v,l)&&e.ref===t.ref)return ha(e,t,u)}return t.flags|=1,e=sa(f,l),e.ref=t.ref,e.return=t,t.child=e}function hv(e,t,r,l,u){if(e!==null){var f=e.memoizedProps;if(ms(f,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=f,Sf(e,u))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,ha(e,t,u)}return mf(e,t,r,l,u)}function mv(e,t,r){var l=t.pendingProps,u=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|r:r,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return pv(e,t,l,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&no(t,f!==null?f.cachePool:null),f!==null?hp(t,f):Ic(),tv(t);else return t.lanes=t.childLanes=536870912,pv(e,t,f!==null?f.baseLanes|r:r,r)}else f!==null?(no(t,f.cachePool),hp(t,f),qa(),t.memoizedState=null):(e!==null&&no(t,null),Ic(),qa());return Nt(e,t,u,r),t.child}function pv(e,t,r,l){var u=Hc();return u=u===null?null:{parent:_t._currentValue,pool:u},t.memoizedState={baseLanes:r,cachePool:u},e!==null&&no(t,null),Ic(),tv(t),e!==null&&bs(e,t,l,!0),null}function xo(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(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function mf(e,t,r,l,u){return Or(t),r=Xc(e,t,r,l,void 0,u),l=Kc(),e!==null&&!Rt?($c(e,t,u),ha(e,t,u)):(Je&&l&&Dc(t),t.flags|=1,Nt(e,t,r,u),t.child)}function vv(e,t,r,l,u,f){return Or(t),t.updateQueue=null,r=pp(t,l,r,u),mp(e),l=Kc(),e!==null&&!Rt?($c(e,t,f),ha(e,t,f)):(Je&&l&&Dc(t),t.flags|=1,Nt(e,t,r,f),t.child)}function gv(e,t,r,l,u){if(Or(t),t.stateNode===null){var f=hi,v=r.contextType;typeof v=="object"&&v!==null&&(f=Lt(v)),f=new r(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=df,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},qc(t),v=r.contextType,f.context=typeof v=="object"&&v!==null?Lt(v):hi,f.state=t.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(ff(t,r,v,l),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&df.enqueueReplaceState(f,f.state,null),Ts(t,l,f,u),Cs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,E=Dr(r,x);f.props=E;var V=f.context,Q=r.contextType;v=hi,typeof Q=="object"&&Q!==null&&(v=Lt(Q));var $=r.getDerivedStateFromProps;Q=typeof $=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||V!==v)&&av(t,f,l,v),La=!1;var P=t.memoizedState;f.state=P,Ts(t,l,f,u),Cs(),V=t.memoizedState,x||P!==V||La?(typeof $=="function"&&(ff(t,r,$,l),V=t.memoizedState),(E=La||nv(t,r,E,l,P,V,v))?(Q||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=l,t.memoizedState=V),f.props=l,f.state=V,f.context=v,l=E):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,Gc(e,t),v=t.memoizedProps,Q=Dr(r,v),f.props=Q,$=t.pendingProps,P=f.context,V=r.contextType,E=hi,typeof V=="object"&&V!==null&&(E=Lt(V)),x=r.getDerivedStateFromProps,(V=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==$||P!==E)&&av(t,f,l,E),La=!1,P=t.memoizedState,f.state=P,Ts(t,l,f,u),Cs();var q=t.memoizedState;v!==$||P!==q||La||e!==null&&e.dependencies!==null&&eo(e.dependencies)?(typeof x=="function"&&(ff(t,r,x,l),q=t.memoizedState),(Q=La||nv(t,r,Q,l,P,q,E)||e!==null&&e.dependencies!==null&&eo(e.dependencies))?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,q,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,q,E)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),f.props=l,f.state=q,f.context=E,l=Q):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,xo(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=wi(t,e.child,null,u),t.child=wi(t,null,r,u)):Nt(e,t,r,u),t.memoizedState=f.state,e=t.child):e=ha(e,t,u),e}function yv(e,t,r,l){return gs(),t.flags|=256,Nt(e,t,r,l),t.child}var pf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vf(e){return{baseLanes:e,cachePool:ip()}}function gf(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Sn),e}function bv(e,t,r){var l=t.pendingProps,u=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),v&&(u=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Je){if(u?Pa(t):qa(),Je){var x=ht,E;if(E=x){e:{for(E=x,x=Vn;E.nodeType!==8;){if(!x){x=null;break e}if(E=An(E.nextSibling),E===null){x=null;break e}}x=E}x!==null?(t.memoizedState={dehydrated:x,treeContext:Er!==null?{id:la,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},E=tn(18,null,null,0),E.stateNode=x,E.return=t,t.child=E,Pt=t,ht=null,E=!0):E=!1}E||Ar(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return ed(x)?t.lanes=32:t.lanes=536870912,null;da(t)}return x=l.children,l=l.fallback,u?(qa(),u=t.mode,x=So({mode:"hidden",children:x},u),l=wr(l,u,r,null),x.return=t,l.return=t,x.sibling=l,t.child=x,u=t.child,u.memoizedState=vf(r),u.childLanes=gf(e,v,r),t.memoizedState=pf,l):(Pa(t),yf(t,x))}if(E=e.memoizedState,E!==null&&(x=E.dehydrated,x!==null)){if(f)t.flags&256?(Pa(t),t.flags&=-257,t=bf(e,t,r)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),u=l.fallback,x=t.mode,l=So({mode:"visible",children:l.children},x),u=wr(u,x,r,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,wi(t,e.child,null,r),l=t.child,l.memoizedState=vf(r),l.childLanes=gf(e,v,r),t.memoizedState=pf,t=u);else if(Pa(t),ed(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var V=v.dgst;v=V,l=Error(s(419)),l.stack="",l.digest=v,ys({value:l,source:null,stack:null}),t=bf(e,t,r)}else if(Rt||bs(e,t,r,!1),v=(r&e.childLanes)!==0,Rt||v){if(v=ut,v!==null&&(l=r&-r,l=(l&42)!==0?1:ec(l),l=(l&(v.suspendedLanes|r))!==0?0:l,l!==0&&l!==E.retryLane))throw E.retryLane=l,di(e,l),ln(v,e,l),cv;x.data==="$?"||Lf(),t=bf(e,t,r)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,ht=An(x.nextSibling),Pt=t,Je=!0,Tr=null,Vn=!1,e!==null&&(yn[bn++]=la,yn[bn++]=oa,yn[bn++]=Er,la=e.id,oa=e.overflow,Er=t),t=yf(t,l.children),t.flags|=4096);return t}return u?(qa(),u=l.fallback,x=t.mode,E=e.child,V=E.sibling,l=sa(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,V!==null?u=sa(V,u):(u=wr(u,x,r,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,x=e.child.memoizedState,x===null?x=vf(r):(E=x.cachePool,E!==null?(V=_t._currentValue,E=E.parent!==V?{parent:V,pool:V}:E):E=ip(),x={baseLanes:x.baseLanes|r,cachePool:E}),u.memoizedState=x,u.childLanes=gf(e,v,r),t.memoizedState=pf,l):(Pa(t),r=e.child,e=r.sibling,r=sa(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=r,t.memoizedState=null,r)}function yf(e,t){return t=So({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function So(e,t){return e=tn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function bf(e,t,r){return wi(t,e.child,null,r),e=yf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xv(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Uc(e.return,t,r)}function xf(e,t,r,l,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=r,f.tailMode=u)}function Sv(e,t,r){var l=t.pendingProps,u=l.revealOrder,f=l.tail;if(Nt(e,t,l.children,r),l=wt.current,(l&2)!==0)l=l&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&&xv(e,r,t);else if(e.tag===19)xv(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}l&=1}switch(te(wt,l),u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&go(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),xf(t,!1,u,r,f);break;case"backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&go(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}xf(t,!0,r,null,f);break;case"together":xf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ha(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(bs(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=sa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=sa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Sf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&eo(e)))}function X_(e,t,r){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),Ua(t,_t,e.memoizedState.cache),gs();break;case 27:case 5:He(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:Ua(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Pa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?bv(e,t,r):(Pa(t),e=ha(e,t,r),e!==null?e.sibling:null);Pa(t);break;case 19:var u=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(bs(e,t,r,!1),l=(r&t.childLanes)!==0),u){if(l)return Sv(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),te(wt,wt.current),l)break;return null;case 22:case 23:return t.lanes=0,mv(e,t,r);case 24:Ua(t,_t,e.memoizedState.cache)}return ha(e,t,r)}function _v(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!Sf(e,r)&&(t.flags&128)===0)return Rt=!1,X_(e,t,r);Rt=(e.flags&131072)!==0}else Rt=!1,Je&&(t.flags&1048576)!==0&&Jm(t,Wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")Oc(l)?(e=Dr(l,e),t.tag=1,t=gv(null,t,l,e,r)):(t.tag=0,t=mf(null,t,l,e,r));else{if(l!=null){if(u=l.$$typeof,u===G){t.tag=11,t=fv(null,t,l,e,r);break e}else if(u===F){t.tag=14,t=dv(null,t,l,e,r);break e}}throw t=pe(l)||l,Error(s(306,t,""))}}return t;case 0:return mf(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,u=Dr(l,t.pendingProps),gv(e,t,l,u,r);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;u=f.element,Gc(e,t),Ts(t,l,null,r);var v=t.memoizedState;if(l=v.cache,Ua(t,_t,l),l!==f.cache&&Lc(t,[_t],r,!0),Cs(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=yv(e,t,l,r);break e}else if(l!==u){u=vn(Error(s(424)),t),ys(u),t=yv(e,t,l,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=An(e.firstChild),Pt=t,Je=!0,Tr=null,Vn=!0,r=ev(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(gs(),l===u){t=ha(e,t,r);break e}Nt(e,t,l,r)}t=t.child}return t;case 26:return xo(e,t),e===null?(r=Tg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Je||(r=t.type,e=t.pendingProps,l=zo(Se.current).createElement(r),l[Ut]=t,l[Yt]=e,jt(l,r,e),At(l),t.stateNode=l):t.memoizedState=Tg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&Je&&(l=t.stateNode=wg(t.type,t.pendingProps,Se.current),Pt=t,Vn=!0,u=ht,$a(t.type)?(td=u,ht=An(l.firstChild)):ht=u),Nt(e,t,t.pendingProps.children,r),xo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Je&&((u=l=ht)&&(l=ww(l,t.type,t.pendingProps,Vn),l!==null?(t.stateNode=l,Pt=t,ht=An(l.firstChild),Vn=!1,u=!0):u=!1),u||Ar(t)),He(t),u=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,l=f.children,$f(u,f)?l=null:v!==null&&$f(u,v)&&(t.flags|=32),t.memoizedState!==null&&(u=Xc(e,t,P_,null,null,r),Qs._currentValue=u),xo(e,t),Nt(e,t,l,r),t.child;case 6:return e===null&&Je&&((e=r=ht)&&(r=Ew(r,t.pendingProps,Vn),r!==null?(t.stateNode=r,Pt=t,ht=null,e=!0):e=!1),e||Ar(t)),null;case 13:return bv(e,t,r);case 4:return Te(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=wi(t,null,l,r):Nt(e,t,l,r),t.child;case 11:return fv(e,t,t.type,t.pendingProps,r);case 7:return Nt(e,t,t.pendingProps,r),t.child;case 8:return Nt(e,t,t.pendingProps.children,r),t.child;case 12:return Nt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,Ua(t,t.type,l.value),Nt(e,t,l.children,r),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Or(t),u=Lt(u),l=l(u),t.flags|=1,Nt(e,t,l,r),t.child;case 14:return dv(e,t,t.type,t.pendingProps,r);case 15:return hv(e,t,t.type,t.pendingProps,r);case 19:return Sv(e,t,r);case 31:return l=t.pendingProps,r=t.mode,l={mode:l.mode,children:l.children},e===null?(r=So(l,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=sa(e.child,l),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return mv(e,t,r);case 24:return Or(t),l=Lt(_t),e===null?(u=Hc(),u===null&&(u=ut,f=Vc(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=r),u=f),t.memoizedState={parent:l,cache:u},qc(t),Ua(t,_t,u)):((e.lanes&r)!==0&&(Gc(e,t),Ts(t,null,null,r),Cs()),u=e.memoizedState,f=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ua(t,_t,l)):(l=f.cache,Ua(t,_t,l),l!==u.cache&&Lc(t,[_t],r,!0))),Nt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function wv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ng(t)){if(t=xn.current,t!==null&&((Ye&4194048)===Ye?Bn!==null:(Ye&62914560)!==Ye&&(Ye&536870912)===0||t!==Bn))throw ws=Pc,sp;e.flags|=8192}}function _o(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?tm():536870912,e.lanes|=t,Ai|=t)}function js(e,t){if(!Je)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 l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function K_(e,t,r){var l=t.pendingProps;switch(jc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(_t),Xe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vs(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tp())),ft(t),null;case 26:return r=t.memoizedState,e===null?(ma(t),r!==null?(ft(t),wv(t,r)):(ft(t),t.flags&=-16777217)):r?r!==e.memoizedState?(ma(t),ft(t),wv(t,r)):(ft(t),t.flags&=-16777217):(e.memoizedProps!==l&&ma(t),ft(t),t.flags&=-16777217),null;case 27:Ze(t),r=Se.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=oe.current,vs(t)?Wm(t):(e=wg(u,l,r),t.stateNode=e,ma(t))}return ft(t),null;case 5:if(Ze(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(e=oe.current,vs(t))Wm(t);else{switch(u=zo(Se.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=u.createElement("div"),e.innerHTML="